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

Compare commits

...

189 commits

Author SHA1 Message Date
renovate[bot]
785b64d551
chore(deps): update dependency vite to v6.1.5 [security] 2025-04-10 17:54:50 +00:00
Manuel Schiller
93187d60f9 release: v1.116.0 2025-04-10 19:49:16 +02:00
Manuel Schiller
0fc3693692 release: v1.116.0 2025-04-10 19:43:08 +02:00
SeanCassiere
8211b64fc2
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-10 21:15:43 +12:00
SeanCassiere
5b9a148950
chore: remove vinxi from the start-workos example 2025-04-10 20:54:05 +12:00
SeanCassiere
c1fdc50753
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-10 20:50:24 +12:00
SeanCassiere
62166cc7c6
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-06 21:32:37 +12:00
SeanCassiere
0c41d0e960
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-06 20:21:14 +12:00
Tanner Linsley
fced7f7c65 checkpoint 2025-04-04 10:17:28 -06:00
SeanCassiere
dd51b04ac2
test(router-generator): update snapshots for the numbers in filename test cases 2025-04-04 14:26:19 +13:00
SeanCassiere
f2ce189e77
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-04 14:23:30 +13:00
chorobin
79765a3f18 refactor: server route types and add get to large example 2025-04-03 20:53:18 +02:00
SeanCassiere
7e2e5c9928
refactor(start-server-core): remove unnecessary typing 2025-04-03 20:36:14 +13:00
SeanCassiere
48ca2746a1
fix(react,start): add CSS urls to route.assets 2025-04-03 20:33:13 +13:00
SeanCassiere
f0cd2f4b3b
fix(router-plugin): support code-splitting using the new createFileRoute syntax
the createFileRoute syntax without the `path`
needed to be supported in the code-splitter
2025-04-03 20:05:26 +13:00
SeanCassiere
41126d6e9b
refactor: reuse rootRouteId 2025-04-03 18:39:57 +13:00
SeanCassiere
2dd751d0f1
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-03 18:29:22 +13:00
SeanCassiere
e42f3b31a1
feat(start-plugin-core): remove .vite directory from build
the `.vite` directory contains the `manifest.json`
generated by vite during build-time which should
not be accessible by the end-user during production

as such, this change removes the `.vite` directory
from the `publicDir` output created by Nitro
2025-04-03 15:47:04 +13:00
SeanCassiere
d16875a9d2
fix(react,solid): extract CSS for preloading
the vite manifest has a key named `css` which stores
the locations of the related CSS files tied to the
individual vite build artifacts.

this changes pulls those artifacts out at build time
and imports it during hydration.

this change works for both React and Solid. Solid has
a issue where deduplication isn't working at the
moment, but this change does not cause it so it should
be investigated separately
2025-04-03 15:34:19 +13:00
SeanCassiere
25d438b21c
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-03 12:56:30 +13:00
chorobin
b36447f490 fix: add serverFileRoutesById to generator 2025-04-02 21:24:57 +02:00
chorobin
64ffae46a7 chore: add additional exports 2025-04-02 21:23:35 +02:00
chorobin
48b6d99463 chore: add export for getServerFileRouteApi 2025-04-02 21:19:47 +02:00
chorobin
e13813a8e9 feat: add types for getServerFileRouteApi 2025-04-02 21:15:33 +02:00
SeanCassiere
eb82c7acbd
test(router-plugin): use id instead of root
at some point this changed, so this syncs that up
2025-04-01 11:04:12 +13:00
SeanCassiere
6a4157b6f1
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-01 11:00:24 +13:00
chorobin
acd5e55ea1 perf: improve type perf for server route 2025-03-31 23:23:37 +02:00
chorobin
3c0ae1e255 Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-31 21:26:05 +02:00
chorobin
87b71d5ca3 perf: add ServerRoute to large example and variance annotations 2025-03-31 21:24:49 +02:00
SeanCassiere
74ad9111b8
chore(start-plugin-core,react-start-plugin,solid-start-plugin): bump nitropack to 2.11.8
Bumping to get the fixes in nitropack for aws
streaming that was contributed by one of our users.
We should still upgrade to nitro v3 though before merging.
2025-03-31 21:49:14 +13:00
SeanCassiere
eeb6bf3fee
Merge remote-tracking branch 'origin/main' into devinxi 2025-03-31 21:42:08 +13:00
chorobin
8fadf98913 Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-30 22:33:07 +02:00
chorobin
27e34cbf02 feat: allow merging of validators from parents to children 2025-03-30 22:32:34 +02:00
Birk Skyum
daecd771a9 sync validation in solid/start-basic example 2025-03-30 20:53:48 +02:00
chorobin
16bf0284fc chore: fix users example 2025-03-29 20:18:29 +01:00
chorobin
28b78479b8 Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-29 20:17:25 +01:00
chorobin
e79d798c8b feat: improve validator types 2025-03-29 20:16:28 +01:00
SeanCassiere
24c24c51ab
refactor(start-plugin-core): more strictly type the factory input for compileStartOutput 2025-03-29 13:32:43 +13:00
SeanCassiere
a8340901e9
chore(solid-start-plugin): remove react-refresh checks
react shouldn't exist here
2025-03-29 13:31:54 +13:00
SeanCassiere
2acd2d2261
move dependency for @tanstack/router-generator to start-plugin-core 2025-03-29 13:15:53 +13:00
Birk Skyum
0718cd87fe fix solid/react in vite plugin options 2025-03-29 01:10:17 +01:00
Birk Skyum
2890c3a460 remove unused export start-plugin-core 2025-03-29 00:47:10 +01:00
Birk Skyum
f540854801 move schema to start-plugin-core 2025-03-29 00:43:48 +01:00
Birk Skyum
4bedd81f12 fix import orders 2025-03-28 22:11:09 +01:00
Birk Skyum
0264ba7ade move build-sitemap to start-plugin-core 2025-03-28 20:20:17 +01:00
Birk Skyum
f29ca3e10c move build-nitro to start-plugin-core 2025-03-28 20:01:26 +01:00
Birk Skyum
22af722c5a move queue 2025-03-28 19:45:45 +01:00
Birk Skyum
00ff74a389 use factory to move start-plugin code to shared package 2025-03-28 17:17:36 +01:00
Tanner Linsley
0a0f2427cc check 2025-03-27 16:33:21 -06:00
Tanner Linsley
89d1ce6ec3 check 2025-03-27 16:31:13 -06:00
Tanner Linsley
d609f578ef checkpoint 2025-03-27 16:29:37 -06:00
chorobin
64a83bef11 chore: use validator constraint 2025-03-27 23:03:12 +01:00
chorobin
09b8853cbb Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-27 22:56:00 +01:00
chorobin
51b2d0a944 feat: allow discriminated unions for inputs 2025-03-27 22:55:30 +01:00
Tanner Linsley
6efcf140ff Remove log noise 2025-03-27 14:41:27 -06:00
Tanner Linsley
bb3b3419a2 feat: allow [.] escapes in file-based routing filenames 2025-03-27 11:06:02 -06:00
chorobin
7c725ae8c7 Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-26 21:06:35 +01:00
chorobin
acf5b46a16 chore: revert validator type logic 2025-03-26 21:06:01 +01:00
Birk Skyum
f99426d634 move framework specific compilers code to react/solid-start-plugin 2025-03-26 11:26:14 +01:00
Birk Skyum
22a0b2fd4b sync solid 2025-03-26 11:02:56 +01:00
SeanCassiere
a195e98be5
fix(router-generator): only declare module when using typescript 2025-03-26 02:44:34 +13:00
Birk Skyum
803821e6aa cleanup solid-start-client 2025-03-25 14:27:05 +01:00
SeanCassiere
e8a9ba22e8
Merge remote-tracking branch 'origin/main' into devinxi 2025-03-26 02:26:12 +13:00
Birk Skyum
f3e6838e94 sync solid 2025-03-25 14:20:55 +01:00
Tanner Linsley
03f5b36a34 fixup 2025-03-24 22:21:11 -06:00
Tanner Linsley
cabdb6c779 Resolve client validator input type 2025-03-24 16:29:35 -06:00
chorobin
698041ffb5 fix: type errors 2025-03-24 22:53:17 +01:00
chorobin
c493e017a0 Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-24 22:32:05 +01:00
chorobin
d9efaf395f checkpoint 2025-03-24 22:28:15 +01:00
Tanner Linsley
17eb44382a commit 2025-03-24 15:26:19 -06:00
Tanner Linsley
15d6d1e705 checkpoint 2025-03-24 14:54:39 -06:00
chorobin
3bc8d5559f refactor: tidy up types to read top to bottom 2025-03-24 17:50:56 +01:00
chorobin
6518a155f6 fix: param merging 2025-03-24 00:04:45 +01:00
chorobin
3a43ebd930 checkpoint 2025-03-23 23:51:57 +01:00
chorobin
87483290a8 chore: update example 2025-03-23 16:10:38 +01:00
chorobin
1970526113 checkpoint 2025-03-23 16:06:21 +01:00
Tanner Linsley
bb4b5dd05d generate typemaps for server routes 2025-03-23 00:59:37 -06:00
chorobin
473f19dd7d chorepoint 2025-03-22 19:00:03 +01:00
Tanner Linsley
b2c33301d1 checkpoint 2025-03-21 23:11:03 -06:00
Tanner Linsley
3f6bddd30a checkpoint 2025-03-21 14:44:53 -06:00
chorobin
9126786274 Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-21 19:14:22 +01:00
chorobin
66b51514b7 chore: checkpoint 2025-03-21 19:13:54 +01:00
SeanCassiere
de4dae1d77
Merge remote-tracking branch 'origin/main' into devinxi 2025-03-22 00:19:52 +13:00
Birk Skyum
986af07c7c update solid/start-bare 2025-03-21 02:41:08 +01:00
Birk Skyum
ef262bff4f sync solid/start-basic example 2025-03-21 02:25:28 +01:00
Birk Skyum
6cc793c212 sync solid 1cae52b 2025-03-21 02:08:38 +01:00
Birk Skyum
1fe19927c2 sync solid ab070e4 2025-03-21 02:06:14 +01:00
Tanner Linsley
86cc390eeb checkpoint 2025-03-20 16:21:25 -06:00
chorobin
d9c6e9588b chore: checkpoint 2025-03-20 21:47:02 +01:00
Tanner Linsley
32ec982358 checkpoint 2025-03-20 13:11:52 -06:00
Tanner Linsley
27f5a54338 checkpoint 2025-03-20 10:49:46 -06:00
chorobin
07068c7c02 chore: add short hand function handler example 2025-03-19 21:40:49 +01:00
chorobin
bfee8e9f9c chore: try types 2025-03-19 21:34:46 +01:00
chorobin
0307ed73ed Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-03-19 20:25:17 +01:00
chorobin
b124fdf1e9 refactor: tidy types in generator 2025-03-19 20:23:01 +01:00
SeanCassiere
68bee62c63
remove the TYPES_DISABLED guard for the createFileRoute stuff
I mistakenly committed this in with my last commit. So undoing!!!
2025-03-19 16:54:16 +13:00
SeanCassiere
449c33183e
fix(router-generator): make the type import for pathless createFileRoute work for Solid 2025-03-19 15:16:17 +13:00
chorobin
1cae52b8dd perf: improve ts performance of createFileRoute without path 2025-03-19 01:16:15 +01:00
chorobin
ab070e455e chore: improve createFileRoute without path 2025-03-19 00:58:33 +01:00
Birk Skyum
2d80fb9d0e createFileRoute-without-path in solid-router 2025-03-18 19:50:37 +01:00
Birk Skyum
61d0c1dd30 cleanup imports in solid-start-client 2025-03-18 19:48:18 +01:00
Birk Skyum
5163473ed4 import createFileRouteImpl 2025-03-18 19:39:37 +01:00
Birk Skyum
a640c9a683 remove eslint rule 2025-03-18 19:39:02 +01:00
Tanner Linsley
57422b3edb Squashed commit of the following:
commit c7f7626ec7
Merge: 42d63bec3 1c71ab16c
Author: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Date:   Tue Mar 4 12:55:03 2025 +1300

    Merge branch 'main' into createFileRoute-without-path

commit 42d63bec35
Merge: 494ac4177 633d13b76
Author: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Date:   Mon Mar 3 01:23:28 2025 +1300

    Merge branch 'main' into createFileRoute-without-path

commit 494ac41776
Author: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Date:   Sat Mar 1 08:05:48 2025 +0000

    ci: apply automated fixes

commit f491a8c454
Author: Manuel Schiller <manuel.schiller@caligano.de>
Date:   Sat Mar 1 02:46:35 2025 +0100

    less verbose

commit 42329f7b2b
Author: Manuel Schiller <manuel.schiller@caligano.de>
Date:   Sat Mar 1 02:30:43 2025 +0100

    even less verbose

commit e38abb1d42
Author: Manuel Schiller <manuel.schiller@caligano.de>
Date:   Sat Mar 1 01:56:16 2025 +0100

    fix: createFileRoute without path
2025-03-17 20:07:20 -06:00
Tanner Linsley
49ad1b5754 checkpoint 2025-03-17 20:05:59 -06:00
Tanner Linsley
a84033f2a4 checkpoint 2025-03-17 14:03:38 -06:00
SeanCassiere
cafaaf09bb
Merge remote-tracking branch 'origin/main' into devinxi 2025-03-16 14:50:18 +13:00
Birk Skyum
ac75a7ffcc format 2025-03-13 19:38:14 +01:00
Birk Skyum
3a314b8eca sync solid 2025-03-13 19:36:52 +01:00
Birk Skyum
1873a28718 sync solid 2025-03-13 19:36:52 +01:00
Tanner Linsley
48ee6a9634 prerender onSuccess callback 2025-03-13 12:24:08 -06:00
Tanner Linsley
d0b5c90845 More prerendering goodies 2025-03-13 11:31:51 -06:00
Birk Skyum
35aa77b698 prerender solid-start 2025-03-13 17:50:16 +01:00
Birk Skyum
2fb3180d2b move compilers to start-plugin-core 2025-03-13 17:31:24 +01:00
Birk Skyum
9e19337ad3 lockfile 2025-03-13 14:39:26 +01:00
Birk Skyum
d6ed319ca3 make start-plugin rely only on router-core 2025-03-13 14:39:21 +01:00
Birk Skyum
d52e33b48c merge in main 2025-03-13 13:44:04 +01:00
Birk Skyum
3d715b58da move createStartHandler to start-server-core 2025-03-13 13:24:41 +01:00
Birk Skyum
4ab4aee048 move router-manifest to start-server-core 2025-03-13 13:16:29 +01:00
SeanCassiere
d646e4f6f2
extract plugin add-ons to the head
using `viteServer.transformIndexHtml`, extract the HMR add-ons used by `plugin-react` and inject them using `.injectHtml()`.
no more having to "fake HMR"
2025-03-13 23:03:54 +13:00
Tanner Linsley
8a3d567a95 checkpoint prerender 2025-03-13 02:11:07 -06:00
Birk Skyum
dd55500a76 fix hydration for solid 2025-03-13 00:31:24 +01:00
Birk Skyum
963d18c460 fix deferred 2025-03-12 23:57:54 +01:00
Birk Skyum
857bc66359 add ssr true flag to solid vite plugin 2025-03-12 23:48:16 +01:00
Birk Skyum
f886dc9f91 add target react, for easier mirror to solid 2025-03-12 23:44:12 +01:00
Birk Skyum
630803e58f sync solid 2025-03-12 22:34:21 +01:00
Tanner Linsley
d03fdcd35f No nitro exposure 2025-03-12 13:43:11 -06:00
Tanner Linsley
5fcd5a8e7a prerendering todo 2025-03-12 13:38:57 -06:00
Birk Skyum
cabada8a1f set Content-Type text/html for error overlay 2025-03-12 19:58:44 +01:00
Tanner Linsley
9d22c53555 rework schema 2025-03-12 12:27:19 -06:00
Birk Skyum
fb99a304a6 Merge branch 'main' into devinxi 2025-03-12 15:51:03 +01:00
Birk Skyum
28bb4b60d6 fix some imports in solid-start example 2025-03-12 15:45:35 +01:00
Birk Skyum
4c13b84fec fix workspace - rename to tanstack-solid-start-example-basic 2025-03-12 15:30:19 +01:00
Birk Skyum
e06b787b9c add solid-start-plugin and start-basic example 2025-03-12 15:19:35 +01:00
Birk Skyum
1200f1ebc4 Merge branch 'main' into devinxi 2025-03-12 14:01:23 +01:00
Birk Skyum
48059fd239 Merge branch 'main' into devinxi 2025-03-12 12:29:19 +01:00
Tanner Linsley
552e94168c checkpoint 2025-03-12 00:40:44 -06:00
Manuel Schiller
c1d9288577 fix commonjsOptions 2025-03-12 01:58:19 +01:00
Tanner Linsley
3c1064e75b checkpoint 2025-03-11 16:19:08 -06:00
Tanner Linsley
233860badf checkpoint 2025-03-11 09:32:46 -06:00
Tanner Linsley
916e1a51be fix: devinxi checkpoint 2025-03-10 15:46:39 -06:00
Birk Skyum
8176e758dd sync main 2025-03-10 20:03:13 +01:00
Birk Skyum
006bba29ee change "src/" back to "~/" 2025-03-10 19:40:35 +01:00
Birk Skyum
d34c97dda3 change back imports from "src/" to "~/" 2025-03-10 19:38:18 +01:00
Birk Skyum
0b9f6b0676 keep tsr config routes in src/app/routes 2025-03-10 19:34:02 +01:00
Birk Skyum
01d22a3546 catch up some for solid-start 2025-03-10 12:10:34 +01:00
Birk Skyum
caad30ce31 delete handler 2025-03-10 12:03:29 +01:00
Birk Skyum
6623a87708 Merge branch 'main' into devinxi 2025-03-10 12:03:06 +01:00
Birk Skyum
325ec8c3ef fix lockfile 2025-03-10 06:24:30 +01:00
Birk Skyum
a2242588e6 Merge branch 'main' into devinxi 2025-03-10 06:23:56 +01:00
Birk Skyum
3e57adedec format 2025-03-10 06:04:51 +01:00
Birk Skyum
59b92ec4f2 fix imports from ssr-server 2025-03-10 06:03:49 +01:00
Birk Skyum
07e00db28e merge main to devinxi 2025-03-10 05:59:34 +01:00
Birk Skyum
b5f3c4acb0 Merge branch 'main' into devinxi 2025-03-10 05:55:30 +01:00
Birk Skyum
93a7cc2028 Merge branch 'main' into devinxi 2025-03-10 04:12:09 +01:00
Birk Skyum
00c3bee035 Merge branch 'main' into devinxi 2025-03-10 03:03:06 +01:00
Birk Skyum
e2dcc8ae83 Merge branch 'main' into devinxi 2025-03-10 02:28:23 +01:00
Birk Skyum
b53720062c Merge branch 'main' into devinxi 2025-03-10 02:02:44 +01:00
Birk Skyum
2ebac7aa23 Merge branch 'main' into devinxi 2025-03-10 00:47:50 +01:00
Birk Skyum
18f91ad125 remove unwanted client/ssr files 2025-03-10 00:09:14 +01:00
Birk Skyum
967382db50 Merge branch 'main' into devinxi 2025-03-10 00:04:32 +01:00
SeanCassiere
2aa374014b fix(react-router): revert experimental change about removing the route path for createFileRoute 2025-03-09 23:44:02 +01:00
Tanner Linsley
8cce13b9e9 fix start-basic 2025-03-09 23:44:02 +01:00
Tanner Linsley
1c5acbbb78 rename app to src 2025-03-09 23:44:02 +01:00
Tanner Linsley
d4f0a66966 checkpoint 2025-03-09 23:43:00 +01:00
SeanCassiere
0d1fb06269 chore(root): sync lockfile and labeler config 2025-03-09 23:43:00 +01:00
SeanCassiere
4bfb75b556 fix(react-start-plugin): use the __enableAPIRoutesGeneration flag 2025-03-09 23:42:49 +01:00
SeanCassiere
4713ebf1a6 chore(start-plugin): cleanup this doesn't exist anymore 2025-03-09 23:42:49 +01:00
SeanCassiere
37812fcded fix(solid-start-plugin): build failures due to type mismatches 2025-03-09 23:42:49 +01:00
SeanCassiere
6fc0df9daf chore(root): regen lockfile 2025-03-09 23:42:49 +01:00
Tanner Linsley
12ee34a157 It's working! 2025-03-09 23:42:49 +01:00
Tanner Linsley
64c76dd277 checkpoint 2025-03-09 23:42:49 +01:00
Tanner Linsley
e33bd0bef0 Remove "vinxi" from vocab, make dev html response work 2025-03-09 23:42:23 +01:00
autofix-ci[bot]
0087d6badf ci: apply automated fixes 2025-03-09 23:42:23 +01:00
Manuel Schiller
b09e263fa5 bump zod 2025-03-09 23:42:23 +01:00
Manuel Schiller
3157b19e02 update react-start 2025-03-09 23:42:23 +01:00
Manuel Schiller
9db72f27d8 fix package.json 2025-03-09 23:42:23 +01:00
Manuel Schiller
4dc7d6e520 fix docs 2025-03-09 23:42:23 +01:00
Manuel Schiller
a3ce53e27d fix labeler 2025-03-09 23:42:23 +01:00
Manuel Schiller
69d8d963a6 fix merge, format 2025-03-09 23:42:23 +01:00
Manuel Schiller
441b36e294 fix package name 2025-03-09 23:42:22 +01:00
Manuel Schiller
b4dd06ca1d remove vinxi-file-router 2025-03-09 23:42:09 +01:00
Manuel Schiller
e8c6f189bd remove react-start-config 2025-03-09 23:42:09 +01:00
SeanCassiere
5a3da487a8 chore: gitignore timestamp files 2025-03-09 23:41:59 +01:00
Tanner Linsley
4d130676e8 initial 2025-03-09 23:41:59 +01:00
Tanner Linsley
7d0c293812 rebased on fix:globalmiddleware 2025-03-09 23:41:59 +01:00
Tanner Linsley
0e2a7aa406 example: fix duration 2025-03-09 23:41:42 +01:00
Tanner Linsley
346174a155 fix: rename to global-middleware.ts 2025-03-09 23:41:42 +01:00
Tanner Linsley
b3af7f39b3 fix: global middleware
Fixes global middleware with a solution to ensuring registerGlobalMiddleware runs on both the client and server no matter what
2025-03-09 23:41:42 +01:00
738 changed files with 14567 additions and 14230 deletions

2
.gitignore vendored

Some files were not shown because too many files have changed in this diff Show more