redux-persist
Advanced tools
Comparing version 5.10.0 to 5.11.0-alpha
{ | ||
"name": "redux-persist", | ||
"version": "5.10.0", | ||
"version": "5.11.0-alpha", | ||
"description": "persist and rehydrate redux stores", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"types": "./src/index.d.ts", | ||
"types": "./types/index.d.ts", | ||
"repository": "rt2zz/redux-persist", | ||
@@ -29,2 +29,3 @@ "files": [ | ||
"test": "flow && cross-env BABEL_ENV=commonjs ava", | ||
"test:typescript": "dtslint types", | ||
"version": "npm run clean && npm run build && npm run stats:size | tail -1 >> LIBSIZE.md && git add LIBSIZE.md" | ||
@@ -52,2 +53,3 @@ }, | ||
"devDependencies": { | ||
"@types/react": "^16.4.18", | ||
"ava": "^0.25.0", | ||
@@ -65,2 +67,3 @@ "babel-cli": "^6.26.0", | ||
"cross-env": "^5.0.1", | ||
"dtslint": "^0.3.0", | ||
"eslint": "^4.16.0", | ||
@@ -75,3 +78,3 @@ "eslint-plugin-flowtype": "^2.42.0", | ||
"prettier": "^1.10.2", | ||
"redux": "^3.6.0", | ||
"redux": "^4.0.1", | ||
"redux-mock-store": "^1.5.1", | ||
@@ -88,5 +91,5 @@ "rimraf": "^2.6.1", | ||
"peerDependencies": { | ||
"redux": ">3.0.0" | ||
"redux": ">4.0.0" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -91,3 +91,3 @@ # Redux Persist | ||
## State Reconciler | ||
State reconcilers define how incoming state is merged in with initial state. It is critical to choose the right state reconciler for your state. There are three options that ship out of the box, lets look at how each operates: | ||
State reconcilers define how incoming state is merged in with initial state. It is critical to choose the right state reconciler for your state. There are three options that ship out of the box, let's look at how each operates: | ||
@@ -122,5 +122,5 @@ 1. **hardSet** (`import hardSet from 'redux-persist/lib/stateReconciler/hardSet'`) | ||
## React Integration | ||
Redux persist ships with react integration as a conveinence. The `PersistGate` component is the recommended way to delay rendering until persistence is complete. It works in one of two modes: | ||
Redux persist ships with react integration as a convenience. The `PersistGate` component is the recommended way to delay rendering until persistence is complete. It works in one of two modes: | ||
1. `loading` prop: The provided loading value will be rendered until persistence is complete at which point children will be rendered. | ||
2. function childen: The function will be invoked with a single `bootstrapped` argument. When bootstrapped is true, persistence is complete and it is safe to render the full app. This can be useful for adding transition animations. | ||
2. function children: The function will be invoked with a single `bootstrapped` argument. When bootstrapped is true, persistence is complete and it is safe to render the full app. This can be useful for adding transition animations. | ||
@@ -229,2 +229,4 @@ ## Blacklist & Whitelist | ||
- **[redux-persist-weapp-storage](https://github.com/cuijiemmx/redux-casa/tree/master/packages/redux-persist-weapp-storage)** Storage engine for wechat mini program, also compatible with wepy | ||
- **[redux-persist-webextension-storage](https://github.com/ssorallen/redux-persist-webextension-storage)** Storage engine for browser (Chrome, Firefox) web extension storage | ||
- **[@bankify/redux-persist-realm](https://github.com/bankifyio/redux-persist-realm)** Storage engine for Realm database, you will need to install Realm first | ||
- **custom** any conforming storage api implementing the following methods: `setItem` `getItem` `removeItem`. (**NB**: These methods must support promises) |
@@ -40,3 +40,7 @@ // @flow | ||
Object.keys(lastState).forEach(key => { | ||
if (state[key] === undefined) { | ||
if ( | ||
state[key] === undefined && | ||
passWhitelistBlacklist(key) && | ||
keysToProcess.indexOf(key) === -1 | ||
) { | ||
keysToProcess.push(key) | ||
@@ -43,0 +47,0 @@ } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
230
60
372523
33
114
3807
1