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

53 commits

Author SHA1 Message Date
Sean Cassiere
8ebf6a7fab
chore(examples): move from "layout" to "pathlessLayout" (#3600) 2025-02-28 16:17:26 +13:00
Sean Cassiere
d9eab3d7d6
refactor: autoCodesplitting for all (#3544) 2025-02-24 21:43:55 +13:00
Tanner Linsley
74f933aa58 examples: <ScrollRestoration/> => scrollRestoration: true 2025-01-30 15:44:57 -07:00
Nicolas Beaussart
624e8b0246
chore(e2e,examples): downgrade to tailwindcss 3 (#3249)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-27 13:28:27 +13:00
Sean Cassiere
96e9e1a7aa
chore(e2e,examples): tailwindcss v4 (#3235) 2025-01-26 17:50:21 +13:00
Sean Cassiere
4ae6ca9d6b
feat(start): move scripts,links, and meta to the head (#2571)
This minor is non-breaking for Router users, since it's undocumented to the public API, but **is breaking** for Start alpha users. 

This changes the options signature for meta from this:
```tsx
createRoute({
  meta: () => [
    ...
  ],
  links: () => [
    ...
  ],
})
```

to this:

```tsx
createRoute({
  head: () => ({
    meta: [
      ...
    ],
    links: [
      ...
    ],
  })
})
```
2024-11-17 15:19:18 -07:00
Alex D'Elia
2b0d1c2dbf
docs(router): replace deprecated preSearchFilters with search middlewares in examples (#2741) 2024-11-12 22:39:19 +01:00
Sean Cassiere
563e5d168c
feat(router-generator): remove prettier ignore comment blocks (#2679) 2024-11-01 14:22:12 +13:00
Manuel Schiller
5499693bb3
fix(react-router): correct typing for unnested routes (#2597)
* fix(react-router): correct typing for unnested routes

fixes #2595
fixes #2596

* regenerate examples/tests
2024-10-20 17:48:18 +02:00
Manuel Schiller
db8e8f031a
chore: regenerate examples after generator changed (#2580) 2024-10-18 22:32:46 +02:00
Christopher Horobin
f48dd37b35
feat: add linkOptions for re-usable props (#2486)
* feat: add `linkOptions` for re-usable props

* chore: change examples

* docs: add docs for `linkOptions`

* tests: add type tests for `linkOptions`

* chore: fix spelling

* chore: update docs and make `const`
2024-10-07 23:22:47 +02:00
Manuel Schiller
282f83a860
chore: run typecheck for examples after building (#2285) 2024-09-08 00:52:37 +02:00
Manuel Schiller
aeb35938f2
fix(router-generator): export generated interfaces (#2282) 2024-09-07 09:09:44 +02:00
Sean Cassiere
5fa21ad90e
chore(examples): regenerate route-tree files (#2272) 2024-09-06 13:59:33 +12:00
Christopher Horobin
00ab94253f
feat(react-router): allow narrowing of matches with useMatches (#2058)
* feat(react-router): add isMatch type predicate

* chore: add to example

* refactor: optimised types

* chore: use `constrain`

* fix: add a few fixes and tests

* chore: add experimental tag
2024-08-24 01:04:00 +02:00
renovate[bot]
a1438ee99c
chore(deps): update all non-major dependencies (#2051)
* chore(deps): update all non-major dependencies

* Fix typescript-eslint rules

---------

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 19:30:05 +10:00
Sean Cassiere
cd85ca1de1
chore: cleanup styles and eslint errors in the spa examples (#1971)
* style(examples): kitchen sink examples

* style(examples): more kitchen sink examples

* style(examples): basic examples

* style(examples): authenticated routes example

* style(examples): authentication routes example

* style(examples): scroll restoration

* style(examples): navigation blocking

* style(examples): defered data example

* style(examples): location masking example

* style(examples): quickstart examples
2024-07-17 02:28:39 +12:00
renovate[bot]
a590499e94
chore(deps): update all non-major dependencies (#1960)
* chore(deps): update all non-major dependencies

* Format

---------

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-15 13:59:43 +10:00
Christopher Horobin
1d733f6cc6
feat(react-router): params.parse and params.stringify instead of parseParams and stringifyParams (#1826) 2024-06-28 18:34:49 +02: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
Sean Cassiere
9fb0bde795
docs(examples): cleanup the "kitchen-sink*" examples (#1663)
Just some housekeeping for the kitchen sink examples that have become a bit messy over time.
2024-05-24 23:55:16 +12:00
Sean Cassiere
4c67e76a3e
fix(router-generator): conflicting prettier outputs (#1661)
* style: prettier

* test(react-router): try using `it`

* chore: undo those test trys

* fix(router-generator): remove unnecessary line breaks

* fix(router-generator): closer to what it was earlier

* fix(router-generator): dont conflict with tsr project prettier for snapshots
2024-05-24 22:06:05 +12:00
Tanner Linsley
f1147714ff fix(start): bundling and tests 2024-05-23 15:46:19 -06:00
Tanner Linsley
cb80816603 fix(start): config for RSCs... almost 2024-05-18 21:06:34 -06:00
Tanner Linsley
faef7261e2
fix: fix main type errors 2024-05-18 11:57:11 -06:00
Tanner Linsley
3e99326e48 fix: start dependency chains 2024-05-14 11:30:53 -06:00
Sean Cassiere
f855ec15b0
fix(router-generator): incorrect route-tree generation for nested layout routes (#1285)
* its working for now!

* actual working state

* kitchen sink expensive example being broken

* execute the `handleNode` function in order of the preRouteNodes
2024-03-10 00:35:01 +01:00
Manuel Schiller
419cb45975
fix: correct typing for route groups (#1245)
since we need to handle the path replacements in typescript as well, we cannot let the user configure the route group pattern
2024-03-01 14:58:31 -07:00
Manuel Schiller
7731a3926b
feat: add route grouping for file based routing (#1241) 2024-03-01 11:04:21 -07: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
Manuel Schiller
965485e255 chore: use createLazyFileRoute instead of lazyRouteComponent in file-based routing examples 2024-02-17 01:11:13 +01:00
Tanner Linsley
578808ef36 release: v1.16.1 2024-02-10 06:51:15 +00:00
Tanner Linsley
98d22a81d5 release: v1.16.0 2024-02-09 21:14:36 +00:00
Tanner Linsley
02a44644ca release: v1.15.20 2024-02-06 20:15:45 +00:00
Tanner Linsley
d6d7a3e489 release: v1.15.18 2024-02-05 03:33:00 +00: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
Manuel Schiller
66f596ec81 examples: fix imports 2024-01-29 22:51:44 +01:00
Manuel Schiller
c70b10ef2f
fix: deprecate rootRouteWithContext in favor of createRootRouteWithContext (#1098) 2024-01-28 15:58:26 -07:00
Tanner Linsley
fcc278ffc8 feat: New code-splitting patterns + deprecations
- Deprecated class constructor APIs in favor of new `create[Class]` functions
- Added new code-splitting paradigm that produces less code, preloads potentially faster and plays nicely with SSR and file-based routing
- Updated all examples to use new code splitting patterns and new suggested APIs
2024-01-24 13:01:48 -07: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
4278023562
examples: fix kitchen-sink login (#969) 2024-01-11 01:41:21 +01:00
Manuel Schiller
a2a7d7e538
docs: update docs and examples to use route.fullPath instead of route.id as from (#928) 2024-01-10 14:52:04 -07:00
Rui Saraiva
04bb62efea
chore(examples): upgrade examples dependencies (#947) 2024-01-09 00:55:48 +01:00
Manuel Schiller
1e0897b940
fix: fix examples (#917) 2024-01-03 23:21:09 +01: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
3206f0481b fix: swr + remove shouldReload, activeOptions?.exact for search params 2023-12-18 17:28:12 -07:00
Tanner Linsley
0d4092fdec fix: pendingComponent and useMatchRoute 2023-12-15 23:22:51 -07:00
Tanner Linsley
8256a24cc9 fix: top-level useLoaderDeps, route.useLoaderDeps, routeApi.useLoaderDeps 2023-12-15 17:16:56 -07:00
Tanner Linsley
8e7645ae24 feat: loaderDeps 2023-12-15 16:49:39 -07:00
Tanner Linsley
814aed29a9 examples: update control bar 2023-12-05 16:09:53 -07:00