@pluv/addon-indexeddb 0.17.3 → 0.18.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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +10 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/dist/index.mjs +1 -4
- package/package.json +6 -6
- package/src/IndexedDBStorage.ts +1 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/addon-indexeddb@0.
|
|
2
|
+
> @pluv/addon-indexeddb@0.18.0 build /home/runner/work/pluv/pluv/packages/addon-indexeddb
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m3.
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m4.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m3.81 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 80ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m4.84 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 80ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3392ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m760.00 B[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m760.00 B[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @pluv/addon-indexeddb
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [06c67be]
|
|
8
|
+
- Updated dependencies [99b5ca9]
|
|
9
|
+
- Updated dependencies [df1342c]
|
|
10
|
+
- @pluv/client@0.18.0
|
|
11
|
+
- @pluv/crdt@0.18.0
|
|
12
|
+
|
|
3
13
|
## 0.17.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -6,6 +6,6 @@ import { AbstractCrdtType } from '@pluv/crdt';
|
|
|
6
6
|
interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractCrdtType<any, any>> = {}> {
|
|
7
7
|
enabled?: boolean | ((room: PluvRoom<TIO, TPresence, TStorage>) => boolean);
|
|
8
8
|
}
|
|
9
|
-
declare const addonIndexedDB: <TIO extends IOLike<_pluv_types.IOAuthorize<any, any, any>, {}
|
|
9
|
+
declare const addonIndexedDB: <TIO extends IOLike<_pluv_types.IOAuthorize<any, any, any>, {}>, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractCrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>) => PluvRoomAddon<TIO, TPresence, TStorage>;
|
|
10
10
|
|
|
11
11
|
export { addonIndexedDB };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ import { AbstractCrdtType } from '@pluv/crdt';
|
|
|
6
6
|
interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractCrdtType<any, any>> = {}> {
|
|
7
7
|
enabled?: boolean | ((room: PluvRoom<TIO, TPresence, TStorage>) => boolean);
|
|
8
8
|
}
|
|
9
|
-
declare const addonIndexedDB: <TIO extends IOLike<_pluv_types.IOAuthorize<any, any, any>, {}
|
|
9
|
+
declare const addonIndexedDB: <TIO extends IOLike<_pluv_types.IOAuthorize<any, any, any>, {}>, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractCrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>) => PluvRoomAddon<TIO, TPresence, TStorage>;
|
|
10
10
|
|
|
11
11
|
export { addonIndexedDB };
|
package/dist/index.js
CHANGED
|
@@ -96,10 +96,7 @@ var IndexedDBStorage = class extends import_client.AbstractStorageStore {
|
|
|
96
96
|
const db = this._db;
|
|
97
97
|
if (!db)
|
|
98
98
|
return [];
|
|
99
|
-
const updates = yield db.getAll(
|
|
100
|
-
UPGRADES_KEY,
|
|
101
|
-
this._getLowerBound(start)
|
|
102
|
-
);
|
|
99
|
+
const updates = yield db.getAll(UPGRADES_KEY, this._getLowerBound(start));
|
|
103
100
|
const lastKey = yield this._getLastKey();
|
|
104
101
|
this._dbRef = lastKey + 1;
|
|
105
102
|
return updates;
|
package/dist/index.mjs
CHANGED
|
@@ -71,10 +71,7 @@ var IndexedDBStorage = class extends AbstractStorageStore {
|
|
|
71
71
|
const db = this._db;
|
|
72
72
|
if (!db)
|
|
73
73
|
return [];
|
|
74
|
-
const updates = yield db.getAll(
|
|
75
|
-
UPGRADES_KEY,
|
|
76
|
-
this._getLowerBound(start)
|
|
77
|
-
);
|
|
74
|
+
const updates = yield db.getAll(UPGRADES_KEY, this._getLowerBound(start));
|
|
78
75
|
const lastKey = yield this._getLastKey();
|
|
79
76
|
this._dbRef = lastKey + 1;
|
|
80
77
|
return updates;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/addon-indexeddb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "@pluv/io indexeddb for client storage persistance",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"idb": "^8.0.0",
|
|
21
|
-
"@pluv/client": "^0.
|
|
22
|
-
"@pluv/crdt": "^0.
|
|
21
|
+
"@pluv/client": "^0.18.0",
|
|
22
|
+
"@pluv/crdt": "^0.18.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"eslint": "^8.57.0",
|
|
26
26
|
"tsup": "^8.0.2",
|
|
27
27
|
"typescript": "^5.4.5",
|
|
28
|
-
"@pluv/tsconfig": "^0.
|
|
29
|
-
"@pluv/types": "^0.
|
|
30
|
-
"eslint-config-pluv": "^0.
|
|
28
|
+
"@pluv/tsconfig": "^0.18.0",
|
|
29
|
+
"@pluv/types": "^0.18.0",
|
|
30
|
+
"eslint-config-pluv": "^0.18.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/IndexedDBStorage.ts
CHANGED
|
@@ -70,10 +70,7 @@ export class IndexedDBStorage extends AbstractStorageStore {
|
|
|
70
70
|
|
|
71
71
|
if (!db) return [];
|
|
72
72
|
|
|
73
|
-
const updates = await db.getAll(
|
|
74
|
-
UPGRADES_KEY,
|
|
75
|
-
this._getLowerBound(start),
|
|
76
|
-
);
|
|
73
|
+
const updates = await db.getAll(UPGRADES_KEY, this._getLowerBound(start));
|
|
77
74
|
|
|
78
75
|
const lastKey = await this._getLastKey();
|
|
79
76
|
|