Open renovate[bot] opened 3 weeks ago
Renovate 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:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: react-redux@9.1.2
npm error Found: @types/react@18.0.28
npm error node_modules/@types/react
npm error dev @types/react@"18.0.28" from the root project
npm error @types/react@"*" from @types/hoist-non-react-statics@3.3.1
npm error node_modules/@types/hoist-non-react-statics
npm error @types/hoist-non-react-statics@"^3.3.1" from @expo/react-native-action-sheet@4.1.0
npm error node_modules/@expo/react-native-action-sheet
npm error @expo/react-native-action-sheet@"4.1.0" from the root project
npm error 1 more (@frogpond/markdown)
npm error 4 more (@types/react-native, @types/react-native-button, ...)
npm error
npm error Could not resolve dependency:
npm error peerOptional @types/react@"^18.2.25" from react-redux@9.1.2
npm error node_modules/react-redux
npm error react-redux@"9.1.2" from the root project
npm error peerOptional react-redux@"^7.2.1 || ^8.1.3 || ^9.0.0" from @reduxjs/toolkit@2.2.7
npm error node_modules/@reduxjs/toolkit
npm error @reduxjs/toolkit@"2.2.7" from the root project
npm error
npm error Conflicting peer dependency: @types/react@18.3.5
npm error node_modules/@types/react
npm error peerOptional @types/react@"^18.2.25" from react-redux@9.1.2
npm error node_modules/react-redux
npm error react-redux@"9.1.2" from the root project
npm error peerOptional react-redux@"^7.2.1 || ^8.1.3 || ^9.0.0" from @reduxjs/toolkit@2.2.7
npm error node_modules/@reduxjs/toolkit
npm error @reduxjs/toolkit@"2.2.7" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-09-12T13_31_00_232Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-09-12T13_31_00_232Z-debug-0.log
This PR contains the following updates:
1.9.7
->2.2.7
8.1.3
->9.1.2
Release Notes
reduxjs/redux-toolkit (@reduxjs/toolkit)
### [`v2.2.7`](https://redirect.github.com/reduxjs/redux-toolkit/releases/tag/v2.2.7) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.6...v2.2.7) This **bugfix release** fixes issues with "TS type portability" errors, improves build artifact tree shaking behavior, and exports some additional TS types. #### Changelog ##### TS Type Portability We've had a slew of issues reported around "TS type portability" errors, such as: - [#1806](https://redirect.github.com/reduxjs/redux-toolkit/issues/1806) - [#3962](https://redirect.github.com/reduxjs/redux-toolkit/issues/3962) - [#3983](https://redirect.github.com/reduxjs/redux-toolkit/issues/3983) The error messages are typically along the lines of: > Type error: The inferred type of `'configureStore'` cannot be named without a reference to `'@reduxjs/toolkit/node_modules/redux'`. This is likely not portable. A type annotation is necessary. [@aryaemami59](https://redirect.github.com/aryaemami59) did some deep investigation and concluded these were due to a mixture of using `interface` instead of `type` in most places, not pre-bundling our TS typedefs, and not exporting some of the unique symbols we use internally. Arya put together a highly detailed writeup and set of fixes in [ #4467: Fix: TypeScript Type Portability Issues](#4467), and that appears to resolve all of those issues we've seen. Thank you! ##### Other Changes Arya also did significant work to improve RTK's treeshaking, tweaking internal definitions to let bundlers better separate out unused code. We've exported additional types like `UpdateDefinitions` and `RetryOptions`, per request. `listenerMiddleware.withTypes()` methods now allow passing in an `ExtraArgument` generic. #### What's Changed - Fix: TypeScript Type Portability Issues by [@aryaemami59](https://redirect.github.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4467](https://redirect.github.com/reduxjs/redux-toolkit/pull/4467) - Export UpdateDefinitions from toolkit/query by [@joekrill](https://redirect.github.com/joekrill) in [https://github.com/reduxjs/redux-toolkit/pull/4519](https://redirect.github.com/reduxjs/redux-toolkit/pull/4519) - feat: Adds ExtraArgument to withTypes for listenerMiddleware. by [@antondalgren](https://redirect.github.com/antondalgren) in [https://github.com/reduxjs/redux-toolkit/pull/4517](https://redirect.github.com/reduxjs/redux-toolkit/pull/4517) - Improve treeshakeability of build artifacts by [@aryaemami59](https://redirect.github.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4435](https://redirect.github.com/reduxjs/redux-toolkit/pull/4435) - Export RetryOptions by [@markerikson](https://redirect.github.com/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/4529](https://redirect.github.com/reduxjs/redux-toolkit/pull/4529) **Full Changelog**: https://github.com/reduxjs/redux-toolkit/compare/v2.2.6...v2.2.7 ### [`v2.2.6`](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.5...a9362fbcec6cb66bdb3e6dc52bbf3d69ea6f2b22) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.5...v2.2.6) ### [`v2.2.5`](https://redirect.github.com/reduxjs/redux-toolkit/releases/tag/v2.2.5) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.4...v2.2.5) This **bugfix release** fixes an issue in the recent `createEntityAdapter` sorting perf improvements that could (in specific cases) cause Immer to throw an error when trying to read a plain JS value instead of a proxy-wrapped value. #### What's Changed - Fix missed spot where use of `current` may fail if the value is not a draft by [@markerikson](https://redirect.github.com/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/4412](https://redirect.github.com/reduxjs/redux-toolkit/pull/4412) **Full Changelog**: https://github.com/reduxjs/redux-toolkit/compare/v2.2.4...v2.2.5 ### [`v2.2.4`](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.3...72b3ac65a2adc510280f19ec6689aebbf2bf1df4) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.3...v2.2.4) ### [`v2.2.3`](https://redirect.github.com/reduxjs/redux-toolkit/releases/tag/v2.2.3) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.2...v2.2.3) This minor release fixes the types for functions that accept a React Context instance to match the [changes in React Redux v9](https://redux-toolkit.js.org/usage/migrating-rtk-2#custom-context-typing). #### What's Changed - Update React Redux dependency to v9, and update docs to use `.withTypes` by [@aryaemami59](https://redirect.github.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4308](https://redirect.github.com/reduxjs/redux-toolkit/pull/4308) **Full Changelog**: https://github.com/reduxjs/redux-toolkit/compare/v2.2.2...v2.2.3 ### [`v2.2.2`](https://redirect.github.com/reduxjs/redux-toolkit/releases/tag/v2.2.2) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.1...v2.2.2) This patch release fixes an incorrect build setting for the `legacy-esm` artifacts, and fixes an issue with RTKQ query hooks didn't always remove the cache entries if arguments were changed rapidly. #### Changes ##### `legacy-esm` Artifact Transpilation The `legacy-esm` build artifacts are intended for use by Webpack 4. Those were *supposed* to be transpiled to target `"es2017"`, but were in fact still set to target `"esnext"` - an oversight during the 2.0 development cycle. This release fixes that setting, so those artifacts are now correctly transpiled. ##### Other Fixes RTKQ query hooks now handle additional actions around argument changes that should result in cache entries being removed. Additionally, 2.2.1 contained a fix to an incorrectly named type: `TypedUseMutationTrigger` is now `TypedMutationTrigger`. #### What's Changed - rename TypedUseMutationTrigger to TypedMutationTrigger, and add deprecated alias by [@EskiMojo14](https://redirect.github.com/EskiMojo14) in [https://github.com/reduxjs/redux-toolkit/pull/4204](https://redirect.github.com/reduxjs/redux-toolkit/pull/4204) - Fixed memory leak in rapid hook arg changing by [@riqts](https://redirect.github.com/riqts) in [https://github.com/reduxjs/redux-toolkit/pull/4268](https://redirect.github.com/reduxjs/redux-toolkit/pull/4268) - Fix incorrect legacy-esm target by [@markerikson](https://redirect.github.com/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/4284](https://redirect.github.com/reduxjs/redux-toolkit/pull/4284) **Full Changelog**: https://github.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.2 ### [`v2.2.1`](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.1) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.1) ### [`v2.2.0`](https://redirect.github.com/reduxjs/redux-toolkit/releases/tag/v2.2.0) [Compare Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.1.0...v2.2.0) This *minor release*: - Adds a second parameter to `entityAdapter.getInitialState(additionalProps, entities)` to allow prefilling state - Equivalent to `entityAdapter.setAll(entityAdapter.getInitialState(additionalProps), entities)` - First parameter can be `undefined` if no additional properties are desired - Allows initialising `combineSlices` with no static reducers - Previously `const combinedReducer = combineSlices().withLazyLoadedSlicesConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 was generated by Mend Renovate. View the repository job log.