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

43 commits

Author SHA1 Message Date
Flo
854ac95b0d
benchmark: memory (codspeed) (#7623) 2026-06-14 12:51:10 +02:00
Nicolas Beaussart
35de19bb3b
chore: ignore nx generated folders (#7451) 2026-05-20 22:32:54 +02:00
Lachlan Collins
68d5f318e4
ci: add pinGitHubActionDigests (#7387) 2026-05-12 22:51:36 +10:00
Manuel Schiller
f920527e8d
efp (#7144)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2026-04-11 01:43:05 +02:00
Manuel Schiller
711f3b858e
feat: import protection (#6688) 2026-02-18 01:16:30 +01:00
Birk Skyum
6b11401913
test(vue-start): e2e test suites (#6132) 2025-12-18 00:39:50 +01:00
Nico Lynzaad
3854370bdf
fix: assign random ports for e2e tests (#4676)
This is a follow on from #4653

This PR resolves flaky E2E tests caused by port collisions when running
tests in parallel.

Instead of deriving ports from package names (which can collide), this
new approach assigns a random, available port to each test server
instance.

Key Changes:

- Random Port Allocation: Each test server (Playwright, dummy servers)
gets a unique, random port at startup.
- File-based Sync: The server writes its assigned port to a port.txt
file in its test project directory, this is kept unique through using
the package name or another input string for the file name.
- Test Runner Sync: The test runner reads the port from that file to
build the correct URL.
- Automatic Cleanup: All port files are deleted at the start of each
test:e2e run to ensure fresh ports.

Local parallel runs (up to 10) have shown this to be stable and free of
collisions.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-17 07:24:59 +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
Jack Herrington
000b4f385a
chore: support vibe-rules in react-router (#4263)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-29 21:25:27 +02:00
Sean Cassiere
ece1575f6d
chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
Sean Cassiere
563e5d168c
feat(router-generator): remove prettier ignore comment blocks (#2679) 2024-11-01 14:22:12 +13:00
Manuel Schiller
ef95a0564f
fix: make router-generator a peer dep of react-router (#2278)
type tests of generated code must be implemented in a separate package to break up this circular dependency
2024-09-06 19:24:02 +02:00
Christopher Horobin
0482da561a
perf(react-router): constant editor performance regardless how large a file based route tree is (#2243) 2024-09-06 01:33:37 +02:00
Sean Cassiere
9dbbbfe3f1
fix(start): using TextEncoder to encode the chunks when using renderToReadableStream (#2117)
* using the a TextEncoder

* trying without the changes from #1822

* revert that last commit

* use TextDecoder on the client-side of the stream

* undo

* temporary disable

* re-enable

* style: eslint warnings

* log error events

* gitignore wrangler outputs
2024-08-12 18:13:50 +12:00
Sean Cassiere
16cd10ec99
chore: update the gitignore to cover more vite timestamp files (#1881) 2024-07-03 13:18:58 +12: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
Lachlan Collins
6238d04784
ci: Update workspace dependencies (#1757)
* ci: Update workspace dependencies

* Try Nx v18
2024-06-17 13:51:32 +10:00
Aditya Pandey
8239c01457
test: add playwright testing with CI to start-basic (#1673)
* Add playwright

* Add CI action

* Update lockfile with pnpm version 8.15.8

---------

Co-authored-by: Jason Laster <jason.laster.11@gmail.com>
2024-05-28 14:04:33 -06:00
Sean Cassiere
00fb855c4e
fix(react-router): stabilizing the encoding of path parameters (#1490)
* fix(react-router): encodeURI the parameters when building the pathname before commit

* chore(react-router): add a good comment so we dont nuke this in the future

* test(react-router): add tests to confirm functionality of the path params changes

* chore: ignore the `*.vitest-temp.json` files

* chore: delete `tsconfig.vitest-temp.json`
2024-04-20 09:56:09 +12:00
Alessandro Cuppari
862fd78aa3
docs(examples): update the vinxi-basic-ssr-streaming example to reflect the TanStack website (#1264)
* fix: updated vinxi ssr example with streaming

* chore: updated vinxi packages

* chore: unused imports

* fix: use type instead of mode

* fix: updated vinxi example to latest tsr

* chore: cleanup

* chore: use createTanStackRouter

* style: run prettier

* chore: package json to reflect the other examples

* chore: rebased with latest main

* style: prettier

---------

Co-authored-by: @alessandrojcm <alessandro.cuppari@broadridge.com>
Co-authored-by: @SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-04-16 08:50:16 +12:00
Sean Cassiere
f84848f5a1
test(router-generator): add tests to check the generated output of the router-generator (#1337)
* chore: ignore the `*.gen.ts` outputs from the `tests` folder in `packges/router-generator`

* chore: add the test script

* test: add tests for 'single-level' routing

* test: add tests for 'flat' routing

* test: amend the 'flat' routing test to include a `route`-level config

* test: add tests for 'nested' routing

* test: match the dir structure between the 'flat' and 'nested' test cases

* test: add tests for complex 'nested-layouts' routing

* chore: disable logging from the `router-generator` package when testing

* chore: space that wasn't supposed to be there

* test: use `routeTree.expected.ts` for storing the expected outputs

* chore: remove comment

* test: run all the generator tests against all its subfolders
2024-03-19 13:09:58 +01:00
Lachlan Collins
b5e85add20
ci: Use Nx Agents (#1192)
* ci: Use Nx Agents

* Update nx.json

* Fix prettier
2024-02-17 12:03:04 +11: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
24f8db6d87
chore: fix CI build (#892) 2024-01-03 04:28:51 +01:00
Tanner Linsley
c1d0ae0c20 fix: window history, preload onpointerenter 2023-12-11 10:19:07 -07:00
Fugi
c414752513
fix: Fix force push removing commits (#728)
* docs: fixed variable name error (#715)

used the wrong example in customStringifier example

* Fix(router-cli): Fixes on Windows and Improvements  (#717)

* (fix) Fixed backslash on windows
(fix) Sanitized routePaths, import and interface keys
(enhanched) made the parent search recursive
(question) how layouts need to be generated?

* (feat) Added WIP example for file routing

* (fix) add debug json in ignored

* (fix) Added return type to 'hasParentRoute'
(fix) Removed example, moved to another branch

---------

Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>

* fix: types for useNavigate and useMatchRoute (#723)

* document passing Link isActive to children (#725)

---------

Co-authored-by: Frank Tran <ftransd@gmail.com>
Co-authored-by: Denny09310 <50493437+Denny09310@users.noreply.github.com>
Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>
Co-authored-by: Blake Gentry <bgentry@users.noreply.github.com>
2023-09-12 08:56:50 -06:00
Zachary DeRose
f610ec57e4
Nx task caching (#589)
* think build working?

* testing build again

* rm react-start from build for now

* looking at testing

* test passing

* empty to trigger workflow

* updating pr workflow

* fixing workflow file error

* adding intall deps step to workflow file

* fixing run command in pr workflow file

* fixing test failure

* update to pnpm install step

* rm pnpm install step

* remove frozen lockfile restraint

* adding npm token

* updating ci workflow file

* rm js-dom dependecy

* updating accessToken to read-only (safe for oss)

* rm jsdom env

* rm test task dependency on build

* rm unnecesary global setting in vitest config
2023-04-24 15:46:30 -06:00
Nikhil Saraf
e54839d383
introduce start as the infra layer (#538)
* refactored the astro example to app to abstract the infra out into @tanstack/start

* move astro integration to package

* fix router types

* move from start to react-start

* some fixes

* fix bling pacakge name

* add .netlify to gitignore
2023-02-18 17:24:21 -07:00
Tanner Linsley
853bbe8e5e checkpoint: no more pending 2022-11-15 15:43:39 -07:00
Tanner Linsley
b5892d9e2a Update .gitignore 2022-11-11 11:13:55 -07:00
Tanner Linsley
3a05e38d9f Update .gitignore 2022-11-11 11:12:37 -07:00
Tanner Linsley
d025e903e5 checkpoint 2022-09-23 07:06:11 -06:00
Tanner Linsley
f05ffebe32 Do not commit build 2022-02-01 13:04:07 -07:00
Tanner Linsley
780ae4072e chore: better build system 2022-01-31 12:06:06 -07:00
Tanner Linsley
a888209433 Update .gitignore 2021-10-22 23:55:09 -06:00
Tanner Linsley
6d132e3a41 remove stats 2021-10-22 23:54:49 -06:00
Tanner Linsley
196f3af6da Update .gitignore 2021-10-22 23:51:26 -06:00
Tanner Linsley
0e2f444372 gitignore 2021-10-14 22:15:03 -06:00
Tanner Linsley
0e99795453 docs: add code-split route 2021-10-14 09:32:59 -06:00
Tanner Linsley
59a7313989 feat: async routing 2021-10-13 22:47:30 -06:00
Tanner Linsley
67a5ef79ce feat: 3.0.0-beta
BREAKING CHANGE: 3.0.0-alpha
2021-04-21 15:25:19 -06:00
tannerlinsley
be20b49c1a Checkpoint 2019-04-25 16:31:59 -06:00
Tanner Linsley
3bbfc8832c Initial Commit 2019-01-14 07:40:27 -07:00