@converse/skeletor 3.1.4 → 3.1.5
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/CHANGES.md +6 -0
- package/README.md +9 -3
- package/dist/skeletor.d.ts +8 -2
- package/dist/skeletor.esm.js +254 -241
- package/dist/skeletor.esm.js.map +1 -1
- package/dist/skeletor.js +254 -241
- package/dist/skeletor.js.map +1 -1
- package/dist/skeletor.min.js +4 -4
- package/dist/skeletor.node.js +255 -242
- package/dist/skeletor.node.mjs +255 -242
- package/package.json +3 -1
- package/src/declarations.d.ts +11 -0
- package/src/drivers/nodeSQLiteStorage.ts +2 -7
- package/src/drivers/types.ts +8 -2
- package/src/storage.ts +11 -26
package/CHANGES.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.1.5 (2026-07-22)
|
|
4
|
+
|
|
5
|
+
- Fix every write through the Node.js SQLite driver failing with `Record Not Found` while
|
|
6
|
+
the data was in fact stored.
|
|
7
|
+
- Switch TypeScript `moduleResolution` to `bundler` and add `types` conditions to the `exports` map.
|
|
8
|
+
|
|
3
9
|
## 3.1.4 (2026-06-23)
|
|
4
10
|
|
|
5
11
|
- Fix the `autoSync` hydration promise clobbering a consumer's own `initialized` promise.
|
package/README.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="images/skeletor-logo.svg" alt="Skeletor" width="120" height="120">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
<h1 align="center">Skeletor</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://chat.conversejs.org/#converse/room?jid=discuss@conference.conversejs.org"><img alt="XMPP Chat" src="https://conference.conversejs.org/muc_badge/discuss@conference.conversejs.org"></a>
|
|
9
|
+
<a href="https://github.com/conversejs/skeletor/actions/workflows/karma-tests.yml"><img alt="CI Tests" src="https://github.com/conversejs/skeletor/actions/workflows/karma-tests.yml/badge.svg"></a>
|
|
10
|
+
</p>
|
|
5
11
|
|
|
6
12
|
Skeletor is a lightweight, TypeScript-first reactive data library.
|
|
7
13
|
|
package/dist/skeletor.d.ts
CHANGED
|
@@ -860,10 +860,16 @@ export declare interface StorageDriver {
|
|
|
860
860
|
length(): Promise<number>;
|
|
861
861
|
key(keyIndex: number): Promise<string | null>;
|
|
862
862
|
keys(): Promise<string[]>;
|
|
863
|
-
|
|
863
|
+
/**
|
|
864
|
+
* Write several items in one go. A successful write is signalled by the
|
|
865
|
+
* promise settling, not by what it resolves with: drivers may resolve with
|
|
866
|
+
* the written items (localForage does) or with nothing, and callers must
|
|
867
|
+
* treat both as success.
|
|
868
|
+
*/
|
|
869
|
+
setItems?(items: Record<string, any>): Promise<Record<string, any> | void>;
|
|
864
870
|
getItems?(keys: string[]): Promise<Record<string, any>>;
|
|
865
871
|
debouncedSetItems?: {
|
|
866
|
-
(items: Record<string, any>): Promise<void>;
|
|
872
|
+
(items: Record<string, any>): Promise<Record<string, any> | void>;
|
|
867
873
|
flush?: () => void;
|
|
868
874
|
};
|
|
869
875
|
}
|