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

6,221 commits

Author SHA1 Message Date
Tanner Linsley
f3f7beca6c tests: add some type sanity check experiments around resolving relative paths with TS 2024-04-09 11:42:21 -06:00
Tanner Linsley
20ccf63750 release: v1.26.17 v1.26.17 2024-04-09 17:39:17 +00:00
Tanner Linsley
b849a8ad87 fix: resolve paths as always-trailing-slash documents, just like the web 2024-04-09 11:36:11 -06:00
Sean Cassiere
7731bf1294
docs: fix broken links on top-level guides (#1448)
Investigation into the broken links found by @MarcoB-Ec lead me to discovered these were broken in the top-level docs as well.

Co-authored-by: Marco Brito <35307131+marcob-ec@users.noreply.github.com>
2024-04-09 10:50:46 +12:00
Tanner Linsley
c328ffffae release: v1.26.16 v1.26.16 2024-04-08 18:45:06 +00:00
Tanner Linsley
ef0957d0c4 tests: fix vite plugin tests 2024-04-08 12:42:28 -06:00
Tanner Linsley
4cb0bedad3 tests: fix linting 2024-04-08 12:25:40 -06:00
Tanner Linsley
f9228a25bc fix: relative resolvePath + tests 2024-04-08 11:23:50 -06:00
Tanner Linsley
1961549c39 release: v1.26.15 v1.26.15 2024-04-08 15:20:50 +00:00
Christopher Horobin
0ad8cd8332
fix: optional search params not being optional (#1440)
* fix: optional search params not being optional

* fix: remove expand

* tests: add type tests for optional search params

* fix: remove unnecessary intersections

* perf: only omit the root schema at the root
2024-04-08 17:18:25 +02:00
Tanner Linsley
c2d1c41e5b release: v1.26.14 v1.26.14 2024-04-08 09:14:08 +00:00
Sean Cassiere
e425fd7332
fix(router-vite-plugin): experimental.enableCodeSplitting eliminating FunctionExpression identifiers in hooks (#1445)
* fix(router-vite-plugin): add condition for identifying the `FunctionExpression` node type

* test(router-vite-plugin): add tests
2024-04-08 21:12:09 +12:00
Tanner Linsley
358b4ebb0b release: v1.26.13 v1.26.13 2024-04-08 07:29:17 +00:00
Dominik Dorfmeister
50c8acf3eb
fix: widen signature of event (#1443)
There are situations where persist doesn't exist, see: https://github.com/TanStack/router/pull/1365#discussion_r1552986706
2024-04-08 09:27:12 +02:00
Tanner Linsley
dac25a2fac release: v1.26.12 v1.26.12 2024-04-07 10:04:51 +00:00
Christopher Horobin
c5eaf1ce1f
fix: improve performance of search params merging to avoid instantation errors (#1436)
* perf: improve performance of search params merging

* perf: improve performance by not using omit

* fix: avoid deep insantiation errors

* fix: exclude root search schema

* fix: return TSearchSchema when at the root

* fix: include root schema
2024-04-07 12:02:50 +02:00
Christopher Horobin
04f63671f6
tests: add fileRoute and route type tests (#1428)
* tests: add fileRoute and route type tests

* chore: change tests to not have auth
2024-04-07 11:15:53 +02:00
dependabot[bot]
2bdc791b66
chore(deps-dev): bump vite from 5.0.12 to 5.0.13 (#1421)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.12 to 5.0.13.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.13/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.13/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-06 19:08:28 +02:00
Tanner Linsley
6d044793b0 release: v1.26.11 v1.26.11 2024-04-06 11:25:17 +00:00
Manuel Schiller
eb7c5874f8
fix: type optimizations (#1434)
- made `Replace` tail-recursive
- cache type in FileRoutePath
- remove unused type and outdated comments
2024-04-06 13:23:11 +02:00
Tanner Linsley
e85c9290c7 release: v1.26.10 v1.26.10 2024-04-06 04:39:17 +00:00
Sean Cassiere
e98302f970
fix(router-vite-plugin): trigger release (#1432)
RELEASE_ALL
2024-04-06 17:37:50 +13:00
Sean Cassiere
d233a7235a
chore(router-vite-plugin): move the tests outside of the source folder (#1431) 2024-04-06 17:31:47 +13:00
Dave Keen
43d08080c1
docs: fix a typo in the static-route-data guide (#1426) 2024-04-05 23:05:23 +13:00
Don Denton
4febb24b03
docs: Update bug_report template with latest Stackblitz links (#1424) 2024-04-04 18:46:09 +02:00
Tanner Linsley
ac91340ba2 release: v1.26.9 v1.26.9 2024-04-04 16:44:27 +00:00
Christopher Horobin
03a91d8988
tests: fix type tests for Link, make sure type tests fail in ci and add type tests for union to and difference in params (#1418)
* tests: fix type tests for Link, make sure type tests fail in ci and add type tests for union `to` and difference in params

* tests: refactor tests to only include scenario and group expects

There was a lot of repetition in the tests, I think its simpler to group
the tests by use cases and have multiple expects for the use case
2024-04-04 18:42:13 +02:00
Manuel Schiller
c25543fcf2
fix: correctly infer loader data type (#1422)
fixes #1409
2024-04-03 17:19:07 -06:00
Tanner Linsley
46792b2b7d release: v1.26.8 v1.26.8 2024-04-03 19:58:31 +00:00
Tanner Linsley
9e8cf99384 fix(experimental-code-splitting): leave array destructuring structure during treeshake 2024-04-03 13:56:15 -06:00
Tanner Linsley
ac6598fe74 release: v1.26.7 v1.26.7 2024-04-02 23:11:52 +00:00
Sean Cassiere
ee5bb089f2
fix(react-router): incorrectly splitting the key-values pairs from the querystring (#1405)
* fix(react-router): incorrect splitting of key-value pairs during decoding

the value in the key-value pair was prematurely being sliced off and as such the full value wasn't being extracted for each key

* chore(react-router): add JSDoc comments

* test(react-router): testing for the qss encode and decode functions

* fix(react-router): a test output that I messed up

* test(react-router): tests for the prefix field in the encode and decode qss functions
2024-04-03 12:09:14 +13:00
Tanner Linsley
4ef78725af
docs: prep for migration of tanstack.com to TSR (#1419) 2024-04-02 16:46:22 -06:00
Tanner Linsley
0ba67ee235 release: v1.26.6 v1.26.6 2024-04-02 17:53:49 +00:00
Tanner Linsley
de40b30ad6 fix: no debugging on experimental features 2024-04-02 11:51:45 -06:00
Manuel Schiller
6858d28fd5
fix: do not include tests in package (#1417)
fixes #1412
2024-04-02 19:33:10 +02:00
Tanner Linsley
7d3bab6510 release: v1.26.5 v1.26.5 2024-04-02 17:15:10 +00:00
advancedtw
8fe3a36dd0
fix(react-router-server): do not spread a key prop including keys from manifest (#1413)
* fix(react-router-server): do not spread a key prop including keys from manisfest

* fix eslint error  Array type using T[]
2024-04-03 06:13:00 +13:00
Kevin Herklotz
40af8ec334
docs: broken link to "using search params in loaders" in data-loading.md from search-params.md (#1416) 2024-04-03 06:12:40 +13:00
Tanner Linsley
6cdc6dfaef release: v1.26.4 v1.26.4 2024-04-02 08:45:31 +00:00
Sean Cassiere
2c9987e95d
fix(react-router): using the initialized history instance for creating the href on the Link component (#1414) 2024-04-02 21:43:33 +13:00
Tanner Linsley
a95f2fcd73 release: v1.26.3 v1.26.3 2024-04-01 12:52:51 +00:00
Sean Cassiere
b8a043fc4d
fix(history): subscribers not being notified on go, back, and forward events affecting the memory router (#1408) 2024-04-01 14:50:37 +02:00
ajschlosser
d2c12172e6
Update quick-start.md to include installation of devtools cited throughout rest of document (#1403) 2024-03-31 19:35:17 -06:00
Tanner Linsley
9a37006ae1 release: v1.26.2 v1.26.2 2024-03-31 07:36:36 +00:00
Sean Cassiere
4c79bc866b
fix(react-router-server): do not spread a key prop inside the <Asset> component (#1399)
* fix(react-router-server): dont spread the `key`

* feat(react-router-server): using the same keys as before

* feat(react-router-server): fallbacks

* feat(react-router-server): just use something simple
2024-03-31 01:35:06 -06:00
Leonardo Montini
e84815cdc0
docs: improve links to not found pages (#1396) 2024-03-31 00:56:55 +13:00
Tanner Linsley
481b4c8a34 release: v1.26.1 v1.26.1 2024-03-30 05:44:18 +00:00
Jason Galea
469a833dce
fix: prevent undefined values in props returned by useLinkProps for external links (#1395) 2024-03-30 06:42:03 +01:00
Tanner Linsley
eb2ea8bc59 release: v1.26.0 v1.26.0 2024-03-29 22:33:53 +00:00