@pluv/addon-indexeddb 0.35.3 → 0.36.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 +15 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +8 -8
- package/src/addonIndexedDB.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/addon-indexeddb@0.
|
|
2
|
+
> @pluv/addon-indexeddb@0.36.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
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.
|
|
7
|
+
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mCJS[39m [1mdist/index.js [22m[32m4.79 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 113ms
|
|
13
13
|
[32mESM[39m [1mdist/index.mjs [22m[32m3.75 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 121ms
|
|
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 4491ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m771.00 B[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m771.00 B[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pluv/addon-indexeddb
|
|
2
2
|
|
|
3
|
+
## 0.36.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [4518b6d]
|
|
8
|
+
- @pluv/client@0.36.0
|
|
9
|
+
- @pluv/crdt@0.36.0
|
|
10
|
+
|
|
11
|
+
## 0.35.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @pluv/client@0.35.4
|
|
16
|
+
- @pluv/crdt@0.35.4
|
|
17
|
+
|
|
3
18
|
## 0.35.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PluvRoom, PluvRoomAddon } 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, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
|
|
5
|
+
interface AddonIndexedDBConfig<TIO extends IOLike<any, any>, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
|
|
6
6
|
enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TStorage>) => boolean);
|
|
7
7
|
}
|
|
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>;
|
|
8
|
+
declare const addonIndexedDB: <TIO extends IOLike<any, any>, 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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PluvRoom, PluvRoomAddon } 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, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
|
|
5
|
+
interface AddonIndexedDBConfig<TIO extends IOLike<any, any>, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}> {
|
|
6
6
|
enabled?: boolean | ((room: PluvRoom<TIO, TMetadata, TPresence, TStorage>) => boolean);
|
|
7
7
|
}
|
|
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>;
|
|
8
|
+
declare const addonIndexedDB: <TIO extends IOLike<any, any>, 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.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "@pluv/io indexeddb for client storage persistence",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"idb": "^8.0.
|
|
21
|
-
"@pluv/client": "^0.
|
|
22
|
-
"@pluv/crdt": "^0.
|
|
20
|
+
"idb": "^8.0.2",
|
|
21
|
+
"@pluv/client": "^0.36.0",
|
|
22
|
+
"@pluv/crdt": "^0.36.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"eslint": "^8.57.1",
|
|
26
|
-
"tsup": "^8.
|
|
26
|
+
"tsup": "^8.4.0",
|
|
27
27
|
"typescript": "^5.7.3",
|
|
28
|
-
"@pluv/tsconfig": "^0.
|
|
29
|
-
"@pluv/types": "^0.
|
|
30
|
-
"eslint-config-pluv": "^0.
|
|
28
|
+
"@pluv/tsconfig": "^0.36.0",
|
|
29
|
+
"@pluv/types": "^0.36.0",
|
|
30
|
+
"eslint-config-pluv": "^0.36.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/addonIndexedDB.ts
CHANGED
|
@@ -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,
|
|
7
|
+
TIO extends IOLike<any, any>,
|
|
8
8
|
TMetadata extends JsonObject = {},
|
|
9
9
|
TPresence extends JsonObject = {},
|
|
10
10
|
TStorage extends Record<string, CrdtType<any, any>> = {},
|
|
@@ -13,7 +13,7 @@ export interface AddonIndexedDBConfig<
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const addonIndexedDB = <
|
|
16
|
-
TIO extends IOLike,
|
|
16
|
+
TIO extends IOLike<any, any>,
|
|
17
17
|
TMetadata extends JsonObject = {},
|
|
18
18
|
TPresence extends JsonObject = {},
|
|
19
19
|
TStorage extends Record<string, CrdtType<any, any>> = {},
|