0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
Commit graph

6,675 commits

Author SHA1 Message Date
Tanner Linsley
f1fd5579c3 release: v1.42.0 v1.42.0 2024-06-28 16:37:45 +00:00
Christopher Horobin
1d733f6cc6
feat(react-router): params.parse and params.stringify instead of parseParams and stringifyParams (#1826) 2024-06-28 18:34:49 +02:00
Tanner Linsley
099d423073 release: v1.41.0 v1.41.0 2024-06-28 15:46:35 +00:00
Tanner Linsley
fd692cf77d
feat: New Serialization Paradigm (#1824)
* checkpoint

* fix: config

* checkpoint

* testing fixes (#1679)

* examples: init trellaux

* feat: Better serialization/streaming, RSC proof of concept

* fixup server-handler

* fix: update deps and lock

* fix: remove rscFrom

* fix: remove useLoaderDataTransform

* fix: min react version

* chore: lockfile

* style: prettier fail

* chore: swap expect-error for ignore

* chore(react-router): try coercing the types

* chore: put this back in

* fix: some tests

* remove conditions

* fix tests

* update lockfile

* fix: refactor dehydrated data

* Update docs

* fix: remove unused deferred logic

* fix port

* nevermind

* fix: remove rebase garbage

* disable playwright for a hot minute

* oops, actually disable it now

* fix: prettier formatting

* fix: do not ignore app.config files

---------

Co-authored-by: Nikhil Saraf <nsaraf98@gmail.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-06-28 09:45:01 -06:00
Lachlan Collins
431031182b
chore: Migrate to ESLint flat config (#1846)
* chore: Migrate to ESLint flat config

* Add knip.json
2024-06-28 11:59:39 +10:00
Aditya Pandey
7d8d3e06fd
ci: fix the workflow for running the e2e test on the "start-basic" example (#1843)
* Enable Replay DEBUG logs

* Build all deps

* Revert "Enable Replay DEBUG logs"

This reverts commit d4479a57eb.
2024-06-28 13:01:58 +12:00
Tanner Linsley
b55b38530a release: v1.40.3 v1.40.3 2024-06-27 18:57:43 +00:00
d-a-s
6472ea243d
fix(router-generator): add virtual parent for routes in addition to layouts (#1835) 2024-06-27 20:49:56 +02:00
Tanner Linsley
90994c54c8 release: v1.40.2 v1.40.2 2024-06-27 15:19:36 +00:00
Corbin Crutchley
28f57361f2
fix: add option to include and exclude properties from React plugin (#1840) 2024-06-27 09:17:54 -06:00
Sean Cassiere
c46664f0e6
chore(workspace): prettier to ignore the .vercel output directories (#1828) 2024-06-26 11:19:27 +12:00
Sean Cassiere
7fb5d13bb4
chore(start-vite-plugin,router-plugin): bump babel dependencies (#1819)
* chore(router-plugin): bump babel deps

* chore(start-vite-plugin): bump babel deps
2024-06-23 11:49:36 +12:00
Tanner Linsley
f778f25be8 release: v1.40.1 v1.40.1 2024-06-22 11:27:35 +00:00
Corbin Crutchley
66b4cc94a8
fix(start): handle formdata correctly from form action (#1815) 2024-06-22 13:26:03 +02:00
Christopher Horobin
f970023cd6
docs: add TS performance guidance with prefetching (#1781)
* docs: add TS performance guidance with prefetching

* chore: make suggestions
2024-06-22 10:38:42 +12:00
Tanner Linsley
d815ecd33c release: v1.40.0 v1.40.0 2024-06-21 17:51:06 +00:00
Manuel Schiller
b1213eb57d
feat: allow to ignore blocker in navigate and <Link> (#1797) 2024-06-21 19:49:33 +02:00
Tanner Linsley
498ba624b8 release: v1.39.13 v1.39.13 2024-06-21 16:23:32 +00:00
Sean Cassiere
10eb05902c
fix(router-plugin): experimental.enableCodeSplitting - allow the use of inlined wrappers for the route options when splitting nodes (#1813)
* test(router-plugin): tests for the route-items being wrapped in React.memo

* fix(router-plugin): React.memo breaks the codesplitting

* test(router-plugin): snapshots for the React.memo stuff

* refactor(router-plugin): variable naming is hard 😅

* chore(router-plugin): whoops
2024-06-22 04:22:04 +12:00
Tanner Linsley
76f8a1a1c5 release: v1.39.12 v1.39.12 2024-06-21 14:56:48 +00:00
Sean Cassiere
55939dde31
style(router-plugin): eslint fixes for #1810 (#1811) 2024-06-22 02:54:59 +12:00
Sean Cassiere
940ddb7690
fix(router-plugin): removing trailing import string literals with no references for experimental.enableCodesplitting (#1810)
* refactor(router-plugin): use the helpers

* fix(router-plugin): unnecessarily importing items that should be eliminated

* fix(router-plugin): update snapshots

* fix(router-plugin): same treatment for loaders

* test(router-plugin): update snapshots

* style(router-plugin): eslint

* refactor(router-plugin): use guard clauses

* perf(router-plugin): reduce the double traversals being done here
2024-06-22 02:38:24 +12:00
Tanner Linsley
eda5c77e45 release: v1.39.11 v1.39.11 2024-06-21 12:32:10 +00:00
Sean Cassiere
06fc3f467c
fix(router-plugin): experimental.enableCodeSplitting not handling default imports (#1807)
* test(router-plugin): starting point

* fix(router-plugin): fix default imported components

* test(router-plugin): test case for there being both a default component import and a destructured loader import

* chore(router-plugin): cleanup of my testing test file...
2024-06-22 00:30:09 +12:00
Tanner Linsley
cea952e816 release: v1.39.10 v1.39.10 2024-06-21 12:28:46 +00:00
Sean Cassiere
32fa1b425f
fix(router-devtools): prefix./ to the pathing for main, types, and module fields in the package.json (#1809) 2024-06-22 00:26:51 +12:00
Sean Cassiere
cb6c21150f
chore(examples): cleanup the config for the "quickstart-rspack-file-based" example (#1803)
* chore(examples): dont set the PORT in the defineConfig

* chore(examples): set the PORT in the dev script
2024-06-21 16:44:39 +12:00
Tanner Linsley
ea86e7314c release: v1.39.9 v1.39.9 2024-06-20 23:52:41 +00:00
Sean Cassiere
a9874aad26
fix(router-plugin): add the rspack/rsbuild handler for file-based routing (#1794)
* feat: setup the starter for an rspack integration

* refactor(router-plugin): compose the plugins toghether

* feat(router-plugin): initial export for rspack

* docs(examples): add the quickstart-file-based pages in

* feat(router-plugin): generator should generate the route-tree on startup

* feat(examples): use the route-tree

* feat(router-plugin): router-generator working

* feat(router-plugin): rspack support only for the generator

* refactor(router-plugin): make the rspack exports a bit cleaner

* chore(router-plugin): jsdocs for the vite plugin

* docs(router-plugin): update with references and mentions to rspack/rsbuild

* style(router-plugin): eslint import ordering 😭
2024-06-21 11:51:08 +12:00
Tanner Linsley
6aa18f28d7 release: v1.39.8 v1.39.8 2024-06-20 22:19:43 +00:00
Christopher Horobin
7cbaf728c7
perf(react-router): remove TRouterContext for each route, lazily infer parent for merging and remove TParentRoute from options (#1780)
* perf(react-router): remove router context from every route apart from the root

From my understanding, TRouterContext is only relevant to the RootRoute and is not relevant to each route

* perf: remove TParentRoute from file route options, infer lazily from parent and fix merging of context in beforeLoad/loader

* tests: add type tests for root route merging of context and buildLocation

* tests: add more tests and cleanup
2024-06-21 00:16:47 +02:00
Manuel Schiller
e24cd7616b
ci: Enable nx cloud again (#1800) 2024-06-21 00:05:52 +02:00
Tanner Linsley
8a2b364440 release: v1.39.7 v1.39.7 2024-06-20 21:57:58 +00:00
Manuel Schiller
8149575074
fix: linking with from prop and a param containing slash (#1799)
* Add test case for linking with from prop and a param containing slash

* Remove .only from test

* fix: encode pathname in match

* refactor: move encoded params to interpolatePath

---------

Co-authored-by: Jakob Norlin <jakob.stahl91@gmail.com>
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2024-06-20 23:55:02 +02:00
Manuel Schiller
a095cd59fb
ci: test matrix uses released TS 5.5 version 2024-06-20 23:45:35 +02:00
Tanner Linsley
ea31fc4eeb release: v1.39.6 v1.39.6 2024-06-20 21:39:09 +00:00
Anton Zinovyev
477bc99ea3
fix: proper basename removal handling (#1787)
fixes #1779
2024-06-20 23:36:13 +02:00
Sean Cassiere
ee48ae2aa1
docs: update the documentation on the @tanstack/router-plugin package (#1793)
* docs: update the file-based routing guide

* docs: update the quick-start guide

* docs: update the migrate from react-location guide

* docs: more updates to the migration from react-location guide

* docs: update the code-splitting guide

* docs: update the routing concepts guide

* docs: broken link on the code-splitting guide
2024-06-20 11:24:28 +12:00
Manuel Schiller
e088dde55c
ci: disable NX cloud for now 2024-06-20 00:01:34 +02:00
Tanner Linsley
b575985937 release: v1.39.5 v1.39.5 2024-06-19 11:09:20 +00:00
Sean Cassiere
149dbf8801
refactor(router-plugin): base should only export the individual unplugin factories and not the PURE compilations (#1789)
* refactor(router-plugin): vite default export

* refactor(router-plugin): only export the factories

* style(router-plugin): eslint...
2024-06-19 23:07:23 +12:00
Sean Cassiere
13a0cc0631
docs: update the custom search param serialization guide (#1759)
* docs: update the custom search param serialization guide

* docs: move the image a bit further down

* docs: remove the image
2024-06-19 21:32:57 +12:00
Tanner Linsley
e01087ec55 release: v1.39.4 v1.39.4 2024-06-19 08:06:48 +00:00
Sean Cassiere
05d1a1d4c6
refactor(router-vite-plugin): proxy for re-exporting from @tanstack/router-plugin/vite (#1785)
* chore: this route-tree has not been generated

* chore: remove tests

* refactor(router-plugin): export configSchema

* refactor(start): use the exports from router-plugin

* refactor(router-vite-plugin): just a proxy doing exports

* fix(router-plugin): do not perform code-splitting unless perms are given
2024-06-19 20:04:57 +12:00
Sean Cassiere
38b748878a
build: remove nx cloud temporarily (#1786) 2024-06-19 20:02:03 +12:00
Turner
c100f369ff
deprecate(react-router): mark navigate as deprecated in the BeforeLoadFn type definition (#1767)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-06-19 18:31:56 +12:00
Tanner Linsley
8d13e7eeee release: v1.39.3 v1.39.3 2024-06-19 05:55:54 +00:00
Sean Cassiere
e5d8b815db
fix(router-plugin): inline-config should be optional (#1783)
* fix(router-plugin): package.json fields causing issues during imports

* fix: make the inlineConfig optional

* chore: trigger ci

* chore: try ci again

* chore: add a better readme

* test: just something to trigger CI honestly
2024-06-19 17:53:55 +12:00
Tanner Linsley
459a6d4e79 release: v1.39.2 v1.39.2 2024-06-19 03:45:03 +00:00
Sean Cassiere
40043475cf
refactor: setup the @tanstack/router-plugin package using "unplugin" (#1778)
* feat: scaffold the new `@tanstack/router-plugin` package

* chore: include in the overrides

* feat: more scaffolding

* test: just a random test that'll be removed later

* build: hopefully fixes build

* style: import order

* chore: peer deps for router-plugin

* feat: setup the generator

* refactor: combined needs to be done for the individual plugin

* chore: copy all the babel stuff over from router-vite-plugin

* feat: copy the babel plugin setup from router-plugin

* feat: enfore pre

* refactor: turn the error into its own custom one

* style: eslint

* style: more eslint

* chore: update the readme
2024-06-19 15:43:31 +12:00