[Snyk] Upgrade redux-starter-kit from 0.4.3 to 0.9.1 #4
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.
Snyk has created this PR to upgrade redux-starter-kit from 0.4.3 to 0.9.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.Release notes
Package name: redux-starter-kit
The switch to TSDX accidentally dropped the re-export of types like
Action
from Redux.Changelog
v0.9.0...v0.9.1
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...v0.9.0
0.9.0-alpha.1
0.9.0-alpha.0
This patch release fixes a couple small cross-version TypeScript issues that popped up in 0.8.0.
Changelog
v0.8.0...v0.8.1
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)v0.7.0...v0.8.0
Read more
One of the major limitations of RSK thus far is that the generated action creators only accept a single argument, which becomes the
payload
of the action. There's been no way to do things like:meta
, which is commonly used as part of the "Flux Standard Action" conventionThat also means that the code dispatching the action has been entirely responsible for determining the correct shape of the payload.
This release adds the ability to pass in a "prepare" callback to
createAction
. The prepare callback must return an object containing apayload
field, and may include ameta
field as well. All arguments that were passed to the action creator will be passed into the prepare callback:createSlice
has also been updated to enable customizing the auto-generated action creators as well. Instead of passing a reducer function directly as the value inside thereducers
object, pass an object containing{reducer, prepare}
:This resolves the related issues of #146 and #148 .
Changes
v0.6.2...v0.6.3
0.6.2
Read more
Commit messages
Package name: redux-starter-kit
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs