@pluv/types 3.1.7 → 3.2.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/types@3.1.7 build /home/runner/work/pluv/pluv/packages/types
2
+ > @pluv/types@3.2.1 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 40ms
13
13
  CJS dist/index.js 1.37 KB
14
- CJS ⚡️ Build success in 38ms
14
+ CJS ⚡️ Build success in 40ms
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 1364ms
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,9 @@
1
1
  # @pluv/types
2
2
 
3
+ ## 3.2.1
4
+
5
+ ## 3.2.0
6
+
3
7
  ## 3.1.7
4
8
 
5
9
  ## 3.1.6
@@ -241,7 +245,6 @@
241
245
  ### Minor Changes
242
246
 
243
247
  - 99b5ca9: ## Breaking Changes
244
-
245
248
  - `@pluv/io` has been updated to introduce `PluvProcedure`, `PluvRouter` and `PluvServer`. This change is intended to improve the ergonomics of declaring events and simplifying inferences of event types.
246
249
 
247
250
  ### Before:
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,8 +1,12 @@
1
1
  {
2
2
  "name": "@pluv/types",
3
- "version": "3.1.7",
3
+ "version": "3.2.1",
4
4
  "description": "@pluv/io shared types",
5
- "author": "leedavidcs",
5
+ "author": {
6
+ "email": "david@pluv.io",
7
+ "name": "i3dly",
8
+ "url": "https://github.com/i3dly"
9
+ },
6
10
  "license": "MIT",
7
11
  "homepage": "https://github.com/pluv-io/pluv",
8
12
  "repository": {
@@ -16,11 +20,11 @@
16
20
  "access": "public"
17
21
  },
18
22
  "devDependencies": {
19
- "eslint": "^9.27.0",
23
+ "eslint": "^9.31.0",
20
24
  "tsup": "^8.5.0",
21
25
  "typescript": "^5.8.3",
22
- "@pluv/tsconfig": "^3.1.7",
23
- "eslint-config-pluv": "^3.1.7"
26
+ "@pluv/tsconfig": "^3.2.1",
27
+ "eslint-config-pluv": "^3.2.1"
24
28
  },
25
29
  "dependencies": {
26
30
  "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>> {