Update dependency react-redux to v9.0.4 #121

Merged
romanjaros merged 1 commit from renovate/react-redux-9.x into master 2023-12-16 10:31:17 +01:00
Member

This PR contains the following updates:

Package Type Update Change
react-redux dependencies patch 9.0.2 -> 9.0.4

Release Notes

reduxjs/react-redux (react-redux)

v9.0.4

Compare Source

This bugfix release updates the React Native peer dependency to be >= 0.69, to better reflect the need for React 18 compat and (hopefully) resolve issues with the npm package manager throwing peer dep errors on install.

What's Changed

Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4

v9.0.3

Compare Source

This bugfix release drops the ReactDOM / React Native specific use of render batching, as React 18 now automatically batches, and updates the React types dependencies

Changelog

Batching Dependency Updates

React-Redux has long depended on React's unstable_batchedUpdates API to help batch renders queued by Redux updates. It also re-exported that method as a util named batch.

However, React 18 now auto-batches all queued renders in the same event loop tick, so unstable_batchedUpdates is effectively a no-op.

Using unstable_batchedUpdates has always been a pain point, because it's exported by the renderer package (ReactDOM or React Native), rather than the core react package. Our prior implementation relied on having separate batch.ts and batch.native.ts files in the codebase, and expecting React Native's bundler to find the right transpiled file at app build time. Now that we're pre-bundling artifacts in React-Redux v9, that approach has become a problem.

Given that React 18 already batches by default, there's no further need to continue using unstable_batchedUpdates internally, so we've removed our use of that and simplified the internals.

We still export a batch method, but it's effectively a no-op that just immediately runs the given callback, and we've marked it as @deprecated.

We've also updated the build artifacts and packaging, as there's no longer a need for an alternate-renderers entry point that omits batching, or a separate artifact that imports from "react-native".

What's Changed

Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.2...v9.0.3


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [react-redux](https://github.com/reduxjs/react-redux) | dependencies | patch | [`9.0.2` -> `9.0.4`](https://renovatebot.com/diffs/npm/react-redux/9.0.2/9.0.4) | --- ### Release Notes <details> <summary>reduxjs/react-redux (react-redux)</summary> ### [`v9.0.4`](https://github.com/reduxjs/react-redux/releases/tag/v9.0.4) [Compare Source](https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4) This **bugfix release** updates the React Native peer dependency to be `>= 0.69`, to better reflect the need for React 18 compat and (hopefully) resolve issues with the `npm` package manager throwing peer dep errors on install. ##### What's Changed - Allow react-native newer than 0.69 as peer dependency by [@&#8203;R3DST0RM](https://github.com/R3DST0RM) in https://github.com/reduxjs/react-redux/pull/2107 **Full Changelog**: https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4 ### [`v9.0.3`](https://github.com/reduxjs/react-redux/releases/tag/v9.0.3) [Compare Source](https://github.com/reduxjs/react-redux/compare/v9.0.2...v9.0.3) This **bugfix release** drops the ReactDOM / React Native specific use of render batching, as React 18 now automatically batches, and updates the React types dependencies #### Changelog ##### Batching Dependency Updates React-Redux has long depended on React's `unstable_batchedUpdates` API to help batch renders queued by Redux updates. It also re-exported that method as a util named `batch`. However, React 18 now auto-batches all queued renders in the same event loop tick, so `unstable_batchedUpdates` is effectively a no-op. Using `unstable_batchedUpdates` has always been a pain point, because it's exported by the renderer package (ReactDOM or React Native), rather than the core `react` package. Our prior implementation relied on having separate `batch.ts` and `batch.native.ts` files in the codebase, and expecting React Native's bundler to find the right transpiled file at app build time. Now that we're pre-bundling artifacts in React-Redux v9, that approach has become a problem. Given that React 18 already batches by default, there's no further need to continue using `unstable_batchedUpdates` internally, so we've removed our use of that and simplified the internals. We still export a `batch` method, but it's effectively a no-op that just immediately runs the given callback, and we've marked it as `@deprecated`. We've also updated the build artifacts and packaging, as there's no longer a need for an `alternate-renderers` entry point that omits batching, or a separate artifact that imports from `"react-native"`. #### What's Changed - Drop renderer-specific batching behavior and deprecate `batch` by [@&#8203;markerikson](https://github.com/markerikson) in https://github.com/reduxjs/react-redux/pull/2104 - Drop `@types/react-dom` and lower `@types/react` to min needed by [@&#8203;markerikson](https://github.com/markerikson) in https://github.com/reduxjs/react-redux/pull/2105 **Full Changelog**: https://github.com/reduxjs/react-redux/compare/v9.0.2...v9.0.3 </details> --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42MC4yIiwidXBkYXRlZEluVmVyIjoiMzcuNjAuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
mr.renovate added 1 commit 2023-12-10 22:33:11 +01:00
Update dependency react-redux to v9.0.3
All checks were successful
forgejo/Procyon/seedling/pipeline/pr-master This commit looks good
forgejo/Procyon/seedling/pipeline/head This commit looks good
130d64ca6f
requested review from romanjaros 2023-12-10 22:33:11 +01:00
mr.renovate changed title from Update dependency react-redux to v9.0.3 to Update dependency react-redux to v9.0.4 2023-12-11 18:33:27 +01:00
mr.renovate force-pushed renovate/react-redux-9.x from 130d64ca6f to 4e1e96a662 2023-12-11 18:33:29 +01:00 Compare
romanjaros merged commit 06d4458291 into master 2023-12-16 10:31:17 +01:00
romanjaros deleted branch renovate/react-redux-9.x 2023-12-16 10:31:17 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: procyon/seedling#121
No description provided.