openfoodfacts / hunger-games

One click Mini-Games for Open Food Facts
https://hunger.openfoodfacts.org
23 stars 39 forks source link

chore(deps): bump the redux group with 2 updates #947

Closed dependabot[bot] closed 5 months ago

dependabot[bot] commented 5 months ago

Bumps the redux group with 2 updates: @reduxjs/toolkit and react-redux.

Updates @reduxjs/toolkit from 1.9.7 to 2.2.3

Release notes

Sourced from @​reduxjs/toolkit's releases.

v2.2.3

This minor release fixes the types for functions that accept a React Context instance to match the changes in React Redux v9.

What's Changed

Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.2...v2.2.3

v2.2.2

This patch release fixes an incorrect build setting for the legacy-esm artifacts, and fixes an issue with RTKQ query hooks didn't always remove the cache entries if arguments were changed rapidly.

Changes

legacy-esm Artifact Transpilation

The legacy-esm build artifacts are intended for use by Webpack 4. Those were supposed to be transpiled to target "es2017", but were in fact still set to target "esnext" - an oversight during the 2.0 development cycle. This release fixes that setting, so those artifacts are now correctly transpiled.

Other Fixes

RTKQ query hooks now handle additional actions around argument changes that should result in cache entries being removed.

Additionally, 2.2.1 contained a fix to an incorrectly named type: TypedUseMutationTrigger is now TypedMutationTrigger.

What's Changed

Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.2

v2.2.0

This minor release:

  • Adds a second parameter to entityAdapter.getInitialState(additionalProps, entities) to allow prefilling state
    • Equivalent to entityAdapter.setAll(entityAdapter.getInitialState(additionalProps), entities)
    • First parameter can be undefined if no additional properties are desired
  • Allows initialising combineSlices with no static reducers
    • Previously const combinedReducer = combineSlices().withLazyLoadedSlices<LazyLoadedSlices>() would have thrown an error
    • Now returns a "no-op" reducer that just returns an empty object until first reducer injected
  • Allows a new 'throw' value for overrideExisting in injectEndpoints, which throws an error if a definition is injected with a name which is already used
  • Exports more type helpers for RTKQ hook and trigger types
  • Exports types related to overriding result types in enhanceEndpoints
  • Fixes state inference for injected slices when undeclared (i.e. not in LazyLoadedSlices)
  • Adds a action.meta.arg.isPrefetch value to query thunk actions when prefetched

What's Changed

... (truncated)

Commits
  • 213b5f4 Release 2.2.3
  • cccf40a Merge pull request #4308 from aryaemami59/TypedUseSelectorHook-to-withTypes
  • 5a01e09 remove unnecessary type param
  • 63f708f add custom context test for apiprovider
  • 7e854c4 change ApiProvider context argument to match
  • 8b5d210 Make parameter of createDispatchWithMiddlewareHookFactory nullable
  • dff4cd2 Fix nullable react-redux context references
  • 1d8c4b7 Bump react-redux to 9.1.0
  • 57ef6ae Replace all instances of TypedUseSelectorHook with .withTypes
  • 1afcdd4 Merge pull request #4286 from CodeByZack/add-missing-quote
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by phryneas, a new releaser for @​reduxjs/toolkit since your current version.


Updates react-redux from 8.1.3 to 9.1.1

Release notes

Sourced from react-redux's releases.

v9.1.1

This bugfix release fixes an issue with connect and React Native caused by changes to our bundling setup in v9. Nested connect calls should work correctly now.

What's Changed

Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.1.0...v9.1.1

v9.1.0

This minor release adds a new syntax for pre-typing hooks.

.withTypes

Previously, 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 .withTypes method to each of these hooks, analogous to the .withTypes method found on Redux Toolkit's createAsyncThunk.

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

New Contributors

Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.4...v9.1.0

... (truncated)

Commits
  • d44ff74 Release 9.1.1
  • 0396da3 Merge pull request #2156 from aryaemami59/fix-RN-useIsomorphicLayoutEffect-issue
  • fd2c5c6 Remove useIsomorphicLayoutEffect.native.ts
  • 691b1a2 Remove nested ternary
  • 5ba0d93 Fix useIsomorphicLayoutEffect in React Native environments
  • 05b55c0 Remove no-resolution flag and add --exclude-entrypoints when running `are...
  • 098f862 Use the right type
  • 1c9bd5d Add .gitattributes file to make line endings more consistent (#2134)
  • 1de9d66 Bump follow-redirects from 1.14.4 to 1.15.6 in /website (#2143)
  • 16dc0ed Cache the examples and speed up test runs (#2140)
  • Additional commits viewable 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 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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore major version` will 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 minor version` will 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 ` 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 ` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
netlify[bot] commented 5 months ago

Deploy Preview for warm-cannoli-79bbb2 ready!

Name Link
Latest commit 1089f56cf4a94d982c33610050a55f9193bf4d5d
Latest deploy log https://app.netlify.com/sites/warm-cannoli-79bbb2/deploys/6631aaa6692e6d0008c62c79
Deploy Preview https://deploy-preview-947--warm-cannoli-79bbb2.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

dependabot[bot] commented 5 months ago

Superseded by #958.