redux-zero
Advanced tools
Comparing version 5.1.3 to 5.1.4
143
CHANGELOG.md
# Changelog | ||
### 5.1.4 | ||
* Removing React class method warnings | ||
### 5.1.3 | ||
- Added ComponentProps concept and updated connect method type signature to accept generic type for ComponentProps so that type safety works when a connected component is used. | ||
* Added ComponentProps concept and updated connect method type signature to accept generic type for ComponentProps so that type safety works when a connected component is used. | ||
### 5.1.2 | ||
- Fix to make sure React's `connect()` components rerender when their props change. | ||
* Fix to make sure React's `connect()` components rerender when their props change. | ||
### 5.1.1 | ||
- Fixed missing types/Actions in the final bundle | ||
* Fixed missing types/Actions in the final bundle | ||
### 5.1.0 | ||
- Added hooks for react >= 16.8.0. The react bindings now offer a `useStore`, `useSelector` and `useAction` hooks. | ||
* Added hooks for react >= 16.8.0. The react bindings now offer a `useStore`, `useSelector` and `useAction` hooks. | ||
```jsx harmony | ||
const Counter = () => { | ||
const store = useStore() | ||
const count = useSelector(({ count }) => count) | ||
const incrementBy = useAction(({ count }, value) => ({ count: count + value})) | ||
const store = useStore(); | ||
const count = useSelector(({ count }) => count); | ||
const incrementBy = useAction(({ count }, value) => ({ | ||
count: count + value | ||
})); | ||
@@ -30,5 +36,4 @@ return ( | ||
</> | ||
) | ||
} | ||
); | ||
}; | ||
``` | ||
@@ -38,19 +43,20 @@ | ||
- Fixed connect in preact bindings to call the `mapStateToProps` function when the component props change, | ||
not just when the state store changes | ||
* Fixed connect in preact bindings to call the `mapStateToProps` function when the component props change, | ||
not just when the state store changes | ||
### 5.0.4 | ||
- Changing from `npm` to `yarn` | ||
* Changing from `npm` to `yarn` | ||
### 5.0.3 | ||
- Added Actions typings for writing typesafe React components | ||
* Added Actions typings for writing typesafe React components | ||
### 5.0.2 | ||
- Fixed Provider and connect in preact biddings so they now work for Preact X | ||
* Fixed Provider and connect in preact biddings so they now work for Preact X | ||
### 5.0.1 | ||
- Added Redux-Devtools options params | ||
* Added Redux-Devtools options params | ||
@@ -60,5 +66,5 @@ ### 5.0.0 | ||
**BREAKING CHANGES** | ||
- Add generics to `bindActions()` , `connect()` , `createStore()` , `Provider` , `Store` . | ||
- Default: any | ||
* Add generics to `bindActions()` , `connect()` , `createStore()` , `Provider` , `Store` . - Default: any | ||
note: | ||
@@ -75,5 +81,5 @@ If using createStore() with partial initial state, it will inferred to incorrect type. | ||
const store = createStore({a: 3}); // Store<{a: 3}> | ||
const store = createStore<ReduxState>({a: 3}); // Store<Partial<ReduxState>> | ||
const store = createStore<ReduxState>({a: 3, b: 3}); // Store<ReduxState> | ||
const store = createStore({ a: 3 }); // Store<{a: 3}> | ||
const store = createStore<ReduxState>({ a: 3 }); // Store<Partial<ReduxState>> | ||
const store = createStore<ReduxState>({ a: 3, b: 3 }); // Store<ReduxState> | ||
``` | ||
@@ -83,53 +89,53 @@ | ||
- Improved `reset` function on the store, now it makes reset to `initialState` | ||
- Fixed `devtoolsMiddleware` imports | ||
* Improved `reset` function on the store, now it makes reset to `initialState` | ||
* Fixed `devtoolsMiddleware` imports | ||
### 4.15.1 | ||
- Simplify createStore function to improve minimization | ||
* Simplify createStore function to improve minimization | ||
### 4.15.0 | ||
- Added ownprops to preact actions | ||
* Added ownprops to preact actions | ||
### 4.14.0 | ||
- Added ownprops as optional argument to the actions creator | ||
* Added ownprops as optional argument to the actions creator | ||
### 4.13.6 | ||
- Better typing support | ||
* Better typing support | ||
### 4.13.5 | ||
- Fix deps with npm audit | ||
- Add typescript 3 support | ||
* Fix deps with npm audit | ||
* Add typescript 3 support | ||
### 4.13.4 | ||
- Reverting 4.13.3 | ||
* Reverting 4.13.3 | ||
### 4.13.3 | ||
- React `connect` high order component now propagate connected component statics | ||
* React `connect` high order component now propagate connected component statics | ||
### 4.13.2 | ||
- Adding some typings | ||
* Adding some typings | ||
### 4.13.1 | ||
- Adding protection to `window` for SSR on devtools | ||
* Adding protection to `window` for SSR on devtools | ||
### 4.13.0 | ||
- Adding `reset` function to the store | ||
* Adding `reset` function to the store | ||
### 4.12.0 | ||
- Pass action `args` to middleware and devtools | ||
* Pass action `args` to middleware and devtools | ||
### 4.11.0 | ||
- Add `combineActions` function | ||
* Add `combineActions` function | ||
@@ -142,27 +148,27 @@ ```js | ||
- Fix bug of devtools middleware - handle async actions | ||
* Fix bug of devtools middleware - handle async actions | ||
### 4.10.0 | ||
- Implement connect HOC decorator for preact | ||
* Implement connect HOC decorator for preact | ||
### 4.9.2 | ||
- Add hot module reloading support to React `connect()` decorator | ||
* Add hot module reloading support to React `connect()` decorator | ||
### 4.9.1 | ||
- Disable generation of source maps | ||
* Disable generation of source maps | ||
### 4.9.0 | ||
- Add DevTools middleware | ||
* Add DevTools middleware | ||
### 4.8.1 | ||
- Fix a bug of middleware | ||
* Fix a bug of middleware | ||
### 4.8.0 | ||
- Add bindActions export | ||
* Add bindActions export | ||
@@ -175,7 +181,7 @@ ```js | ||
- Add Vue.js bindings | ||
* Add Vue.js bindings | ||
### 4.6.0 | ||
- Adds middleware support: | ||
* Adds middleware support: | ||
@@ -197,11 +203,11 @@ ```js | ||
- Fixes bug in which ownProps were not being passed as the second argument to mapToProps inside a connect HOC | ||
* Fixes bug in which ownProps were not being passed as the second argument to mapToProps inside a connect HOC | ||
### 4.5.1 | ||
- Shallow clone mutated object and array in Svelte bindig | ||
* Shallow clone mutated object and array in Svelte bindig | ||
### 4.5.0 | ||
- Adds Thennable actions. Now we can declare actions as so: | ||
* Adds Thennable actions. Now we can declare actions as so: | ||
@@ -223,7 +229,7 @@ ```js | ||
- Removing peerDependencies from `package.json` | ||
* Removing peerDependencies from `package.json` | ||
### 4.4.2 | ||
- Fix typings, remove unsubscribe from Store interface since isn't used | ||
* Fix typings, remove unsubscribe from Store interface since isn't used | ||
@@ -234,15 +240,15 @@ [info] Using redux-zero along with TypeScript gives an error when implementing: | ||
- Added Store interface as signature for createStore function. | ||
* Added Store interface as signature for createStore function. | ||
### 4.4.1 | ||
- Fixes Svelte connect function date object change detection | ||
* Fixes Svelte connect function date object change detection | ||
### 4.4.0 | ||
- Add Preact bindings | ||
* Add Preact bindings | ||
### 4.3.1 | ||
- Fixes binding imports with TypeScript | ||
* Fixes binding imports with TypeScript | ||
@@ -257,7 +263,7 @@ This is now working for both TypeScript and JavaScript: | ||
- Add connect function for Svelte and usage example. | ||
* Add connect function for Svelte and usage example. | ||
### 4.2.1 | ||
- Let `mapToProps` function optional | ||
* Let `mapToProps` function optional | ||
@@ -274,3 +280,3 @@ If you don't pass `mapToProps` function to `connect` HOC or `Connect` component, it will inject all state as props at the connected component. | ||
- Binding actions instead of coupling them to the store. | ||
* Binding actions instead of coupling them to the store. | ||
@@ -284,6 +290,5 @@ Right now, actions must import an instance of the store in order to invoke `setState()`, as discussed [here](https://github.com/redux-zero/redux-zero/issues/16). This version solved that problem. Now it's way easier to test the actions, because they are simply pure functions: | ||
const App = connect( | ||
mapToProps, | ||
createActions | ||
)(({ count, increment }) => <button onClick={increment}>{count}</button>); | ||
const App = connect(mapToProps, createActions)(({ count, increment }) => ( | ||
<button onClick={increment}>{count}</button> | ||
)); | ||
``` | ||
@@ -293,7 +298,7 @@ | ||
- Fixes drawback from the latest release by making `connect` HOC and `Connect` component provide the store as a prop | ||
* Fixes drawback from the latest release by making `connect` HOC and `Connect` component provide the store as a prop | ||
### 4.1.0 | ||
- Include `Connect` component that can be used with a render callback as an alternative to the `connect` HOC | ||
* Include `Connect` component that can be used with a render callback as an alternative to the `connect` HOC | ||
@@ -316,7 +321,7 @@ ```javascript | ||
- Fixed bug where unsubscribing a listener made listeners ahead be also removed. | ||
* Fixed bug where unsubscribing a listener made listeners ahead be also removed. | ||
### 4.0.0 | ||
- Separating `Provider` and `connect` from `createStore`. With this we'll be able to build for different frameworks: | ||
* Separating `Provider` and `connect` from `createStore`. With this we'll be able to build for different frameworks: | ||
@@ -330,3 +335,3 @@ ```javascript | ||
- Removing `unsubscribe` function from createStore. Now `subscribe` returns `unsubscribe`: | ||
* Removing `unsubscribe` function from createStore. Now `subscribe` returns `unsubscribe`: | ||
@@ -343,3 +348,3 @@ ```javascript | ||
- Now you can pass a function to `setState`. Example: | ||
* Now you can pass a function to `setState`. Example: | ||
@@ -357,6 +362,6 @@ ```javascript | ||
- Changing Provider API to accept store as a prop instead of context. | ||
* Changing Provider API to accept store as a prop instead of context. | ||
### 1.1.0 | ||
- Removing PropTypes | ||
* Removing PropTypes |
{ | ||
"name": "redux-zero", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/redux-zero.js", |
@@ -11,5 +11,5 @@ import * as React from "react"; | ||
constructor(props: any, context: any); | ||
componentWillMount(): void; | ||
componentWillUnmount(): void; | ||
componentWillReceiveProps(nextProps: any, nextContext: any): void; | ||
UNSAFE_componentWillMount(): void; | ||
UNSAFE_componentWillUnmount(): void; | ||
UNSAFE_componentWillReceiveProps(nextProps: any, nextContext: any): void; | ||
getProps(props: any, context: any): any; | ||
@@ -16,0 +16,0 @@ getActions(): { |
@@ -109,9 +109,9 @@ 'use strict'; | ||
} | ||
Connect.prototype.componentWillMount = function () { | ||
Connect.prototype.UNSAFE_componentWillMount = function () { | ||
this.unsubscribe = this.context.store.subscribe(this.update); | ||
}; | ||
Connect.prototype.componentWillUnmount = function () { | ||
Connect.prototype.UNSAFE_componentWillUnmount = function () { | ||
this.unsubscribe(this.update); | ||
}; | ||
Connect.prototype.componentWillReceiveProps = function (nextProps, nextContext) { | ||
Connect.prototype.UNSAFE_componentWillReceiveProps = function (nextProps, nextContext) { | ||
var mapped = this.getProps(nextProps, nextContext); | ||
@@ -118,0 +118,0 @@ if (!shallowEqual(mapped, this.state)) { |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t["redux-zero"]={},t.React)}(this,function(t,s){"use strict";var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var u=function(){return(u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t,e){for(var r in t)if(t[r]!==e[r])return!1;for(var r in e)if(!(r in t))return!1;return!0}function e(t,e,r){return"object"==typeof t?null:new Error("Invalid prop "+e+" supplied to "+r)}function c(r,n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"function"==typeof n.middleware?n.middleware(n,r,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(n,r.apply(void 0,[n.getState()].concat(t)))}}var p,a=(i(r,p=s.Component),r.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},r.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},r.prototype.componentWillReceiveProps=function(t,e){var r=this.getProps(t,e);o(r,this.state)||this.setState(r)},r.prototype.getProps=function(t,e){var r=t.mapToProps,n=e.store&&e.store.getState()||{};return r?r(n,t):n},r.prototype.getActions=function(){return function(t,e,r){t="function"==typeof t?t(e,r):t;var n={};for(var o in t){var i=t[o];n[o]=c(i,e)}return n}(this.props.actions,this.context.store,this.props)},r.prototype.render=function(){return this.props.children(u({store:this.context.store},this.state,this.actions))},r.contextTypes={store:e},r);function r(t,e){var r=p.call(this,t,e)||this;return r.update=function(){var t=r.getProps(r.props,r.context);o(t,r.state)||r.setState(t)},r.state=r.getProps(t,e),r.actions=r.getActions(),r}var f,l="createContext"in s?s.createContext(void 0):{Provider:function(t){var e=t.children;return s.Children.only(e)}},h=(i(d,f=s.Component),d.prototype.getChildContext=function(){return{store:this.props.store}},d.prototype.render=function(){var t=this.props,e=t.store,r=t.children;return s.createElement(l.Provider,{value:e},r)},d.childContextTypes={store:e},d);function d(){return null!==f&&f.apply(this,arguments)||this}function v(){return s.useContext(l)}var y="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;t.connect=function(n,o){return void 0===o&&(o={}),function(r){return i(t,e=s.Component),t.prototype.render=function(){var e=this.props;return s.createElement(a,u({},e,{mapToProps:n,actions:o}),function(t){return s.createElement(r,u({},t,e))})},t;function t(){return null!==e&&e.apply(this,arguments)||this}var e}},t.Provider=h,t.Connect=a,t.useStore=v,t.useSelector=function(t){var e,r=v(),n=s.useReducer(function(t){return t+1},0)[1],o=s.useRef(void 0),i=s.useRef(void 0),u=s.useRef(void 0);try{e=o.current!==t||u.current?t(r.getState()):i.current}catch(t){var c="An error occurred while selecting the store state: "+t.message+".";throw u.current&&(c+="\nThe error may be related with this previous error:\n"+u.current.stack+"\n\nOriginal stack trace:"),new Error(c)}return y(function(){o.current=t,i.current=e,u.current=void 0}),y(function(){function t(){try{var t=o.current(r.getState());if(t===i.current)return;i.current=t}catch(t){u.current=t}n({})}var e=r.subscribe(t);return t(),function(){return e()}},[r]),e},t.useAction=function(t){var e=v();return s.useMemo(function(){return c(t,e)},[e,t])},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t["redux-zero"]={},t.React)}(this,function(t,s){"use strict";var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var u=function(){return(u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t,e){for(var r in t)if(t[r]!==e[r])return!1;for(var r in e)if(!(r in t))return!1;return!0}function e(t,e,r){return"object"==typeof t?null:new Error("Invalid prop "+e+" supplied to "+r)}function c(r,n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"function"==typeof n.middleware?n.middleware(n,r,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(n,r.apply(void 0,[n.getState()].concat(t)))}}var p,a=(i(r,p=s.Component),r.prototype.UNSAFE_componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},r.prototype.UNSAFE_componentWillUnmount=function(){this.unsubscribe(this.update)},r.prototype.UNSAFE_componentWillReceiveProps=function(t,e){var r=this.getProps(t,e);o(r,this.state)||this.setState(r)},r.prototype.getProps=function(t,e){var r=t.mapToProps,n=e.store&&e.store.getState()||{};return r?r(n,t):n},r.prototype.getActions=function(){return function(t,e,r){t="function"==typeof t?t(e,r):t;var n={};for(var o in t){var i=t[o];n[o]=c(i,e)}return n}(this.props.actions,this.context.store,this.props)},r.prototype.render=function(){return this.props.children(u({store:this.context.store},this.state,this.actions))},r.contextTypes={store:e},r);function r(t,e){var r=p.call(this,t,e)||this;return r.update=function(){var t=r.getProps(r.props,r.context);o(t,r.state)||r.setState(t)},r.state=r.getProps(t,e),r.actions=r.getActions(),r}var f,l="createContext"in s?s.createContext(void 0):{Provider:function(t){var e=t.children;return s.Children.only(e)}},h=(i(d,f=s.Component),d.prototype.getChildContext=function(){return{store:this.props.store}},d.prototype.render=function(){var t=this.props,e=t.store,r=t.children;return s.createElement(l.Provider,{value:e},r)},d.childContextTypes={store:e},d);function d(){return null!==f&&f.apply(this,arguments)||this}function v(){return s.useContext(l)}var y="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;t.connect=function(n,o){return void 0===o&&(o={}),function(r){return i(t,e=s.Component),t.prototype.render=function(){var e=this.props;return s.createElement(a,u({},e,{mapToProps:n,actions:o}),function(t){return s.createElement(r,u({},t,e))})},t;function t(){return null!==e&&e.apply(this,arguments)||this}var e}},t.Provider=h,t.Connect=a,t.useStore=v,t.useSelector=function(t){var e,r=v(),n=s.useReducer(function(t){return t+1},0)[1],o=s.useRef(void 0),i=s.useRef(void 0),u=s.useRef(void 0);try{e=o.current!==t||u.current?t(r.getState()):i.current}catch(t){var c="An error occurred while selecting the store state: "+t.message+".";throw u.current&&(c+="\nThe error may be related with this previous error:\n"+u.current.stack+"\n\nOriginal stack trace:"),new Error(c)}return y(function(){o.current=t,i.current=e,u.current=void 0}),y(function(){function t(){try{var t=o.current(r.getState());if(t===i.current)return;i.current=t}catch(t){u.current=t}n({})}var e=r.subscribe(t);return t(),function(){return e()}},[r]),e},t.useAction=function(t){var e=v();return s.useMemo(function(){return c(t,e)},[e,t])},Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -37,3 +37,3 @@ <h1 align="center"> | ||
``` | ||
npm install --save redux-zero | ||
npm i redux-zero | ||
``` | ||
@@ -433,4 +433,7 @@ | ||
- Add more examples (including unit tests, SSR, etc) | ||
- Make sure all bindings are working for latest versions of React, Vue, Preact and Svelte | ||
- Add time travel | ||
_Help is needed for both of these_ | ||
## Docs | ||
@@ -437,0 +440,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t["redux-zero"]={})}(this,function(t){"use strict";var i=function(){return(i=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function u(t,n){return t!==n||!(!t||"object"!=typeof t)&&!function(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}(t,n)}function c(e,r){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"function"==typeof r.middleware?r.middleware(r,e,t):function(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}(r,e.apply(void 0,[r.getState()].concat(t)))}}t.connect=function(e,r,o){function t(){var t=function(t,n){var e={},r=!1;for(var o in t){var f=t[o];u(n[o],f)&&(r=!0,"object"==typeof f&&"function"!=typeof f.getMonth?e[o]=f.constructor===Array?f.slice(0):i({},f):e[o]=f)}return{diff:e,changed:r}}(o(r.getState()),e.get()),n=t.diff;t.changed&&e.set(n)}t(),e.on("destroy",r.subscribe(t))},t.getActions=function(t,n){return function(t,n,e){t="function"==typeof t?t(n,e):t;var r={};for(var o in t){var f=t[o];r[o]=c(f,n)}return r}(n,t)},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";var c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function i(n,r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"function"==typeof r.middleware?r.middleware(r,n,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(r,n.apply(void 0,[r.getState()].concat(t)))}}t.connect=function(n,r,o){function t(){var t=function(t,e){var n,r,o={},f=!1;for(var i in t){var u=t[i];((n=e[i])!==(r=u)||n&&"object"==typeof n&&!function(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(n,r))&&(f=!0,"object"==typeof u&&"function"!=typeof u.getMonth?o[i]=u.constructor===Array?u.slice(0):c({},u):o[i]=u)}return{diff:o,changed:f}}(o(r.getState()),n.get()),e=t.diff;t.changed&&n.set(e)}t(),n.on("destroy",r.subscribe(t))},t.getActions=function(t,e){return function(t,e,n){t="function"==typeof t?t(e,n):t;var r={};for(var o in t){var f=t[o];r[o]=i(f,e)}return r}(e,t)},Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";var c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){return t!==e||!(!t||"object"!=typeof t)&&!function(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(t,e)}function d(n,r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"function"==typeof r.middleware?r.middleware(r,n,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(r,n.apply(void 0,[r.getState()].concat(t)))}}t.connect=function(n,r,o,t){u();var e=n.beforeDestroy,f=r.subscribe(u);function i(t,e){for(var n in t)e[n]=t[n]}function u(){var t=function(t,e){var n={},r=!1;for(var o in t){var f=t[o];a(e[o],f)&&(r=!0,"object"==typeof f&&"function"!=typeof f.getMonth?n[o]=f.constructor===Array?f.slice(0):c({},f):n[o]=f)}return{diff:n,changed:r}}(o(r.getState()),o(n)),e=t.diff;t.changed&&i(e,n)}n.beforeDestroy=function(){f(),e()},i(function(t,e,n){t="function"==typeof t?t(e,n):t;var r={};for(var o in t){var f=t[o];r[o]=d(f,e)}return r}(t,r),n)},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";var c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(n,r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"function"==typeof r.middleware?r.middleware(r,n,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(r,n.apply(void 0,[r.getState()].concat(t)))}}t.connect=function(n,r,o,t){u();var e=n.beforeDestroy,f=r.subscribe(u);function i(t,e){for(var n in t)e[n]=t[n]}function u(){var t=function(t,e){var n,r,o={},f=!1;for(var i in t){var u=t[i];((n=e[i])!==(r=u)||n&&"object"==typeof n&&!function(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(n,r))&&(f=!0,"object"==typeof u&&"function"!=typeof u.getMonth?o[i]=u.constructor===Array?u.slice(0):c({},u):o[i]=u)}return{diff:o,changed:f}}(o(r.getState()),o(n)),e=t.diff;t.changed&&i(e,n)}n.beforeDestroy=function(){f(),e()},i(function(t,e,n){t="function"==typeof t?t(e,n):t;var r={};for(var o in t){var f=t[o];r[o]=a(f,e)}return r}(t,r),n)},Object.defineProperty(t,"__esModule",{value:!0})}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80533
55
1180
444