iamstarkov / topics-manager

Serverless App to manage GitHub repos' topics
https://topics-manager.now.sh
6 stars 0 forks source link

Update dependency redux to v4.1.0 #161

Closed renovate[bot] closed 3 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.4 -> 4.1.0 age adoption passing confidence

Release Notes

reduxjs/redux ### [`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 - 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))

Configuration

📅 Schedule: "before 3am on the first day of the month" (UTC).

🚦 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.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/iamstarkov/topics-manager/ErnTrcY2dH2YBPoHXSuJJzCR8zHs
✅ Preview: Failed