Open renovate[bot] opened 2 months ago
Name | Link |
---|---|
Latest commit | a68182cf9bfefef900ad7b35b39d343c000f9a1b |
Latest deploy log | https://app.netlify.com/sites/nonebot-bison/deploys/66d6a04be4b8580008e6fb4c |
Deploy Preview | https://deploy-preview-592--nonebot-bison.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 85.45%. Comparing base (
68f7e3b
) to head (a68182c
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR contains the following updates:
^1.9.7
->^2.2.7
Release Notes
reduxjs/redux-toolkit (@reduxjs/toolkit)
### [`v2.2.7`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v2.2.7) [Compare Source](https://togithub.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://togithub.com/reduxjs/redux-toolkit/issues/1806) - [#3962](https://togithub.com/reduxjs/redux-toolkit/issues/3962) - [#3983](https://togithub.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://togithub.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://togithub.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4467](https://togithub.com/reduxjs/redux-toolkit/pull/4467) - Export UpdateDefinitions from toolkit/query by [@joekrill](https://togithub.com/joekrill) in [https://github.com/reduxjs/redux-toolkit/pull/4519](https://togithub.com/reduxjs/redux-toolkit/pull/4519) - feat: Adds ExtraArgument to withTypes for listenerMiddleware. by [@antondalgren](https://togithub.com/antondalgren) in [https://github.com/reduxjs/redux-toolkit/pull/4517](https://togithub.com/reduxjs/redux-toolkit/pull/4517) - Improve treeshakeability of build artifacts by [@aryaemami59](https://togithub.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4435](https://togithub.com/reduxjs/redux-toolkit/pull/4435) - Export RetryOptions by [@markerikson](https://togithub.com/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/4529](https://togithub.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://togithub.com/reduxjs/redux-toolkit/compare/v2.2.5...a9362fbcec6cb66bdb3e6dc52bbf3d69ea6f2b22) [Compare Source](https://togithub.com/reduxjs/redux-toolkit/compare/v2.2.5...v2.2.6) ### [`v2.2.5`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v2.2.5) [Compare Source](https://togithub.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://togithub.com/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/4412](https://togithub.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://togithub.com/reduxjs/redux-toolkit/compare/v2.2.3...72b3ac65a2adc510280f19ec6689aebbf2bf1df4) [Compare Source](https://togithub.com/reduxjs/redux-toolkit/compare/v2.2.3...v2.2.4) ### [`v2.2.3`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v2.2.3) [Compare Source](https://togithub.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://togithub.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4308](https://togithub.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://togithub.com/reduxjs/redux-toolkit/releases/tag/v2.2.2) [Compare Source](https://togithub.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://togithub.com/EskiMojo14) in [https://github.com/reduxjs/redux-toolkit/pull/4204](https://togithub.com/reduxjs/redux-toolkit/pull/4204) - Fixed memory leak in rapid hook arg changing by [@riqts](https://togithub.com/riqts) in [https://github.com/reduxjs/redux-toolkit/pull/4268](https://togithub.com/reduxjs/redux-toolkit/pull/4268) - Fix incorrect legacy-esm target by [@markerikson](https://togithub.com/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/4284](https://togithub.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://togithub.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.1) [Compare Source](https://togithub.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.1) ### [`v2.2.0`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v2.2.0) [Compare Source](https://togithub.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 - "before 4am on Monday" (UTC), 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.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.