@pluv/addon-indexeddb 0.25.4 → 0.27.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.
@@ -1,18 +1,18 @@
1
1
 
2
- > @pluv/addon-indexeddb@0.25.4 build /home/runner/work/pluv/pluv/packages/addon-indexeddb
2
+ > @pluv/addon-indexeddb@0.27.0 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
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.2.4
7
+ CLI tsup v8.3.0
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  CJS dist/index.js 4.78 KB
12
- CJS ⚡️ Build success in 70ms
12
+ CJS ⚡️ Build success in 73ms
13
13
  ESM dist/index.mjs 3.75 KB
14
- ESM ⚡️ Build success in 70ms
14
+ ESM ⚡️ Build success in 74ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3186ms
17
- DTS dist/index.d.mts 648.00 B
18
- DTS dist/index.d.ts 648.00 B
16
+ DTS ⚡️ Build success in 3416ms
17
+ DTS dist/index.d.mts 751.00 B
18
+ DTS dist/index.d.ts 751.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @pluv/addon-indexeddb
2
2
 
3
+ ## 0.27.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [19ed36c]
8
+ - Updated dependencies [19ed36c]
9
+ - @pluv/client@0.27.0
10
+ - @pluv/crdt@0.27.0
11
+
12
+ ## 0.26.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [19e5dda]
17
+ - @pluv/client@0.26.0
18
+ - @pluv/crdt@0.26.0
19
+
3
20
  ## 0.25.4
4
21
 
5
22
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2,9 +2,9 @@ import { PluvRoomAddon, PluvRoom } from '@pluv/client';
2
2
  import { CrdtType } from '@pluv/crdt';
3
3
  import { IOLike, JsonObject } from '@pluv/types';
4
4
 
5
- interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
6
- enabled?: boolean | ((room: PluvRoom<TIO, TPresence, TStorage>) => boolean);
5
+ interface AddonIndexedDBConfig<TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
6
+ enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TStorage>) => boolean);
7
7
  }
8
- declare const addonIndexedDB: <TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>) => PluvRoomAddon<TIO, TPresence, TStorage>;
8
+ declare const addonIndexedDB: <TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TStorage>) => PluvRoomAddon<TIO, TMetadata, TPresence, TStorage>;
9
9
 
10
10
  export { addonIndexedDB };
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@ import { PluvRoomAddon, PluvRoom } from '@pluv/client';
2
2
  import { CrdtType } from '@pluv/crdt';
3
3
  import { IOLike, JsonObject } from '@pluv/types';
4
4
 
5
- interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
6
- enabled?: boolean | ((room: PluvRoom<TIO, TPresence, TStorage>) => boolean);
5
+ interface AddonIndexedDBConfig<TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
6
+ enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TStorage>) => boolean);
7
7
  }
8
- declare const addonIndexedDB: <TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>) => PluvRoomAddon<TIO, TPresence, TStorage>;
8
+ declare const addonIndexedDB: <TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TStorage>) => PluvRoomAddon<TIO, TMetadata, TPresence, TStorage>;
9
9
 
10
10
  export { addonIndexedDB };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/addon-indexeddb",
3
- "version": "0.25.4",
3
+ "version": "0.27.0",
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.0",
21
- "@pluv/client": "^0.25.4",
22
- "@pluv/crdt": "^0.25.4"
21
+ "@pluv/client": "^0.27.0",
22
+ "@pluv/crdt": "^0.27.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "eslint": "^8.57.0",
26
- "tsup": "^8.2.4",
27
- "typescript": "^5.5.4",
28
- "@pluv/tsconfig": "^0.25.4",
29
- "@pluv/types": "^0.25.4",
30
- "eslint-config-pluv": "^0.25.4"
26
+ "tsup": "^8.3.0",
27
+ "typescript": "^5.6.2",
28
+ "@pluv/tsconfig": "^0.27.0",
29
+ "@pluv/types": "^0.27.0",
30
+ "eslint-config-pluv": "^0.27.0"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup src/index.ts --format esm,cjs --dts",
@@ -5,19 +5,21 @@ import { IndexedDBStorage } from "./IndexedDBStorage";
5
5
 
6
6
  export interface AddonIndexedDBConfig<
7
7
  TIO extends IOLike,
8
+ TMetadata extends JsonObject = {},
8
9
  TPresence extends JsonObject = {},
9
10
  TStorage extends Record<string, CrdtType<any, any>> = {},
10
11
  > {
11
- enabled?: boolean | ((room: PluvRoom<TIO, TPresence, TStorage>) => boolean);
12
+ enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TStorage>) => boolean);
12
13
  }
13
14
 
14
15
  export const addonIndexedDB = <
15
16
  TIO extends IOLike,
17
+ TMetadata extends JsonObject = {},
16
18
  TPresence extends JsonObject = {},
17
19
  TStorage extends Record<string, CrdtType<any, any>> = {},
18
20
  >(
19
- config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>,
20
- ): PluvRoomAddon<TIO, TPresence, TStorage> => {
21
+ config?: AddonIndexedDBConfig<TIO, TMetadata, TPresence, TStorage>,
22
+ ): PluvRoomAddon<TIO, TMetadata, TPresence, TStorage> => {
21
23
  const { enabled = true } = config ?? {};
22
24
 
23
25
  return ({ room }) => {