Skip to content

Commit bcb753e

Browse files
committed
Merge branch 'dev' of github.com:1018715564/store-persistedstate-killer
2 parents ec9e5bd + 14f535e commit bcb753e

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.*
2+
src
3+
tests
4+
jest.config.mjs
5+
nodemon.json
6+
rollup.config.js

README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ killer 本身自带一个开箱即用的配置,你如果有特殊的需要,
106106
| isDev | 是否是开发环境 | boolean | process.env.NODE_ENV === 'development' | 如果为false将自动加密 |
107107
| storageDriver | 插件预定义的存储驱动 | defineStorageDriver | defineStorageDriver('localStorage') | 支持传入localStorage和sessionStorage |
108108
| store | 对仓库进行详细配置 | Partial<Record<K, StoreConfig>> | 没有默认配置 | |
109-
| defineStorage | 自定义存储驱动 | setItem, getItem, iteration | 没有默认配置 | 如果预定义存储驱动defineStorageDriver没有满足你的需求,可以使用这个方法定义新的驱动 |
109+
| defineStorage | 自定义存储驱动 | setItem, getItem, removeItem, iteration | 没有默认配置 | 如果预定义存储驱动defineStorageDriver没有满足你的需求,可以使用这个方法定义新的驱动 |
110110

111111
你的工程中的自定义配置可能就像这样:
112112

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Killer itself comes with an out-of-the-box configuration, if you have special ne
105105
| isDev | Is it a development environment | boolean | process.env.NODE_ENV === 'development' | If false, it will be encrypted automatically |
106106
| storageDriver | Plug-in predefined storage drivers | defineStorageDriver | defineStorageDriver('localStorage') | Support incoming localStorage and sessionStorage |
107107
| store | Detailed configuration of the warehouse | Partial<Record<K, StoreConfig>> | No default configuration | |
108-
| defineStorage | Custom storage driver | setItem, getItem, iteration | No default configuration | If the predefined storage driver defineStorageDriver does not meet your needs, you can use this method to define a new driver |
108+
| defineStorage | Custom storage driver | setItem, getItem, removeItem, iteration | No default configuration | If the predefined storage driver defineStorageDriver does not meet your needs, you can use this method to define a new driver |
109109

110110
A custom configuration in your project might look like this:
111111

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.1.2",
2+
"version": "1.1.3",
33
"name": "store-persistedstate-killer",
44
"repository": {
55
"type": "git",

0 commit comments

Comments
 (0)