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

6,614 commits

Author SHA1 Message Date
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
Tanner Linsley
12531fd08e release: v1.39.1 v1.39.1 2024-06-18 06:26:18 +00:00
Sean Cassiere
9017fe0c9c
refactor(router-vite-plugin): remove the start logic from @tanstack/router-vite-plugin and update @tanstack/start with the new imports (#1771)
* refactor: remove start logic

* refactor: use `@tanstack/start-vite-plugin` in `@tanstack/start`

* chore: trigger ci

* chore: remove this

* try that again

* ...

* maybe

* interrupt

* chore: remove this
2024-06-18 18:24:50 +12:00
Sean Cassiere
9412432785
build: upgrade nx to 19.3.0 (#1773)
* upgrade to 19.3.0

* remove deprecated field
2024-06-18 18:17:33 +12:00
Tanner Linsley
90b09a0330 release: v1.39.0 v1.39.0 2024-06-18 02:21:26 +00:00
Sean Cassiere
1f35bcbfa8
feat(start-vite-plugin): copy the TanStack Start specific plugin logic into its own standalone vite plugin (#1768)
* copy the router-vite-plugin into start-vite-plugin

* test: remove the tests we dont need

* export config-name from generator

* undo that last one

* reduce this down

* eliminate the router logic

* undo the touches to the generator and cli

* move this down here

* eslint

* chore: remove deps that are not needed

* test: test for createServerFn being renamed during the destructured import

* fix: handle destructured rename case

* test: handle star imports

* chore: push

* chore: remove this
2024-06-18 14:19:57 +12:00
Sean Cassiere
92c6c2b1ff
docs: add documentation on the experimental.enableCodeSplitting feature (#1761)
* docs: add the content to the guide

* docs: add a link to the guide
2024-06-17 21:39:55 +12:00
SeanCassiere
e908be4076
docs: moving the actual file-based routing specific stuff not related to code-splitting to the right file 2024-06-17 20:58:28 +12:00
Lachlan Collins
6238d04784
ci: Update workspace dependencies (#1757)
* ci: Update workspace dependencies

* Try Nx v18
2024-06-17 13:51:32 +10:00
Tanner Linsley
77fff3491e release: v1.38.1 v1.38.1 2024-06-15 08:38:59 +00:00
Manuel Schiller
3b9a6feb43
fix(react-router): redirect with relative path (#1746)
* fix: redirect with relative path

* tests(react-router): add test for redirect with `from` and fix existing test

* tests: add beforeLoad test with redirect with `from`

* tests: remove leading slashes

---------

Co-authored-by: chorobin <chrishorobin@hotmail.com>
2024-06-15 10:35:57 +02:00
Christopher Horobin
d017403252
fix: match route location when pending has not been set (#1747) 2024-06-15 10:35:30 +02:00