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

build(deps): bump @reduxjs/toolkit from 1.8.5 to 1.9.0 #657

Merged
merged 2 commits into from
Nov 17, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 15, 2022

Related to #503
Bumps @reduxjs/toolkit from 1.8.5 to 1.9.0.

Release notes

Sourced from @​reduxjs/toolkit's releases.

v1.9.0

This feature release adds several new options for RTK Query's createApi and fetchBaseQuery APIs, adds a new upsertQueryData util, rewrites RTKQ's internals for improved performance, adds a new autoBatchEnhancer, deprecates the "object" syntax for createReducer and createSlice.extraReducers, deprecates and removes broken utils for getting running query promises, improves TS inference, exports additional types, and fixes a number of reported issues.

npm i @reduxjs/toolkit@latest
yarn add @​reduxjs/toolkit@​latest

We plan to start work on RTK 2.0 in the next few weeks. RTK 2.0 will focus on dropping legacy build compatibility and deprecated APIs, with some potential new features. See the linked discussion thread and give us feedback on ideas!

Deprecations and Removals

Object Argument for createReducer and createSlice.extraReducers

RTK's createReducer API was originally designed to accept a lookup table of action type strings to case reducers, like { "ADD_TODO" : (state, action) => {} }. We later added the "builder callback" form to allow more flexibility in adding "matchers" and a default handler, and did the same for createSlice.extraReducers.

We intend to remove the "object" form for both createReducer and createSlice.extraReducers in RTK 2.0. The builder callback form is effectively the same number of lines of code, and works much better with TypeScript.

Starting with this release, RTK will print a one-time runtime warning for both createReducer and createSlice.extraReducers if you pass in an object argument.

As an example, this:

const todoAdded = createAction('todos/todoAdded');
createReducer(initialState, {
[todoAdded]: (state, action) => {}
})
createSlice({
name,
initialState,
reducers: {/* case reducers here */},
extraReducers: {
[todoAdded]: (state, action) => {}
}
})

should be migrated to:

createReducer(initialState, builder => {
  builder.addCase(todoAdded, (state, action) => {})
})
createSlice({
name,
</tr></table>

... (truncated)

Commits
  • f7a8282 Release 1.9.0
  • 2425f02 Merge pull request #2401 from reduxjs/v1.9-integration
  • ed75be0 Merge pull request #2859 from reduxjs/feature/final-v1.9-tweaks
  • 5e4ad31 Bump dependencies
  • 8f30d43 Add TS 4.9 RC to the test matrix
  • 35f7e6d Switch autobatch default method to 'raf'
  • 48fe9e1 Release 1.9.0-rc.1
  • fdc1c50 Merge pull request #2857 from reduxjs/feature/autobatch-timing
  • f178b94 Make autobatching notification queueing configurable
  • b12b22c Merge branch 'master' into v1.9-integration
  • 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 chore Refactor, rename, cleanup, etc. dependencies Pull requests that update a dependency file labels Nov 15, 2022
@dependabot dependabot bot requested a review from a team November 15, 2022 21:09
@tthvo
Copy link
Member

tthvo commented Nov 16, 2022

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-1.9.0 branch from 5c6fa48 to 4851779 Compare November 16, 2022 20:46
@andrewazores
Copy link
Member

@tthvo anything interesting in those release notes, new features we could take advantage of and refactor our existing Redux logic?

@andrewazores
Copy link
Member

@dependabot rebase

Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 1.8.5 to 1.9.0.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@v1.8.5...v1.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-1.9.0 branch from 4851779 to 5612cd9 Compare November 17, 2022 02:59
@github-actions
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@tthvo
Copy link
Member

tthvo commented Nov 17, 2022

@tthvo anything interesting in those release notes, new features we could take advantage of and refactor our existing Redux logic?

Hi, looking like we are already following the latest practice. So, not really anything to update at the moment. The new commit i push was just to make sure value is added to unknown filter key/category.

@andrewazores andrewazores merged commit e5f5d16 into main Nov 17, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/reduxjs/toolkit-1.9.0 branch November 17, 2022 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Refactor, rename, cleanup, etc. dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants