infinitered / reactotron-redux

The redux plugin for reactotron that allows tracking redux actions and state
MIT License
10 stars 3 forks source link

chore(deps): update dependency redux to v4.1.1 #29

Open renovate[bot] opened 4 years ago

renovate[bot] commented 4 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
redux (source) 4.0.1 -> 4.1.1 age adoption passing confidence

Release Notes

reduxjs/redux ### [`v4.1.1`](https://togithub.com/reduxjs/redux/releases/v4.1.1) [Compare Source](https://togithub.com/reduxjs/redux/compare/v4.1.0...v4.1.1) Just a small fix for Safari users in development mode. #### [Changes](https://togithub.com/reduxjs/redux/compare/v4.1.0...v4.1.1) - Move miniKindOf out of if scope to fix ES5 compatibility issue ([#​4090](https://togithub.com/reduxjs/redux/issues/4090) by [@​embeddedt](https://togithub.com/embeddedt)) ### [`v4.1.0`](https://togithub.com/reduxjs/redux/releases/v4.1.0) [Compare Source](https://togithub.com/reduxjs/redux/compare/v4.0.5...v4.1.0) This release shrinks our bundle size via error message extraction, updates several error messages for clarity, and optimizes our list of runtime dependencies. Overall, version 4.1 shrinks from 2.6K min+gz to 1.6K min+gz thanks to these changes. Be sure to check out [the Redux Toolkit 1.6 alpha containing our new "RTK Query" data fetching APIs!](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v1.6.0-alpha.1) It also includes Redux 4.1 as a dependency. ##### Changelog ##### Error Message Extraction and Improvements We now extract all of our error messages from production builds in order to save on bundle size, using [a technique inspired from React's error code extraction](https://reactjs.org/blog/2016/07/11/introducing-reacts-error-code-system.html). The error messages will still show as normal in development, but in production they will reference a specific numeric error code and provide a link to a Redux docs page that has the full error message. An example of this is: https://redux.js.org/errors?code=5 , which shows the "can't subscribe while reducers are executing" error. The error code extraction saves about 800 bytes out of a production build. Thanks to [@​andrewmcgivery](https://togithub.com/andrewmcgivery) for doing all the hard work on implementing the error extraction! We've also updated many of our error messages to provide additional details at runtime about what happened, especially runtime type checks such as "actions must be plain objects". They now provide a more specific type for the unexpected value, such as indicating `promise` or `function`: ```js expect(() => store.dispatch(() => {})).toThrow( /the actual type was: 'function'/ ) expect(() => store.dispatch(new Date())).toThrow( /the actual type was: 'date'/ ) ``` ##### Dependency Updates We've updated the list of runtime dependencies for Redux: - We inlined the `symbol-observable` polyfill. This shrinks bundle size by a few bytes, - We've removed the legacy `loose-envify` dependency, which was only ever needed by Browserify users. If you still happen to be using Browserify, please review your build settings and see if you need to make any updates. - We now explicitly depend on `@babel/runtime` to extract some additional helpers out of our bundle. It's likely that your app already is pulling in those helpers anyway, so that removes some potential duplication. ##### Typing Tweaks We've merged fixes for a couple edge cases in the 4.x TS typings related to state types. ##### [Changes](https://togithub.com/reduxjs/redux/compare/v4.0.5...v4.1.0) - Remove symbol-observable and loose-envify deps ([#​4058](https://togithub.com/reduxjs/redux/issues/4058) - [@​markerikson](https://togithub.com/markerikson)) - Port error extraction setup from master ([#​4057](https://togithub.com/reduxjs/redux/issues/4057) - [@​markerikson](https://togithub.com/markerikson)) - Port build dependencies from master into 4.x ([#​4056](https://togithub.com/reduxjs/redux/issues/4056) - [@​markerikson](https://togithub.com/markerikson)) - Rewrite Redux core error messages ([#​4055](https://togithub.com/reduxjs/redux/issues/4055) - [@​markerikson](https://togithub.com/markerikson)) - feat: mangle error codes to error indexes ([#​3920](https://togithub.com/reduxjs/redux/issues/3920) - [@​andrewmcgivery](https://togithub.com/andrewmcgivery)) - fix: Declare "EmptyObject" interface to wrap $CombinedState ([#​4031](https://togithub.com/reduxjs/redux/issues/4031) - [@​JacobLey](https://togithub.com/JacobLey)) - Only apply mapped types to un-branded types ([#​3805](https://togithub.com/reduxjs/redux/issues/3805) - [@​invliD](https://togithub.com/invliD)) ### [`v4.0.5`](https://togithub.com/reduxjs/redux/releases/v4.0.5) [Compare Source](https://togithub.com/reduxjs/redux/compare/v4.0.4...v4.0.5) This release includes a memory leak fix, and a fix for removing reducers with replaceReducer and combineReducers. There are also some TypeScript changes, which require version 3.5 or higher. This also removes our `DeepPartial` type, which wasn't intended to be a public API. If you need this type, you can find an equivalent of likely higher quality in the `utility-types` package. Speaking of TypeScript, we are done with converting the code to TypeScript on `master` and are looking to get some TS improvements in before launching 5.0. If you're interested in helping, feel free to submit a PR with anything you'd like to contribute. ##### [Changes](https://togithub.com/reactjs/redux/compare/v4.0.4...v4.0.5) - Clear current listeners on store unsubscribe ([#​3475](https://togithub.com/reduxjs/redux/issues/3475) by [@​dmitrysteblyuk](https://togithub.com/dmitrysteblyuk)) - Fix for combineReducers when replaceReducers removes a reducer ([#​3490](https://togithub.com/reduxjs/redux/issues/3490) by [@​anubhavgupta](https://togithub.com/anubhavgupta)) - *TypeScript:* Add strict type inference overload for combineReducers ([#​3484](https://togithub.com/reduxjs/redux/issues/3484) by [@​ChrisAckerman](https://togithub.com/ChrisAckerman)) - *TypeScript:* Preloaded state is now selectively partial (instead of deeply partial) ([#​3485](https://togithub.com/reduxjs/redux/issues/3485) by [@​ChrisAckerman](https://togithub.com/ChrisAckerman)) ### [`v4.0.4`](https://togithub.com/reduxjs/redux/releases/v4.0.4) [Compare Source](https://togithub.com/reduxjs/redux/compare/v4.0.3...v4.0.4) This is a republish of 4.0.3 with an updated version of Babel to fix [#​3468](https://togithub.com/reduxjs/redux/issues/3468) #### [Changes](https://togithub.com/reactjs/redux/compare/v4.0.3...v4.0.4) ### [`v4.0.3`](https://togithub.com/reduxjs/redux/releases/v4.0.3) [Compare Source](https://togithub.com/reduxjs/redux/compare/v4.0.2...v4.0.3) This is a quick revert of a change to our typings that broke compatibility. Apologies for the problems. Also, if you are experiencing type errors related to `[Symbol.observable]`, please ensure you have the same version of redux installed for all your dependencies with `npm ls redux`. #### [Changes](https://togithub.com/reactjs/redux/compare/v4.0.2...v4.0.3) - Reverts the change to `combineReducers`' type parameters ([#​3467](https://togithub.com/reduxjs/redux/issues/3467) by [@​timdorr](https://togithub.com/timdorr)) ### [`v4.0.2`](https://togithub.com/reduxjs/redux/releases/v4.0.2) [Compare Source](https://togithub.com/reduxjs/redux/compare/v4.0.1...v4.0.2) This is a very minor release with some nice improvements to our TypeScript type definitions. Enjoy! #### [Changes](https://togithub.com/reactjs/redux/compare/v4.0.1...v4.0.2) - Iterate in combineReducers using `for in` ([#​3371](https://togithub.com/reduxjs/redux/issues/3371) by [@​pvorona](https://togithub.com/pvorona)) - Fix `DeepPartial` type ([#​3369](https://togithub.com/reduxjs/redux/issues/3369) by [@​OliverJAsh](https://togithub.com/OliverJAsh)) - Add types for Observable interface ([#​3067](https://togithub.com/reduxjs/redux/issues/3067) by [@​pinyin](https://togithub.com/pinyin)) - Make reducer optional in JSDocs ([#​3408](https://togithub.com/reduxjs/redux/issues/3408) by [@​pingfengafei](https://togithub.com/pingfengafei)) - Infer action types from `combineReducers` ([#​3411](https://togithub.com/reduxjs/redux/issues/3411) by [@​appden](https://togithub.com/appden))

Configuration

📅 Schedule: 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 WhiteSource Renovate. View repository job log here.