@pluv/crdt-loro 0.28.0 → 0.30.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/crdt-loro@0.28.0 build /home/runner/work/pluv/pluv/packages/crdt-loro
2
+ > @pluv/crdt-loro@0.30.0 build /home/runner/work/pluv/pluv/packages/crdt-loro
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.js 9.39 KB
12
- CJS ⚡️ Build success in 92ms
13
- ESM dist/index.mjs 8.33 KB
14
- ESM ⚡️ Build success in 94ms
11
+ CJS dist/index.js 9.45 KB
12
+ CJS ⚡️ Build success in 84ms
13
+ ESM dist/index.mjs 8.39 KB
14
+ ESM ⚡️ Build success in 97ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 2029ms
17
- DTS dist/index.d.mts 3.43 KB
18
- DTS dist/index.d.ts 3.43 KB
16
+ DTS ⚡️ Build success in 1784ms
17
+ DTS dist/index.d.mts 3.51 KB
18
+ DTS dist/index.d.ts 3.51 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @pluv/crdt-loro
2
2
 
3
+ ## 0.30.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 7246a9e: Added `CrdtLibraryType` so that `@pluv/crdt-yjs` and `@pluv/crdt-loro` export a new property `kind` containing an identifier for the crdt.
8
+ - @pluv/crdt@0.30.0
9
+ - @pluv/types@0.30.0
10
+
11
+ ## 0.29.0
12
+
13
+ ### Patch Changes
14
+
15
+ - @pluv/crdt@0.29.0
16
+ - @pluv/types@0.29.0
17
+
3
18
  ## 0.28.0
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -71,16 +71,19 @@ declare const object: <T extends Record<string, any>>(value: T) => LoroType<Loro
71
71
 
72
72
  declare const text: (value?: string) => LoroType<LoroText, string>;
73
73
 
74
+ declare const kind: "loro";
75
+
74
76
  type loro_CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>> = CrdtLoroDoc<TStorage>;
75
77
  declare const loro_CrdtLoroDoc: typeof CrdtLoroDoc;
76
78
  type loro_LoroType<TValue extends unknown, TJson extends unknown = any> = LoroType<TValue, TJson>;
77
79
  declare const loro_doc: typeof doc;
80
+ declare const loro_kind: typeof kind;
78
81
  declare const loro_list: typeof list;
79
82
  declare const loro_map: typeof map;
80
83
  declare const loro_object: typeof object;
81
84
  declare const loro_text: typeof text;
82
85
  declare namespace loro {
83
- export { loro_CrdtLoroDoc as CrdtLoroDoc, type loro_LoroType as LoroType, loro_doc as doc, loro_list as list, loro_map as map, loro_object as object, loro_text as text };
86
+ export { loro_CrdtLoroDoc as CrdtLoroDoc, type loro_LoroType as LoroType, loro_doc as doc, loro_kind as kind, loro_list as list, loro_map as map, loro_object as object, loro_text as text };
84
87
  }
85
88
 
86
89
  export { loro };
package/dist/index.d.ts CHANGED
@@ -71,16 +71,19 @@ declare const object: <T extends Record<string, any>>(value: T) => LoroType<Loro
71
71
 
72
72
  declare const text: (value?: string) => LoroType<LoroText, string>;
73
73
 
74
+ declare const kind: "loro";
75
+
74
76
  type loro_CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>> = CrdtLoroDoc<TStorage>;
75
77
  declare const loro_CrdtLoroDoc: typeof CrdtLoroDoc;
76
78
  type loro_LoroType<TValue extends unknown, TJson extends unknown = any> = LoroType<TValue, TJson>;
77
79
  declare const loro_doc: typeof doc;
80
+ declare const loro_kind: typeof kind;
78
81
  declare const loro_list: typeof list;
79
82
  declare const loro_map: typeof map;
80
83
  declare const loro_object: typeof object;
81
84
  declare const loro_text: typeof text;
82
85
  declare namespace loro {
83
- export { loro_CrdtLoroDoc as CrdtLoroDoc, type loro_LoroType as LoroType, loro_doc as doc, loro_list as list, loro_map as map, loro_object as object, loro_text as text };
86
+ export { loro_CrdtLoroDoc as CrdtLoroDoc, type loro_LoroType as LoroType, loro_doc as doc, loro_kind as kind, loro_list as list, loro_map as map, loro_object as object, loro_text as text };
84
87
  }
85
88
 
86
89
  export { loro };
package/dist/index.js CHANGED
@@ -46,6 +46,7 @@ var loro_exports = {};
46
46
  __export(loro_exports, {
47
47
  CrdtLoroDoc: () => CrdtLoroDoc,
48
48
  doc: () => doc,
49
+ kind: () => kind,
49
50
  list: () => list,
50
51
  map: () => map,
51
52
  object: () => object,
@@ -291,6 +292,9 @@ var text = (value = "") => {
291
292
  container.insert(0, value);
292
293
  return container;
293
294
  };
295
+
296
+ // src/loro.ts
297
+ var kind = "loro";
294
298
  // Annotate the CommonJS export names for ESM import in node:
295
299
  0 && (module.exports = {
296
300
  loro
package/dist/index.mjs CHANGED
@@ -27,6 +27,7 @@ var loro_exports = {};
27
27
  __export(loro_exports, {
28
28
  CrdtLoroDoc: () => CrdtLoroDoc,
29
29
  doc: () => doc,
30
+ kind: () => kind,
30
31
  list: () => list,
31
32
  map: () => map,
32
33
  object: () => object,
@@ -272,6 +273,9 @@ var text = (value = "") => {
272
273
  container.insert(0, value);
273
274
  return container;
274
275
  };
276
+
277
+ // src/loro.ts
278
+ var kind = "loro";
275
279
  export {
276
280
  loro_exports as loro
277
281
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/crdt-loro",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "description": "loro for @pluv/io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "js-base64": "^3.7.7",
21
- "@pluv/crdt": "^0.28.0",
22
- "@pluv/types": "^0.28.0"
21
+ "@pluv/crdt": "^0.30.0",
22
+ "@pluv/types": "^0.30.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "loro-crdt": "^0.16.0"
@@ -29,8 +29,8 @@
29
29
  "loro-crdt": "^0.16.12",
30
30
  "tsup": "^8.3.0",
31
31
  "typescript": "^5.6.2",
32
- "@pluv/tsconfig": "^0.28.0",
33
- "eslint-config-pluv": "^0.28.0"
32
+ "@pluv/tsconfig": "^0.30.0",
33
+ "eslint-config-pluv": "^0.30.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/loro.ts CHANGED
@@ -4,3 +4,4 @@ export { map } from "./map";
4
4
  export { object } from "./object";
5
5
  export { text } from "./text";
6
6
  export type { LoroType } from "./types";
7
+ export const kind = "loro" as const;