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

39 commits

Author SHA1 Message Date
Manuel Schiller
cbbfbe37ab
optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
Lachlan Collins
496c9320a2
ci: prepare for trusted publishing (#6032) 2025-12-07 02:02:49 +11:00
Flo
fd341ad200
refactor(router-core): strip internal types from public build (#4907)
This PR proposes we use the `@internal` JSDoc tag, and `--stripInternal`
typescript compiler option to remove internal keys from the public
`.d.ts` files.

Docs for `stripInternal`:
https://www.typescriptlang.org/tsconfig/#stripInternal

This helps ensuring internal values aren't considered as part of the
*public API surface* by users, allowing us more flexibility in
refactoring.

> [!WARNING]
> This PR proposes we add `stripInternal` to the entire repo, not just
`router-core`. However there are already some values marked as internal
that weren't added by this PR:
> - `InferStructuralSharing` in `react-router`
> - `handleHashScroll` in `router-core > scrollRestoration`
> - many `InferFoo` types in `router-core > typePrimitives`
>
> as a result of this, we might have to switch some of those `@internal`
tags to something else (like `@private` maybe?) because they are, in
fact, necessary for the build to be correct.

Example:
```ts
export type Foo = {
  a: number,
  /** @internal */
  b: number,
}

/** @internal */
export function hello() {
  return 'world'
}

export const answer = 42
```
gets compiled as `.d.ts` to
```ts
export type Foo = {
  a: number
}
export const answer = 42
```

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-10 23:38:37 +02:00
Manuel Schiller
5aaa256744 tests: fix e2e tests to use shared package 2025-02-01 11:29:41 +01:00
Sean Cassiere
8311780fe5
test(e2e): derive e2e testing ports from the package name (#2939)
* test(e2e): add the derivePort utility

* test(e2e): use the utility on start-basic and start-website

* test(e2e): use the utility on the remaining start sandboxes

* test(e2e): use the utility on the react-router sandboxes

* test(e2e): remove unneeded script from `basic-esbuild-file-based`
2024-12-07 10:53:11 +13:00
Lachlan Collins
431031182b
chore: Migrate to ESLint flat config (#1846)
* chore: Migrate to ESLint flat config

* Add knip.json
2024-06-28 11:59:39 +10:00
Lachlan Collins
89907c6259
chore: Update @tanstack/config to v0.7.3 (#1586)
* chore: Update @tanstack/config to v0.7.3

Fixes preinstall issue on CI

* Fix prettier
2024-05-13 17:06:58 +10: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
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
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
15f7ea4358 feat: bring back server utils via tanstack/react-router-server 2023-12-05 14:24:08 -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
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
f2dbdd5927 fix: SSR 2023-07-11 17:39:42 -06:00
Tanner Linsley
b87a7a0fc1 Checkpoint 2023-02-17 10:52:09 -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
Tanner Linsley
77344195ae fix: signal passthrough, docs 2023-02-06 14:53:10 -07:00
Tanner Linsley
967fef7bf8 fix: routerContext 2023-01-28 21:33:04 -07:00
Tanner Linsley
d6fc299ba3 fix directory structure 2023-01-28 13:58:24 -07:00
Tanner Linsley
7bfa08298f split to separate packages 2023-01-22 16:50:19 -07:00
Tanner Linsley
ccbd238f8b checkpoint 2022-12-19 09:52:33 -07:00
Tanner Linsley
14890696bb checkpoint before pnpm 2022-11-28 08:55:52 -07:00
Tanner Linsley
dc7c2aeed6 example update 2022-10-17 17:14:42 +01:00
Tanner Linsley
6ebfe80dfc fix: build 2022-10-17 14:14:11 +01:00
Tanner Linsley
ace45145e0 checkpoint 2022-08-12 14:57:33 -06:00
Tanner Linsley
f9943a2ca0 checkpoint 2022-08-10 08:13:07 -06:00
Tanner Linsley
5b321176b1 release: v3.4.1 2022-02-01 14:30:56 -07:00
Tanner Linsley
5412d843d1 namespace package names 2022-02-01 13:01:57 -07:00
Tanner Linsley
780ae4072e chore: better build system 2022-01-31 12:06:06 -07:00
Tanner Linsley
5babc7aab7 fix: add devtools package 2021-11-19 19:13:25 -07:00
Tanner Linsley
3ea63e1c17 fix: lots-o-updates-and-features 2021-10-22 23:41:09 -06:00
Tanner Linsley
0bad212813 fix: generics, react-location-simple-cache 2021-10-20 22:52:40 -06:00
Tanner Linsley
cb0faa1007 chore: 2021-10-20 08:28:55 -06:00
Tanner Linsley
40222048fe Moving to monorepo 2021-10-20 08:12:04 -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