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

Compare commits

...

137 commits

Author SHA1 Message Date
Manuel Schiller
c179eea562 fix(router-generator): don't use backticks as quotes when transforming 2025-06-10 18:55:14 +02:00
Tanner Linsley
f5e9bf967f release: v1.121.0-alpha.26 2025-06-09 18:45:10 +00:00
Manuel Schiller
8bbf7c7341
refactor: generator (#4337)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-09 20:43:38 +02:00
Tanner Linsley
a1226397ce release: v1.121.0-alpha.25 2025-06-05 20:27:45 +00:00
Iñaki Larramendi
3827b03dca
fix: Preload assets on windows (#4324)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-05 22:20:32 +02:00
Tanner Linsley
273fa8b24b release: v1.121.0-alpha.24 2025-06-03 20:15:01 +00:00
Manuel Schiller
5ea0dc74df
fix: don't add all @tanstack packages to noExternal (#4312) 2025-06-03 22:13:34 +02:00
SeanCassiere
17a3b42411
docs(start): remove example of Server Routes client callers
fixes #4275
2025-06-02 11:36:02 +12:00
Tanner Linsley
dec25aa9da release: v1.121.0-alpha.23 2025-06-01 21:32:39 +00:00
Manuel Schiller
3f700bff19
fix: exclude virtual modules from optimizeDeps (#4295)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fixes #4285
fixes #4195
fixes #4182
2025-06-01 23:31:22 +02:00
Tanner Linsley
f290ac945b release: v1.121.0-alpha.22 2025-06-01 16:16:13 +00:00
Manuel Schiller
7c2bc2f334
fix: make route HMR handling robust against route deletion (#4291)
fixes #4289
2025-06-01 18:14:56 +02:00
Manuel Schiller
6a9738618a
chore: merge main (#4283) 2025-05-30 23:48:25 +02:00
Tanner Linsley
baef562d39 release: v1.121.0-alpha.21 2025-05-30 07:31:05 +00:00
Hiển Đào Vinh
df8e5ccd12
fix(start-plugin-core): add a defensive check for node.fullPath (#4278) 2025-05-30 09:25:01 +02:00
Tanner Linsley
c955595bca release: v1.121.0-alpha.20 2025-05-29 21:39:39 +00:00
Manuel Schiller
d3beb4728b
refactor: types for server routes (#4272)
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2025-05-29 23:38:21 +02:00
Sean Cassiere
423f6c0e9b
chore(start-plugin-core): reorganize and centralize the plugin orchestration (#4266) 2025-05-29 11:08:59 +12:00
Tanner Linsley
6d500133d6 release: v1.121.0-alpha.19 2025-05-28 08:21:54 +00:00
Sean Cassiere
a02afb6719
feat(start-plugin-core): load all environment variables for dev (#4262) 2025-05-28 20:20:45 +12:00
Sean Cassiere
f8ca2a6fd3
chore(start-plugin-core): add comments for internal (#4261) 2025-05-28 19:43:31 +12:00
Tanner Linsley
e578e5f341 release: v1.121.0-alpha.18 2025-05-28 02:07:35 +00:00
SeanCassiere
6832dbbf86
refactor(start-plugin-core): rename output to route-assets-manifest
making this change so that in the future, we
could move the routes manifest (currently, in
the form of comments) in the generated
route-tree, to live somewhere in here the
`.tanstack-start` directory
2025-05-28 13:58:28 +12:00
Tanner Linsley
b74d5f267d release: v1.121.0-alpha.17 2025-05-27 08:08:40 +00:00
Sean Cassiere
5ce936ff46
fix: support usage of a prefixed a base path (#4258)
Fixes #4221
2025-05-27 20:07:24 +12:00
Tanner Linsley
e95834e5aa release: v1.121.0-alpha.16 2025-05-26 02:26:44 +00:00
Iñaki Larramendi
5aa3424373
fix(start-plugin-core): recursively import CSS assets (#4254)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-05-26 14:20:07 +12:00
Tanner Linsley
7e7b4366b4 release: v1.121.0-alpha.15 2025-05-25 01:15:12 +00:00
Sean Cassiere
e165d602b0
refactor: rename internal functions and limit deploy bundler defaults (#4253) 2025-05-25 13:13:56 +12:00
Tanner Linsley
b3dae311cc release: v1.121.0-alpha.14 2025-05-24 23:16:07 +00:00
Manuel Schiller
91ef1b0252
fix: dynamically import virtual modules (#4252) 2025-05-25 01:13:42 +02:00
Manuel Schiller
35d9c60b55
merge main into alpha (#4251)
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Luis Merino <mail@luismerino.name>
Co-authored-by: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Adam Hunter <arhunter@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Leonardo Montini <lion.48m@gmail.com>
Co-authored-by: Joel Tannas <jtannas@gmail.com>
Co-authored-by: scarf <greenscarf005@gmail.com>
Co-authored-by: Christopher Horobin <chrishorobin@hotmail.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
2025-05-24 20:11:43 +02:00
Tanner Linsley
618b91fdd5 release: v1.121.0-alpha.13 2025-05-24 10:26:13 +00:00
Yeoh Joer
aa94daaa19
fix: normalize router filepath (#4247)
Fixes #4243
2025-05-24 12:20:17 +02:00
Tanner Linsley
aea93b4210 Squashed commit of the following:
commit 086f8e500d39c874cb1dc6af159d2e66ae6fca08
Author: Tanner Linsley <tannerlinsley@gmail.com>
Date:   Fri May 23 23:37:40 2025 -0600

    docs: fix documentation links
2025-05-24 00:44:38 -06:00
Tanner Linsley
100560f996 release: v1.121.0-alpha.12 2025-05-23 12:19:24 +00:00
Sean Cassiere
8895961316
refactor: move resolution of virtual entry handlers to core (#4238) 2025-05-24 00:18:06 +12:00
Tanner Linsley
4bdeda8aeb release: v1.121.0-alpha.11 2025-05-23 05:32:14 +00:00
Tanner Linsley
5a3f7adcb8
fix: better unsafeRelative, support router.navigate() (#4236) 2025-05-22 23:30:41 -06:00
Tanner Linsley
bcbd08a68a release: v1.121.0-alpha.10 2025-05-23 02:45:47 +00:00
Sean Cassiere
496fac3efc
fix: make sitemap accessible via public assets (#4235) 2025-05-23 14:44:40 +12:00
Tanner Linsley
fad6b0be74 release: v1.121.0-alpha.9 2025-05-22 23:50:36 +00:00
Yeoh Joer
42e075cdf5
fix(start-plugin-core): prepend /@fs when a custom client entry is detected (#4184) 2025-05-23 11:44:39 +12:00
Tanner Linsley
dd34efe87f release: v1.121.0-alpha.8 2025-05-22 22:26:00 +00:00
Sean Cassiere
baf6a52e2e
feat(server-functions-plugin): make the manifest output path configurable (#4232)
As part of the devinxi changes, the following hard-coded output
path of the server functions manifest file was changed.

This would have had breaking changes in the user DX for downstream
frameworks building upon the `@tanstack/server-functions-plugin`
package - (i.e. SolidStart).

This change makes the output path of the manifest file for the
`server-functions-plugin` package, configurable.
2025-05-23 10:24:39 +12:00
Tanner Linsley
f06a29b262 release: v1.121.0-alpha.7 2025-05-22 21:47:33 +00:00
Sean Cassiere
8a76fa7102
refactor: consistent virtual module naming and resolve using Rollup conventions (#4226)
Renames the following virtual modules as such to have them be both
consistent and more easily readable should there be an error when
importing them.

| Before | After |
|--------|--------|
| `tanstack:server-fn-manifest` | `tanstack-start-server-fn-manifest:v` |
| `tanstack:start-manifest` | `tanstack-start-router-manifest:v` |
| `tanstack:server-rotues` | `tanstack-start-server-routes-manifest:v` | 

Additionally, the [Rollup convention for resolving virtual modules](https://vite.dev/guide/api-plugin#virtual-modules-convention) is being applied to these modules.
2025-05-23 09:46:03 +12:00
Tanner Linsley
a769bc9948 fix: all tests 2025-05-21 15:31:21 -06:00
Tanner Linsley
b8db2d9d4a fix: one more test 2025-05-21 15:13:19 -06:00
Tanner Linsley
7670d79977 release: v1.121.0-alpha.6 2025-05-21 20:43:32 +00:00
Tanner Linsley
a5d2740c64
fix: sitemap support (#4217) 2025-05-21 14:42:22 -06:00
Tanner Linsley
2b17f15148 release: v1.121.0-alpha.5 2025-05-21 19:49:10 +00:00
Tanner Linsley
cf9e5bcb05
fix: buildLocation (#4210)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-21 13:47:52 -06:00
Tanner Linsley
6461704e33 release: v1.121.0-alpha.4 2025-05-21 08:48:42 +00:00
Sean Cassiere
3a5a7649a7
refactor(start-plugin-core): omit autoCodeSplitting configuration option in tsr (#4218) 2025-05-21 20:47:27 +12:00
Tanner Linsley
e5e8e02c9e release: v1.121.0-alpha.3 2025-05-20 20:15:27 +00:00
Manuel Schiller
487d1bc84f
fix: allow head to be async (#4213) 2025-05-20 22:14:11 +02:00
Manuel Schiller
0f12171ac2
chore: router plugin restructuring (#4199) 2025-05-18 12:41:46 +02:00
Manuel Schiller
3f8dacda35
chore: simplify test for 'using' (#4196)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-17 21:00:13 +02:00
Tanner Linsley
8fee26d040 release: v1.121.0-alpha.2 2025-05-17 16:57:41 +00:00
Manuel Schiller
6187e2411e
fix: add support for 'using' (#4194)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-17 18:56:21 +02:00
Tanner Linsley
ed337062e8 release: v1.121.0-alpha.1 2025-05-16 22:10:48 +00:00
SeanCassiere
e03ad0c9da
fix: RELEASE_ALL
RELEASE_ALL
2025-05-17 10:09:02 +12:00
Manuel Schiller
f2d1d54541
merge main (#4191)
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Luis Merino <mail@luismerino.name>
Co-authored-by: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
2025-05-16 23:19:49 +02:00
Manuel Schiller
15b8ed6af3
chore: various fixes (#4187)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-16 19:51:24 +02:00
Tanner Linsley
fda41798f8 release: v1.120.4-alpha.25 2025-05-16 12:53:27 +00:00
Sean Cassiere
9e0d2d6d81
fix(start-plugin-core): enable pre-rendering with just pages (#4185)
Pre-rendering should be enabled, if any of the `config.pages` specify
that it should be
(i.e `config.pages = [{ path: '/posts', prerender: { enabled: true } }]`.

However, if the user has explicitly set `config.prerender.enabled = false`,
then even `config.pages` will NOT override the global
`config.prerender.enabled` setting.
2025-05-17 00:52:04 +12:00
Tanner Linsley
7a6cbeeec8 release: v1.120.4-alpha.24 2025-05-16 10:30:30 +00:00
Sean Cassiere
f43056085c
feat(start-server-core): resolve relative requests to the same origin (#4183)
Adds in the same "interceptor" functionality which `undici` previously fulfilled.
2025-05-16 22:29:20 +12:00
Tanner Linsley
cb21bb52e0 release: v1.120.4-alpha.23 2025-05-15 23:42:22 +00:00
Sean Cassiere
b339e6721f
fix: resolve custom client entry path on windows fs (#4181) 2025-05-16 11:40:59 +12:00
Tanner Linsley
7cf6487c55 release: v1.120.4-alpha.22 2025-05-15 22:54:58 +00:00
Yeoh Joer
f209861069
fix: resolve custom server entry path on windows fs (#4180)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-05-16 10:48:39 +12:00
Tanner Linsley
b5affb2631 release: v1.120.4-alpha.21 2025-05-15 21:42:53 +00:00
Tanner Linsley
b424cadc8a
fix: no @fs in dev for client entry (#4179) 2025-05-15 15:41:28 -06:00
Tanner Linsley
4aa766b988 release: v1.120.4-alpha.20 2025-05-15 20:42:37 +00:00
Tanner Linsley
b9017930f7
fix: spa-mode (#4177) 2025-05-15 14:30:34 -06:00
Tanner Linsley
52cdc7edef release: v1.120.4-alpha.19 2025-05-15 17:48:37 +00:00
Tanner Linsley
7f5ba879c1
fix: relative runtime navigation (#4174)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-15 11:47:22 -06:00
autofix-ci[bot]
5f8506bb3f
ci: apply automated fixes 2025-05-15 14:02:21 +00:00
Birk Skyum
f940f850d5 docs(server.ts/ssr.ts): cleanup redundant files and update docs 2025-05-15 16:01:17 +02:00
Tanner Linsley
fbfd8019a5 release: v1.120.4-alpha.18 2025-05-15 04:05:34 +00:00
Sean Cassiere
16705fab53
fix: resolve custom client and server entry paths (#4172)
This PR fixes it, so that a user can define a custom framework entry for both
the `client` and `server` (in either `src/client.tsx` or `src/server.tsx`).

This PR also removes the unneeded `src/server.ts` files present as part of the
`devinxi` migration.

Additionally, the React client entry has been change to wrap `hydrateRoot`
with `startTransition`. This change useful, since after the SSR-rendered
markup is sent to the client, `startTransition` lets React know to defer the
hydration in favor of user events.

fixes #4138
2025-05-15 16:04:03 +12:00
Sean Cassiere
0cca04906f
chore: dedupe and fix lockfile (#4171) 2025-05-15 14:04:19 +12:00
Tanner Linsley
595b0d0fe9 release: v1.120.4-alpha.17 2025-05-14 23:00:08 +00:00
Tanner Linsley
14bcc58065 fix: recover from server pathname mismatch 2025-05-14 16:53:49 -06:00
Birk Skyum
475556e1ca docs(solid-start): fix server routes docs 2025-05-14 20:52:16 +02:00
Birk Skyum
9fd42904e5 docs(solid-start): correctly set link to spa-shell 2025-05-14 20:50:46 +02:00
Tanner Linsley
063ccf6115 release: v1.120.4-alpha.16 2025-05-13 22:53:57 +00:00
Manuel Schiller
1417d177c6
fix: ensure compatibility with vite plugins that don't support the vite environment API (#4167)
fixes #4132
2025-05-14 00:51:42 +02:00
Tanner Linsley
3cbd11adfe release: v1.120.4-alpha.15 2025-05-13 22:34:01 +00:00
Tanner Linsley
f727dac6b7 fix: nitro-plugin types 2025-05-13 16:28:04 -06:00
Tanner Linsley
10eed5fa08 fix: Do not default to shell mode 2025-05-13 16:12:57 -06:00
autofix-ci[bot]
4225562463
ci: apply automated fixes 2025-05-13 21:31:49 +00:00
Birk Skyum
1e894bc011 solidjs shell mode 2025-05-13 23:30:47 +02:00
Tanner Linsley
273c4c1ecd feat: shell mode 2025-05-13 11:25:31 -06:00
Tanner Linsley
0a661471aa release: v1.120.4-alpha.14 2025-05-13 17:17:47 +00:00
Manuel Schiller
2559877826
fix: remove undici (#4168) 2025-05-13 19:16:45 +02:00
Birk Skyum
a153fdad4c docs(start): update src path for images 2025-05-13 16:14:15 +02:00
Tanner Linsley
55e54e1edb release: v1.120.4-alpha.13 2025-05-12 23:36:04 +00:00
Ryan Gillie
4e0638bd65
feat(react-start): Wrap default client entry with <StrictMode> (#4159)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-13 01:31:31 +02:00
Manuel Schiller
abb047ec40
fix: remove unused header (#4160) 2025-05-13 01:31:22 +02:00
Jaga Santagostino
c81090d02e
docs(start): document that serverFn can be used in server routes (#4152)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-05-13 00:29:38 +02:00
Tanner Linsley
6d428d3602 release: v1.120.4-alpha.12 2025-05-12 22:20:03 +00:00
Manuel Schiller
9882e3031f
fix: properly handle redirects thrown by server functions (#4156)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-13 00:18:53 +02:00
Tanner Linsley
6f764c2a21 release: v1.120.4-alpha.11 2025-05-12 21:05:05 +00:00
Manuel Schiller
3f33f04a29
fix: remove set/get global origin (#4157)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fixes #4141
fixes #4153
2025-05-12 23:03:53 +02:00
Manuel Schiller
418fac9f24 docs: update build from scratch 2025-05-12 21:55:21 +02:00
Manuel Schiller
e6fab6a445
docs(start): server-routes (#4155) 2025-05-12 19:59:22 +02:00
Ryan Gillie
6bde41fdf5
docs(start): Server Functions can be called from Server Routes (#4154) 2025-05-12 19:25:14 +02:00
Tanner Linsley
8d4a7e8b7f release: v1.120.4-alpha.10 2025-05-11 22:32:04 +00:00
Christopher Horobin
9f63d404e4
feat(router-core): type level parsing of path params (#4144) 2025-05-12 00:30:55 +02:00
Tanner Linsley
32f1a8bdc9 release: v1.120.4-alpha.9 2025-05-11 21:56:14 +00:00
Sean Cassiere
ac7db71d4f
fix(start-plugin-core): remove backslashes from declaration import (#4149) 2025-05-12 09:55:03 +12:00
Saša Šijak
62a044eff2
docs(start): remove validators from "server routes" guide (#4148) 2025-05-12 09:42:38 +12:00
Tanner Linsley
4533d30600 release: v1.120.4-alpha.8 2025-05-11 21:35:12 +00:00
Sean Cassiere
94c12845ad
refactor(start-server-core): use utility functions from router-core (#4147) 2025-05-12 09:34:06 +12:00
Tanner Linsley
65422872a8 release: v1.120.4-alpha.7 2025-05-11 21:24:02 +00:00
Manuel Schiller
565c8a0e74 chore: lint 2025-05-11 23:18:26 +02:00
autofix-ci[bot]
bef4dabd83
ci: apply automated fixes 2025-05-12 09:04:58 +12:00
MoeedDar
d5c2e6dd02
fix(start-server-core): appending headers to immutable response object + matching server function handler route on Windows (#4146) 2025-05-12 09:04:40 +12:00
Tanner Linsley
a57676eacb release: v1.120.4-alpha.6 2025-05-11 02:21:32 +00:00
Sean Cassiere
20937af4ac
fix(start-plugin-core): include "vite/client" types (#4139) 2025-05-11 14:20:16 +12:00
Tanner Linsley
016e5f0089 release: v1.120.4-alpha.5 2025-05-11 01:41:27 +00:00
Sean Cassiere
94400a2a5d
fix(start-plugin-core): patches for Virtual Routes in Server Routes (#4137)
Only import `routeCode` if `node.fullPath` is available.
2025-05-11 13:39:56 +12:00
Tanner Linsley
ef337e70b2 release: v1.120.4-alpha.4 2025-05-11 00:14:02 +00:00
Sean Cassiere
35f6520eb2
fix(router-generator): exit conditions when using verboseFileRoutes (#4136) 2025-05-11 12:12:54 +12:00
Tanner Linsley
99a944b797 release: v1.120.4-alpha.3 2025-05-10 23:45:42 +00:00
Sean Cassiere
736a572cc7
fix: declare vite as a peerDependency (#4135)
Currently, none of the packages (i.e `packages/*`) need `vite`
bundled as a `dependency`. So its been moved to the
`devDependencies` and had the version opened using
`"peerDependencies": { "vite": ">=6.0.0" }`.

Additionally, `vite` has been added as a `dependency` to
the Start end-to-end sandboxes.

In a later PR, `vite` will need to be added to all the
TanStack Start examples (i.e. `examples/**/start-*`).
2025-05-11 11:44:17 +12:00
Tanner Linsley
c997f90c15 release: v1.120.4-alpha.2 2025-05-10 17:35:23 +00:00
Iha Shin (신의하)
82d14bda95
docs(start): Fix contents outdated by Devinxi (#4125) 2025-05-10 19:32:09 +02:00
Iha Shin (신의하)
e3fd36bbce
fix: clean up Vite versions (#4130) 2025-05-10 19:19:33 +02:00
Tanner Linsley
bc2dfa1210 release: v1.120.4-alpha.1 2025-05-10 14:39:52 +00:00
Manuel Schiller
0b7aefdc3c fix: RELEASE_ALL
RELEASE_ALL
2025-05-10 16:19:13 +02:00
Tanner Linsley
1ceda304ef release: v1.20.3-alpha.1 2025-05-10 12:58:56 +00:00
Manuel Schiller
6e5b7a34eb fix: RELEASE_ALL
RELEASE_ALL
2025-05-10 14:57:36 +02:00
Tanner Linsley
855b03f990
Devinxi (#4111) 2025-05-10 14:54:51 +02:00
2082 changed files with 44430 additions and 37401 deletions

14
.gitignore vendored

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