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

6,533 commits

Author SHA1 Message Date
Tanner Linsley
54a0e76309 fix: Bring back injectedHtml; fix: meta, links, scripts hydration
Fixes #1853
2024-06-28 22:59:24 -06:00
Tanner Linsley
a9b42482ff release: v1.43.1 v1.43.1 2024-06-29 02:17:42 +00:00
Sean Cassiere
bfe73c0a41
refactor(router-plugin): use babel-dead-code-elimination to handle the removal of unreferenced code (#1855)
* chore(router-plugin): add `babel-dead-code-elimination`

* feat(router-plugin): initial implementation

* chore(router-plugin): better test scripts

* test(router-plugin): check it with the new functions

* fix(start-vite-plugin): add vite

* feat(router-plugin): bump unplugin

* fix(router-plugin): making sure it works

* chore(router-plugin): cleanup

* chore(router-plugin): delete "eliminateUnreferencedIdentifiers.ts"

* fix(router-plugin): esm problems

* chore(router-plugin): restore minification for production

* chore(start-vite-plugin): undo the vite

* Bump vite

* pnpm dedupe

* test(router-plugin): bit of renaming here

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-06-29 14:16:02 +12:00
Lachlan Collins
3611615f42
chore: Update ESLint and Vitest config (#1854) 2024-06-29 11:19:11 +10:00
Tanner Linsley
154ee80018 release: v1.43.0 v1.43.0 2024-06-28 20:15:49 +00:00
Kenta Iwasaki
765a5ac200
feat(start): support streaming using renderToReadableStream (#1792)
react-dom/server does not export renderToPipeableStream for JavaScript
runtimes such as Bun.
2024-06-28 22:13:43 +02:00
Tanner Linsley
3fcdfd018d release: v1.42.1 v1.42.1 2024-06-28 19:48:51 +00:00
Corbin Crutchley
16d2bf11c9
fix: Start config now loads properly on Windows (#1851) 2024-06-28 21:46:29 +02:00
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