@pluv/addon-indexeddb 5.0.0 → 5.0.2
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/dist/index.d.mts +3 -16
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -10
- package/.turbo/turbo-build.log +0 -17
- package/CHANGELOG.md +0 -1163
- package/eslint.config.mjs +0 -4
- package/src/IndexedDBStorage.ts +0 -132
- package/src/addonIndexedDB.ts +0 -34
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -5
- package/tsdown.config.ts +0 -14
package/dist/index.d.mts
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import { PluvRoom, PluvRoomAddon } from "@pluv/client";
|
|
2
2
|
import { AbstractCrdtDocFactory } from "@pluv/crdt";
|
|
3
|
-
|
|
4
3
|
//#region ../../node_modules/.pnpm/wonka@6.3.6/node_modules/wonka/dist/wonka.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
interface SymbolConstructor {
|
|
7
6
|
readonly observable: symbol;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
/** A definition of the ES Observable Subscription type that is returned by
|
|
11
|
-
* {@link Observable.subscribe}
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* The Subscription in ES Observables is a handle that is held while the Observable is actively
|
|
15
|
-
* streaming values. As such, it's used to indicate with {@link ObservableSubscription.closed}
|
|
16
|
-
* whether it's active, and {@link ObservableSubscription.unsubscribe} may be used to cancel the
|
|
17
|
-
* ongoing subscription and end the {@link Observable} early.
|
|
18
|
-
*
|
|
19
|
-
* @see {@link https://github.com/tc39/proposal-observable} for the ES Observable specification.
|
|
20
|
-
*/
|
|
21
9
|
//#endregion
|
|
22
10
|
//#region ../types/dist/index.d.mts
|
|
23
11
|
type Maybe<T> = T | Nil;
|
|
@@ -44,7 +32,7 @@ interface CrdtLibraryType<TDoc extends CrdtDocFactory<any, any> = CrdtDocFactory
|
|
|
44
32
|
type CrdtType<TValue extends unknown, TJson extends unknown = any> = Omit<TValue, "__pluvType"> & {
|
|
45
33
|
__pluvType: () => TJson;
|
|
46
34
|
};
|
|
47
|
-
type InferCrdtJson<T extends unknown> = T extends CrdtType<any, infer IJson> ? InferCrdtJson<IJson> : T extends Record<string, any> ? { [P in keyof T]: InferCrdtJson<T[P]
|
|
35
|
+
type InferCrdtJson<T extends unknown> = T extends CrdtType<any, infer IJson> ? InferCrdtJson<IJson> : T extends Record<string, any> ? { [P in keyof T]: InferCrdtJson<T[P]>; } : T extends (infer IJson)[] ? InferCrdtJson<IJson>[] : T extends readonly (infer IJson)[] ? readonly InferCrdtJson<IJson>[] : T extends Json ? T : string;
|
|
48
36
|
interface DocApplyEncodedStateParams {
|
|
49
37
|
origin?: string;
|
|
50
38
|
update?: Maybe<string | Uint8Array>;
|
|
@@ -78,14 +66,13 @@ interface CrdtDocLike<TDoc extends any, TStorage extends Record<string, CrdtType
|
|
|
78
66
|
track(): this;
|
|
79
67
|
transact(fn: () => void, origin?: string): this;
|
|
80
68
|
undo(): this;
|
|
81
|
-
}
|
|
82
|
-
//#region src/pluv/enums.d.ts
|
|
69
|
+
}
|
|
83
70
|
//#endregion
|
|
84
71
|
//#region src/pluv/shared.d.ts
|
|
85
72
|
type BaseUser = {
|
|
86
73
|
id: string;
|
|
87
74
|
};
|
|
88
|
-
type EventRecord<TEvent extends string, TData extends JsonObject> = { [key in `${TEvent}`]: TData };
|
|
75
|
+
type EventRecord<TEvent extends string, TData extends JsonObject> = { [key in `${TEvent}`]: TData; };
|
|
89
76
|
type InputZodLike<TData extends JsonObject> = {
|
|
90
77
|
parse: (data: unknown) => TData;
|
|
91
78
|
} & ({
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../node_modules/.pnpm/wonka@6.3.6/node_modules/wonka/d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AAuB,cAAc,iBAAiB,UAAU,WAAW;KAMvF,aAAa,cAAc;EAC9B,QAAQ,kBAAkB;;EAE1B,QAAQ;;EAER;IACE,OAAO;;;KAGN,YAAY,cAAc,uBAAuB,iBAAiB,iCAAiC,cAAc;EACpH;EACA,MAAM,aAAa;cACP,SAAS,aAAa,cAAc;EAChD;EACA,MAAM,aAAa;;KAMhB,cAAc,eAAe,0BAA0B,gBAAgB;EAC1E;IACE,cAAc,MAAM,WAAW,gBAAgB,aAAa,QAAQ;IACpE,QAAQ,aAAa;IACrB,WAAW,MAAM,WAAW,gBAAgB,aAAa;IACzD,SAAS,MAAM,WAAW,gBAAgB,aAAa,QAAQ;IAC/D,SAAS,MAAM,WAAW,gBAAgB,aAAa,QAAQ;;;UAGzD,aAAa,gBAAgB,eAAe;EACpD;IACE,QAAQ;;;UAGF,OAAO,mBAAmB,qCAAqC,cAAc,uBAAuB,sBAAsB,gBAAgB,eAAe,uCAAuC,aAAa;EACrN;IACE,WAAW;IACX,MAAM;IACN,QAAQ;;;;;UCtNK,qBACb,YAAY,uBACZ,kBAAkB,YAClB,kBAAkB,qBAClB,cAAc;EAEd,sBAAsB,MAAM,SAAS,KAAK,WAAW,WAAW;;cAGvD,iBACT,YAAY,uBACZ,kBAAkB,YAClB,kBAAkB,qBAClB,cAAc,kCAEd,SAAS,qBAAqB,KAAK,WAAW,WAAW,WAC1D,cAAc,KAAK,WAAW,WAAW"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/IndexedDBStorage.ts","../src/addonIndexedDB.ts"],"sourcesContent":["import { AbstractStorageStore } from \"@pluv/client\";\nimport type { IDBPDatabase } from \"idb\";\nimport { openDB } from \"idb\";\n\nconst STORAGE_STORE_FLATTEN_THRESHOLD = 500;\nconst UPGRADES_KEY = \"__PLUV_UPDATES\";\n\ntype IndexDBSchema = {\n [UPGRADES_KEY]: {\n key: number;\n value: string;\n };\n};\n\ntype IndexedDB = IDBPDatabase<IndexDBSchema>;\n\nexport class IndexedDBStorage extends AbstractStorageStore {\n public room: string;\n\n private _db: IndexedDB | null = null;\n private _dbRef: number = 0;\n private _dbSize: number = 0;\n\n constructor(room: string) {\n super(room);\n\n this.room = room;\n }\n\n public async addUpdate(update: string): Promise<void> {\n const db = this._db;\n\n if (!db) return;\n\n await db.add(UPGRADES_KEY, update);\n\n this._dbSize += 1;\n }\n\n public destroy(): Promise<void> {\n if (!this._db) return Promise.resolve();\n\n this._db.close();\n this._db = null;\n this._dbRef = 0;\n this._dbSize = 0;\n\n return Promise.resolve();\n }\n\n public async flatten(encodedState: string): Promise<void> {\n const db = this._db;\n\n if (!db) return;\n\n await db.add(UPGRADES_KEY, encodedState);\n await db.delete(UPGRADES_KEY, this._getUpperBound(this._dbRef, true));\n\n this._dbSize = await this._getSize();\n }\n\n public async getShouldFlatten(): Promise<boolean> {\n const dbSize = await this._getSize();\n\n return dbSize >= STORAGE_STORE_FLATTEN_THRESHOLD;\n }\n\n public async getUpdates(start: number = 0): Promise<readonly string[]> {\n const db = this._db;\n\n if (!db) return [];\n\n const updates = await db.getAll(UPGRADES_KEY, this._getLowerBound(start));\n\n const lastKey = await this._getLastKey();\n\n this._dbRef = lastKey + 1;\n\n return updates;\n }\n\n public async initialize(): Promise<void> {\n const newDB = await openDB<IndexDBSchema>(this.room, undefined, {\n upgrade: (db) => {\n db.createObjectStore(UPGRADES_KEY, { autoIncrement: true });\n },\n });\n\n newDB.addEventListener(\"versionchange\", () => {\n newDB.close();\n });\n\n if (typeof window !== \"undefined\") {\n window.addEventListener(\"unload\", () => {\n newDB.close();\n });\n }\n\n this._db = newDB;\n }\n\n private async _getLastKey(): Promise<number> {\n const db = this._db;\n\n if (!db) throw new Error(\"IndexedDB not initialized\");\n\n const store = db.transaction(UPGRADES_KEY).objectStore(UPGRADES_KEY);\n const cursor = await store.openCursor(null, \"prev\");\n\n return cursor?.key ?? -1;\n }\n\n private _getLowerBound(lower: number, open: boolean = false): IDBKeyRange {\n return IDBKeyRange.lowerBound(lower, open);\n }\n\n private async _getSize(): Promise<number> {\n if (this._dbSize) return this._dbSize;\n\n const db = this._db;\n\n if (!db) throw new Error(\"IndexedDB not initialized\");\n\n const store = db.transaction(UPGRADES_KEY).objectStore(UPGRADES_KEY);\n\n return store.count();\n }\n\n private _getUpperBound(upper: number, open: boolean = false): IDBKeyRange {\n return IDBKeyRange.upperBound(upper, open);\n }\n}\n","import type { PluvRoom, PluvRoomAddon } from \"@pluv/client\";\nimport type { AbstractCrdtDocFactory, CrdtType } from \"@pluv/crdt\";\nimport type { IOLike, JsonObject } from \"@pluv/types\";\nimport { IndexedDBStorage } from \"./IndexedDBStorage\";\n\nexport interface AddonIndexedDBConfig<\n TIO extends IOLike<any, any, any>,\n TMetadata extends JsonObject,\n TPresence extends Record<string, any>,\n TCrdt extends AbstractCrdtDocFactory<any, any>,\n> {\n enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TCrdt>) => boolean);\n}\n\nexport const addonIndexedDB = <\n TIO extends IOLike<any, any, any>,\n TMetadata extends JsonObject,\n TPresence extends Record<string, any>,\n TCrdt extends AbstractCrdtDocFactory<any, any>,\n>(\n config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TCrdt>,\n): PluvRoomAddon<TIO, TMetadata, TPresence, TCrdt> => {\n const { enabled = true } = config ?? {};\n\n return ({ room }) => {\n const _enabled = typeof enabled === \"boolean\" ? enabled : enabled(room);\n\n if (!_enabled) return {};\n\n return {\n storage: new IndexedDBStorage(room.id),\n };\n };\n};\n"],"mappings":";;;AAIA,MAAM,kCAAkC;AACxC,MAAM,eAAe;AAWrB,IAAa,mBAAb,cAAsC,qBAAqB;CAOvD,YAAY,MAAc;EACtB,MAAM,IAAI;
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/IndexedDBStorage.ts","../src/addonIndexedDB.ts"],"sourcesContent":["import { AbstractStorageStore } from \"@pluv/client\";\nimport type { IDBPDatabase } from \"idb\";\nimport { openDB } from \"idb\";\n\nconst STORAGE_STORE_FLATTEN_THRESHOLD = 500;\nconst UPGRADES_KEY = \"__PLUV_UPDATES\";\n\ntype IndexDBSchema = {\n [UPGRADES_KEY]: {\n key: number;\n value: string;\n };\n};\n\ntype IndexedDB = IDBPDatabase<IndexDBSchema>;\n\nexport class IndexedDBStorage extends AbstractStorageStore {\n public room: string;\n\n private _db: IndexedDB | null = null;\n private _dbRef: number = 0;\n private _dbSize: number = 0;\n\n constructor(room: string) {\n super(room);\n\n this.room = room;\n }\n\n public async addUpdate(update: string): Promise<void> {\n const db = this._db;\n\n if (!db) return;\n\n await db.add(UPGRADES_KEY, update);\n\n this._dbSize += 1;\n }\n\n public destroy(): Promise<void> {\n if (!this._db) return Promise.resolve();\n\n this._db.close();\n this._db = null;\n this._dbRef = 0;\n this._dbSize = 0;\n\n return Promise.resolve();\n }\n\n public async flatten(encodedState: string): Promise<void> {\n const db = this._db;\n\n if (!db) return;\n\n await db.add(UPGRADES_KEY, encodedState);\n await db.delete(UPGRADES_KEY, this._getUpperBound(this._dbRef, true));\n\n this._dbSize = await this._getSize();\n }\n\n public async getShouldFlatten(): Promise<boolean> {\n const dbSize = await this._getSize();\n\n return dbSize >= STORAGE_STORE_FLATTEN_THRESHOLD;\n }\n\n public async getUpdates(start: number = 0): Promise<readonly string[]> {\n const db = this._db;\n\n if (!db) return [];\n\n const updates = await db.getAll(UPGRADES_KEY, this._getLowerBound(start));\n\n const lastKey = await this._getLastKey();\n\n this._dbRef = lastKey + 1;\n\n return updates;\n }\n\n public async initialize(): Promise<void> {\n const newDB = await openDB<IndexDBSchema>(this.room, undefined, {\n upgrade: (db) => {\n db.createObjectStore(UPGRADES_KEY, { autoIncrement: true });\n },\n });\n\n newDB.addEventListener(\"versionchange\", () => {\n newDB.close();\n });\n\n if (typeof window !== \"undefined\") {\n window.addEventListener(\"unload\", () => {\n newDB.close();\n });\n }\n\n this._db = newDB;\n }\n\n private async _getLastKey(): Promise<number> {\n const db = this._db;\n\n if (!db) throw new Error(\"IndexedDB not initialized\");\n\n const store = db.transaction(UPGRADES_KEY).objectStore(UPGRADES_KEY);\n const cursor = await store.openCursor(null, \"prev\");\n\n return cursor?.key ?? -1;\n }\n\n private _getLowerBound(lower: number, open: boolean = false): IDBKeyRange {\n return IDBKeyRange.lowerBound(lower, open);\n }\n\n private async _getSize(): Promise<number> {\n if (this._dbSize) return this._dbSize;\n\n const db = this._db;\n\n if (!db) throw new Error(\"IndexedDB not initialized\");\n\n const store = db.transaction(UPGRADES_KEY).objectStore(UPGRADES_KEY);\n\n return store.count();\n }\n\n private _getUpperBound(upper: number, open: boolean = false): IDBKeyRange {\n return IDBKeyRange.upperBound(upper, open);\n }\n}\n","import type { PluvRoom, PluvRoomAddon } from \"@pluv/client\";\nimport type { AbstractCrdtDocFactory, CrdtType } from \"@pluv/crdt\";\nimport type { IOLike, JsonObject } from \"@pluv/types\";\nimport { IndexedDBStorage } from \"./IndexedDBStorage\";\n\nexport interface AddonIndexedDBConfig<\n TIO extends IOLike<any, any, any>,\n TMetadata extends JsonObject,\n TPresence extends Record<string, any>,\n TCrdt extends AbstractCrdtDocFactory<any, any>,\n> {\n enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TCrdt>) => boolean);\n}\n\nexport const addonIndexedDB = <\n TIO extends IOLike<any, any, any>,\n TMetadata extends JsonObject,\n TPresence extends Record<string, any>,\n TCrdt extends AbstractCrdtDocFactory<any, any>,\n>(\n config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TCrdt>,\n): PluvRoomAddon<TIO, TMetadata, TPresence, TCrdt> => {\n const { enabled = true } = config ?? {};\n\n return ({ room }) => {\n const _enabled = typeof enabled === \"boolean\" ? enabled : enabled(room);\n\n if (!_enabled) return {};\n\n return {\n storage: new IndexedDBStorage(room.id),\n };\n };\n};\n"],"mappings":";;;AAIA,MAAM,kCAAkC;AACxC,MAAM,eAAe;AAWrB,IAAa,mBAAb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BAAgB;GACpC,MAAM,MAAM;EAChB,CAAC;EAGL,KAAK,MAAM;CACf;CAEA,MAAc,cAA+B;EACzC,MAAM,KAAK,KAAK;EAEhB,IAAI,CAAC,IAAI,MAAM,IAAI,MAAM,2BAA2B;EAKpD,QAAO,MAHO,GAAG,YAAY,YAAY,CAAC,CAAC,YAAY,YAC9B,CAAC,CAAC,WAAW,MAAM,MAAM,EAAA,EAEnC,OAAO;CAC1B;CAEA,eAAuB,OAAe,OAAgB,OAAoB;EACtE,OAAO,YAAY,WAAW,OAAO,IAAI;CAC7C;CAEA,MAAc,WAA4B;EACtC,IAAI,KAAK,SAAS,OAAO,KAAK;EAE9B,MAAM,KAAK,KAAK;EAEhB,IAAI,CAAC,IAAI,MAAM,IAAI,MAAM,2BAA2B;EAIpD,OAFc,GAAG,YAAY,YAAY,CAAC,CAAC,YAAY,YAE5C,CAAC,CAAC,MAAM;CACvB;CAEA,eAAuB,OAAe,OAAgB,OAAoB;EACtE,OAAO,YAAY,WAAW,OAAO,IAAI;CAC7C;AACJ;;;ACrHA,MAAa,kBAMT,WACkD;CAClD,MAAM,EAAE,UAAU,SAAS,UAAU,CAAC;CAEtC,QAAQ,EAAE,WAAW;EAGjB,IAAI,EAFa,OAAO,YAAY,YAAY,UAAU,QAAQ,IAAI,IAEvD,OAAO,CAAC;EAEvB,OAAO,EACH,SAAS,IAAI,iBAAiB,KAAK,EAAE,EACzC;CACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/addon-indexeddb",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "@pluv/io indexeddb for client storage persistence",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "david@pluv.io",
|
|
@@ -16,21 +16,24 @@
|
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"types": "./dist/index.d.mts",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
19
22
|
"publishConfig": {
|
|
20
23
|
"access": "public"
|
|
21
24
|
},
|
|
22
25
|
"dependencies": {
|
|
23
|
-
"
|
|
24
|
-
"@pluv/
|
|
25
|
-
"
|
|
26
|
+
"@pluv/client": "^5.0.2",
|
|
27
|
+
"@pluv/crdt": "^5.0.2",
|
|
28
|
+
"idb": "^8.0.3"
|
|
26
29
|
},
|
|
27
30
|
"devDependencies": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
31
|
+
"@pluv/tsconfig": "^5.0.2",
|
|
32
|
+
"@pluv/types": "^5.0.2",
|
|
33
|
+
"eslint": "^10.9.0",
|
|
34
|
+
"eslint-config-pluv": "^5.0.2",
|
|
35
|
+
"tsdown": "0.22.14",
|
|
36
|
+
"typescript": "^5.9.3"
|
|
34
37
|
},
|
|
35
38
|
"exports": {
|
|
36
39
|
".": "./dist/index.mjs",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
$ tsdown
|
|
2
|
-
[34mℹ[39m [34mtsdown v0.22.3[39m powered by [38;2;255;126;23mrolldown v1.1.2[39m
|
|
3
|
-
[34mℹ[39m config file: [4m/home/runner/work/pluv/pluv/packages/addon-indexeddb/tsdown.config.ts[24m
|
|
4
|
-
[34mℹ[39m entry: [34msrc/index.ts[39m
|
|
5
|
-
[34mℹ[39m target: [34mesnext[39m
|
|
6
|
-
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
7
|
-
[34mℹ[39m Build start
|
|
8
|
-
[34mℹ[39m Hint: consider adding [34mdeps.onlyBundle[39m option to avoid unintended bundling of dependencies, or set [34mdeps.onlyBundle: false[39m to disable this hint.
|
|
9
|
-
See more at [4mhttps://tsdown.dev/options/dependencies#deps-onlybundle[24m
|
|
10
|
-
Detected dependencies in bundle:
|
|
11
|
-
- [34mwonka[39m
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m2.58 kB[22m [2m│ gzip: 0.95 kB[22m
|
|
13
|
-
[34mℹ[39m [2mdist/[22mindex.d.mts.map [2m7.82 kB[22m [2m│ gzip: 2.79 kB[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22mindex.mjs.map [2m6.64 kB[22m [2m│ gzip: 2.08 kB[22m
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m5.84 kB[22m [2m│ gzip: 1.85 kB[22m
|
|
16
|
-
[34mℹ[39m 4 files, total: 22.89 kB
|
|
17
|
-
[32m✔[39m Build complete in [32m3129ms[39m
|