@k3000/store 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
*2、1.5.0版本请注意page的用法。
|
|
6
6
|
*3、1.6.1修改String中文存储的BUG建议更新,更新请注意第1、2条和page的用法。
|
|
7
7
|
*4、1.7.0修复中文路径问题。
|
|
8
|
+
*5、1.8.0添加存储目录的备份与迁移的描述(无功能调整)。
|
|
9
|
+
*6、反馈与讨论:19815488@qq.com
|
|
10
|
+
|
|
8
11
|
```
|
|
9
12
|
|
|
10
13
|
**初始化和更新升级**
|
|
@@ -227,9 +230,17 @@ storage.admin.remove(...storage.admin.filter(admin => admin.usn.startsWith('test
|
|
|
227
230
|
```
|
|
228
231
|
更多使用方法参考 `test.mjs`
|
|
229
232
|
|
|
230
|
-
|
|
233
|
+
**保存**
|
|
231
234
|
|
|
235
|
+
没3秒会自动保存,也可以手工操作
|
|
232
236
|
```
|
|
233
237
|
import {close} from './test/index.mjs'
|
|
234
238
|
close() // 关闭并保存
|
|
235
239
|
```
|
|
240
|
+
**备份与迁移**
|
|
241
|
+
|
|
242
|
+
当使用`upgrade`升级的时候会按照版本号备份历史版本。
|
|
243
|
+
|
|
244
|
+
也能直接将整个存储目录保存,复制妥存。
|
|
245
|
+
|
|
246
|
+
同样道理,迁移就是将存储目录拷贝到相应项目目录,使用相应版本的库运行即可。
|