Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @reduxjs/toolkit from 1.8.3 to 1.8.4 in /ps5-mqtt #42

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 19, 2022

Bumps @reduxjs/toolkit from 1.8.3 to 1.8.4.

Release notes

Sourced from @​reduxjs/toolkit's releases.

v1.8.4

This bugfix release adds exported TS types for RTKQ hooks for use in wrapping logic, adds useDebugValue to the hooks to improve display in the React DevTools, updates the inlined types for the Redux DevTools options, and fixes an issue in createEntityAdapter that could result in duplicate IDs being stored.

Changelog

RTKQ Hook Result Types

RTK's types heavily rely on inference to minimize the amount of type info users have to provide. However, this can also make it difficult to write functions that wrap calls to RTK APIs.

Some users have asked to have types that help them write "higher-order hooks". RTK now exports types that represent "the return object for a query/mutation hook with a given value": TypedUseQueryHookResult and TypedUseMutationResult. Both require <ResultType, QueryArg, BaseQuery> as generics, like this:

const baseQuery = fetchBaseQuery({url: "https://some.server"});
type CustomHookResult = TypedUseQueryHookResult<MyResultObject, MyArgObject, typeof baseQuery>
const useMyCustomHook = (arg: MyArgObject) : CustomHookResult => {
return api.useGetSomeDataQuery(arg);
}

Redux DevTools Options Fixes

As of Redux DevTools 3.0, some of field names for custom DevTools options have changed to actionsAllowlist and actionsDenylist. Since we inline the types instead of having a separate dependency, we've updated our TS types to match that. No runtime behavior was changed.

Other Changes

RTKQ hooks now use useDebugValue to give a better preview of the current value in the React DevTools "Component" tab.

The <ApiProvider> component now does a better job of registering and cleaning up focus listeners.

Fixed a bug with createEntityAdapter that could allow duplicate IDs to be added depending on update parameters.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v1.8.3...v1.8.4

Commits
  • f768913 Release 1.8.4
  • 62f341c Merge pull request #2580 from reduxjs/feature/rtkq-pretyped-hooks
  • 2a66246 add types for manually typing hook results in userland code (#2276)
  • d0048ab Enforce vX.y naming for RTK tags
  • 064e9cc Merge pull request #2500 from kaankeskin/feature/2492-useDebugValue-in-hooks
  • 32cf6d3 Merge pull request #2475 from huyenltnguyen/patch-1
  • 42f8e3b Release @​rtk-query/codegen-openapi 1.0.0
  • 937a58d Release @​rtk-query/codegen-openapi 1.0.0-alpha.2
  • 07eec30 Merge pull request #2380 from reduxjs/prepare-codegen-1.1
  • 37db532 Merge pull request #2572 from Vpr99/create-reducer-typo
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 19, 2022
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ps5-mqtt/reduxjs/toolkit-1.8.4 branch from 7904295 to dfbb9d8 Compare August 19, 2022 16:00
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 22, 2022

Superseded by #48.

@dependabot dependabot bot closed this Aug 22, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ps5-mqtt/reduxjs/toolkit-1.8.4 branch August 22, 2022 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants