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

224 commits

Author SHA1 Message Date
Birk Skyum
e2984d90b4
solid-start - full document hydration 2025-10-27 02:46:24 +01:00
Birk Skyum
b5ac27b9e7
test(solid-start): fix dev server for suspense transition (#5647) 2025-10-27 02:19:34 +01:00
Birk Skyum
a2aaf1f73f
test(solid-router): add params test for basic file based (#5642)
add params test for basic file based
2025-10-26 23:43:18 +01:00
Birk Skyum
3a0cfa9477
test(solid-start): add missing custom-basepath tests (#5641) 2025-10-26 23:37:01 +01:00
Birk Skyum
3b091d0c10
test(solid-start): fix basic-solid-query nav tests (#5640) 2025-10-26 22:32:05 +01:00
Birk Skyum
ef2757f0dd
test(solid-start): manual suspense boundaries transition on navigation (#5638)
* test(solid-start): manual suspense boundaries transition on navigation

* add nested tests

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-26 22:14:14 +01:00
autofix-ci[bot]
f4ce82455d
ci: apply automated fixes 2025-10-26 19:36:05 +00:00
Birk Skyum
78892de909
fix(solid-start): redirect from server function (#5637)
* fix(solid-start): redirect from server function test

* test for react

* set data-only
2025-10-26 20:35:00 +01:00
autofix-ci[bot]
0bda974651
ci: apply automated fixes 2025-10-26 19:06:55 +00:00
Birk Skyum
d2ac37c339
test(solid-start): server-functions e2e (#5616) 2025-10-26 20:05:55 +01:00
Birk Skyum
645de2353a
chore: update query to consistent 5.90 (#5634)
* chore: update query to consistent 5.90

* update to 5.90.0

* save bump

* bump root

* use 5.90

* update query integration for solid

* update query integration for solid

* ci: apply automated fixes

* align solid-query versions

* data-only

* lockfile

* lcokfile

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-26 19:29:46 +01:00
Durgé Seerden
9607ef6d16
fix: fix React router Link component in SVG elements (#5590)
* Use getAttribute to access the element target

* Add e2e test for react-router Link in SVG
2025-10-26 17:45:55 +01:00
Birk Skyum
aefd20f917
test(solid-router): update basic-file-based (#5633) 2025-10-26 15:00:23 +01:00
Birk Skyum
00efd13e9c
test(solid-router): js-only-file-based e2e suite (#5626) 2025-10-26 01:32:27 +02:00
FatahChan
475707e448
fix: auto discover static routes for prerendering
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-10-26 01:31:14 +02:00
Birk Skyum
9bc2969bd7
test(solid-router): generator-cli-only e2e suite (#5625)
test(solid-router): generator-cli-only
2025-10-26 01:21:05 +02:00
Birk Skyum
54e0be8422
test(solid-router): add basepath-file-based e2e suite (#5623) 2025-10-26 00:36:00 +02:00
Birk Skyum
b5c96d42cf
test(solid-start): sync server-routes e2e to react (#5618) 2025-10-25 22:21:07 +02:00
Birk Skyum
3ce120b377
test(solid): add params.spec.ts to start/router (#5617) 2025-10-25 22:01:24 +02:00
Birk Skyum
a068c4318e
test(solid-router): add sentry e2e (#5612) 2025-10-25 17:57:12 +02:00
Nico Lynzaad
d293e1b15a
fix(route-core, router-generator): resolve non-nested routes correctly in generator (#5402)
* revert router-core changes

* add experimental nonnested path changes to generator

* update router-generator unit tests

* update basic-file-based-e2e

* cleanup

* cleanup

* add tests for isValidNonNestedPaths

* resolve eslint issues

* align naming to documentation

* cleanup

* update solidjs basic-file-based tests

* update documentation

* ci: apply automated fixes

* resolve test issues

* code rabbit suggestions

* ci: apply automated fixes

* fix excess period in routeTree path

* restore snapshot again

* ci: apply automated fixes

* resolve nitpick

* resolve removeTrailingUnderscore issue

* fix routeTree path

* final nitpicks

* better test description

* exclude snapshots from prettier

* minor cleanup

* resolve change in snapshots due to changes from main

* update prettierignore

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-24 10:29:24 +02:00
Manuel Schiller
22bb4e0f69
fix: various fixes (#5593) 2025-10-23 20:08:07 +02:00
Birk Skyum
47bc1c3b65
chore(solid): bump solid-js to ^1.9.9 to align seroval versions (#5586) 2025-10-23 02:09:52 +02:00
Birk Skyum
eab8a9941c
chore: bump tailwind from v3 to v4 with postcss (#5580) 2025-10-22 03:42:26 +02:00
Birk Skyum
7f809a8c35
chore(solid): bump vite plugin solid to 2.11.10 (#5572)
* bump vite-plugin-solid to 2.11.10

* update lockfile

* fix lint
2025-10-21 22:19:03 +02:00
Birk Skyum
da10edf44b
test(solid-start): basic-auth e2e suite and example (#5558) 2025-10-21 03:53:40 +02:00
Birk Skyum
410fdf808d
test(solid-start): add virtual-routes e2e suite (#5556) 2025-10-21 01:36:36 +02:00
Birk Skyum
023180130c
solid-router-ssr-query (#5310) 2025-10-21 00:29:02 +02:00
Brenley Dueck
f9ae72c534
fix(solid-start): improve hydration (#5518) 2025-10-21 00:11:31 +02:00
Manuel Schiller
0ebd4bbd37
fix: don't warn about stream closed in case a query does not have a promise (#5542) 2025-10-20 00:46:55 +02:00
Manuel Schiller
ad66e89998
fix: undefined / null serialization (#5501) 2025-10-16 23:35:31 +02:00
Nico Lynzaad
afaecfc3e5
fix(router-generator): remove trailing slash from pathless route group paths (#5491) 2025-10-16 20:25:48 +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
Manuel Schiller
2db746c4fc
fix: navigate() respects rewrites when reloadDocument=true (#5389) 2025-10-06 23:18:59 +02:00
zenios
3c0c9cc167
fix: Add support for customizable functionId generation. (#5373)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-05 23:36:15 +02:00
Nico Lynzaad
4b0004cfbb
test(e2e-Utils): export built package from e2eUtils (#5336)
* add build step and update exports

* address flaky test

* export types

* ci: apply automated fixes

* use vite for building

* ci: apply automated fixes

* code rabbit issues

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-02 03:22:34 +02:00
Manuel Schiller
f943abc031
fix: unset extends of serialization adapters after deduping (#5316) 2025-10-01 20:47:34 +02:00
Manuel Schiller
a2da3f2b33
fix: correctly handle client-side vs server-side redirects with rewrites (#5330)
fixes #5324
2025-10-01 20:39:00 +02:00
Manuel Schiller
545ff3fbc3
fix: allow to express dependencies between serialization adapters (#5314) 2025-09-30 20:42:57 +02:00
Birk Skyum
581941a86a
tests(solid-router): Enable e2e scroll restoration test (#5298)
* enabled solid-rotuer e2e scroll restoration test

* fix solid-router e2e scroll restoration test
2025-09-29 22:34:03 +02:00
Nico Lynzaad
58e8a940e1
tests(start): update spa mode e2e to use production build (#5284)
* make use of prod setup for spa-mode e2e test

* ci: apply automated fixes

* nitpick

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-28 23:48:36 +02:00
Manuel Schiller
7d876bc31f
fix: register createServerFn fetcher as serializable (#5268)
* fix: createServerFn fetcher has TSS_SERVER_FUNCTION symbol prop

* add serializer extension, register server functions to be serializable

* remove cast
2025-09-28 12:36:00 +02:00
Nico Lynzaad
16eacb3d68
fix(router-core): consider __root__ in path parsing of trailing underscores (#5262)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-28 00:07:31 +02:00
Magnus May
2ff5bc20f7
docs: add Bun production server guide for TanStack Start (#5237)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-27 01:01:49 +02:00
James Opstad
eca3a55745
tests: Add basic Cloudflare E2E tests (#5260)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-26 23:06:21 +02:00
Manuel Schiller
e6ef21809c
fix: opt into SSR type level serializability check (#5233)
default `false` was not working for plain router

fixes #5222
2025-09-25 17:28:40 +02:00
Manuel Schiller
32faee22da
feat: Start RC (#5189)
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: James Opstad <13586373+jamesopstad@users.noreply.github.com>
Co-authored-by: chorobin <chrishorobin@hotmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: hokkyss <hokkyss2@gmail.com>
Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
2025-09-23 11:34:54 -06:00
Nico Lynzaad
ecd79d2b63
fix(router-core): Non nested paths - only strip trailing underscore on route segments (#5182)
as part of #5169 we made changes to strip underscores from the paths to
ensure it is dealt with correctly during parsing.

inadvertently this stripped it from not only the route segments but also
the base segments. This PR resolves that issue by making
`baseParsePathName` aware which type of segments it is parsing.

a new optional boolean paramater, ```basePathValues```, is introduced in
`baseParsePathName` and `parsePathname` to allow this distinction
between routeSegments and/or basesegments to be passed on to
`baseParsePathName`.

2 new functions are introduced `parseBasePathSegments` and
`parseRoutePathSegments`, which is just wrapper functions around
`parsePathname`, but ensures clearer understanding of what set of
parsing instructions is applied and `basePathValues `is set correctly
based on the requirement.

updated the unit tests to take into account the need not to strip the
base values and also enhanced the e2e tests as well to ensure more
through testing with different usages.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Added non-nested route demos (named, prefix, suffix, path) with
index/foo/bar pages and updated navigation in React and Solid examples.
- Bug Fixes
- Improved path parsing/matching to handle non-nested segments,
prefixes/suffixes and trailing underscores; refined route
sorting/resolution.
- Tests
- Added comprehensive E2E coverage for non-nested paths; removed
obsolete baz-based tests.
- Expanded unit tests for path interpolation and matching (underscore,
prefix/suffix cases).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-22 03:12:27 +02:00
Nico Lynzaad
cf2346ba42
fix(router-core): Non-nested paths (#5169)
This PR continues on from #5165 and primarily adds additional tests to
path resolution and matchByPath for non-nested paths in additiona to e2e
test for both react and solid router to verify non-nesting
functionality.

One additional issue was picked up for handling of normal path segments.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Added non-nested demo routes and navigation examples (including
dynamic and edit paths) for React and Solid, with headings, links, and
parameter displays.
- Bug Fixes
- Improved path parsing/decoding for non-nested segments to prevent
unintended nesting and ensure correct parameter values.
- Tests
- Added broad unit tests for non-nested path parsing/matching/resolution
(case-sensitive/insensitive, wildcards, optional/fuzzy).
- Added e2e tests validating non-nested navigation and params; reduced
e2e flakiness by awaiting network idle.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-19 01:05:26 +02:00