Sean Cassiere
c7f7626ec7
Merge branch 'main' into createFileRoute-without-path
2025-03-04 12:55:03 +13:00
Birk Skyum
eb21d01ea1
test(react-router) should update title on navigation ( #3610 )
...
when client navigating, the react-router doesn't update the head meta
tags, such as the title
---------
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-03-02 22:56:22 +01:00
Manuel Schiller
f491a8c454
less verbose
2025-03-01 02:46:35 +01:00
Manuel Schiller
42329f7b2b
even less verbose
2025-03-01 02:30:43 +01:00
Manuel Schiller
e38abb1d42
fix: createFileRoute without path
2025-03-01 01:58:48 +01:00
Lee
4d35542f98
fix(router-core): allow %25 in path params ( #3419 )
...
fixes #3402
---------
Signed-off-by: leesb971204 <leesb971204@gmail.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-25 11:13:27 +13:00
Sean Cassiere
d9eab3d7d6
refactor: autoCodesplitting for all ( #3544 )
2025-02-24 21:43:55 +13:00
Manuel Schiller
dfd583176a
tests: bump react in e2e tests ( #3445 )
2025-02-15 14:41:29 +01:00
renovate[bot]
c1c943c5ef
chore(deps): update all non-major dependencies ( #3379 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-10 02:03:23 +00:00
Manuel Schiller
953b6c9bd1
tests: run e2e react-router tests with prod build ( #3374 )
2025-02-09 22:38:57 +01:00
renovate[bot]
d771619d32
chore(deps): update all non-major dependencies ( #3311 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-03 02:23:19 +00:00
Manuel Schiller
648b133fe8
tests: stabilize e2e tests to not be dependent on external host ( #3302 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-01 11:13:10 +01:00
Manuel Schiller
3f1f24f9ef
tests: create shared, non-published package for e2e utils ( #3296 )
2025-01-31 23:49:07 +01:00
Tanner Linsley
ef79114f20
Merge branch 'main' of https://github.com/TanStack/router
...
# Conflicts:
# docs/router/framework/react/guide/tanstack-start.md
# docs/start/framework/react/build-from-scratch.md
2025-01-30 15:45:35 -07:00
Tanner Linsley
74f933aa58
examples: <ScrollRestoration/> => scrollRestoration: true
2025-01-30 15:44:57 -07:00
Manuel Schiller
8442ef505c
tests: notFound handling in notFound when SSRing ( #3283 )
2025-01-30 23:18:58 +01:00
Nicolas Beaussart
624e8b0246
chore(e2e,examples): downgrade to tailwindcss 3 ( #3249 )
...
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-27 13:28:27 +13:00
Sean Cassiere
96e9e1a7aa
chore(e2e,examples): tailwindcss v4 ( #3235 )
2025-01-26 17:50:21 +13:00
renovate[bot]
b9f44bc038
chore(deps): update all non-major dependencies ( #3018 )
...
* chore(deps): update all non-major dependencies
* fix eslint issues
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-01-25 17:52:11 +01:00
Christopher Horobin
0cc3e14f7c
chore: update zod and arktype ( #3178 )
...
* chore: update zod and arktype
* ci: apply automated fixes
* chore: fix tests
* chore: remove ts ignore
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-15 23:17:28 +01:00
Christopher Horobin
04802fb65a
fix: make to required if from is not set ( #3099 )
...
* fix: make `to` required if `from` is not set
* chore: fix build
2025-01-04 18:48:57 +01:00
Tom Rehnström
366848eb0e
feat(react-router): add useCanGoBack ( #3017 )
...
also fixes that history does not notify twice for certain actions
2025-01-03 21:09:58 +01:00
Manuel Schiller
224a261ab0
fix(react-router): properly handle redirects when thrown during parallel preload ( #3103 )
...
fixes #3097
2025-01-03 03:02:44 +01:00
Manuel Schiller
acbc3f23b1
fix: bump deps ( #3077 )
2024-12-27 01:18:19 +01:00
Manuel Schiller
f85edf2e87
fix(react-router): do not preload links with reloadDocument: true
2024-12-17 11:39:25 +01:00
Tom Rehnström
f420670bf2
feat(react-router): update useBlocker hook to provide current and next location when conditionally blocking ( #1790 )
...
* chore: clean up changes
* feat: clean up work and address feedback
* feat: add backwards compat
* ci: apply automated fixes
* feat: give history action to subscribers via notify
* fix: provide go index to history subscribers
* docs: updated docs accourding to feedback
* fix: changed valid notify call
* rename to `type`
* remove non existing `pushstate`event
* cleanup
* typesafe API for shouldBlockFn
* feat: added blocking state to resolver and updated examples
* docs: updated useBlocker and navigation-blocking docs
* test: added type tests to blocker and changed type implementation of blocker
* test: added better unit tests for useBlocker hook
* test: added e2e tests for blocker and legacy blocker
* wip: stash files before merge
* fix: unstashed e2e file after merge
* fix lockfile
* docs
* typesafety for `<Block>`
* always return resolver to not break backwards compatibility
* fix: removed zod from navigation blocking example to fix build problem
* chore: update lock file
* finishing touches
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-12-15 10:32:16 +01:00
Josh Slate
92147140c8
feat(react-router): implement hash change "Scroll Into View" option ( #2996 )
...
* feat: implement hash change scrollIntoView option
* e2e tests for hash change scroll behavior
* update e2e tests to use data-testId
* address feedback
* remove accidental change to package.json
* add anchor link to example navigation
* ci: apply automated fixes
* handle when location transitions without commitLocation running
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-14 08:58:03 +01:00
Manuel Schiller
5ad95cf3f7
feat(react-router): allow to redirect to external targets, add reloadDocument option ( #3004 )
...
* feat(react-router): allow to redirect to external targets, add `reloadDocument` option
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-13 12:29:33 +01:00
Sean Cassiere
8311780fe5
test(e2e): derive e2e testing ports from the package name ( #2939 )
...
* test(e2e): add the derivePort utility
* test(e2e): use the utility on start-basic and start-website
* test(e2e): use the utility on the remaining start sandboxes
* test(e2e): use the utility on the react-router sandboxes
* test(e2e): remove unneeded script from `basic-esbuild-file-based`
2024-12-07 10:53:11 +13:00
Manuel Schiller
ef4a9498c0
fix: upgrade to vinxi 0.5 and vite 6 ( #2923 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-12-06 00:36:10 +01:00
Sean Cassiere
c7403a3c19
test(e2e): retrofit all e2e sandboxes tests to use open ports ( #2914 )
2024-12-04 11:11:57 +13:00
renovate[bot]
4722b7a2ea
chore(deps): update all non-major dependencies ( #2901 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 03:51:41 +00:00
renovate[bot]
481bb99f75
chore(deps): update all non-major dependencies ( #2795 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 15:21:30 +00:00
Sean Cassiere
4ae6ca9d6b
feat(start): move scripts,links, and meta to the head ( #2571 )
...
This minor is non-breaking for Router users, since it's undocumented to the public API, but **is breaking** for Start alpha users.
This changes the options signature for meta from this:
```tsx
createRoute({
meta: () => [
...
],
links: () => [
...
],
})
```
to this:
```tsx
createRoute({
head: () => ({
meta: [
...
],
links: [
...
],
})
})
```
2024-11-17 15:19:18 -07:00
Tanner Linsley
4d5d25bc08
Chained Server Fn Syntax, ServerFn Middleware ( #2513 )
...
* init
* Refactor createServerFn, add createServerMiddleware
* checkpoint
* checkpoint
* checkpoint
* update docs and examples to use new server function syntax
* fix: compilers, and update examples
* refactor: added merging of context and some type tests
* feat: createServerMiddleware context and input validation types
* checkpoint
* Server function middleware
* checkpoint
* checkpoint
* fix: return types from handlers, merging inputs etc
* checkpoint
* checkpoint
* checkpoint
* checkpoint
* feat: add types for client context and server context
* fix: merge server context
* checkpoint
* docs
* fix: better compilation of server functions
* fix: deferred example
* Html, Head, Body... be GONE!
* fix: API Routes
* checkpoint
* fix: support optional input types
* checkpoint
* fix lossy merge
* ci: fix build
* ci: fix start examples
* checkpoint
* feat: add client after context types
* test: add type tests
* checkpoint
* checkpoint
* Remove now-unnecessary data type headers
* checkpoint
* fix e2e test
* fix up merge conflicts
* ci: apply automated fixes
* fix: a few tests and a runtime bug
* chore: pnpm dedupe
except the search-validator-adapters example, everything else builds fine
* fix merge conflict
---------
Co-authored-by: chorobin <chrishorobin@hotmail.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-11-14 09:43:20 -07:00
renovate[bot]
47cc85fa90
chore(deps): update all non-major dependencies ( #2730 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 01:07:55 +01:00
Manuel Schiller
0873c1f0c9
feat(react-router): add support for structural sharing for finegrained selectors ( #2647 )
...
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2024-11-09 22:41:12 +01:00
Sean Cassiere
563e5d168c
feat(router-generator): remove prettier ignore comment blocks ( #2679 )
2024-11-01 14:22:12 +13:00
renovate[bot]
214a81f0e3
chore(deps): update all non-major dependencies ( #2662 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-29 03:53:25 +00:00
renovate[bot]
6260b6766d
chore(deps): update all non-major dependencies ( #2605 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-21 04:03:33 +00:00
Manuel Schiller
5499693bb3
fix(react-router): correct typing for unnested routes ( #2597 )
...
* fix(react-router): correct typing for unnested routes
fixes #2595
fixes #2596
* regenerate examples/tests
2024-10-20 17:48:18 +02:00
Manuel Schiller
0abdb16233
fix(router-generator): correctly generate ids for single routes inside route groups ( #2585 )
2024-10-19 01:08:16 +02:00
Manuel Schiller
4e07c749c1
tests: add e2e test for getRouteApi inside route groups ( #2569 )
2024-10-18 00:31:21 +02:00
Manuel Schiller
8c7f14b15b
fix: correctly handle route groups ( #2550 )
...
* fix: correctly handle route groups
do not remove route groups from ids as we need them to ensure uniqueness of ids at runtime.
fixes #2501
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-15 21:31:38 +02:00
renovate[bot]
b7facfe13d
chore(deps): update all non-major dependencies ( #2538 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 08:13:07 +00:00
Manuel Schiller
69f02b37d4
chore: update deps ( #2475 )
2024-10-05 15:12:30 +02:00
renovate[bot]
8c7aeb0689
chore(deps): update all non-major dependencies ( #2396 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 22:12:15 +00:00
Manuel Schiller
032787a08c
fix(react-router): correctly preload split routes without loaders ( #2365 )
2024-09-18 22:35:00 +02:00
Sean Cassiere
a9017a9a7a
chore: copying e2e test sandboxes from examples/ to e2e/ ( #2357 )
2024-09-18 18:09:22 +02:00