fix(deps): Update react packages (major)#717
Conversation
|
f2ad416 to
c34388d
Compare
c34388d to
890700a
Compare
011c8de to
d774dbe
Compare
d774dbe to
ff4d889
Compare
7e051cd to
42ad79f
Compare
42ad79f to
4726900
Compare
4726900 to
7182d5b
Compare
feef507 to
76fa6e8
Compare
11a13e9 to
fb8c5ae
Compare
90521a7 to
335fa19
Compare
13601a1 to
fb5d775
Compare
3436a1d to
1610f64
Compare
0cc396b to
70eb351
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: pnpm-lock.yaml |
58f6ede to
0e3a203
Compare
0e3a203 to
ae9a2b7
Compare
|
Superseded by #790, though it doesn't touch react router or storybook. |
This PR contains the following updates:
^6.5.12->^7.0.0^11.2.3->^14.0.0^17.0.0->^18.0.0^17.0.0->^18.0.0^17.0.1->^18.0.0^17.0.1->^18.0.0^5.2.0->^6.0.0Release Notes
storybookjs/storybook
v7.0.7Compare Source
Bug Fixes
SET_INDEXfor docs entries #22154useParameterusingDOCS_PREPARED#22118Maintenance
Build
v7.0.6Compare Source
Bug Fixes
moduleguard in non-webpack environments #22085Maintenance
Build
v7.0.5Compare Source
Bug Fixes
v7.0.4Compare Source
Storybook 7.0 is here! 🎉
7.0 contains hundreds more fixes, features, and tweaks. Browse the changelogs matching
7.0.0-alpha.*,7.0.0-beta.*, and7.0.0-rc.*for the full list of changes.See our Migration guide to upgrade from earlier versions of Storybook.
Bug Fixes
Dependency Upgrades
v7.0.3Compare Source
Bug Fixes
defaultOrientationconfig option #21962:first-child(etc) workarounds #21213Maintenance
Dependency Upgrades
@emotion/cacheversion #21941v7.0.2Compare Source
Storybook 7.0 is here! 🎉
7.0 contains hundreds more fixes, features, and tweaks. Browse the changelogs matching
7.0.0-alpha.*,7.0.0-beta.*, and7.0.0-rc.*for the full list of changes.See our Migration guide to upgrade from earlier versions of Storybook.
Bug Fixes
v7.0.1Compare Source
Bug Fixes
Maintenance
component/propsMetafrom story #21807Dependencies
v7.0.0Compare Source
Storybook 7.0 is here! 🎉
7.0 contains hundreds more fixes, features, and tweaks. Browse the changelogs matching
7.0.0-alpha.*,7.0.0-beta.*, and7.0.0-rc.*for the full list of changes.See our Migration guide to upgrade from earlier versions of Storybook.
Full announcement and proper release to the
latestnpm tag coming soon. 😘testing-library/react-testing-library
v14.0.0Compare Source
Bug Fixes
Features
@testing-library/domto 9.0.0 (#1177) (6653c23)BREAKING CHANGES
v13.4.0Compare Source
Features
v13.3.0Compare Source
Features
globalThisif available (#1070) (c80809a)v13.2.0Compare Source
Features
v13.1.1Compare Source
Bug Fixes
v13.1.0Compare Source
Features
renderHook(#991) (9535eff)v13.0.1Compare Source
Bug Fixes
v13.0.0Compare Source
Features
BREAKING CHANGES
createRootAPI by default which comes with a set of changes while also enabling support for concurrent features.To opt-out of this change you can use
render(ui, { legacyRoot: true } ). But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings.v12.1.5Compare Source
Bug Fixes
v12.1.4Compare Source
Bug Fixes
v12.1.3Compare Source
Bug Fixes
@types/react-domas a direct dependency (#1001) (149d9a9)v12.1.2Compare Source
Bug Fixes
v12.1.1Compare Source
Bug Fixes
v12.1.0Compare Source
Features
v12.0.0Compare Source
Bug Fixes
Features
BREAKING CHANGES
@testing-library/domto 8.0.0. Please check out the@testing-library/[email protected]release page for a detailed list of breaking changes.facebook/react
v18.2.0Compare Source
React DOM
onRecoverableError. (@gnoff in #24591)documentcausing a blank page on mismatch. (@gnoff in #24523)setStatein Safari when adding an iframe. (@gaearon in #24459)React DOM Server
<title>elements to match the browser constraints. (@gnoff in #24679)highWaterMarkto0. (@jplhomer in #24641)Server Components (Experimental)
useId()inside Server Components. (@gnoff in #24172)v18.1.0Compare Source
React DOM
react-dom/clientwhen using UMD bundle. (@alireza-molaee in #24274)suppressHydrationWarningto work in production too. (@gaearon in #24271)componentWillUnmountfiring twice inside of Suspense. (@acdlite in #24308)useDeferredValuecausing an infinite loop when passed an unmemoized value. (@acdlite in #24247)setStateloop inuseEffect. (@gaearon in #24298)setStateinuseInsertionEffect. (@gaearon in #24295)React DOM Server
bootstrapScriptContentcontents. (@gnoff in #24385)renderToPipeableStream. (@gnoff in #24291)ESLint Plugin: React Hooks
Use Subscription
use-sync-external-storeshim. (@gaearon in #24289)v18.0.0Compare Source
Below is a list of all new features, APIs, deprecations, and breaking changes.
Read React 18 release post and React 18 upgrade guide for more information.
New Features
React
useIdis a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.startTransitionanduseTransitionlet you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).useDeferredValuelets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.useSyncExternalStoreis a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need foruseEffectwhen implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.useInsertionEffectis a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.React DOM Client
These new APIs are now exported from
react-dom/client:createRoot: New method to create a root torenderorunmount. Use it instead ofReactDOM.render. New features in React 18 don't work without it.hydrateRoot: New method to hydrate a server rendered application. Use it instead ofReactDOM.hydratein conjunction with the new React DOM Server APIs. New features in React 18 don't work without it.Both
createRootandhydrateRootaccept a new option calledonRecoverableErrorin case you want to be notified when React recovers from errors during rendering or hydration for logging. By default, React will usereportError, orconsole.errorin the older browsers.React DOM Server
These new APIs are now exported from
react-dom/serverand have full support for streaming Suspense on the server:renderToPipeableStream: for streaming in Node environments.renderToReadableStream: for modern edge runtime environments, such as Deno and Cloudflare workers.The existing
renderToStringmethod keeps working but is discouraged.remix-run/react-router
v6.11.0Compare Source
Minor Changes
basenamesupport inuseFetcher(#10336)basenamethen you will need to remove the manually prependedbasenamefrom yourfetchercalls (fetcher.load('/basename/route') -> fetcher.load('/route'))Patch Changes
Componentinstead ofelementon a route definition (#10287)<Link to="//">and other invalid URL values (#10367)useSyncExternalStoretouseStatefor internal@remix-run/routerrouter state syncing in<RouterProvider>. We found some subtle bugs where router state updates got propagated before other normaluseStateupdates, which could lead to footguns inuseEffectcalls. (#10377, #10409)StaticRouterProvider's internalRoutercomponent (#10401)RouterProvider,useNavigate/useSubmit/fetcher.submitare now stable across location changes, since we can handle relative routing via the@remix-run/routerinstance and get rid of our dependence onuseLocation(). When usingBrowserRouter, these hooks remain unstable across location changes because they still rely onuseLocation(). (#10336)[email protected]@remix-run/[email protected]v6.10.0Compare Source
Minor Changes
Added support for Future Flags in React Router. The first flag being introduced is
future.v7_normalizeFormMethodwhich will normalize the exposeduseNavigation()/useFetcher()formMethodfields as uppercase HTTP methods to align with thefetch()behavior. (#10207)future.v7_normalizeFormMethod === false(default v6 behavior),useNavigation().formMethodis lowercaseuseFetcher().formMethodis lowercasefuture.v7_normalizeFormMethod === true:useNavigation().formMethodis uppercaseuseFetcher().formMethodis uppercasePatch Changes
createStaticHandlerto also check forErrorBoundaryon routes in addition toerrorElement(#10190)@remix-run/[email protected][email protected]v6.9.0Compare Source
Minor Changes
React Router now supports an alternative way to define your route
elementanderrorElementfields as React Components instead of React Elements. You can instead pass a React Component to the newComponentandErrorBoundaryfields if you choose. There is no functional difference between the two, so use whichever approach you prefer 😀. You shouldn't be defining both, but if you doComponent/ErrorBoundarywill "win". (#10045)Example JSON Syntax
Example JSX Syntax
Introducing Lazy Route Modules! (#10045)
In order to keep your application bundles small and support code-splitting of your routes, we've introduced a new
lazy()route property. This is an async function that resolves the non-route-matching portions of your route definition (loader,action,element/Component,errorElement/ErrorBoundary,shouldRevalidate,handle).Lazy routes are resolved on initial load and during the
loadingorsubmittingphase of a navigation or fetcher call. You cannot lazily define route-matching properties (path,index,children) since we only execute your lazy route functions after we've matched known routes.Your
lazyfunctions will typically return the result of a dynamic import.Then in your lazy route modules, export the properties you want defined for the route:
An example of this in action can be found in the
examples/lazy-loading-router-providerdirectory of the repository.🙌 Huge thanks to @rossipedia for the Initial Proposal and POC Implementation.
Updated dependencies:
[email protected]@remix-run/[email protected]v6.8.2Compare Source
Patch Changes
<Link to>as external if they are outside of the routerbasename(#10135)useBlockerto returnIDLE_BLOCKERduring SSR (#10046)<Link to>urls (#10112)StaticRouterProviderserialized hydration data (#10068)@remix-run/[email protected][email protected]v6.8.1Compare Source
Patch Changes
Linkcomponent (now also supportsmailto:urls) (#9994)[email protected]@remix-run/[email protected]v6.8.0Compare Source
Minor Changes
Support absolute URLs in
<Link to>. If the URL is for the current origin, it will still do a client-side navigation. If the URL is for a different origin then it will do a fresh document request for the new origin. (#9900)Patch Changes
useSearchParams(#9969)preventScrollReseton<fetcher.Form>(#9963)pagehideinstead ofbeforeunloadfor<ScrollRestoration>. This has better cross-browser support, specifically on Mobile Safari. (#9945)@remix-run/[email protected][email protected]v6.7.0Compare Source
Minor Changes
unstable_useBlockerhook for blocking navigations within the app's location origin (#9709)unstable_usePrompthook for blocking navigations within the app's location origin (#9932)preventScrollResetprop to<Form>(#9886)Patch Changes
useBeforeUnload(#9709)@remix-run/[email protected][email protected]v6.6.2Compare Source
Patch Changes
useIdconsistency during SSR (#9805)[email protected]v6.6.1Compare Source
Patch Changes
@remix-run/[email protected][email protected]v6.6.0Compare Source
Minor Changes
useBeforeUnload()hook (#9664)unstable_prefix fromcreateStaticHandler/createStaticRouter/StaticRouterProvider(#9738)Patch Changes
Errorobjects fromStaticRouterProvider(#9664)<Form method>anduseSubmitmethod values (#9664)hydrationData(#9664)<button formmethod>form submission overriddes (#9664)@remix-run/[email protected][email protected]v6.5.0Compare Source
Patch Changes
[email protected]@remix-run/[email protected]v6.4.5Compare Source
Patch Changes
@remix-run/[email protected][email protected]v6.4.4Compare Source
Patch Changes
NavLinkand descendant<Routes>(#9589, #9647)ErrorResponseinstances when using built-in hydration (#9593)basenamein static data routers (#9591)@remix-run/[email protected][email protected]v6.4.3Compare Source
Patch Changes
createHashRouter(#9409)indexroutes with apathinuseResolvedPath(#9486)relative=pathprop onNavLink(#9453)NavLinkbehavior for root urls (#9497)@remix-run/[email protected][email protected]v6.4.2Compare Source
Patch Changes
basenameinuseFormAction(#9352)RouteObject/RoutePropstypes to surface the error in TypeScript. (#9366)[email protected]@remix-run/[email protected]v6.4.1Compare Source
Patch Changes
[email protected]@remix-run/[email protected]v6.4.0Compare Source
Whoa this is a big one!
6.4.0brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the docs, especially the feature overview and the tutorial.New APIs
createMemoryRouter/createBrowserRouter/createHashRouter<RouterProvider>loaderand mutate with a RouteactionerrorElement<Form>componentuseFetcher()deferandAwait<ScrollRestoration>New Features
<Link relative="path">(#9160)Bug Fixes
useLocationreturns the scoped location inside a<Routes location>component (#9094)<Link replace>prop if it is defined (#8779)Updated Dependencies
[email protected]v6.3.0: [email protected]Compare Source
What's Changed
New Contributors
Full Changelog: remix-run/react-router@v6.2.2...v6.3.0
v6.2.2Compare Source
What's Changed
🐛 Bug Fixes
New Contributors
Configuration
📅 Schedule: Branch creation - "before 8am on the first day of the month" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.