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

Compare commits

..

386 commits

Author SHA1 Message Date
chorobin
1862270510 refactor: allow nested optional params 2025-05-11 21:19:48 +02:00
chorobin
c7dd9584a7 chore: work in progress 2025-05-09 23:00:29 +02:00
chorobin
2def055219 Merge remote-tracking branch 'origin/devinxi' into devinxi-parse-path-params 2025-05-09 09:34:33 +02:00
SeanCassiere
3d1323136d
sync e2e:solid-start/website 2025-05-09 16:04:14 +12:00
SeanCassiere
52fb1bca37
e2e:react-start/website rename and script fix 2025-05-09 15:59:42 +12:00
autofix-ci[bot]
e2044932a5
ci: apply automated fixes 2025-05-09 03:37:30 +00:00
SeanCassiere
eb91243786
e2e:react-start/website 2025-05-09 15:36:22 +12:00
SeanCassiere
ffb408b7e1
e2e:react-start/basic-auth 2025-05-09 15:33:53 +12:00
SeanCassiere
1f23e7a1d1
remove entry 2025-05-09 15:31:55 +12:00
SeanCassiere
075fb0206e
e2e:react-start/clerk still broken
this is still broken, need to figure out the correct way to do the clerk handler
2025-05-09 15:04:09 +12:00
SeanCassiere
93046e153c
e2e:react-start/basic-rsc 2025-05-09 14:54:55 +12:00
autofix-ci[bot]
d512222dcb
ci: apply automated fixes 2025-05-09 02:47:52 +00:00
SeanCassiere
df228242b7
e2e:react-start/server-functions 2025-05-09 14:46:42 +12:00
SeanCassiere
72e82f58a1
e2e:react-start/basic-react-query 2025-05-09 14:42:32 +12:00
SeanCassiere
283bae84a2
e2e:react-start/basic-tsr-config 2025-05-09 14:36:35 +12:00
SeanCassiere
4427973830
e2e:react-start/scroll-restoration 2025-05-09 14:31:49 +12:00
SeanCassiere
83424d22bb
docs: update build-from-scratch guides 2025-05-09 14:19:31 +12:00
SeanCassiere
7e1b346ddc
lint errors for start-compiler-plugin 2025-05-09 13:44:24 +12:00
SeanCassiere
7086c9bb84
update generator file-tree-modification to test files to use new syntax 2025-05-09 13:42:20 +12:00
SeanCassiere
603d6ebfea
generator add ts-nocheck to test file 2025-05-09 13:41:28 +12:00
Manuel Schiller
6c835a99c8 code gen + formatting 2025-05-09 01:58:03 +02:00
Manuel Schiller
e52b59f44e dont use .js extension 2025-05-09 01:50:52 +02:00
chorobin
eddf1b81be chore: remove unnecessary types 2025-05-09 01:32:52 +02:00
Manuel Schiller
7ea43e0452 disable unit test execution 2025-05-09 01:30:34 +02:00
chorobin
1539d12202 feat: initial parsing of path params 2025-05-09 01:28:52 +02:00
Manuel Schiller
1d87237a8e upgrade start-bare example 2025-05-09 01:27:09 +02:00
Manuel Schiller
d3024394f2 run code generator and format 2025-05-09 01:23:12 +02:00
Manuel Schiller
d4433ba1d4 module augementation for lazy file routes in generator, replace brackets in templates 2025-05-09 01:14:16 +02:00
Manuel Schiller
8b97bbefb6 fix eslint/typescript 5.3 2025-05-09 00:32:07 +02:00
Manuel Schiller
ba5501c67b fix ValidateRedirectOptions 2025-05-09 00:19:52 +02:00
Manuel Schiller
e1f32d4e84 use server routes ins e2e basic 2025-05-09 00:12:55 +02:00
Manuel Schiller
c3e84a85b8 update docs 2025-05-09 00:09:00 +02:00
Manuel Schiller
f14d5c7710 fix eslint 2025-05-09 00:04:02 +02:00
Manuel Schiller
a8620f3ed1 apply type optimizations from main 2025-05-08 23:51:43 +02:00
Manuel Schiller
33442d0247 fix missing import 2025-05-08 23:49:31 +02:00
Manuel Schiller
d180d06a42 Merge remote-tracking branch 'origin/main' into HEAD 2025-05-08 23:44:22 +02:00
Manuel Schiller
732d750dc2 fix type tests 2025-05-08 23:42:21 +02:00
Manuel Schiller
10a8680381 dont emit tsc for the start plugins 2025-05-08 23:37:34 +02:00
Manuel Schiller
68b764f0dc dont use .js imports 2025-05-08 23:34:01 +02:00
Manuel Schiller
13ee43fd46 fix(start-plugin-core): fix types 2025-05-08 21:54:07 +02:00
Manuel Schiller
6f8bb6dd70 fix start-plugin-core unit test 2025-05-08 21:45:33 +02:00
Birk Skyum
e7777386b2 fix prod check in solid-start test 2025-05-08 19:58:12 +02:00
Manuel Schiller
04ece67eb5 fix js-only tree 2025-05-08 19:54:23 +02:00
Birk Skyum
c89099ab49 routeTree for solid start exampels 2025-05-08 19:32:55 +02:00
Manuel Schiller
1b1fa7d7a2 fix formatting 2025-05-08 19:29:05 +02:00
Manuel Schiller
da23539fec consolidate start plugin even more 2025-05-08 18:27:19 +02:00
Manuel Schiller
f6a79b9d97 proper HMR handling for file routes 2025-05-08 18:27:19 +02:00
SeanCassiere
3b4a782ab7
disable serverTypes for js-only 2025-05-08 13:00:48 +12:00
SeanCassiere
9984b0db19
update labeler 2025-05-08 12:44:19 +12:00
SeanCassiere
6f8a93432d
patch tests for start-plugin-core 2025-05-08 12:41:26 +12:00
Manuel Schiller
18966b1156 fix import 2025-05-08 01:14:05 +02:00
Manuel Schiller
b1a1c1a82d consolidate start plugin 2025-05-08 01:11:59 +02:00
Manuel Schiller
9576165b61 remove unused plugins 2025-05-07 23:19:27 +02:00
SeanCassiere
226449258c
remove ./api 2025-05-08 08:56:01 +12:00
Manuel Schiller
2027c50877 delete start-api-routes 2025-05-07 22:49:40 +02:00
Manuel Schiller
19ec25fa64 remove create-start e2e tests 2025-05-07 22:49:39 +02:00
Manuel Schiller
7727675a5e ignore start build directory 2025-05-07 22:49:39 +02:00
SeanCassiere
45ca56c4c9
suppress prefix-suffix param errors using ts-expect-error 2025-05-08 08:41:47 +12:00
SeanCassiere
e7569ce2e3
fix conflicts 2025-05-08 08:04:38 +12:00
SeanCassiere
294a8157c5
chore update labeler 2025-05-08 08:03:03 +12:00
SeanCassiere
b6b0c37afa
fix lockfile 2025-05-08 08:01:29 +12:00
Tanner Linsley
4d958bae38 docs 2025-05-07 13:56:52 -06:00
SeanCassiere
c07c4d26f5
log possibilities for optionals and escaped chars 2025-05-08 07:55:16 +12:00
Tanner Linsley
cb26724ff2 de-"vinxi" 2025-05-07 13:51:51 -06:00
SeanCassiere
577fd55263
update the react-start/website e2e sandbox 2025-05-07 10:59:10 +12:00
SeanCassiere
e232dc0ade
switch to the simplified path syntax
refactor the path matching to use a simplified/more
user readable way of writing the `to` values for
routes with a prefix and/or suffix.

it goes from being `/foo/prefix${foo}suffix` and
`/docs/prefix${$}suffix`

to `/foo/prefix{$foo}suffix` and `/docs/prefix{$}suffix`
2025-05-07 10:59:10 +12:00
SeanCassiere
ce064635a3
move code-based e2e to use params-ps to match file-based 2025-05-07 10:59:09 +12:00
SeanCassiere
7f431e1431
copy code-based e2e to file-based 2025-05-07 10:59:09 +12:00
SeanCassiere
cfde635b73
fix broken redirect in the code-based e2e test 2025-05-07 10:59:09 +12:00
SeanCassiere
0588209bd2
tests for the generator 2025-05-07 10:59:09 +12:00
SeanCassiere
51d5220885
parenthesis should be empty?
leaving it empty for now, since we use them for
route groups
2025-05-07 10:59:09 +12:00
SeanCassiere
8c151e7dbb
update the structure of the website e2e sandbox 2025-05-07 10:59:09 +12:00
SeanCassiere
2ffd4bd05a
make routePathToVariable safe with special characters 2025-05-07 10:59:08 +12:00
SeanCassiere
e869cdd903
make prefix and suffix work for file-based routing 2025-05-07 10:59:08 +12:00
SeanCassiere
3c7825e50f
check destination heading to make sure the correct component is loaded in 2025-05-07 10:59:08 +12:00
SeanCassiere
86fc5cb13f
switch e2e code-based tests to use object syntax 2025-05-07 10:59:08 +12:00
SeanCassiere
865cfcb727
modify resolvePath to handle params with optional prefix/suffix 2025-05-07 10:59:08 +12:00
SeanCassiere
6ce62ac153
rank the routes with prefix/suffixes higher 2025-05-07 10:59:08 +12:00
SeanCassiere
8679160582
add e2e for code-based approach
adds failing e2e tests for checking that the
new curly brace syntax works and correctly
yields the ranking to more suitable matches
2025-05-07 10:59:07 +12:00
SeanCassiere
a5a8f83809
test for being able to also only use the curly brace syntax 2025-05-07 10:59:07 +12:00
SeanCassiere
d26331b515
use regex and keep variable instantiation outside of scope 2025-05-07 10:59:07 +12:00
SeanCassiere
811bfeb355
wildcard params to use curly brace syntax
wildcard params are to use a curly brace syntax
while still maintaining the old syntax.

so, `/docs/$` still works

and to use prefixes and suffixes you'd write it out
in this format `/docs/prefix${$}suffix`
2025-05-07 10:59:07 +12:00
SeanCassiere
18f677473e
named path params to use curly brace syntax
named path params are to use a curly brace syntax
while still maintaining the old syntax.

so, `/foo/$bar` still works

and to use prefixes and suffixes you'd write it out
in this format `/foo/prefix${bar}suffix`
2025-05-07 10:59:07 +12:00
SeanCassiere
9af58a0a85
more rearrangement of the tests 2025-05-07 10:59:07 +12:00
SeanCassiere
ba3832a495
refactor the prefix+suffix tests to be more separated 2025-05-07 10:59:07 +12:00
SeanCassiere
88f255b601
document whats being worked on 2025-05-07 10:59:06 +12:00
SeanCassiere
7ede9d7519
support for prefix-suffix for named path params in matchByPathname
previously this only worked for wildcards
2025-05-07 10:59:06 +12:00
SeanCassiere
13b323853c
fix the tests for matchPathname to expect the correct value 2025-05-07 10:59:06 +12:00
SeanCassiere
a82989c0e5
add failing tests for matchPathname for named path params 2025-05-07 10:59:06 +12:00
SeanCassiere
bcd111e684
more tests for interpolatePath 2025-05-07 10:59:06 +12:00
SeanCassiere
16b31c68cf
get initial groundwork and get the wildcard working
parsePathname works for both named param and wildcard
interpolatePath works for wildcard
matchPathname works for wildcard
2025-05-07 10:59:06 +12:00
Manuel Schiller
f17dceb77e ensure extracted dev scripts run before hydration 2025-05-06 22:02:41 +02:00
SeanCassiere
123bde0636
Merge remote-tracking branch 'origin/main' into devinxi 2025-05-06 10:40:46 +12:00
SeanCassiere
470fff5654
Merge remote-tracking branch 'origin/main' into devinxi 2025-05-05 09:51:49 +12:00
SeanCassiere
32a211794a
log params 2025-05-04 18:43:15 +12:00
SeanCassiere
4c1e0c6a80
rebreak the website example 2025-05-04 17:29:23 +12:00
SeanCassiere
3fe29f6314
test(router-core): validate the behaviour of path/parsePathname 2025-05-04 16:52:19 +12:00
SeanCassiere
94a10ce090
Merge remote-tracking branch 'origin/main' into devinxi 2025-05-04 13:57:03 +12:00
SeanCassiere
1f2542f842
make react-start/website e2e work and add the .md suffix POC 2025-05-04 02:52:16 +12:00
SeanCassiere
34d4b5e1c0
cleanup README files for Start packages 2025-05-02 11:29:28 +12:00
SeanCassiere
9902267036
cleanup js vite config files for packages 2025-05-02 10:47:52 +12:00
SeanCassiere
20d7508a0b
Merge remote-tracking branch 'origin/main' into devinxi 2025-05-02 10:28:09 +12:00
Tanner Linsley
c382cd2dd6 Update start examples to use vite + plugin 2025-05-01 11:55:39 -06:00
Tanner Linsley
2abeaf47ca fix redirect 2025-04-30 17:47:18 -06:00
Tanner Linsley
009587e90d checkpoint 2025-04-30 17:19:26 -06:00
Manuel Schiller
be7b46e68c fix clientDistDir 2025-05-01 01:15:54 +02:00
Manuel Schiller
349efbf6c5 delete client dist before build on solid as well 2025-04-30 22:33:58 +02:00
Manuel Schiller
4e8fd7bde1 handle start manifest being imported on the client 2025-04-30 22:33:58 +02:00
Manuel Schiller
bc73246eb6 move .tanstack-start folder to project root 2025-04-30 22:33:58 +02:00
Manuel Schiller
f17c30f5ae delete client output dir before building 2025-04-30 22:33:58 +02:00
Manuel Schiller
1a6b0887f8 allow custom opts for parseAst 2025-04-30 22:33:58 +02:00
Manuel Schiller
d8a90635ce don't export getStartManifest
it's only used inside this package
2025-04-30 22:33:58 +02:00
SeanCassiere
bdc694d4b8
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-30 22:10:32 +12:00
Tanner Linsley
ea3cc78712 Redirects use redirect responses 2025-04-30 00:20:03 -06:00
Birk Skyum
3a7bd6ca7e fix e2e tests solid-start 2025-04-29 17:30:03 +02:00
Birk Skyum
af38e5e137 catch up solid start 2025-04-29 13:40:31 +02:00
chorobin
dd586b3e9c chore: fix runtime tests for type tests 2025-04-28 21:25:12 +02:00
chorobin
e12a530deb chore: change directory of server route gen 2025-04-26 23:52:11 +02:00
chorobin
587ce8255e chore: add type tests and fix some edge cases for types 2025-04-26 14:42:48 +02:00
chorobin
44c08cbea2 refactor(start): clean up sever route types 2025-04-26 14:23:46 +02:00
chorobin
7a6616aacc Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-04-25 23:54:31 +02:00
chorobin
81ad369960 feat: add request middleware types 2025-04-25 23:53:53 +02:00
SeanCassiere
6407b8cf26
switch the server entry to defineEventHandler
as part of h3@v2 `eventHandler` is being removed
in favor of using `defineEventHandler`
2025-04-25 22:33:15 +12:00
SeanCassiere
aaeef8d5bc
fix prerendering
prerendering looks to have broken in the move
to the virtual file-system stuff used for the build

or it was just broken to begin with???
2025-04-25 21:49:55 +12:00
SeanCassiere
00bfcf05cc
mark the undici functions as "internal" 2025-04-25 21:21:28 +12:00
SeanCassiere
1e9e63e1bd
do not import undici in the SSR request
the usage of `setGlobalOrigin` from `undici` needs
to happen at the level of the nitro event handler and should not be mixed in with the SSR request

also, `undici` makes use of `node:sqlite` which is a server dependency which has no business getting involved with the SSR request
2025-04-25 21:15:12 +12:00
SeanCassiere
e2e794622d
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-25 19:43:27 +12:00
SeanCassiere
832acf3ea1
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-25 18:54:31 +12:00
SeanCassiere
aec638a714
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-25 14:32:27 +12:00
chorobin
2580d5206d refactor(start-client-core): do not use TType 2025-04-24 21:37:12 +02:00
chorobin
26709b7829 refactor(start-client-core): refactor server function middleware before server route middleware 2025-04-24 21:19:34 +02:00
SeanCassiere
6b09a813b0
set the nitro log level to 3
setting the log level to `3` lets Nitro print build/dist directory into the console
2025-04-24 22:49:58 +12:00
Tanner Linsley
c70a8f28f0 checkpoint 2025-04-23 16:51:11 -06:00
Tanner Linsley
11aad1fcdf checkpoint 2025-04-23 16:15:43 -06:00
Tanner Linsley
df1961d0d6 checkpoint 2025-04-22 23:13:00 -06:00
SeanCassiere
398eb9687f
do not create if Route/ServerRoute are commented out 2025-04-23 15:25:23 +12:00
SeanCassiere
8cb2bbc816
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-23 13:53:35 +12:00
chorobin
3c4184cdc1 chore: added type 2025-04-23 01:22:20 +02:00
chorobin
c82c706344 Merge remote-tracking branch 'origin/devinxi' into devinxi 2025-04-23 01:21:43 +02:00
chorobin
8cc267fdd6 Merge remote-tracking branch 'origin/main' into devinxi 2025-04-23 01:21:05 +02:00
Tanner Linsley
d0540a5d56 checkpoint 2025-04-22 16:44:36 -06:00
chorobin
00bef5443a chore: fix large example 2025-04-22 22:47:01 +02:00
chorobin
470c4aa59f fix: children types in generation 2025-04-22 22:22:28 +02:00
chorobin
54aa457915 fix: generation of types for createServerFileRoute 2025-04-22 22:18:23 +02:00
Tanner Linsley
926f040b09 checkpoint 2025-04-22 11:34:16 -06:00
SeanCassiere
19edf0b4ac
use the web standard default 'Accept' header value
the web standard header for when 'Accept' is not
available is to ues '*/*'.

since it now needs to check for more than the one
header, its be rewritten for this
2025-04-22 14:03:14 +12:00
SeanCassiere
6a6cb61805
fix the if condition check for the 'Accept' header 2025-04-22 13:51:09 +12:00
SeanCassiere
d221c92663
default the 'Accept' header to 'text/html'
we can assume that requests without the 'Accepts'
header expects the HTML content as its response,
so its being defaulted to 'text/html'
2025-04-22 13:48:59 +12:00
Tanner Linsley
0e59338486 fixes 2025-04-21 15:18:15 -06:00
Tanner Linsley
c567da315a checkpoint 2025-04-21 13:52:21 -06:00
Tanner Linsley
979f7fda40 checkpoint 2025-04-21 11:54:07 -06:00
Manuel Schiller
4d2babe5b1 Merge branch 'devinxi-vfs' into 'devinxi' 2025-04-21 19:21:39 +02:00
SeanCassiere
53388c5625
document how undici can be patched to solve the relative fetch issue
this would fix the issue for anyone using fetch, but would still not be desirable for anyone using `axios` or others
2025-04-21 20:39:28 +12:00
SeanCassiere
7a2b132e3a
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-21 20:04:38 +12:00
Manuel Schiller
84e30410a5 only apply capture-output plugin for server build 2025-04-21 01:29:08 +02:00
Manuel Schiller
132766ae3c correctly handle virtual files 2025-04-21 01:25:14 +02:00
Manuel Schiller
bec81041cd virtual file sytem for intermediate SSR build 2025-04-20 23:28:33 +02:00
SeanCassiere
219fffa611
get a basic functioning server route handler working 2025-04-20 12:38:42 +12:00
SeanCassiere
ad85333351
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-20 11:35:16 +12:00
SeanCassiere
bad0ea06a6
track the logs for createStartHandler 2025-04-20 10:55:34 +12:00
SeanCassiere
4e12d43a70
resolve eslint errors in nitro-plugin 2025-04-20 10:55:15 +12:00
SeanCassiere
9e4bafd14c
start-basic to not be static 2025-04-20 10:53:30 +12:00
Tanner Linsley
45e3b7b6ad Squashed commit of the following:
commit 0fae41095d303ee712f6e19d957f06c48764f7a6
Author: Brandon Roberts <robertsbt@gmail.com>
Date:   Sat Apr 19 10:55:56 2025 -0500

    fix: fix prerendering with nitro build and cleanup

commit 55ed86fb2db2fbd90eb130773625e77296c989a7
Author: Brandon Roberts <robertsbt@gmail.com>
Date:   Sat Apr 19 09:19:15 2025 -0500

    build: use nitro
2025-04-19 13:25:56 -06:00
SeanCassiere
1af2c83125
making routePathname possibly undefined 2025-04-19 09:50:55 +12:00
Manuel Schiller
5de0525d7a Merge remote-tracking branch 'origin/devinxi' into HEAD 2025-04-17 19:50:18 +02:00
Tanner Linsley
ad2b61d2e1 resolve 2025-04-17 07:41:18 -06:00
Tanner Linsley
953939dbcf checkpoint 2025-04-17 07:40:45 -06:00
Manuel Schiller
b1da22b412 Merge remote-tracking branch 'origin/main' into HEAD 2025-04-17 09:24:14 +02:00
SeanCassiere
aedfcc6e7d
compiler for server route to use ts/react-start/server as the import 2025-04-17 11:48:21 +12:00
SeanCassiere
c22655d7f7
export createServerFileRoute 2025-04-17 11:44:15 +12:00
Tanner Linsley
f2c604c3ba checkpoint 2025-04-16 16:34:35 -06:00
Birk Skyum
11cfd20d6d pass most e2e test for solid-start 2025-04-12 19:04:57 +02:00
Birk Skyum
f06ddc0717 pass most e2e test for solid-start 2025-04-12 19:04:48 +02:00
Birk Skyum
c50f1ca655 fix builds of solid-start e2e 2025-04-12 17:20:29 +02:00
Birk Skyum
a90e7b697e update all solid-start e2e to vite 2025-04-12 17:04:33 +02:00
Birk Skyum
46e8b5a10c swap vinxi for vite in solid-start e2e 2025-04-12 16:06:11 +02:00
Birk Skyum
08f9e4c64c sync solid start example and e2e 2025-04-12 16:00:24 +02:00
Birk Skyum
af3dccd40a add vite to devdeps of start-server-core and start-server-functions-fetcher 2025-04-12 15:58:23 +02:00
Birk Skyum
1fcd95225d format with prettier 2025-04-12 15:54:48 +02:00
Birk Skyum
f2c34f7442 sync solid 2025-04-12 15:37:12 +02:00
SeanCassiere
b1b071cab1
add comments on the use of checkRouteFullPathUniqueness
add comment why the `checkRouteFullPathUniqueness` function
is called as inline documentation
2025-04-12 13:05:30 +12:00
Manuel Schiller
17d2710dab WIP move e2e react-start basic to vite 2025-04-12 00:24:22 +02:00
Manuel Schiller
e78c6c3497 remove unused SSR response header handling 2025-04-11 23:55:15 +02:00
Manuel Schiller
130cf61a6c apply fix from react plugin to solid plugin 2025-04-11 23:45:06 +02:00
Manuel Schiller
6abab40393 remove @tanstack/start package 2025-04-11 23:44:38 +02:00
Manuel Schiller
54869693ff remove start-server-functions-ssr 2025-04-11 23:36:16 +02:00
Manuel Schiller
63e2b27050 no more 'ssr' env in start plugin compiler 2025-04-11 23:33:33 +02:00
Manuel Schiller
c82b353c8f only create nitro once 2025-04-11 23:16:20 +02:00
Manuel Schiller
16afc251d1 return promise 2025-04-11 23:10:50 +02:00
Manuel Schiller
67908d3255 avoid casting 2025-04-11 23:10:12 +02:00
Manuel Schiller
3b41fda233 revert throw workaround 2025-04-11 23:09:53 +02:00
Brandon Roberts
b421e80315 chore: fix build 2025-04-11 13:11:17 -05:00
Brandon Roberts
447d9b51ee fix: use glob for noExternal with TanStack packages 2025-04-11 13:04:15 -05:00
Brandon Roberts
91a2b8df4f fix: add packages to SSR transform, temp disable error for runnable environment 2025-04-11 12:12:52 -05:00
SeanCassiere
68da952305
interrupt the dev-server for router-generator
vite swallows the error and does not interrupt
the dev-server when uniqueness fails
2025-04-11 21:21:04 +12:00
SeanCassiere
5b993e44c2
interrupt build process for Server Routes 2025-04-11 12:11:41 +12:00
SeanCassiere
6157bbcb73
checkin lockfile 2025-04-11 12:00:25 +12:00
SeanCassiere
9810b7d854
server routes check against the route nodes 2025-04-11 11:58:19 +12:00
Tanner Linsley
68b518dc63 checkpoint 2025-04-10 15:23:14 -06:00
Manuel Schiller
cb14e7ded5 add start-plugin-core to publish config 2025-04-10 21:38:51 +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
12679 changed files with 108346 additions and 832778 deletions

28
.gitignore vendored

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