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

158 commits

Author SHA1 Message Date
Tanner Linsley
f9228a25bc fix: relative resolvePath + tests 2024-04-08 11:23:50 -06: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
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
Dominik Dorfmeister
41391cdd4a
refactor: eslint (#1365)
* feat: eslint

bring over the configs from the query repo

* refactor: auto fix history package

* refactor: manually fix history package

* refactor(react-cross-context): eslint

* refactor(react-router-server): eslint auto fix

* refactor(react-router-server): eslint manual fixes

* refactor(react-cli): auto fix eslint

* refactor(react-cli): manual fix eslint

* refactor(router-devtools): auto fix eslint

* refactor(router-devtools): manual fix eslint

* chore: prettier --write

* refactor(router-generator): auto fix eslint

* refactor(router-generator): manual fix eslint

* refactor(router-vite-plugin): auto fix eslint

* refactor(react-router): auto fix eslint

* refactor(react-router): manual fix eslint

* fix: revert some destructive changes

* refactor: fix remaining errors

* some more disables

* fix: eslint
2024-03-26 09:08:49 +01:00
Lachlan Collins
2ceb12b4cb
ci(examples): Test examples in CI (#1142)
* Re-enable prettier on PR workflows

* Run pnpm dedupe

* Fix vinxi/http, disable some broken builds

* Fix prettier errors
2024-02-03 12:06:51 +11:00
Lachlan Collins
309c023b16
chore: Replace vite-plugin-replace with @rollup/plugin-replace (#1129)
* chore: Replace vite-plugin-replace with @rollup/plugin-replace

* Undo import change
2024-02-02 18:37:37 +11:00
Lachlan Collins
719bd8ea52
ci: Fix TanStack Config publish ERR_PNPM_OUTDATED_LOCKFILE (#1132) 2024-02-02 18:16:53 +11:00
Lachlan Collins
a74bba98e1
ci: Improve TanStack Config publish console error (#1131) 2024-02-02 18:06:22 +11:00
Lachlan Collins
1c942dc8f9
chore: Update @tanstack/config to 0.4.0 (#1130)
* chore: Update @tanstack/config to 0.4.0

* Update lockfile
2024-02-02 17:09:59 +11:00
Tanner Linsley
3aac5c6971 fix: SSR and Start experimental upgrades 2024-02-01 20:47:48 -07:00
Tanner Linsley
58b823e243 fix: no logs, update deps 2024-01-28 12:09:53 -07:00
Lachlan Collins
fe43fc2c9c
chore: Update @tanstack/config to 0.3.2 (#1090)
* chore: Update @tanstack/config to 0.3.1

* Bump to 0.3.2
2024-01-27 12:13:05 +11:00
Lachlan Collins
0706ee521b
fix: Bump @tanstack/config to 0.3.0 (#1089) 2024-01-27 09:45:58 +11:00
Tanner Linsley
e06d1f5aa0 fix: do not require prettier to build/release 2024-01-24 17:06:45 -07:00
dependabot[bot]
87d1107998
chore(deps-dev): bump vite from 5.0.11 to 5.0.12 (#1035)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.11 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/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-01-24 20:08:04 +01:00
Lachlan Collins
4f524928de
refactor: Sync dependency versions, remove unnecessary deps (#1039)
* refactor: Sync workspace deps versions, remove unnecessary deps

* Remove more root-level deps
2024-01-20 17:16:39 +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
9631764b0e
fix: fix CJS build of router-vite-plugin (#1011)
added separate package "@tanstack/router-generator" that both "@tanstack/router-cli" and "@tanstack/router-vite-plugin" depend on
2024-01-18 07:46:09 +01:00
Rui Saraiva
04bb62efea
chore(examples): upgrade examples dependencies (#947) 2024-01-09 00:55:48 +01:00
Tanner Linsley
8a5ab0a1cf feat: Add @tanstack/router-vite-plugin. Fixes TSR generate now nested routes properly. Also fixes unstable_codeSplitting issues. 2024-01-08 16:01:00 -07:00
Tanner Linsley
8ef259ec36 release: v1.0.0 2023-12-23 16:16:53 -07:00
Tanner Linsley
c1d0ae0c20 fix: window history, preload onpointerenter 2023-12-11 10:19:07 -07:00
Tanner Linsley
2cd2eb2080 fix: fine-grained subscriptions 2023-12-06 16:07:59 -07:00
Tanner Linsley
c7ed15c368 fix: ssr packages 2023-12-05 15:14:35 -07:00
Tanner Linsley
15f7ea4358 feat: bring back server utils via tanstack/react-router-server 2023-12-05 14:24:08 -07:00
Tanner Linsley
36d774bc36 fix: do not recreate history on fast refresh 2023-12-04 09:24:15 -07:00
Tanner Linsley
9f2150190a fix: allow Route to fast refresh 2023-12-01 23:29:33 -07:00
Tanner Linsley
ba32cdfc92 fix: package.json 2023-12-01 20:40:50 -07:00
Tanner Linsley
908603b1c6 fix: load skips, outdated search params
- Matches run for every url change, including beforeLoad and load
- Search params in matches and hooks are now always up to date with the latest known URL in matches
2023-11-06 13:42:29 -07:00
Tanner Linsley
4a792144eb feat: Big refactor to React only
There are many breaking changes in this release:
- The Router class no longer has many of the methods it had.
- Most of these methods have been moved to the new routerContext, which is served via the useRouter() hook
- React state is being used for all state management, which should set the stage for better transition/suspense support
- Router Context and route context has been renamed to Router Meta and Route Meta
- Loaders are gone. You can still force a route to wait for an async function via `beforeLoad`, which is serial or `load` which is parallel.
- There's a lot of other changes, but I'm too tired to think straight.
2023-11-05 01:38:08 -06:00
Tanner Linsley
9a875cb423 fix: react-search-state 2023-10-27 05:28:22 -07:00
Tanner Linsley
670679bb0e feat: history package 2023-10-25 14:02:36 -07:00
Tanner Linsley
1be68dfb29 fix: no bling link 2023-09-11 14:41:54 -06:00
Tanner Linsley
ae621c93ea feat: route masking 2023-09-11 10:07:10 -06:00
Tanner Linsley
4c94a07e40 fix: build 2023-09-01 14:09:37 -06:00
Tanner Linsley
11ea9663b7 fix: build 2023-09-01 13:51:53 -06:00
Tanner Linsley
9995e8975e fix: expose onEnter, onTransition, onLeave route options. 2023-09-01 12:13:23 -06:00
Tanner Linsley
09ebc403fc feat: defer(), useDeferred(), <Deferred />, promise streaming 2023-08-25 17:21:47 -06:00
Tanner Linsley
4767648c15 fix: framework agnostic packages 2023-08-08 18:34:31 -06:00
dependabot[bot]
0a5973d55e
build(deps): bump vite from 2.9.15 to 2.9.16 (#660)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.15 to 2.9.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.16/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 08:26:14 -06:00
Tanner Linsley
c9a7364536 fix: build 2023-07-06 16:39:16 -06:00
Tanner Linsley
7bb6d374a4 fix: build commands 2023-07-06 15:23:00 -06:00
Tanner Linsley
20d26ca7cf fix: state issues 2023-07-03 11:34:35 -06:00
Tanner Linsley
f503ef3601 fix: store SKIP_TESTS 2023-05-07 10:01:23 -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
Tanner Linsley
78c14875ed checkpoint 2023-02-22 12:41:10 -07:00
Tanner Linsley
b87a7a0fc1 Checkpoint 2023-02-17 10:52:09 -07:00
Tanner Linsley
ef6b60e010 Checkpoint 2023-02-14 22:30:53 -07:00
Tanner Linsley
88a14c93f9 checkpoint 2023-02-13 15:50:42 -07:00
Tanner Scadden
96f2f02d08 fix: Solid router adapter (#516)
* getting started

* Fixed babel settings for solidjs

* Added in typescript conversions from react

* checkpoint

* ssr checkpoint

* wip

* get it working

* move shallow to @tanstack/store

* Got context and matches working

* Got routes loading and rerendering

* Built out example app for solidjs and added in loaders

* Ported over suspense and other hooks

* Added suspense component support

* Pulled in beta and updated to use stores

* fix: test & context requirements

* release: v0.0.1-beta.69

* fix: add redirects, better errorComponents, no trailing slash bug

* release: v0.0.1-beta.70

* Auto rank routes

* fix: oops

* fix: types

* docs: route matching

* docs: more

* Add missing Link import (#388)

* fix: move window focus refetching into tanstack/loaders

* fix: allow client-level window focus refetching config

* update quick-start.md, remove duplicate Link. (#517)

* fix: docs + force release

* fix: remove test

* test: fix em

* release: v0.0.1-beta.71

* fix: force search filters on router creation

* fix: hash history link generation

Fixes #457

* release: v0.0.1-beta.72

* fix: loaders window guards

* release: v0.0.1-beta.73

* docs: fix

* fix: apply stringifyParams to links

* release: v0.0.1-beta.74

* Pulling in branch changes

* Fixed babel settings for solidjs

* Added in typescript conversions from react

* wip

* get it working

* move shallow to @tanstack/store

* Rebasing

* Updated stores and app to match react-router and react-loader

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Mattia Malonni <mattia.malonni@gmail.com>
Co-authored-by: Ahmed Eid <a.eid@yandex.com>
Co-authored-by: Joseph Lozano <me@josephlozano.xyz>

* Added solid actions

* Fixed issue with suspense and noted it. Added TRPC and solid-query example

* Changed the store for reactivity and created kitchen sink example

* Removed console.log

* Updating reactivity fixes

* Updated store to use reconcile

---------

Co-authored-by: Joseph Lozano <me@josephlozano.xyz>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Mattia Malonni <mattia.malonni@gmail.com>
Co-authored-by: Ahmed Eid <a.eid@yandex.com>
2023-02-07 22:33:59 -07:00