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

6,478 commits

Author SHA1 Message Date
Birk Skyum
ceeaff113a
refactor: use router-core in server-functions packages (#3726) 2025-03-10 10:25:07 +01:00
Tanner Linsley
26ffdb586b release: v1.114.7 v1.114.7 2025-03-10 09:15:55 +00:00
Birk Skyum
391b02692b
refactor: use start-server-core package in server-functions packages (#3724)
instead of
- solid-start-server
- react-start-server

Use in the *-start-server-functions-* packages the agnostic
- start-server-core
2025-03-10 10:10:16 +01:00
Birk Skyum
bea9e4d58d
refactor(router-core): move isNotFound and isRedirect to router-core (#3725)
this will unlock agnostic server-functions packages

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 10:10:02 +01:00
Tanner Linsley
700b5aa28c release: v1.114.6 v1.114.6 2025-03-10 07:41:45 +00:00
Birk Skyum
a0ac44326b fix: RELEASE_ALL 2025-03-10 08:40:11 +01:00
Birk Skyum
1b402d502f
chore(start-api-routes): make agnostic package (#3722)
The API routes only rely on h3, which is in start-server-core, so the
entire start-api-routes package can now be agnostic.

Removes
- react-start-api-routes
- solid-start-api-routes

Introduces
- start-api-routes
2025-03-10 06:22:00 +01:00
Tanner Linsley
935ff7901e release: v1.114.5 v1.114.5 2025-03-10 04:56:51 +00:00
Birk Skyum
82fde85c0b
refactor(start-server-core): use h3 barrel import (#3721)
mirror refactor from devinxi branch, to clean up the ./index.ts file
2025-03-10 05:52:29 +01:00
Birk Skyum
2d2551bf92
chore(start-server-core): agnostic package (#3720) 2025-03-10 05:12:07 +01:00
Birk Skyum
77a4dee2ed
chore(start-client-core): move middleware and serverfn to core (#3717)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 04:11:46 +01:00
Birk Skyum
e47b57ccb0
chore(start-client-core): move envonly and json to core (#3716)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 03:02:08 +01:00
Birk Skyum
ef79bfd5e5
chore(start-client-core): move createIsomorphicFn to core (#3715) 2025-03-10 02:27:02 +01:00
Tanner Linsley
fa485a8e38 release: v1.114.4 v1.114.4 2025-03-10 01:03:38 +00:00
Birk Skyum
97e2ed3f30
refactor(start-client-core): move ssr-client to core package (#3714) 2025-03-10 02:00:44 +01:00
Birk Skyum
76414f1d56
chore: bump zod 3.24.2 (#3713)
This is to cut down the diff to the devinxi branch here
- https://github.com/TanStack/router/tree/devinxi
2025-03-10 00:44:28 +01:00
Birk Skyum
398458e16d
chore(start-client-core): move mergeHeaders and startSerializer to shared package (#3709)
Move the 100% duplicates:
- ./headers.ts
- ./serializer.ts
- ./tests/transformer.test.tsx

From solid/react-start-client to start-client-core.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 00:09:53 +01:00
Birk Skyum
f616ba9c07
chore: move start e2e and example projects from ./app to ./src (#3712)
Using the below setting, the examples and e2e projects opt into the
future behavior of using `./src` as the app directory, rather than
'./app':

```ts
tsr: {
  appDirectory: 'src',
},
```

The `./src` directory is typically used for pure-TS Router projects, as
well as CRA. Thus this reduces the churn for a TS Router SPA to opt into
server features with TS Start.
2025-03-09 23:35:20 +01:00
Robin Hos
a73bf99f14
docs(router): Add example for search params validation with Effect/Sc… (#3710)
Added an example for validating Search Params with
[Effect](https://effect.website) because
[Effect/Schema](https://effect.website/docs/schema/standard-schema/)
also implements [Standard
Schema](https://github.com/standard-schema/standard-schema).

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-09 21:16:42 +01:00
Birk Skyum
0d2129cd54
chore(react-start-config,solid-start-config): remove unused router deps (#3704) 2025-03-09 13:15:49 +01:00
Birk Skyum
fcecd7cfa3
chore(react-start,solid-start): update imports to use router-core (#3703)
Update start package imports after much router code has been moved to
the agnostic router-core package.
2025-03-09 12:49:14 +01:00
Alex D'Elia
e9f7efc4bf
docs(router): improve navigation guide and NavigateOptions documentation (#3701)
This PR adds missing documentation for both the NavigationOptions type
and the Navigation guide.
2025-03-09 11:56:27 +01:00
Tanner Linsley
9f953e9785 release: v1.114.3 v1.114.3 2025-03-09 08:37:06 +00:00
Manuel Schiller
05bff06332 fix: RELEASE_ALL
RELEASE_ALL
2025-03-09 09:35:28 +01:00
Sean Cassiere
afb716a44f
revert(react-router,solid-router): revert #3700 (#3702)
#3700 introduced an unintended side-effect with the scroll restoration
process in TanStack Start.

This revets the code changes in `@tanstack/react-router` and
`@tanstack/solid-router` and short-circuits the tests relevant test
scripts introduced in the offending PR.
2025-03-09 20:39:43 +13:00
Tanner Linsley
9ea1c83aad release: v1.114.2 v1.114.2 2025-03-09 03:03:46 +00:00
Sean Cassiere
ad623cc992
fix(react-router,solid-router): scroll to element does not work for hash history (#3700)
The `restoreScroll` function was directly interfacing with
`window.location.hash` to get the 'hash' value, which conflicts with how
hash routing functions. As such, when the hash value was retrieved, it
came back as `#/page#foo` instead of just `#foo` like it would with
regular browser history.

Switching it to use the `history` driver attached to the `router`
instance, correctly returns the `hash` value irrespective of the type of
routing being used.

Fixes #3479
2025-03-09 16:00:21 +13:00
Tanner Linsley
672116725b release: v1.114.1 v1.114.1 2025-03-08 20:05:26 +00:00
Birk Skyum
369618ba04 fix: RELEASE_ALL 2025-03-08 21:03:49 +01:00
Birk Skyum
a7d3efe957
fix(router-devtools-core) lazy load devtools panel to fix ssr (#3696)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-08 20:34:19 +01:00
Tanner Linsley
a3cf3961b9 release: v1.114.0 v1.114.0 2025-03-08 12:27:37 +00:00
Birk Skyum
e313a1c5a7
feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636)
The original `@tanstack/router-devtools` package still work - it's not
touch by this PR in any way, apart from a migration note saying:

>[@tanstack/router-devtools] Warning: This package has moved to
@tanstack/react-router-devtools. Please switch to the new package, as
this package will be dropped soon.

This introduce three new packages
- @tanstack/router-devtools-core : This is a SolidJS port of the UI

And two adapters on top, that mount this solid app and forward
router/routerState into it.
- @tanstack/solid-router-devtools
- @tanstack/router-router-devtools

For use of devtools in production, a `TanStackRouterDevtoolsInProd` can
be imported instead of the standard `TanStackRouterDevtools` that'll be
tree shaken away in prod.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2025-03-08 13:20:26 +01:00
Birk Skyum
d723d59607 Revert "labeler"
This reverts commit 4225d963f6.
2025-03-08 00:26:36 +01:00
Birk Skyum
4225d963f6 labeler 2025-03-08 00:24:08 +01:00
Sean Cassiere
c646ddcd08
chore(root): labeler script to only consider packages with a package.json file (#3690) 2025-03-08 10:51:24 +13:00
Tanner Linsley
13ba4929a1 release: v1.113.0 v1.113.0 2025-03-07 21:13:29 +00:00
Honza Hrubý
aa24401b04
feat(router-generator): disable formatting of routeTree (#3678)
Based on the discussion in https://github.com/TanStack/router/discussions/3664, I'm adding an
option to disable the formatting of the generated routeTree. The file is not meant for human consumption and disabling the formatter can significantly speed up the route generation process.

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-08 10:06:39 +13:00
Kilian Finger
cd7a43c9e2
chore(examples): add Material UI example (#3677)
Fixes #2867 

As previously discussed @schiller-manuel.
2025-03-07 13:34:19 +01:00
Tanner Linsley
42d50a58be release: v1.112.19 v1.112.19 2025-03-07 11:12:50 +00:00
Sean Cassiere
81c657623d
refactor(router-generator): add internal __enableAPIRoutesGeneration flag (#3685)
This internal flag makes it so that the `router-generator` only considers API Routes when `__enableAPIRoutesGeneration` is set to `true`.
2025-03-08 00:10:07 +13:00
Manuel Schiller
5bbf49deba
chore: replace <React.Fragment> by <> (#3672)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-07 00:30:35 +01:00
Tanner Linsley
06237feeb1 release: v1.112.18 v1.112.18 2025-03-06 23:02:15 +00:00
Manuel Schiller
c9a32784ce
fix: use fullPath as from in Route/RouteApi useNavigate (#3684)
fixes #3679
2025-03-06 23:58:51 +01:00
Miciah Henderson
623e420de0
docs: streamline language in the quick-start guide for Solid (#3681) 2025-03-07 09:16:12 +13:00
Manuel Schiller
30e869042d
chore: add script to bump typescript version and bump it to 5.8 (#3618)
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2025-03-06 21:06:32 +01:00
Andrew Peacock
d20088e0fb
chore(examples): add authenticated-routes example using firebase (#3669)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-06 20:38:47 +13:00
Sean Cassiere
ffbcd7278c
chore(examples): fix up the start-trellaux example (#3675) 2025-03-06 16:08:43 +13:00
Tanner Linsley
70351e525e release: v1.112.17 v1.112.17 2025-03-06 00:37:45 +00:00
Manuel Schiller
f4d09c19c4
fix: rebuild link if matches change (#3674)
fixes #2988
2025-03-06 01:36:16 +01:00
Tanner Linsley
76b0c2e9f3 release: v1.112.16 v1.112.16 2025-03-05 23:52:06 +00:00