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

74 commits

Author SHA1 Message Date
Lee
6b235a7cec
fix: update error handling in MatchInner to access error data directly (#4746) 2025-11-19 19:46:29 +01:00
Birk Skyum
eab8a9941c
chore: bump tailwind from v3 to v4 with postcss (#5580) 2025-10-22 03:42:26 +02:00
Manuel Schiller
8b5accb27c
feat: Merge alpha to main (#4365)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Iha Shin (신의하) <me@xiniha.dev>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: MoeedDar <moeed.dar@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Saša Šijak <me@ssijak.com>
Co-authored-by: Christopher Horobin <chrishorobin@hotmail.com>
Co-authored-by: Ryan Gillie <gillie.ryan@hotmail.com>
Co-authored-by: Jaga Santagostino <jagasantagostino@gmail.com>
Co-authored-by: Birk Skyum <birk.skyum@pm.me>
Co-authored-by: Yeoh Joer <yeoh.joer@outlook.com>
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Luis Merino <mail@luismerino.name>
Co-authored-by: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com>
Co-authored-by: Adam Hunter <arhunter@gmail.com>
Co-authored-by: Leonardo Montini <lion.48m@gmail.com>
Co-authored-by: Joel Tannas <jtannas@gmail.com>
Co-authored-by: scarf <greenscarf005@gmail.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
Co-authored-by: Iñaki Larramendi <30437204+ilarramendi@users.noreply.github.com>
Co-authored-by: Hiển Đào Vinh <neo.go.vn@gmail.com>
Co-authored-by: Lleyton W Morris <42259073+ViewableGravy@users.noreply.github.com>
Co-authored-by: Lleyton Morris <lmorris@nexigen.digital>
Co-authored-by: Matthew Struble <matt@vevox.io>
Co-authored-by: Matt Anderson <matt@mattdev.ca>
Co-authored-by: Chung <chungwong@users.noreply.github.com>
Co-authored-by: Maxx Coffee <josh@joshcoffee.dev>
Co-authored-by: Joshua Coffee <joshcoffee@gannett.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Neeraj Dalal <admin@nrjdalal.com>
Co-authored-by: Thomas Marnet <thomas.marnet@gmail.com>
Co-authored-by: Vianney Carel <vcarel@users.noreply.github.com>
Co-authored-by: Vianney Carel <vianney.carel@logfuse.fr>
Co-authored-by: Diego Rincón <97266392+diegoarff@users.noreply.github.com>
Co-authored-by: Erfan Hosseini <43422324+Erfanhosseini98@users.noreply.github.com>
Co-authored-by: IderAghbal <3328396+IderAghbal@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Jefferson <8148776+eastlondoner@users.noreply.github.com>
2025-06-10 23:19:32 +02: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
Sean Cassiere
8ebf6a7fab
chore(examples): move from "layout" to "pathlessLayout" (#3600) 2025-02-28 16:17:26 +13:00
Tanner Linsley
74f933aa58 examples: <ScrollRestoration/> => scrollRestoration: true 2025-01-30 15:44:57 -07: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
Alex D'Elia
2b0d1c2dbf
docs(router): replace deprecated preSearchFilters with search middlewares in examples (#2741) 2024-11-12 22:39:19 +01:00
Manuel Schiller
282f83a860
chore: run typecheck for examples after building (#2285) 2024-09-08 00:52:37 +02:00
renovate[bot]
a1438ee99c
chore(deps): update all non-major dependencies (#2051)
* chore(deps): update all non-major dependencies

* Fix typescript-eslint rules

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-29 19:30:05 +10:00
Sean Cassiere
cd85ca1de1
chore: cleanup styles and eslint errors in the spa examples (#1971)
* style(examples): kitchen sink examples

* style(examples): more kitchen sink examples

* style(examples): basic examples

* style(examples): authenticated routes example

* style(examples): authentication routes example

* style(examples): scroll restoration

* style(examples): navigation blocking

* style(examples): defered data example

* style(examples): location masking example

* style(examples): quickstart examples
2024-07-17 02:28:39 +12:00
renovate[bot]
a590499e94
chore(deps): update all non-major dependencies (#1960)
* chore(deps): update all non-major dependencies

* Format

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-15 13:59:43 +10:00
Christopher Horobin
1d733f6cc6
feat(react-router): params.parse and params.stringify instead of parseParams and stringifyParams (#1826) 2024-06-28 18:34:49 +02:00
Tanner Linsley
fd692cf77d
feat: New Serialization Paradigm (#1824)
* checkpoint

* fix: config

* checkpoint

* testing fixes (#1679)

* examples: init trellaux

* feat: Better serialization/streaming, RSC proof of concept

* fixup server-handler

* fix: update deps and lock

* fix: remove rscFrom

* fix: remove useLoaderDataTransform

* fix: min react version

* chore: lockfile

* style: prettier fail

* chore: swap expect-error for ignore

* chore(react-router): try coercing the types

* chore: put this back in

* fix: some tests

* remove conditions

* fix tests

* update lockfile

* fix: refactor dehydrated data

* Update docs

* fix: remove unused deferred logic

* fix port

* nevermind

* fix: remove rebase garbage

* disable playwright for a hot minute

* oops, actually disable it now

* fix: prettier formatting

* fix: do not ignore app.config files

---------

Co-authored-by: Nikhil Saraf <nsaraf98@gmail.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-06-28 09:45:01 -06:00
Sean Cassiere
9fb0bde795
docs(examples): cleanup the "kitchen-sink*" examples (#1663)
Just some housekeeping for the kitchen sink examples that have become a bit messy over time.
2024-05-24 23:55:16 +12:00
Tanner Linsley
cb80816603 fix(start): config for RSCs... almost 2024-05-18 21:06:34 -06:00
Manuel Schiller
c70b10ef2f
fix: deprecate rootRouteWithContext in favor of createRootRouteWithContext (#1098) 2024-01-28 15:58:26 -07:00
Tanner Linsley
fcc278ffc8 feat: New code-splitting patterns + deprecations
- Deprecated class constructor APIs in favor of new `create[Class]` functions
- Added new code-splitting paradigm that produces less code, preloads potentially faster and plays nicely with SSR and file-based routing
- Updated all examples to use new code splitting patterns and new suggested APIs
2024-01-24 13:01:48 -07:00
Lachlan Collins
5596fcb598
feat: Migrate build to @tanstack/config and common Nx config (#1037)
* Root level and example changes

* Fix non-workspace links

* Rework scripts directory

* Change package build, tsconfig, exports

* Fix cli package

* Run prettier format

* Update github workflows

* Update repository field

* Slight package.json reorder

* Remove unused dependencies

* Small vite/tsconfig tweaks

* Remove unnecessary config

* Add @ts-check to generate.js

* Fix pnpm-workspace

* Update Nx

* Update workspace links
2024-01-19 22:35:39 -07:00
Manuel Schiller
4278023562
examples: fix kitchen-sink login (#969) 2024-01-11 01:41:21 +01:00
Tanner Linsley
bb55bb1bd1 examples: fix auth state in kitchen-sink 2024-01-10 17:24:29 -07:00
Manuel Schiller
a2a7d7e538
docs: update docs and examples to use route.fullPath instead of route.id as from (#928) 2024-01-10 14:52:04 -07:00
Manuel Schiller
17ac14c105 chore: make input text readable in example 2024-01-10 00:34:37 +01:00
Rui Saraiva
04bb62efea
chore(examples): upgrade examples dependencies (#947) 2024-01-09 00:55:48 +01:00
Manuel Schiller
91a7e9f8e6
fix: fix "Type 'string' is not assignable to type 'undefined'" in loader.navigate / router.preload (#910) 2024-01-03 04:18:01 +01:00
Tanner Linsley
912fae7e67 examples: some styles 2023-12-23 15:33:16 -07:00
Tanner Linsley
3206f0481b fix: swr + remove shouldReload, activeOptions?.exact for search params 2023-12-18 17:28:12 -07:00
Tanner Linsley
0d4092fdec fix: pendingComponent and useMatchRoute 2023-12-15 23:22:51 -07:00
Tanner Linsley
8256a24cc9 fix: top-level useLoaderDeps, route.useLoaderDeps, routeApi.useLoaderDeps 2023-12-15 17:16:56 -07:00
Tanner Linsley
8e7645ae24 feat: loaderDeps 2023-12-15 16:49:39 -07:00
Tanner Linsley
814aed29a9 examples: update control bar 2023-12-05 16:09:53 -07:00
Tanner Linsley
6b645d0666 examples: better mocking tools 2023-12-04 20:31:05 -07:00
Tanner Linsley
8308bb10ff fix: pending timings and examples 2023-12-04 16:11:50 -07:00
Tanner Linsley
22748f658a feat: pending states, pendingMs, pendingMinMs 2023-12-04 15:42:04 -07:00
Tanner Linsley
36d774bc36 fix: do not recreate history on fast refresh 2023-12-04 09:24:15 -07:00
Tanner Linsley
2b51caccb9 feat: Router context and RouterProvider refactor 2022-12-02 23:10:04 -07:00
Tanner Linsley
7f9446f943 fix: $params, routeConfig.generate(), example checkpoint 2022-11-26 10:53:33 -07:00
Tanner Linsley
ffcd80a7d6 Update main.tsx 2022-11-18 15:15:32 -07:00
Tanner Linsley
f05040350a fix: beforeLoad route option 2022-11-18 15:14:25 -07:00
Tanner Linsley
5b8b6f4384 fix: types 2022-11-18 12:49:24 -07:00
Tanner Linsley
769263c269 fix: ResolveRouter => RegisterRouter 2022-11-18 07:53:05 -07:00
Tanner Linsley
5ee825f02a fix: prefer granular routeConfigs, support type-safe library exports 2022-11-18 07:49:52 -07:00
Tanner Linsley
3b07142901 fix: hydration, pending timing removal 2022-11-16 09:00:11 -07:00
Tanner Linsley
2294802598 fix: remove pending timings 2022-11-15 15:59:48 -07:00
Tanner Linsley
853bbe8e5e checkpoint: no more pending 2022-11-15 15:43:39 -07:00
Tanner Linsley
1580062147 fix: ssr and action updates 2022-11-11 21:33:51 -07:00
Tanner Linsley
de8de8c683 checkpoint 2022-11-07 13:52:36 -08:00
Tanner Linsley
517ff2385d feat: match.useRoute() for relative route usage, match.loader for one-off loader calling, fix path resolution bug, 2022-11-02 20:55:22 -06:00
Tanner Linsley
f96f11f9c7 fix: remove bulk import, useMatch(route.id) 2022-10-30 22:45:50 -06:00