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

73 commits

Author SHA1 Message Date
Manuel Schiller
b5b4079ded
fix: do not pass signal into server function (#5470)
* fix: do not pass signal into server function

* fix test

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-05 22:48:04 +01:00
Nico Lynzaad
9196ae45b7
fix(start): normalize path encoding (#6389)
* fix encoding and update tests

rework fix and tests

* refine solution

* revert unnecessary change

* fix tests

* resolve pre-render test issues

* refine comment on normalization requirement

* cleanup: remove unnecessary imports

* code rabbit suggestions

* revert merge issues in createStartHandler.ts

* Avoid decoding query/hash

* apply solution to router-ssr also

* add test for getNormalizedURL to handle URLs correctly

* enhance getNormalizedURL tests

* handle malformed paths

* build pathname using url parts

* handle backslash encoding in URL normalization

* additional tests

* refine match error handling
2026-01-18 20:10:11 +02:00
Manuel Schiller
2d9193c25c
chore: bump deps (#6408)
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
2026-01-18 02:14:48 +01:00
hokkyss
0a5aeb628e
feat(start-core): add method and serverFnMeta property to ServerFnCtx (#6394)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-17 16:17:20 +01:00
Manuel Schiller
4fcfdaac1b
feat: add server fn meta (#6213)
* feat: add server fn meta

* fix: resolve merge conflicts and fix eslint errors in start-*-core

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-11 09:54:32 +01:00
Manuel Schiller
99bb8d216c
fix: cleanly separate dev styles from prod runtime (#6356) 2026-01-11 03:28:20 +01:00
Manuel Schiller
bc1da8af20
fix: race condition in module initialization (#6299) 2026-01-04 22:00:10 +01:00
Manuel Schiller
680671cce8
feat: RawStream (#6231)
* feat: RawStream

* framed json response is not newline split

* avoid code duplication in tests

* actually defer promise

* fix empty stream

* hardening

* optimization

* stream counter

* fix cancellation

* lint

* fix test

* stabilize tests

* stabilize tests

* fix(e2e): add hydration delay for SSR mixed stream test

In CI, hydration takes longer so reader.read() can hang if called
before seroval's stream factory connects callbacks. 100ms delay
ensures stream is ready to be consumed.

* skip test when prerendering
2025-12-27 15:57:16 +01:00
Tanner Linsley
a289d71f3d
fix: refactor middleware (#5517)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-12-27 01:06:32 +01:00
Manuel Schiller
767e4a98fc
refactor: only handle createServerFn (#6226)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-26 00:12:28 +01:00
Manuel Schiller
7f0b79cb83
refactor: consolidate start compiler (#6210) 2025-12-24 23:39:46 +01:00
Ulrich Stark
948c4fb045
refactor(router-core): deprecate json function in favor of standard Response.json function (#6181) 2025-12-22 19:44:04 +01:00
Birk Skyum
fe0d3d31bd
fix(start-server-core): bump h3 from v2.0.1-rc.2 to v2.0.1-rc.6 (#6161) 2025-12-21 01:43:25 +01:00
Birk Skyum
82ac628b2c
fix(start-server-core): use public h3-v2 api event.res (#6162) 2025-12-21 00:09:11 +01:00
Manuel Schiller
4ec65aec8a
fix: restructure server function environment handling (#6160) 2025-12-20 22:42:27 +01:00
Birk Skyum
22d1b4a3cf
chore(start-server-core): update to h3 v2.0.1-rc.2 (#6159) 2025-12-20 21:11:59 +01:00
Manuel Schiller
9fe8c619a1
fix: include assets in route manifest for all routes (#6058) 2025-12-10 20:51:58 +01:00
Manuel Schiller
53adf8688f
fix: handle server routes with exact match (#6059) 2025-12-10 20:44:20 +01:00
Esteban Hidalgo
13beadd47a
fix(start): fix stream handling on cloudflare (#6024)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-10 01:18:13 +01:00
Manuel Schiller
4d2fd33090
fix: more robust stream handling (#5996) 2025-11-29 21:31:13 +01:00
Birk Skyum
8323bf26d6
fix(start-server-core): h3 2.0.0-beta.5 (#5973)
* Revert "chore: bump h3-v2 to 2.0.1-rc.5 (#5959)"

This reverts commit 97afc67cb5.

* fix(start-server-core): h3 2.0.0-beta.5
2025-11-26 15:55:48 +01:00
Birk Skyum
97afc67cb5
chore: bump h3-v2 to 2.0.1-rc.5 (#5959) 2025-11-25 01:18:04 +01:00
Ethan Potts
2df807e43c
fix(start-server-core): deserialize tss context when using formdata (#5935)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-22 01:38:21 +01:00
Manuel Schiller
03595c8701
fix: memory leaks (#5896) 2025-11-19 01:17:39 +01:00
Manuel Schiller
875d1d4cbb
fix: script streaming (#5895) 2025-11-18 23:28:55 +01:00
Flo
f39eb9b832
refactor(router-core): Process routeTree into segment tree instead of flatRoutes [WIP] (#5722) 2025-11-15 13:45:02 +01:00
Manuel Schiller
af77b55822
fix: cleanup streamed values (#5870) 2025-11-15 01:53:45 +01:00
Manuel Schiller
d995aa388c
fix: decouple server functions caller and provider (#5712) 2025-10-31 23:34:18 +01:00
Samy Al Zahrani
41cc7e19ef
fix: pass server context to handler (#5601)
Co-authored-by: Samy Alzahrani <samyalzahrani@MacBook-Air.local>
2025-10-26 11:16:57 +01:00
Manuel Schiller
9d5a4fb183
fix: filter out routes from manifest that have neither preloads nor a… (#5596) 2025-10-24 01:37:35 +02:00
Manuel Schiller
22bb4e0f69
fix: various fixes (#5593) 2025-10-23 20:08:07 +02:00
Manuel Schiller
cf4f3e633b
fix: dev serverfn resolution on windows (#5520) 2025-10-18 00:12:00 +02:00
Manuel Schiller
9b09616f01
fix: no invalidation for server functions in dev (#5513) 2025-10-17 20:07:26 +02:00
Manuel Schiller
be6c094db9
fix: relax content type header check (#5502) 2025-10-16 23:59:54 +02:00
Manuel Schiller
ad66e89998
fix: undefined / null serialization (#5501) 2025-10-16 23:35:31 +02:00
Manuel Schiller
8dd0cc5220
fix: parent param types in server routes (#5482) 2025-10-14 23:56:56 +02:00
Manuel Schiller
776d3d5c09
fix: pass in request when requestMiddleware is used in combination wi… (#5390) 2025-10-07 00:31:07 +02:00
Lenz Weber-Tronic
1d718513f9
fix: merge serializationAdapters from createStart getOptions and router.options (#5321)
* feat: merge `serializationAdapters` from `createStart` `getOptions` and `router.options`

* fix lint

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-10-05 23:46:31 +02:00
Manuel Schiller
00b3595846
fix: revert alias handling for nitro-v2-vite-plugin (#5378) 2025-10-05 22:28:36 +02:00
Manuel Schiller
4d0e3cc509
fix: use h3 alias only in nitro-v2-plugin (#5370) 2025-10-05 15:27:57 +02:00
Fllavian
4939984f69
fix: re-add SessionConfig export (#5355) 2025-10-03 21:50:09 +02:00
Manuel Schiller
ceae3d5f85
fix: basepath (#5345) 2025-10-03 14:59:43 +02:00
Manuel Schiller
a7a25f570f
fix: return Headers instead of object (#5333) 2025-10-01 22:37:41 +02:00
Manuel Schiller
5269bd863f
fix: raw response handling (#5276) 2025-10-01 00:02:26 +02:00
Manuel Schiller
545ff3fbc3
fix: allow to express dependencies between serialization adapters (#5314) 2025-09-30 20:42:57 +02:00
Manuel Schiller
1ca59e3aa0
fix: redirect respects rewrites (#5315)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-30 20:41:43 +02:00
Manuel Schiller
de70ba95e6
fix: guard against invalid origin header value (#5288) 2025-09-29 01:49:53 +02:00
Manuel Schiller
3a76b3ca08
fix: use package alias for h3 (#5281) 2025-09-28 20:54:11 +02:00
Manuel Schiller
478d283d3a
fix: handle synchronous handler/middleware (#5270) 2025-09-28 01:32:02 +02:00
Manuel Schiller
53493af536 fix: move createServerRpc into separate package export
this avoids circular imports
2025-09-27 01:54:24 +02:00