CodeTanzania / emis-web

A collaboration platform that facilitates communication, planning and actions for disaster management.
MIT License
26 stars 9 forks source link

chore(deps): update dependency redux-starter-kit to ^0.7.0 #348

Closed renovate[bot] closed 5 years ago

renovate[bot] commented 5 years ago

This PR contains the following updates:

Package Type Update Change
redux-starter-kit dependencies minor ^0.6.3 -> ^0.7.0

Release Notes

reduxjs/redux-starter-kit ### [`v0.7.0`](https://togithub.com/reduxjs/redux-starter-kit/releases/v0.7.0) [Compare Source](https://togithub.com/reduxjs/redux-starter-kit/compare/v0.6.3...v0.7.0) This release introduces **some noticeable breaking changes** as we begin working our way towards 1.0. #### Breaking Changes ##### Removal of Selectorator RSK previously exported the `createSelector` function from . Selectorator wraps around Reselect, and the main selling point was that its `createSelector` wrapper accepted string keypath "input selectors". However, this capability made usage with TypeScript almost useless, as the string keypaths couldn't be translated into the actual types for the values that were being extracted. Ultimately, there wasn't enough real benefit for keeping this around, and so we are removing Selectorator. We now simply export `createSelector` directly from instead. ##### Migration Replace any string keypath usages with actual selector functions: ```js // before const selectAB = createSelector( ["a", "b"], (a, b) => a + b ); // after const selectA = state => state.a; const selectB = state => state.b; const selectAB = createSelector( [selectA, selectB], (a, b) => a + b ); ``` ##### Removal of "slice selectors" `createSlice` tried to generate a "slice selector" function based on the provided slice name. This was basically useless, because there was no guarantee that the reducer function was being combined under that name. The dynamic name of the generated function also made it hard to use. ##### Migration Remove any uses of `slice.selectors` (such as `slice.selectors.getTodos`). If necessary, replace them with separate hand-written calls to `createSelector` instead. #### Other Changes ##### Customization of Default Middleware The default middleware array generated by `getDefaultMiddleware()` has so far been a black box. If you needed to customize one of the middleware, or leave one out, you were forced to hand-initialize the middleware yourself. `getDefaultMiddleware` now accepts an options object that allows selectively disabling specific middleware, as well as passing options to each of the middleware (such as `redux-thunk`'s `extraArgument` option). ##### New Tutorials! We've added a set of new tutorial pages that walk you through how to use RSK: - [Basic Tutorial](https://redux-starter-kit.js.org/tutorials/basic-tutorial): introduces the RSK APIs in a vanilla JS page - [Intermediate Tutorial](https://redux-starter-kit.js.org/tutorials/intermediate-tutorial): shows how to use RSK in a CRA app, by converting the standard Redux "todos" example to use RSK - [Advanced Tutorial](https://redux-starter-kit.js.org/tutorials/advanced-tutorial): shows how to use RSK with TypeScript, thunks for async and data fetching, and React-Redux hooks, by converting a plain React app to use RSK #### Changelog - Remove slice selectors ([@​markerikson](https://togithub.com/markerikson) - [#​193](https://togithub.com/reduxjs/redux-starter-kit/issues/193)) - Enable customizing default middleware and store enhancers ([@​markerikson](https://togithub.com/markerikson) - [#​192](https://togithub.com/reduxjs/redux-starter-kit/issues/192)) - Remove Selectorator ([@​markerikson](https://togithub.com/markerikson) - [#​191](https://togithub.com/reduxjs/redux-starter-kit/issues/191)) - Refactor typings for readability ([@​phryneas](https://togithub.com/phryneas) - [#​168](https://togithub.com/reduxjs/redux-starter-kit/issues/168))

Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Renovate Bot. View repository job log here.