@pluv/addon-indexeddb 3.0.0 → 3.1.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/addon-indexeddb@3.0.0 build /home/runner/work/pluv/pluv/packages/addon-indexeddb
2
+ > @pluv/addon-indexeddb@3.1.1 build /home/runner/work/pluv/pluv/packages/addon-indexeddb
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  ESM dist/index.mjs 3.75 KB
12
- ESM ⚡️ Build success in 69ms
12
+ ESM ⚡️ Build success in 112ms
13
13
  CJS dist/index.js 4.79 KB
14
- CJS ⚡️ Build success in 72ms
14
+ CJS ⚡️ Build success in 106ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3740ms
17
- DTS dist/index.d.mts 754.00 B
18
- DTS dist/index.d.ts 754.00 B
16
+ DTS ⚡️ Build success in 4280ms
17
+ DTS dist/index.d.mts 764.00 B
18
+ DTS dist/index.d.ts 764.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @pluv/addon-indexeddb
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/client@3.1.1
8
+ - @pluv/crdt@3.1.1
9
+
10
+ ## 3.1.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [022857d]
15
+ - @pluv/client@3.1.0
16
+ - @pluv/crdt@3.1.0
17
+
3
18
  ## 3.0.0
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2,9 +2,9 @@ import { PluvRoom, PluvRoomAddon } from '@pluv/client';
2
2
  import { AbstractCrdtDocFactory } from '@pluv/crdt';
3
3
  import { IOLike, JsonObject } from '@pluv/types';
4
4
 
5
- interface AddonIndexedDBConfig<TIO extends IOLike<any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>> {
5
+ interface AddonIndexedDBConfig<TIO extends IOLike<any, any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>> {
6
6
  enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TCrdt>) => boolean);
7
7
  }
8
- declare const addonIndexedDB: <TIO extends IOLike<any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>>(config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TCrdt>) => PluvRoomAddon<TIO, TMetadata, TPresence, TCrdt>;
8
+ declare const addonIndexedDB: <TIO extends IOLike<any, any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>>(config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TCrdt>) => PluvRoomAddon<TIO, TMetadata, TPresence, TCrdt>;
9
9
 
10
10
  export { addonIndexedDB };
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@ import { PluvRoom, PluvRoomAddon } from '@pluv/client';
2
2
  import { AbstractCrdtDocFactory } from '@pluv/crdt';
3
3
  import { IOLike, JsonObject } from '@pluv/types';
4
4
 
5
- interface AddonIndexedDBConfig<TIO extends IOLike<any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>> {
5
+ interface AddonIndexedDBConfig<TIO extends IOLike<any, any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>> {
6
6
  enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TCrdt>) => boolean);
7
7
  }
8
- declare const addonIndexedDB: <TIO extends IOLike<any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>>(config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TCrdt>) => PluvRoomAddon<TIO, TMetadata, TPresence, TCrdt>;
8
+ declare const addonIndexedDB: <TIO extends IOLike<any, any, any>, TMetadata extends JsonObject, TPresence extends Record<string, any>, TCrdt extends AbstractCrdtDocFactory<any, any>>(config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TCrdt>) => PluvRoomAddon<TIO, TMetadata, TPresence, TCrdt>;
9
9
 
10
10
  export { addonIndexedDB };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/addon-indexeddb",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "@pluv/io indexeddb for client storage persistence",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -18,16 +18,16 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "idb": "^8.0.3",
21
- "@pluv/client": "^3.0.0",
22
- "@pluv/crdt": "^3.0.0"
21
+ "@pluv/client": "^3.1.1",
22
+ "@pluv/crdt": "^3.1.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "eslint": "^9.27.0",
26
26
  "tsup": "^8.5.0",
27
27
  "typescript": "^5.8.3",
28
- "@pluv/tsconfig": "^3.0.0",
29
- "@pluv/types": "^3.0.0",
30
- "eslint-config-pluv": "^3.0.0"
28
+ "@pluv/tsconfig": "^3.1.1",
29
+ "@pluv/types": "^3.1.1",
30
+ "eslint-config-pluv": "^3.1.1"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup src/index.ts --format esm,cjs --dts",
@@ -4,7 +4,7 @@ import type { IOLike, JsonObject } from "@pluv/types";
4
4
  import { IndexedDBStorage } from "./IndexedDBStorage";
5
5
 
6
6
  export interface AddonIndexedDBConfig<
7
- TIO extends IOLike<any, any>,
7
+ TIO extends IOLike<any, any, any>,
8
8
  TMetadata extends JsonObject,
9
9
  TPresence extends Record<string, any>,
10
10
  TCrdt extends AbstractCrdtDocFactory<any, any>,
@@ -13,7 +13,7 @@ export interface AddonIndexedDBConfig<
13
13
  }
14
14
 
15
15
  export const addonIndexedDB = <
16
- TIO extends IOLike<any, any>,
16
+ TIO extends IOLike<any, any, any>,
17
17
  TMetadata extends JsonObject,
18
18
  TPresence extends Record<string, any>,
19
19
  TCrdt extends AbstractCrdtDocFactory<any, any>,