Comparing version 1.9.0 to 1.10.0
@@ -0,1 +1,7 @@ | ||
### 1.10.0 | ||
Updated `immer` to `^5.0.0` which has better support for `Map` and `Set`. | ||
Updated `fast-deep-equal` to use `^3.0.0`, which has support for `Map` and `Set` types, allowing you to use these without worry in your stores. | ||
## 1.9.0 | ||
@@ -2,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
import React,{useState,useRef,useEffect,useContext,useMemo}from'react';import produce$1 from'immer';const isEqual = require("fast-deep-equal"); | ||
import React,{useState,useRef,useEffect,useContext,useMemo}from'react';import produce$1 from'immer';const isEqual = require("fast-deep-equal/es6"); | ||
function useStoreState(store, getSubState, deps) { | ||
@@ -69,3 +69,3 @@ const [subState, setSubState] = useState(() => getSubState ? getSubState(store.getRawState()) : store.getRawState()); | ||
return subState; | ||
}const isEqual$1 = require("fast-deep-equal"); | ||
}const isEqual$1 = require("fast-deep-equal/es6"); | ||
const Immer = require("immer"); | ||
@@ -339,3 +339,3 @@ const produce = Immer.produce; | ||
EPostActionContext["BECKON_RUN"] = "BECKON_RUN"; | ||
})(EPostActionContext || (EPostActionContext = {}));const isEqual$2 = require("fast-deep-equal"); | ||
})(EPostActionContext || (EPostActionContext = {}));const isEqual$2 = require("fast-deep-equal/es6"); | ||
const clientAsyncCache = { | ||
@@ -342,0 +342,0 @@ listeners: {}, |
@@ -1,2 +0,2 @@ | ||
'use strict';Object.defineProperty(exports,'__esModule',{value:true});function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}var React=require('react'),React__default=_interopDefault(React),produce$1=_interopDefault(require('immer'));const isEqual = require("fast-deep-equal"); | ||
'use strict';Object.defineProperty(exports,'__esModule',{value:true});function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}var React=require('react'),React__default=_interopDefault(React),produce$1=_interopDefault(require('immer'));const isEqual = require("fast-deep-equal/es6"); | ||
function useStoreState(store, getSubState, deps) { | ||
@@ -69,3 +69,3 @@ const [subState, setSubState] = React.useState(() => getSubState ? getSubState(store.getRawState()) : store.getRawState()); | ||
return subState; | ||
}const isEqual$1 = require("fast-deep-equal"); | ||
}const isEqual$1 = require("fast-deep-equal/es6"); | ||
const Immer = require("immer"); | ||
@@ -338,3 +338,3 @@ const produce = Immer.produce; | ||
EPostActionContext["BECKON_RUN"] = "BECKON_RUN"; | ||
})(EPostActionContext || (EPostActionContext = {}));const isEqual$2 = require("fast-deep-equal"); | ||
})(EPostActionContext || (EPostActionContext = {}));const isEqual$2 = require("fast-deep-equal/es6"); | ||
const clientAsyncCache = { | ||
@@ -341,0 +341,0 @@ listeners: {}, |
{ | ||
"name": "pullstate", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Simple state stores using immer and React hooks", | ||
@@ -34,4 +34,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"fast-deep-equal": "^2.0.1", | ||
"immer": "^3.2.0" | ||
"fast-deep-equal": "^3.1.1", | ||
"immer": "^5.3.2" | ||
}, | ||
@@ -38,0 +38,0 @@ "repository": "https://github.com/lostpebble/pullstate", |
@@ -10,7 +10,6 @@ <p align="center"> | ||
* ~4KB minified and gzipped! (excluding Immer and React) | ||
* ~5KB minified and gzipped! (excluding Immer and React) | ||
* Built with Typescript, providing a great dev experience if you're using it too | ||
* Provides `<InjectStoreState>` component | ||
* Uses [immer](https://github.com/mweststrate/immer) for state updates - easily and safely mutate your state directly! | ||
* **NEW** - [Create async actions](https://lostpebble.github.io/pullstate/docs/async-actions-introduction) and use React hooks to watch their state, or use `<InjectAsyncAction>`. Pullstate's version of React suspense! | ||
* **NEW** - [Create async actions](https://lostpebble.github.io/pullstate/docs/async-actions-introduction) and use React hooks or `<Suspense/>` to have complete control over their UI states! | ||
@@ -139,2 +138,2 @@ _Originally inspired by the now seemingly abandoned library - [bey](https://github.com/jamiebuilds/bey). Although substantially | ||
And our components are being updated accordingly. We have freed our app's state from the confines of the component! This is one of the main advantages of Pullstate - allowing us to separate our state concerns from being locked in at the component level and manage things easily at a more global level from which our components listen and react (through our `useStoreState()` hooks). | ||
And our components are being updated accordingly. We have freed our app's state from the confines of the component! This is one of the main advantages of Pullstate - allowing us to separate our state concerns from being locked in at the component level and manage things easily at a more global level from which our components listen and react (through our `useStoreState()` hooks). |
123869
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedimmer@5.3.6(transitive)
- Removedfast-deep-equal@2.0.1(transitive)
- Removedimmer@3.3.0(transitive)
Updatedfast-deep-equal@^3.1.1
Updatedimmer@^5.3.2