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

6,608 commits

Author SHA1 Message Date
Sean Cassiere
4b9bf31deb
style(router-generator): prettier ignore the file-modification tests (#1884) 2024-07-03 19:53:36 +12:00
Honza Hrubý
bcc316eb1a
fix(router-plugin): add webpack support and resolve rspack code-splitting blockers (#1864)
* basic webpack example

* setup webpack plugin

* use webpack plugin

* add missing webpack config

* disable code split

* fix docs

* add watcher

* code split config

* documentation

* lazy load chokidar

* chore(router-plugin): set the webpack peerDeps

* feat(router-plugin): get code-splitting working for webpack

* refactor(router-plugin): better detection of the build mode

* chore(router-plugin): remove this console.log

* fix(router-plugin): remove the blockers for codesplitting with rspack

* chore(router-plugin): remove the unstable flags for webpack and rspack

* docs(router-plugin): remove the unsupported warnings for `experimental.enableCodeSplitting` for webpack and rspack

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-07-03 19:42:45 +12:00
Sean Cassiere
16cd10ec99
chore: update the gitignore to cover more vite timestamp files (#1881) 2024-07-03 13:18:58 +12:00
Tanner Linsley
e827545220 release: v1.43.7 v1.43.7 2024-07-03 01:04:17 +00:00
Sean Cassiere
2d5596a242
fix(start): argument properties for defineConfig should be optional (#1879)
* fix(start): argument properties for `defineConfig` should be optional

* chore(start): cleanup

* chore(start): add the comment back in
2024-07-03 13:02:39 +12:00
Sean Cassiere
e899ca1136
ci(docs): add a CI step to check for formatting of the documentation (#1874)
* ci: add ci for checking docs on main and prs

* ci: ignore the docs from the CI package handling publishing

* ci(docs): favor using `paths`

* ci(docs): add media as an ignore folder

* Add test:format to test:ci

* ci: remove `path-ignores` from both workflows

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-03 11:15:21 +12:00
Tanner Linsley
048bcce209 release: v1.43.6 v1.43.6 2024-07-02 09:11:09 +00:00
Sean Cassiere
a522c8b78c
fix(start): stronger typing of the tsrRoutesManifest plugin in start/config (#1875)
* fix(start): reduce the `any`s on the `tsrRoutesManifest` plugin for the start/config

* refactor(react-router): add filePath to the manifest for what is parsed from the routeTree

* fix(start): reduce the `any`s
2024-07-02 21:09:12 +12:00
Tanner Linsley
642f9a038e release: v1.43.5 v1.43.5 2024-07-02 08:54:04 +00:00
Sean Cassiere
d10dc9ba48
fix(router-plugin): bump babel-dead-code-elimination to 1.0.6 (#1873)
* fix(router-plugin): bump `babel-dead-code-elimination` to `1.0.6`

* chore(react-router-with-query): try setting the devDeps for Query using "^"

* chore(react-router-with-query): undo devDep stuff

* pnpm dedupe

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-02 18:52:16 +10:00
Sean Cassiere
9040999892
style: prettier on the docs (#1872) 2024-07-02 12:16:28 +12:00
friendlywavingrobot
994453b436
docs: remove the unnecessary encode and decode URIComponent calls in the zipson example of the "custom search param serialization" guide (#1870) 2024-07-02 12:07:27 +12:00
Tanner Linsley
9bd371865c release: v1.43.4 v1.43.4 2024-07-01 06:43:58 +00:00
Tanner Linsley
2998584c15 fix: lockfile 2024-07-01 00:42:26 -06:00
Tanner Linsley
c821eab606 fix: deps 2024-07-01 00:40:04 -06:00
Tanner Linsley
cbe2b896bd fix: tests 2024-07-01 00:21:30 -06:00
Tanner Linsley
23614fa79a fix: add react-router-with-query experimental package 2024-07-01 00:15:41 -06:00
Tanner Linsley
bf52d5af9c release: v1.43.3 v1.43.3 2024-06-30 06:58:43 +00:00
Tanner Linsley
23dcbc9570 fix: better streaming order, experimental React Query streaming example 2024-06-30 00:55:35 -06:00
Lachlan Collins
b02c35bad1
docs(examples): Correctly set "type": "module" (#1863)
* docs(examples): Correctly set `"type": "module"`

* Config cleanup
2024-06-30 15:10:11 +10:00
Lachlan Collins
3d41307fb3
ci: Optimise Nx workflow (#1862)
* ci: Optimise Nx workflow

* Reduce dynamic-changesets
2024-06-30 13:07:09 +10:00
Sean Cassiere
2d28367b84
docs: add a diagram on the "custom search param serialization" guide on the need for idempotency (#1860)
* docs: add the image

* docs: update the page with the diagram
2024-06-29 23:30:30 +12:00
Tanner Linsley
b1c6eac968 release: v1.43.2 v1.43.2 2024-06-29 07:28:25 +00:00
Sean Cassiere
c506bbd5db
style(start): prefer node: prefixed imports (#1856) 2024-06-29 19:26:55 +12:00
Tanner Linsley
f419ae4a61 examples: simplify deferred 2024-06-28 23:57:49 -06:00
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