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

49 commits

Author SHA1 Message Date
David Turissini
62c02862d8
refactor: remove hardcoded references to tsr.config.json (#2975)
* removing hard coded references to tsc.config.json

* ci: apply automated fixes

---------

Co-authored-by: David Turissini <davidturissini@Melissas-Air.home>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-11 09:20:36 +13:00
Sean Cassiere
a0ac5ed3b0
feat(router-generator): define virtual routes using a route.ts file (#2933)
* feat(router-generator): define virtual routes using a `route.ts` file

* refactor(router-generator): passing in the root

* feat(router-cli): passing in the root

* feat(router-plugin): passing in the root

* test(router-generator): check the functionality

* test(e2e): end-to-end test for named exports

* docs(router): update the docs

* docs(router): add file paths to the virtual guide

* docs: forgot to add this path

* Update docs/framework/react/guide/virtual-file-routes.md
2024-12-06 22:58:18 +13:00
Sean Cassiere
ac439bdef1
fix(router-generator): parse the experimental flags at the generator (#2001)
* fix(router-generator): experimental flags to be inheritted from the router-generator

* fix(router-cli): patch to work with new getConfig function

* fix(router-plugin): patch to work with new getConfig function

* fix(start): patch to work with new getConfig function
2024-07-22 08:42:44 +12:00
Lachlan Collins
3611615f42
chore: Update ESLint and Vitest config (#1854) 2024-06-29 11:19:11 +10: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
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
Tanner Linsley
79972f640e fix: Update generator output, examples: codesplit vinxi-ssr-streaming example 2024-01-17 14:56:29 -07:00
Jonas Gutenschwager
42802fee80
fix: remove unnecessary sanitization to fix file based routing for windows (#973) 2024-01-16 13:24:32 -07:00
Ryo Yamada
fa79de1f85
fix: perf(router-cli): readdir with withFileTypes: true (#1002) 2024-01-16 13:22:22 -07:00
Tanner Linsley
b3409d4b38 fix: route gen ignores non js/ts(x) files 2024-01-14 12:38:57 -07:00
Tanner Linsley
88dafb5afa fix: file route sorting on windows 2024-01-11 10:37:47 -07:00
Tanner Linsley
c575bdce7b fix: handle splat variable names in route generation 2024-01-10 23:27:49 -07:00
Tanner Linsley
898b09ac6f fix: codesplitting support for index files 2024-01-10 10:59:18 -07:00
Tanner Linsley
d09402889f feat: support errorComponent and pendingComponent code splitting 2024-01-10 00:12:23 -07:00
Tanner Linsley
0801a19b1b fix: replace fx-extra with fs/promises 2024-01-09 10:12:28 -07:00
Rui Saraiva
2e6a4e8049
fix(route-cli): format generated route tree with configured quote style (#948) 2024-01-09 01:06:36 +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
f0eff00862 fix: only import stuff that's needed in the Router CLI route gen file
Fixes #953
2024-01-08 11:16:28 -07:00
Tanner Linsley
8c4a83faf5 fix: Router CLI can now handle "virtual" code split routes with no anchor route file 2024-01-05 22:15:34 -07:00
Tanner Linsley
2c33160af6 fix: add cli unstable_codeSplitting 2024-01-05 12:13:38 -07:00
Manuel Schiller
3b6b8d0da9
fix(route-cli): make quote style configurable (#894)
* feat(router-cli): make quoteStyle configurable

* set `quoteStyle` to `double` in one example
2023-12-29 08:43:11 -07:00
Manuel Schiller
c0f01a51e1
fix: use correct id in generator (#886)
* fix: use correct id in generator

fixes #881

* update examples after generator fix
2023-12-28 16:47:51 -07:00
Tanner Linsley
7725c392b1 fix: routeOptions.key 2023-12-04 14:21:01 -07:00
Tanner Linsley
8230e3dbe3 fix: router instance is back in control 2023-12-01 20:40:50 -07:00
Yavonix
c40902ba69
fix: routePathID now obeys routeFilePrefix (#818) 2023-11-17 08:21:10 -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
Niels Mentink
806ef336e5
fix: change chokidar watch path for config file from js to json (#759) 2023-10-08 12:24:29 -06:00
Jonathan Marbutt
709a7c80c8
fix: Fixing Nesting Issues with multiple layouts (#741)
When there are multiple nested layouts it is possible for the generator to not nest sub paths correctly.
2023-09-25 18:29:08 -06:00
Fugi
ab5bed17e2
fix: Escape routePath when updating FileRoute call (#736) 2023-09-16 12:17:13 -06: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
Tanner Linsley
12770b7150 fix: remove getContext, beforeLoad result decorates context 2023-09-01 16:42:39 -06:00
Tanner Linsley
9995e8975e fix: expose onEnter, onTransition, onLeave route options. 2023-09-01 12:13:23 -06:00
Tanner Linsley
df88c8f634 fix: loader error propagation and rendering
Fixes #691
2023-08-24 08:08:13 -06:00
Tanner Linsley
14acb27738 fix: route generation 2023-08-21 10:08:12 -06:00
Tanner Linsley
1d085adf61 fix: router-cli rough draft 2023-08-11 01:48:40 -04:00
Tanner Linsley
fb3f9c0025 checkpoint 2023-08-10 10:39:25 -04:00
Tanner Linsley
b87a7a0fc1 Checkpoint 2023-02-17 10:52:09 -07:00
Tanner Linsley
a99ca55aeb docs: progress 2023-01-31 12:02:40 -07:00
Tanner Linsley
930344536a fix: search param partial matching for active links and MatchRoute 2023-01-29 21:35:02 -07:00
Tanner Linsley
894c47fe92 checkpoint 2023-01-24 12:22:10 -07:00
jjones315
98370006c1
fix: Update the routeConfig import on windows. (#480)
Using posix style path for the routeConfig import statement in the transformed code.
2023-01-06 00:29:47 -07:00
Tanner Linsley
1d31e328c4 Merge branch 'beta' of https://github.com/TanStack/router into beta 2022-12-28 08:27:16 -07:00
Judicael
3b160a13e6
fix(router-cli generator): fix generated import (#469) 2022-12-27 21:13:05 -07:00
Tanner Linsley
14727e79f9 checkpoint 2022-12-22 13:36:07 -07:00
Tanner Linsley
3d284a6b62
fix: With solid reactivity + better API (#459)
* Move to solid/reactivity

* checkpoint

* checkpoint

* Create CONTRIBUTING.md

* quick fixes

* fix: upgrade react adapter
2022-12-16 23:36:49 -07:00
Tanner Linsley
9383e6170f fix: better state naming, onLoadError option 2022-12-07 23:15:48 -07:00
Tanner Linsley
2b51caccb9 feat: Router context and RouterProvider refactor 2022-12-02 23:10:04 -07:00
Tanner Linsley
14890696bb checkpoint before pnpm 2022-11-28 08:55:52 -07:00