@keepkit/core 0.28.15 → 0.28.17
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 +14 -1
- package/dist/{chunk-WKXLHEAK.js → chunk-HTTOCLOC.js} +1 -1
- package/dist/chunk-HTTOCLOC.js.map +1 -0
- package/dist/{chunk-36NNVLEU.js → chunk-OLGYOC3D.js} +2 -2
- package/dist/core.d.ts +4 -4
- package/dist/core.js +2 -2
- package/dist/react.d.ts +4 -4
- package/dist/react.js +55 -20
- package/dist/react.js.map +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +1 -1
- package/dist/{store-D-ZFtgDn.d.ts → store-3LwroO9A.d.ts} +1 -1
- package/dist/{types-KNIY89_m.d.ts → types-Bnc0c8CB.d.ts} +2 -0
- package/package.json +1 -1
- package/dist/chunk-WKXLHEAK.js.map +0 -1
- /package/dist/{chunk-36NNVLEU.js.map → chunk-OLGYOC3D.js.map} +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[日本語](#日本語) | [English](#english)
|
|
4
4
|
|
|
5
|
-
Release: v0.28.
|
|
5
|
+
Release: v0.28.17
|
|
6
6
|
|
|
7
7
|
## 日本語
|
|
8
8
|
|
|
@@ -76,6 +76,8 @@ hooksはProvider内のコンポーネントで呼び出します。
|
|
|
76
76
|
複数コレクションへの所属はアイテムと別に保存され、所属を外しても共有アイテムやメモは残ります。
|
|
77
77
|
|
|
78
78
|
`before`プラグインや永続化の失敗は保存操作を拒否します。保存成功後のコールバック、`after`プラグイン、`onChange`の例外は`onError(error, { action, id, phase: "notification" })`で報告し、保存済み状態とUndoを維持します。通知例外でも保存操作のPromiseは成功し、後続通知は継続します。
|
|
79
|
+
削除のUndoで保存が失敗した場合は、元のUndo期限内なら再試行できます。別の削除や保存スコープの変更が先に発生した場合は、古いUndoで新しい状態を上書きしません。
|
|
80
|
+
保存先または保存スコープを切り替えると、以前の`lastChange`とUndoはクリアされます。
|
|
79
81
|
|
|
80
82
|
### 保存・同期・バックアップ
|
|
81
83
|
|
|
@@ -117,8 +119,17 @@ scope付きadapterを別のscopeで包み直しても書き込み先は切り替
|
|
|
117
119
|
|
|
118
120
|
デモと開発手順は[リポジトリREADME](../../README.md)、変更履歴は[リリースノート](../../RELEASE_NOTES.md)を参照してください。
|
|
119
121
|
|
|
122
|
+
保存ボタンは保存状態の読み込み中と更新中は操作できません。
|
|
123
|
+
|
|
124
|
+
同じ保存領域内では、`targetType`に関係なく`id`を一意にしてください。例えば `article:123` と `product:123` を使います。
|
|
125
|
+
|
|
120
126
|
## English
|
|
121
127
|
|
|
128
|
+
Save buttons are disabled while saved state is loading or a mutation is in progress.
|
|
129
|
+
|
|
130
|
+
Use an `id` unique across all target types within the same storage scope, for example `article:123` and `product:123`.
|
|
131
|
+
|
|
132
|
+
|
|
122
133
|
Framework-neutral persistence primitives and React providers and hooks.
|
|
123
134
|
Use [@keepkit/ui](../keepkit-ui/README.md) when you want a ready-made collection UI. Its opt-in `presentation="reading"` and inline selection add UI behavior without changing Core types or storage formats. Unvisited uses the existing `lastOpenedAt` and `recordOpen()` contracts.
|
|
124
135
|
|
|
@@ -189,6 +200,8 @@ Lists return unarchived items by default. Use `archiveScope: "all"` for both or
|
|
|
189
200
|
Memberships are stored separately; removing one leaves the shared item and note intact.
|
|
190
201
|
|
|
191
202
|
Failures in `before` plugins or persistence reject the mutation. Errors from post-save callbacks, `after` plugins, and `onChange` are reported through `onError(error, { action, id, phase: "notification" })`, preserving committed state and Undo. The mutation resolves successfully and later notifications still run.
|
|
203
|
+
If persisting a removal undo fails, it can be retried until its original deadline. An older undo does not replace a newer removal or survive a storage-scope change.
|
|
204
|
+
Changing storage or storage scope clears the previous `lastChange` and Undo state.
|
|
192
205
|
|
|
193
206
|
### Storage, sync, and backups
|
|
194
207
|
|