build(deps): bump the redux group in /generators/react-native/templates with 4 updates
Bumps the redux group in /generators/react-native/templates with 4 updates: react-redux, redux, redux-saga and reduxsauce.
Updates react-redux from 8.1.3 to 9.1.0
Release notes
Sourced from react-redux's releases.
v9.1.0
This minor release adds a new syntax for pre-typing hooks.
.withTypesPreviously, the approach for "pre-typing" hooks with your app settings was a little varied. The result would look something like the below:
import type { TypedUseSelectorHook } from "react-redux" import { useDispatch, useSelector, useStore } from "react-redux" import type { AppDispatch, AppStore, RootState } from "./store"export const useAppDispatch: () => AppDispatch = useDispatch export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector export const useAppStore = useStore as () => AppStore
React Redux v9.1.0 adds a new
.withTypesmethod to each of these hooks, analogous to the.withTypesmethod found on Redux Toolkit'screateAsyncThunk.The setup now becomes:
import { useDispatch, useSelector, useStore } from "react-redux" import type { AppDispatch, AppStore, RootState } from "./store"export const useAppDispatch = useDispatch.withTypes<AppDispatch>() export const useAppSelector = useSelector.withTypes<RootState>() export const useAppStore = useStore.withTypes<AppStore>()
What's Changed
- Update hooks.md — reselect usage with multiple instances simplified by
@VorontsovIEin reduxjs/react-redux#2110- Modernize ESLint configuration by
@aryaemami59in reduxjs/react-redux#2115- Introduce pre-typed hooks via
hook.withTypes<RootState>()method by@aryaemami59in reduxjs/react-redux#2114New Contributors
@VorontsovIEmade their first contribution in reduxjs/react-redux#2110Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.4...v9.1.0
v9.0.4
This bugfix release updates the React Native peer dependency to be
>= 0.69, to better reflect the need for React 18 compat and (hopefully) resolve issues with thenpmpackage manager throwing peer dep errors on install.What's Changed
- Allow react-native newer than 0.69 as peer dependency by
@R3DST0RMin reduxjs/react-redux#2107Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4
v9.0.3
This bugfix release drops the ReactDOM / React Native specific use of render batching, as React 18 now automatically batches, and updates the React types dependencies
... (truncated)
Commits
4ebe6e9version 9.1.094fc5a3Merge pull request #2114 from aryaemami59/withTypes349e0f0Remove unusedTypedUseSelectorHookimports78cdeacMerge branch 'master' of https://github.com/reduxjs/react-redux into withTypes4b63c88Merge pull request #2115 from aryaemami59/update-dev-depsb3c8498Update.eslintrc.jsonto remove duplicate config7cf1383Addhooks.withTypes()to docs4360ff4Add JSDocs foruseStore8f84eb9ExportUseDispatchtype and organize exports0e60aa7Add JSDocs foruseDispatch- Additional commits viewable in compare view
Updates redux from 4.2.1 to 5.0.1
Release notes
Sourced from redux's releases.
v5.0.1
This patch release adjusts the
isPlainObjectutil to allow objects created viaObject.create(null), and fixes a type issue which accidentally made the store state type non-nullable.What's Changed
- fix(isPlainObject): support check Object.create(null) by
@zhe-hein reduxjs/redux#4633- fix(types/store): Unexpectedly narrowed return type of function
Store['getState']by@exuanboin reduxjs/redux#4638Full Changelog: https://github.com/reduxjs/redux/compare/v5.0.0...v5.0.1
v5.0.0
This major release:
- Converts the codebase to TypeScript
- Updates the packaging for better ESM/CJS compatibility and modernizes the build output
- Requires that
action.typemust be a string- Continues to mark
createStoreas deprecated- Deprecates the
AnyActiontype in favor of anUnknownActiontype that is used everywhere- Removes the
PreloadedStatetype in favor of a new generic argument for theReducertype.This release has breaking changes.
This release is part of a wave of major versions of all the Redux packages: Redux Toolkit 2.0, Redux core 5.0, React-Redux 9.0, Reselect 5.0, and Redux Thunk 3.0.
For full details on all of the breaking changes and other significant changes to all of those packages, see the "Migrating to RTK 2.0 and Redux 5.0" migration guide in the Redux docs.
[!NOTE] The Redux core, Reselect, and Redux Thunk packages are included as part of Redux Toolkit, and RTK users do not need to manually upgrade them - you'll get them as part of the upgrade to RTK 2.0. (If you're not using Redux Toolkit yet, please start migrating your existing legacy Redux code to use Redux Toolkit today!)
# RTK npm install @reduxjs/toolkit yarn add @reduxjs/toolkitStandalone
npm install redux yarn add redux
Changelog
ESM/CJS Package Compatibility
The biggest theme of the Redux v5 and RTK 2.0 releases is trying to get "true" ESM package publishing compatibility in place, while still supporting CJS in the published package.
The primary build artifact is now an ESM file,
dist/redux.mjs. Most build tools should pick this up. There's also a CJS artifact, and a second copy of the ESM file namedredux.legacy-esm.jsto support Webpack 4 (which does not recognize theexportsfield inpackage.json). Additionally, all of the build artifacts now live under./dist/in the published package.Modernized Build Output
We now publish modern JS syntax targeting ES2020, including optional chaining, object spread, and other modern syntax. If you need to
... (truncated)
Commits
50b0102format isPlainObject.ts66f955f5.0.1ffb02ebMerge pull request #4644 from reduxjs/publish-cid641945add me to FUNDING.yml7a2fa78Add publish CI workflowfa2d899Merge pull request #4638 from exuanbo/patch-19e8a320add type test105e389Merge pull request #4643 from ziayanj/patch-1f259bebUpdate why-rtk-is-redux-today.md3cd25e1Merge pull request #4642 from factiondavid/patch-1- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by phryneas, a new releaser for redux since your current version.
Updates redux-saga from 1.2.3 to 1.3.0
Release notes
Sourced from redux-saga's releases.
@redux-saga/core@1.3.0Minor Changes
- #2402
3867c02Thanks@Andarist! - Removed a dependency on Redux to decouple the project from the exact Redux version. This should fix the compatibility with recently released Redux 5.Patch Changes
[email protected]
Minor Changes
- #2402
3867c02Thanks@Andarist! - Removed a dependency on Redux to decouple the project from the exact Redux version. This should fix the compatibility with recently released Redux 5.Patch Changes
Commits
Updates reduxsauce from 1.2.1 to 1.3.0
Release notes
Sourced from reduxsauce's releases.
v1.3.0
1.3.0 (2023-12-29)
Bug Fixes
- build: fix develop workflow name (d4ca9f9)
- dependencies: Update dependencies including upgrading peer dependency to redux 5.x (45674b8)
Features
Commits
668140dchore(release): 1.3.0 [skip ci]6e63102chore(release): Merge pull request #148 from jkeam/develop5ff6c37feat(build): Remove travis config0bcab02feat(build): Add main build and deploymentd4ca9f9fix(build): fix develop workflow namef989f9efeat(build): add develop build workflowdb2818fchore(release): Merge pull request #147 from jkeam/develop45674b8fix(dependencies): Update dependencies including upgrading peer dependency to...- See full diff in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
@dependabot recreate
@dependabot recreate
Superseded by #1709.