@pluv/types 3.1.7 → 3.2.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,5 +1,5 @@
1
1
 
2
- > @pluv/types@3.1.7 build /home/runner/work/pluv/pluv/packages/types
2
+ > @pluv/types@3.2.0 build /home/runner/work/pluv/pluv/packages/types
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 330.00 B
12
- ESM ⚡️ Build success in 38ms
12
+ ESM ⚡️ Build success in 27ms
13
13
  CJS dist/index.js 1.37 KB
14
- CJS ⚡️ Build success in 38ms
14
+ CJS ⚡️ Build success in 28ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1616ms
17
- DTS dist/index.d.mts 19.37 KB
18
- DTS dist/index.d.ts 19.37 KB
16
+ DTS ⚡️ Build success in 1412ms
17
+ DTS dist/index.d.mts 19.42 KB
18
+ DTS dist/index.d.ts 19.42 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @pluv/types
2
2
 
3
+ ## 3.2.0
4
+
3
5
  ## 3.1.7
4
6
 
5
7
  ## 3.1.6
package/dist/index.d.mts CHANGED
@@ -50,6 +50,7 @@ interface CrdtDocFactory<TDoc extends any, TStorage extends Record<string, CrdtT
50
50
  getEmpty(): CrdtDocLike<TDoc, TStorage>;
51
51
  getFactory(initialStorage?: (builder: any) => TStorage): CrdtDocFactory<TDoc, TStorage>;
52
52
  getInitialized(initialStorage?: (builder: any) => TStorage): CrdtDocLike<TDoc, TStorage>;
53
+ isEmpty(initialStorage: Maybe<string>): boolean;
53
54
  }
54
55
  interface CrdtLibraryType<TDoc extends CrdtDocFactory<any, any> = CrdtDocFactory<any, any>> {
55
56
  doc: (value: any) => TDoc;
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ interface CrdtDocFactory<TDoc extends any, TStorage extends Record<string, CrdtT
50
50
  getEmpty(): CrdtDocLike<TDoc, TStorage>;
51
51
  getFactory(initialStorage?: (builder: any) => TStorage): CrdtDocFactory<TDoc, TStorage>;
52
52
  getInitialized(initialStorage?: (builder: any) => TStorage): CrdtDocLike<TDoc, TStorage>;
53
+ isEmpty(initialStorage: Maybe<string>): boolean;
53
54
  }
54
55
  interface CrdtLibraryType<TDoc extends CrdtDocFactory<any, any> = CrdtDocFactory<any, any>> {
55
56
  doc: (value: any) => TDoc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/types",
3
- "version": "3.1.7",
3
+ "version": "3.2.0",
4
4
  "description": "@pluv/io shared types",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -16,11 +16,11 @@
16
16
  "access": "public"
17
17
  },
18
18
  "devDependencies": {
19
- "eslint": "^9.27.0",
19
+ "eslint": "^9.28.0",
20
20
  "tsup": "^8.5.0",
21
21
  "typescript": "^5.8.3",
22
- "@pluv/tsconfig": "^3.1.7",
23
- "eslint-config-pluv": "^3.1.7"
22
+ "@pluv/tsconfig": "^3.2.0",
23
+ "eslint-config-pluv": "^3.2.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "wonka": "^6.3.5"
package/src/pluv/crdt.ts CHANGED
@@ -8,6 +8,7 @@ export interface CrdtDocFactory<
8
8
  getEmpty(): CrdtDocLike<TDoc, TStorage>;
9
9
  getFactory(initialStorage?: (builder: any) => TStorage): CrdtDocFactory<TDoc, TStorage>;
10
10
  getInitialized(initialStorage?: (builder: any) => TStorage): CrdtDocLike<TDoc, TStorage>;
11
+ isEmpty(initialStorage: Maybe<string>): boolean;
11
12
  }
12
13
 
13
14
  export interface CrdtLibraryType<TDoc extends CrdtDocFactory<any, any> = CrdtDocFactory<any, any>> {