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

240 commits

Author SHA1 Message Date
Tanner Linsley
38834b0133 release: v1.99.13 2025-02-07 18:21:05 +00:00
Flo
e34aabb8ec
fix(history): SubscriberHistoryAction discriminated union (#3361) 2025-02-07 19:14:30 +01:00
Tanner Linsley
e69f08c78d release: v1.99.0 2025-02-01 11:02:45 +00:00
Tanner Linsley
ea7be82bc2 release: v1.98.1 2025-01-29 21:53:37 +00:00
Manuel Schiller
fdaefc035d
fix: Fix scroll restoration (#3191)
* fix: scroll-restoration (especially on hydration mismatch)

* fix: more fixes

* fix canGoBack

* release: v1.97.25

* chore(root): upgrade `vitest` to `3.0.4` (#3257)

* chore(root): upgrade `nx` to `20.4.0` (#3259)

* fix(react-router): improve error handling for module loading failures in lazyRouteComponent (#3262)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix(start-server): remove debugging timeout (#3258)

* fix(start-plugin): invoke server implementation of createIsomorphicFn during SSR (#3268)

* feat(react-router): add `remountDeps` (#3269)

* fix: RELEASE_ALL

RELEASE_ALL

* examples: remove dep (#3270)

* release: v1.98.0

* checkpoint

* fix tests

* tests: fix

* fix: back to old onRendered

* fix: scroll-restoration (especially on hydration mismatch)

* fix: more fixes

* fix canGoBack

* checkpoint

* fix tests

* tests: fix

* fix: back to old onRendered

* Move utils to core

* fix: backwards compat ScrollRestoration

* fix: better versioning

* fix: reenable hash scrolling and window reset even without scroll restoration

* test(e2e): renable tests for router

* fix: backwards compat and docs

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Flo <fpellet@ensc.fr>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Grant <1670902+djgrant@users.noreply.github.com>
2025-01-29 14:50:54 -07:00
Tanner Linsley
d5d65a2bdd release: v1.98.0 2025-01-29 00:50:27 +00:00
Tanner Linsley
6860b0a564 release: v1.97.8 2025-01-22 06:50:04 +00:00
Tanner Linsley
db6c8ac833 release: v1.97.7 2025-01-22 06:30:02 +00:00
Tanner Linsley
6446c57f7d release: v1.97.6 2025-01-22 06:07:00 +00:00
Tanner Linsley
2ffbf71fa3 release: v1.97.5 2025-01-22 05:49:19 +00:00
Tanner Linsley
8f7c193ac6 release: v1.97.0 2025-01-15 05:27:48 +00:00
Tanner Linsley
8e1cda896c release: v1.95.2 2025-01-10 01:32:52 +00:00
Andrei
814ebfe0d2
fix(react-router): separate internal and user provided history state (#3119) 2025-01-10 14:26:50 +13:00
Tanner Linsley
5c8c38a0e2 release: v1.95.0 2025-01-03 20:22:03 +00: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
Tanner Linsley
e2004c1428 release: v1.90.0 2024-12-15 09:37:44 +00: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
Tanner Linsley
fe6533f0be release: v1.87.6 2024-12-10 18:32:16 +00:00
Tanner Linsley
055c190122 release: v1.85.3 2024-12-02 23:39:00 +00:00
Christopher Horobin
05165ca4bc
chore: upgrade to typescript 5.7 (#2910)
* chore: upgrade to typescripr 5.7

* chore: upgrade renovate, typescript commands

* chore: fix build
2024-12-03 00:37:42 +01:00
Tanner Linsley
77afa3b999 release: v1.81.9 2024-11-15 05:35:47 +00:00
Tanner Linsley
ee0a9fca41 release: v1.81.6 2024-11-14 16:47:57 +00:00
Tanner Linsley
e913b7c3ed release: v1.81.3 2024-11-11 23:13:58 +00:00
Manuel Schiller
78fc6d8f20
fix(history): pass location to subscribe callback (#2736) 2024-11-11 22:57:52 +01:00
Manuel Schiller
5f1fd8f85f
fix(react-router): correctly handle hashes in redirect (#2543)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-14 18:25:13 +02:00
Tanner Linsley
77f1401a3d release: v1.61.1 2024-10-05 00:32:43 +00:00
Matthias Schwarz
fa92a0e331
fix(history): correctly handle history state in createMemoryHistory (#2442)
* fix(history): correctly handle history state in `createMemoryHistory`

* ci: apply automated fixes

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-10-05 12:28:47 +13:00
Tanner Linsley
31427e0b9b release: v1.61.0 2024-10-04 23:24:30 +00:00
Matthias Schwarz
9b2400b587
feat(history): expose length in RouterHistory (#2440)
* feat(history): expose length in `RouterHistory`

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-10-05 12:13:23 +13:00
Tanner Linsley
0de8af73ad release: v1.58.15 2024-09-29 14:08:24 +00:00
Matthias Schwarz
87bd9698ad
fix(history): remove uncalled splice expression in createMemoryHistory (#2439) 2024-09-29 15:51:59 +02:00
Tanner Linsley
27fb5e6b7b release: v1.57.6 2024-09-10 05:44:17 +00:00
Christopher Horobin
0890710329
chore: support TS 5.6 and drop support for 5.0 (#2299) 2024-09-10 02:29:52 +02:00
Tanner Linsley
e945089570 release: v1.51.7 2024-08-31 05:50:56 +00:00
Manuel Schiller
1504f8d6e7
fix: make stacked navigations use latest search params (#2057)
* tests: failing test to show that parallel navigate calls are not combined

* fix: do not flush immediately in tests

* tests: fix test regression from history change

* fix: Always use the most up to date search params when building URLs

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2024-08-31 07:49:37 +02:00
Tanner Linsley
513408927d release: v1.51.6 2024-08-29 23:01:07 +00:00
Manuel Schiller
3fb722676e
fix(start): correctly generate .d.ts files (#2225)
* chore: upgrade to latest config version to generate correct .d.ts files

see #2223

* chore: added arethetypeswrong (attw)

since attw will report a node10 related issue we want to ignore (see https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports) and cannot (yet) be configured to skip node10 (see https://github.com/arethetypeswrong/arethetypeswrong.github.io/issues/112), the `no-resolution` rule is skipped

* fix(start): correctly reference client

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-30 00:59:17 +02:00
Tanner Linsley
6ef147533d release: v1.49.7 2024-08-23 18:50:42 +00:00
Tanner Linsley
e4b1b3ee85 fix: force release of last PR 2024-08-23 12:46:14 -06:00
Tanner Linsley
333efe0e7b
[experimental] fix: safer history patching (#2181)
* fix: safer history patching

* fix tests

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-08-23 20:44:13 +02:00
Tanner Linsley
3c20257342 release: v1.49.0 2024-08-20 19:40:31 +00:00
Christopher Horobin
42f703d05b
feat(react-router): add context option to route (#2104)
* feat(react-router): add types for routeContext

* perf(react-router): optimise new types for `routeContext`

* chore(react-router): add type tests for routeContext and beforeLoad

* checkpoint

* ci: apply automated fixes

* updates docs

* fix: tests

* fix: context

* chore: fix the lockfile

* ci: apply automated fixes

* style(react-router): fixup the eslint errors

* fix: hydration mismatch during SSR, refactor matchRoutes to take location

* fix: serialize beforeLoadContext during SSR

* examples: add start-basic-auth

* fix: history export parseHref

* feat: routeOptions.preload to allow disabling route-level preloading

* fix: full support for href redirects

* feat: useServerFn hook to allow handling server side effects like redirects outside of router lifecycles

* fix: server redirect and notFound now default to 200 status code for runtime to handle

* fix: update pnpm

* ci: apply automated fixes

* examples: fix start-basic-auth

* tests: fix playwright

* tests: fix playwright

* tests: fix playwright

* sean's changes to the route context branch (#2141)

* chore: type the objects used for `routeContext` and `beforeLoad`

* refactor: move the defaultTransformer from start to react-router

* test: add tests to the defaultTransformer

* test(react-router): add runtime unit tests for the `context` function

* examples: init start-clerk-basic

* fix: lockfile

* ci: apply automated fixes

* test: remove failing test for WIP clerk example

* tests: fix more clerk wip tests

* fix: lockfile

* tests: more clerk fixes

* tests: skip WIP clerk example

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
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-08-20 13:39:17 -06:00
Tanner Linsley
82ef303c9a release: v1.45.3 2024-07-16 17:35:51 +00:00
Tanner Linsley
3003d986c6
fix(router): fixed a lot of context related issues (#1907) 2024-07-16 19:34:14 +02:00
Tanner Linsley
77116e45bf release: v1.44.2 2024-07-11 04:51:20 +00:00
Lachlan Collins
0901978caa
ci: Improve Nx inputs (#1927) 2024-07-09 23:11:25 +10:00
Tanner Linsley
4cd80bb494 release: v1.43.14 2024-07-09 03:43:05 +00:00
Manuel Schiller
d046e7c21c
fix(history): fix bugs in push and back of createMemoryHistory (#1922)
fixes #1916
2024-07-09 05:39:50 +02:00
Tanner Linsley
97dcfe6e4b release: v1.43.13 2024-07-08 21:39:04 +00:00
Lachlan Collins
9c5ab682ed
ci: Add local TS version tests (#1910)
* ci: Add local TS version tests

* Add tests to rest of packages

* Add test:types:ts55

* Update test:pr

* Remove TS_VERSION
2024-07-07 14:23:40 +10:00