fix(deps): update dependency redux-starter-kit to ^0.9.0 #362
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.7.0
->^0.9.0
Release Notes
reduxjs/redux-starter-kit (redux-starter-kit)
v0.9.1
Compare Source
The switch to TSDX accidentally dropped the re-export of types like
Action
from Redux.Changelog
d70dc31
v0.9.0
Compare Source
This release contains only build tooling changes and package updates. We've switched our build setup from a homegrown Rollup config to use TSDX instead. We're also running CI tests against multiple versions of TypeScript to try to prevent any future type changes that might affect older versions.
As part of the TSDX changes, the published package now contains the types in a single combined
index.d.ts
file instead of separate files, which may work better in certain build tooling setups.In the process, we've also updated Immer from 2.1.5 to 4.0.1. This primarily adds auto-freezing of all state objects in development, but shouldn't have any actual changes for your code. See the Immer release notes for more details.
Barring any new issues, this will likely be the last point release before 1.0 release candidates in the next couple days.
Changelog
v0.8.1
Compare Source
This patch release fixes a couple small cross-version TypeScript issues that popped up in 0.8.0.
Changelog
v0.8.0
Compare Source
This release contains a couple breaking changes, including one that will affect almost all existing users. The plan is for these to be the final breaking changes before 1.0 is released, and that 1.0 will hopefully be out within the next couple weeks.
Breaking Changes
createSlice
Now Requires aname
FieldSo far,
createSlice
has accepted an optional field calledslice
, which is used as the prefix for action types generated by that slice:The
slice
field has been changed toname
, and is now required to be a non-empty string.This removes cases where multiple slices could have accidentally generated identical action types by leaving out the slice name while having similar reducer names. The field name change from
slice
toname
was made to clarify what the field means.Migration: change all uses of
slice
toname
, and addname
to anycreateSlice()
calls that didn't specify it already.createAction
Defaults to avoid
Payload TypePreviously,
createAction("someType")
would default to allowing a payload type ofany
when used with TypeScript. This has been changed to default tovoid
instead. This means that you must specify the type of the payload, such ascreateAction<string>("someType")
.Note that this is not necessary when using
createSlice
, as it already infers the correct payload types based on your reducer functions.Migration: ensure that any calls to
createAction()
explicitly specify the payload type as a generic.Other Changes
createSlice
Exports the Case Reducer FunctionscreateSlice
already returned an object containing the generated slice reducer function and the generated action creators. It now also includes all of the provided case reducers in a field calledcaseReducers
.Notes
Special thanks to @phryneas for coaching me through finally starting to get a vague grasp on some very complicated TS types :)
Changelog
void
instead ofany
for undefined payloads (@Krisztiaan , @markerikson - #174)Configuration
📅 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.