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

98 commits

Author SHA1 Message Date
Birk Skyum
e2ac863540
SolidJS driver for TanStack Start (#3522)
This PR introduce support for Solid to be used with TanStack Start.

There are several ongoing refactors that can influence the timing of
when it's most feasible to merge this.

### Status (build and run e2e/solid-start/basic)
- [X] SSR
- [x] API Routes
- [x] Server Functions
- [x] HMR
- [x] Streaming (/stream route)
- [X] Timely hydration

### Ongoing refactors

Refactor to make router packages (aka. client-only features) more
agnostic:
- #3552
- #3540
- #3538
- #3171

Refactor to make start packages (aka. server features) more agnostic:
- #3546 
- #3563 
- #3565 

### Upstream changes to solid-router
- #3592
- #3591
- #3589
- #3616 

### Passing E2E test suites
- [x]  basic
- [x]  website
- [x] scroll-restoration
- [x] server-functions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
Co-authored-by: Iha Shin <me@xiniha.dev>
Co-authored-by: Brenley Dueck <brenley@crowdbotics.com>
2025-03-01 13:38:00 +01:00
Birk Skyum
0cf5e3e846
refactor(react-start): move start packages to react-start (#3563)
move start -> react-start, and keep start as proxy packages for
backwards compat.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 22:05:25 +01:00
Birk Skyum
e6be53d017
chore(react-cross-context,solid-cross-context): remove unused cross-context (#3549) 2025-02-24 16:36:15 +01:00
Birk Skyum
41f3abce4f
feat(solid-cross-context): add package (#3515)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-22 16:06:31 +13:00
Birk Skyum
ad20a68491
feat(solid-router): Add a SolidJS driver for TanStack Router (#3276)
* copy react-router

* update

* Move forward branch

* cleanup

* cleanup

* add publish

* bump deps

* ci: apply automated fixes

* remove unused imports

* ci: apply automated fixes

* bump  vite plugin solid

* fix imports

* ci: apply automated fixes

* remove react lint from solid-router

* fix types

* ci: apply automated fixes

* add structuralSharing

* downgrade vite plugin solid

* fix scroll-restoration in solid-router

* fix Transitioner

* fix imports from ScrollRestoration

* Fix tests

* Fix more tests

* Remove the react $$typeof

* add accessors to useLocation

* add remountDeps

* cleanup

* remove tanstack/store

* format

* add missing call to setupScrollRestoration

* format

* add optional

* align match component

* make matches a signal

* Bump vite-plugin-solid to stable

* add missing await

* Fix unknown error

* Tweak the tests to call functions

* remove unused vars

* fix lockfile

* Down to 25 failures

* Remove .only

* call search()

* remove the structuralSharing

* fix type test

* fix structuralSharing

* comment out structured sharing validation check

* fix typings

* comment out serialization check

* comment out serialization check

* cleanup

* improve types of useSearch

* fix "when setting search params with 2 parallel navigate calls"

* fix useParams

* fix types

* fix useParams types

* cleanup debug

* fix link data loader

* fix data loader signal

* fix type test

* fix Link "when navigating away from a route with a loader that errors"

* setup on() simpler

* make initial load a createRenderEffect

* Fix some link preload tests

* add accessor to UseMatchRoute

* fix: when navigating to /posts with a beforeLoad that returns context

* call parentRouteId

* re-enable invariant

* fix when navigating from /invoices to ./invoiceId and the current route is /posts/$postId/details

* use memo for prev

* remove browserhistory  workaround

* fix  "after a navigation, should have emitted the "onResolved" event twice"

* skip remount

* add types to useSearch

* fix search middleware

* don't need a getter

* sync react-router

* solid kitchen sink

* add the example to workspace

* lockfile

* fix solid kitchensink name

* add solid template

* fix example

* rename react to solid

* work on example

* add accessor

* fix type tests

* Fix login in example

* Don't destructure

* Fix stuck on pending component

* Fix where loaderData can be undefined

* Use For component

* More refactor

* Hacky way to fix loading spinner

* Fix one test

* Better MatchRoute fix

* Down to 1 failing test

* Fix last test

* cleanup subscription

* lockfile

* eslint

* ci: apply automated fixes

* fix router-core lint

* ci: apply automated fixes

* add e2e test for solid-router

* ci: apply automated fixes

* work on solid-router e2e suites

* fix comment

* use solid-virtualizer

* work on scroll-restauration

* work on scroll-restauration

* skip react-specific useRenderEffect test

* fix errorcomponent being used before it's defined

* set solid target for esbuild

* ci: apply automated fixes

* fix rspack tests

* fix query tets

* add solid-query example

* use memo for post

* add memo for posts

* fix example

* add jsx compiler flags to esbuild commands

* add esbuild-plugin-solid

* Fix some e2e

* ci: apply automated fixes

* port #3423 from react-router

* fix useLoaderData test-d

* add codeSplitGroupings

* Scroll restoration fixes

* add asset headcontent script

* remove solid-router-copy

* fix react use

* fix scroll restoration test

* skip esbuild because it's broken in react-router

* wait for timeout

* update scroll-restoration to match react

* useLocation

* use on() in match

* align useNavigate with react-router

* lockfile

* fix Scripts test

* align __TSR_SSR__ in ScriptOnce

* remove solid-router from publish

* lint

* ci: apply automated fixes

* align to react-router

* port over "exclude props from state equality check to prevent history push for equal url and state"

* align with react-router

* add shouldThrow

* fix typePrimitives

* use searchStr to fix the search middleware

* ci: add solid-router to the labeler

* use patched vite-plugin-solid

* eslint

* ci: apply automated fixes

* use vite-plugin-solid 2.11.2

* remove only modifier

* move vite-plugin-solid peerDep to router-plugin

* use latest vite-plugin-solid

* move vitest to root

* bump vitest

* revert onRendered

* lint

* add to publish

* fix scroll restoration

* ci: apply automated fixes

* align version with react-router

* sync to react-router

* sync with react-router

* sync navigate tests to react-router

* ci: apply automated fixes

* use Solid.JSX.Element consistently instead of Solid.JSXElement

* remove irrelevant test

* ci: apply automated fixes

* remove unused suite

* lint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-20 17:11:39 +01:00
Robert Soriano
02c65c73d0
fix(start): Ensure h3 versions match (#3314) 2025-02-03 19:07:28 +01:00
Sean Cassiere
227dd03800
ci(root): update packages in the automatic labeler (#3312) 2025-02-03 15:49:03 +13:00
Sean Cassiere
55d14e9e50
ci(root): add automatic labeler workflow (#3251) 2025-02-03 15:28:45 +13:00
Tanner Linsley
dcbca22a8a chore: back to 3 2025-01-21 23:46:52 -07:00
Tanner Linsley
85f5a858eb chore: bump the parallel 2025-01-21 23:16:33 -07:00
renovate[bot]
18610d8ebf
chore(deps): update autofix-ci/action digest to 551dded (#3150)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-18 14:59:35 +01: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
renovate[bot]
47cc85fa90
chore(deps): update all non-major dependencies (#2730)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 01:07:55 +01:00
renovate[bot]
214a81f0e3
chore(deps): update all non-major dependencies (#2662)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-29 03:53:25 +00:00
renovate[bot]
b7facfe13d
chore(deps): update all non-major dependencies (#2538)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 08:13:07 +00:00
renovate[bot]
8c7aeb0689
chore(deps): update all non-major dependencies (#2396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 22:12:15 +00:00
Lachlan Collins
d56da3ed5a
ci(deps): fix typescript55 version (#2349) 2024-09-16 19:14:17 +10:00
renovate[bot]
943547cb66
chore(deps): update all non-major dependencies (#2217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-14 23:49:12 +02:00
Sean Cassiere
bbc5148399
chore: update the issue template to ask for Start or Router (#2242)
* chore: issue template to ask for start or router

* make the selection required

* update the label and description
2024-09-02 08:47:30 +12:00
renovate[bot]
18d2efc2bd
chore(deps): update all non-major dependencies (#2047)
* chore(deps): update all non-major dependencies

* Update renovate config

* pnpm dedupe

---------

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 12:02:53 +10:00
Lachlan Collins
086af9902d
ci: enable renovate automerge, pin actions (#2012)
* ci: enable renovate automerge, pin actions

* Remove test:format from Nx

* Use config@main

* Simplify publish.js

* Remove prettier from Nx
2024-07-23 11:13:39 +10:00
Lachlan Collins
d35a6cdfcf
ci: Add autofix.yml (#1991) 2024-07-19 19:32:00 +10:00
Sean Cassiere
c5e6ae3a6a
ci: use distributed Nx agents for e2e tests (#1987)
* workflow

* nx

* scripts

* remove replay script

* - replay

* - dotenv

* style(examples): eslint sorting

* Update nx.json

* add playwright to root

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-19 13:44:42 +10:00
Lachlan Collins
a4aed48495
ci: enable npm provenance (#1941) 2024-07-11 14:21:38 +10:00
renovate[bot]
89de378cc9
chore(deps): update dependency redaxios to ^0.5.1 (#1938)
* chore(deps): update dependency redaxios to ^0.5.1

* Ignore use-sync-external-store

---------

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-10 23:53:13 +10:00
Lachlan Collins
1a158a2b00
chore(deps): remove unused dev dependencies (#1934) 2024-07-10 23:18:40 +10:00
renovate[bot]
a78e067a94
chore(deps): update all non-major dependencies (#1933)
* chore(deps): update all non-major dependencies

* Remove non-root packageManager fields

---------

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-10 23:08:53 +10:00
Lachlan Collins
569379ad68
ci(renovate): add renovate config (#1930) 2024-07-10 22:48:00 +10: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
Lachlan Collins
13463010cb
ci: Use pkg-pr-new templates (#1905) 2024-07-06 16:04:16 +02:00
Lachlan Collins
f9ecd0e7f1
ci: Only preview on approved PRs (#1898) 2024-07-05 13:46:38 +10:00
Lachlan Collins
bda7e68e84
ci: Add preview workflow (#1897) 2024-07-05 13:17:26 +10:00
Sean Cassiere
e899ca1136
ci(docs): add a CI step to check for formatting of the documentation (#1874)
* ci: add ci for checking docs on main and prs

* ci: ignore the docs from the CI package handling publishing

* ci(docs): favor using `paths`

* ci(docs): add media as an ignore folder

* Add test:format to test:ci

* ci: remove `path-ignores` from both workflows

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-03 11:15:21 +12:00
Lachlan Collins
b02c35bad1
docs(examples): Correctly set "type": "module" (#1863)
* docs(examples): Correctly set `"type": "module"`

* Config cleanup
2024-06-30 15:10:11 +10:00
Lachlan Collins
3d41307fb3
ci: Optimise Nx workflow (#1862)
* ci: Optimise Nx workflow

* Reduce dynamic-changesets
2024-06-30 13:07:09 +10:00
Aditya Pandey
7d8d3e06fd
ci: fix the workflow for running the e2e test on the "start-basic" example (#1843)
* Enable Replay DEBUG logs

* Build all deps

* Revert "Enable Replay DEBUG logs"

This reverts commit d4479a57eb.
2024-06-28 13:01:58 +12:00
Manuel Schiller
e24cd7616b
ci: Enable nx cloud again (#1800) 2024-06-21 00:05:52 +02:00
Manuel Schiller
a095cd59fb
ci: test matrix uses released TS 5.5 version 2024-06-20 23:45:35 +02:00
Manuel Schiller
e088dde55c
ci: disable NX cloud for now 2024-06-20 00:01:34 +02:00
Lachlan Collins
6238d04784
ci: Update workspace dependencies (#1757)
* ci: Update workspace dependencies

* Try Nx v18
2024-06-17 13:51:32 +10:00
Manuel Schiller
53476d21ab
ci: add typescript 5.5 to the test matrix (#1727)
* add TS 5.5 to test matrix

* chore: upgrade to @tanstack/config@0.7.10

* Fix lockfile

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-06-13 22:02:49 +10:00
Aditya Pandey
cf64ed3481
Fix Playwright E2E CI step (#1678)
* Run server within Github CI

* Give unique package name

* Set proper shas for affected packages

* Move start server command to playwright config

* Remove test:e2e

* Move up replay installation, remove `test:e2e` script

* Add e2e targets

* Empty commit

* Empty commit

* Hardcode public version of REPLAY_API_KEY secret
2024-05-30 20:42:42 -06: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
Don Denton
4febb24b03
docs: Update bug_report template with latest Stackblitz links (#1424) 2024-04-04 18:46:09 +02:00
Dominik Dorfmeister
4972e945c5
ci: execute type checks against multiple TS versions (#1367)
* fix: peerDependencies

* docs: requirements

* ci: run type tests against multiple TS versions

* chore: newline

* chore: fix prettier

* fix: wrappers must return a JSX Element

* fix: have Explorer return JSX.Element

* fix: another one
2024-03-26 10:12:00 +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
Rui Saraiva
04bb62efea
chore(examples): upgrade examples dependencies (#947) 2024-01-09 00:55:48 +01:00
Tanner Linsley
c7ed15c368 fix: ssr packages 2023-12-05 15:14:35 -07:00
Tanner Linsley
7725c392b1 fix: routeOptions.key 2023-12-04 14:21:01 -07:00