@pluv/addon-indexeddb 0.19.0 → 0.20.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 +7 -7
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +6 -6
- package/src/addonIndexedDB.ts +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/addon-indexeddb@0.
|
|
2
|
+
> @pluv/addon-indexeddb@0.20.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
|
|
@@ -8,11 +8,11 @@ CLI tsup v8.1.0
|
|
|
8
8
|
CLI Target: es6
|
|
9
9
|
ESM Build start
|
|
10
10
|
CJS Build start
|
|
11
|
-
CJS dist/index.js 4.78 KB
|
|
12
|
-
CJS ⚡️ Build success in 49ms
|
|
13
11
|
ESM dist/index.mjs 3.75 KB
|
|
14
|
-
ESM ⚡️ Build success in
|
|
12
|
+
ESM ⚡️ Build success in 68ms
|
|
13
|
+
CJS dist/index.js 4.78 KB
|
|
14
|
+
CJS ⚡️ Build success in 82ms
|
|
15
15
|
DTS Build start
|
|
16
|
-
DTS ⚡️ Build success in
|
|
17
|
-
DTS dist/index.d.mts
|
|
18
|
-
DTS dist/index.d.ts
|
|
16
|
+
DTS ⚡️ Build success in 3247ms
|
|
17
|
+
DTS dist/index.d.mts 736.00 B
|
|
18
|
+
DTS dist/index.d.ts 736.00 B
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _pluv_types from '@pluv/types';
|
|
2
2
|
import { IOLike, JsonObject } from '@pluv/types';
|
|
3
3
|
import { PluvRoomAddon, PluvRoom } from '@pluv/client';
|
|
4
|
-
import {
|
|
4
|
+
import { CrdtType } from '@pluv/crdt';
|
|
5
5
|
|
|
6
|
-
interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string,
|
|
6
|
+
interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<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>, {}>, TPresence extends JsonObject = {}, TStorage extends Record<string,
|
|
9
|
+
declare const addonIndexedDB: <TIO extends IOLike<_pluv_types.IOAuthorize<any, any, any>, {}>, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>) => PluvRoomAddon<TIO, TPresence, TStorage>;
|
|
10
10
|
|
|
11
11
|
export { addonIndexedDB };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _pluv_types from '@pluv/types';
|
|
2
2
|
import { IOLike, JsonObject } from '@pluv/types';
|
|
3
3
|
import { PluvRoomAddon, PluvRoom } from '@pluv/client';
|
|
4
|
-
import {
|
|
4
|
+
import { CrdtType } from '@pluv/crdt';
|
|
5
5
|
|
|
6
|
-
interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string,
|
|
6
|
+
interface AddonIndexedDBConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<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>, {}>, TPresence extends JsonObject = {}, TStorage extends Record<string,
|
|
9
|
+
declare const addonIndexedDB: <TIO extends IOLike<_pluv_types.IOAuthorize<any, any, any>, {}>, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}>(config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>) => PluvRoomAddon<TIO, TPresence, TStorage>;
|
|
10
10
|
|
|
11
11
|
export { addonIndexedDB };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/addon-indexeddb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.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.20.0",
|
|
22
|
+
"@pluv/crdt": "^0.20.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"eslint": "^8.57.0",
|
|
26
26
|
"tsup": "^8.1.0",
|
|
27
27
|
"typescript": "^5.4.5",
|
|
28
|
-
"@pluv/tsconfig": "^0.
|
|
29
|
-
"@pluv/types": "^0.
|
|
30
|
-
"eslint-config-pluv": "^0.
|
|
28
|
+
"@pluv/tsconfig": "^0.20.0",
|
|
29
|
+
"@pluv/types": "^0.20.0",
|
|
30
|
+
"eslint-config-pluv": "^0.20.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/addonIndexedDB.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { PluvRoom, PluvRoomAddon } from "@pluv/client";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CrdtType } from "@pluv/crdt";
|
|
3
3
|
import type { IOLike, JsonObject } from "@pluv/types";
|
|
4
4
|
import { IndexedDBStorage } from "./IndexedDBStorage";
|
|
5
5
|
|
|
6
6
|
export interface AddonIndexedDBConfig<
|
|
7
7
|
TIO extends IOLike,
|
|
8
8
|
TPresence extends JsonObject = {},
|
|
9
|
-
TStorage extends Record<string,
|
|
9
|
+
TStorage extends Record<string, CrdtType<any, any>> = {},
|
|
10
10
|
> {
|
|
11
11
|
enabled?: boolean | ((room: PluvRoom<TIO, TPresence, TStorage>) => boolean);
|
|
12
12
|
}
|
|
@@ -14,7 +14,7 @@ export interface AddonIndexedDBConfig<
|
|
|
14
14
|
export const addonIndexedDB = <
|
|
15
15
|
TIO extends IOLike,
|
|
16
16
|
TPresence extends JsonObject = {},
|
|
17
|
-
TStorage extends Record<string,
|
|
17
|
+
TStorage extends Record<string, CrdtType<any, any>> = {},
|
|
18
18
|
>(
|
|
19
19
|
config?: AddonIndexedDBConfig<TIO, TPresence, TStorage>,
|
|
20
20
|
): PluvRoomAddon<TIO, TPresence, TStorage> => {
|