Leonardo Montini
85f5e7be1b
docs: mention how to disable the plugin in tests ( #1682 )
...
* docs: mention how to disable the plugin in tests
* docs: improve phrasing
2024-05-30 20:07:30 +02:00
Tanner Linsley
634da2ba76
release: v1.34.8
v1.34.8
2024-05-30 17:18:39 +00:00
Manuel Schiller
6a44da8d68
fix: do not assign path to virtual routes for route groups ( #1683 )
...
fixes #1681
2024-05-30 19:17:15 +02:00
Tanner Linsley
2c80cfe260
release: v1.34.7
v1.34.7
2024-05-29 19:56:34 +00:00
Leo Y. Li
f11cd07d6e
fix(react-router): only instantiate the confirmation promise when required in the useBlocker hook ( #1669 )
...
* fix: only instantiate the confirmation promise when required (useBlocker)
* fix: prettier
2024-05-29 21:53:57 +02:00
Tanner Linsley
aab0e40082
release: v1.34.6
v1.34.6
2024-05-29 19:29:44 +00:00
Christopher Horobin
ef77cccd58
fix(react-router): merge params, context, search and loaderData with strict: false ( #1664 )
...
* feat: merge context, params, search and loaderData when `strict` is false
- objects in context, params, search and loaderData will be merged into object with all properties optional.
- if objects contain conflicting properties they are resolved with unions
- if some unions contain primitives, tuples or arrays they are ignored and are a part of a union
* chore: use `undefined` instead of `{}` for default TLoaderData
2024-05-29 21:27:51 +02: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
Tanner Linsley
eeaaeebab0
release: v1.34.5
v1.34.5
2024-05-28 17:37:24 +00:00
Tanner Linsley
2b0135bc7e
fix: add onBeforeNavigate event
2024-05-28 11:34:56 -06:00
Tanner Linsley
2f3b28c3a7
release: v1.34.4
v1.34.4
2024-05-27 12:51:20 +00:00
Dominik Dorfmeister
3c66fb545d
fix(router-devtools): make router a peerDependency of the devtools ( #1671 )
...
* fix: make router a peerDependency of the devtools
* fix: formatting
2024-05-27 14:49:51 +02:00
Tanner Linsley
04bcc3e19f
release: v1.34.3
v1.34.3
2024-05-27 04:58:36 +00:00
Tanner Linsley
0be110012c
fix: no more weird streaming APIs, just use suspense + streaming
2024-05-26 22:56:02 -06:00
Tanner Linsley
9102d45730
release: v1.34.2
v1.34.2
2024-05-26 21:26:55 +00:00
Tanner Linsley
317f1eb108
fix: SSR redirects
2024-05-26 15:24:25 -06:00
Tanner Linsley
75424dc004
release: v1.34.1
v1.34.1
2024-05-26 20:16:30 +00:00
Tanner Linsley
1d677df94a
fix(start): abstract SSR event handling
2024-05-26 14:08:53 -06:00
Tanner Linsley
de02c1d374
fix: deprecate stream transformation in favor of auto-streaming with <Await>/useAwaited
2024-05-26 14:08:53 -06:00
Tanner Linsley
0f60403cb9
fix: do not use react transitions on the server
2024-05-26 14:08:53 -06:00
Tanner Linsley
075c6b3a50
examples: update start example
2024-05-26 14:08:53 -06:00
Tanner Linsley
a648285a9c
release: v1.34.0
v1.34.0
2024-05-25 11:50:59 +00:00
Leonardo Montini
28aa8fb04e
feat(react-router): improve the blocker functionality for use with custom UI ( #1649 )
...
* feat: return async resolver from useBlocker hook
* feat: pass async resolvers to children on Block component
* fix: types and always reset promise
* docs: update example with custom UI
* refactor: namings
* docs: toggle between custom ui and default
* feat: expose status and refactor hook props
* feat: support current API
* feat: custom blocker should take precendence over the manual promise blocker
* test: unit test on condition to avoid breaking changes with the new API
* docs: deprecate old syntax and update the docs
* docs: create useBlocker API reference
* fix: deprecated interface
2024-05-25 13:49:08 +02:00
Sean Cassiere
92f4a09b9b
test(react-router): use React.act to contain warnings thrown by router.test.tsx ( #1667 )
2024-05-25 12:47:02 +12: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
Hiep Nguyen
dbb5641c9a
docs(examples): inline the PickAsRequired type in the "kitchen-sink-react-query" example ( #1660 )
2024-05-24 22:11:47 +12:00
Tanner Linsley
89467a5e22
release: v1.33.12
v1.33.12
2024-05-24 10:08:08 +00: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
55adc136b9
examples: test vercel link
2024-05-23 17:22:52 -06:00
Tanner Linsley
cab6c3958f
release: v1.33.11
v1.33.11
2024-05-23 23:16:24 +00:00
Tanner Linsley
6219cb80a9
fix: include all files in preloads
2024-05-23 17:14:15 -06:00
Tanner Linsley
1d901caea9
release: v1.33.10
v1.33.10
2024-05-23 22:40:56 +00:00
Tanner Linsley
e0a7545ad1
fix: modulepreload
2024-05-23 16:39:01 -06:00
Tanner Linsley
59afb56cb5
release: v1.33.9
v1.33.9
2024-05-23 22:23:17 +00:00
Tanner Linsley
f0056b556b
fix: dedupe and key meta
2024-05-23 16:20:47 -06:00
Tanner Linsley
b97533d108
release: v1.33.8
v1.33.8
2024-05-23 21:48:56 +00:00
Tanner Linsley
f1147714ff
fix(start): bundling and tests
2024-05-23 15:46:19 -06:00
Tanner Linsley
97edd010d1
Merge branch 'main' of https://github.com/TanStack/router
...
# Conflicts:
# examples/react/start-basic/package.json
# examples/react/vinxi-basic-ssr-streaming/package.json
# examples/react/vinxi-basic-ssr/package.json
# examples/react/vinxi-basic/package.json
# pnpm-lock.yaml
2024-05-23 12:01:37 -06:00
Tanner Linsley
6d29cd7f64
fix(start): add experimental support for route manifest and ssr route manifest usage
2024-05-23 11:59:40 -06:00
Tanner Linsley
911b958ca5
release: v1.33.7
v1.33.7
2024-05-21 20:43:41 +00:00
Christopher Horobin
b6fdbf342b
fix: should render error component when beforeLoad throws an error ( #1648 )
...
fixes #1647
2024-05-21 22:41:47 +02:00
Elia Maino
1ea92a3d79
docs: Update useBlocker function signature ( #1639 )
...
* docs: Update `useBlocker` function signature
* docs: update `message` to `blockerFn`
2024-05-21 21:28:00 +02:00
Christopher Horobin
022e725b9c
tests: add runtime tests for Link ( #1590 )
2024-05-21 16:30:17 +02:00
Sean Cassiere
d20a422160
docs: touchups to the reference pages for RouterState type, useRouterState, and useMatches ( #1645 )
...
* docs: better RouterState doc
* docs: useRouterState updates
* docs: useMatches
* docs: forgot to do that
* docs: and that
2024-05-21 20:40:38 +12:00
Sean Cassiere
59e3f52286
docs: update the content on the reference page for RouterEvents type ( #1644 )
...
* docs: update the content on the `RouterEvents type` reference page
* docs: verbiage
* docs: make it simpler
2024-05-21 17:57:04 +12:00
Sean Cassiere
463d360f12
test(router-vite-plugin): use windows-friendly filenames for the snapshots ( #1643 )
...
* chore(router-vite-plugin): rename the snapshots
* test(router-vite-plugin): use `(...)` as the split prefix as part of the filename for search on the fs
* chore: switch to using `@`
2024-05-21 16:41:55 +12:00
Tanner Linsley
f9c98c6be6
release: v1.33.6
v1.33.6
2024-05-21 03:29:52 +00:00
Sean Cassiere
e19f7e8703
fix(react-router): only update the route-context during beforeLoad ( #1642 )
...
* fix(react-router): only update the route-context during beforeLoad
* chore: add the comment back in
* style: prettier
2024-05-21 15:28:02 +12:00
Tanner Linsley
05941e5ef2
release: v1.33.5
v1.33.5
2024-05-19 03:23:26 +00:00
Tanner Linsley
cb80816603
fix(start): config for RSCs... almost
2024-05-18 21:06:34 -06:00