@pluv/crdt-yjs 0.29.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-yjs@0.29.0 build /home/runner/work/pluv/pluv/packages/crdt-yjs
2
+ > @pluv/crdt-yjs@0.30.0 build /home/runner/work/pluv/pluv/packages/crdt-yjs
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
- ESM dist/index.mjs 10.87 KB
12
- ESM ⚡️ Build success in 133ms
13
- CJS dist/index.js 11.65 KB
14
- CJS ⚡️ Build success in 137ms
11
+ ESM dist/index.mjs 10.92 KB
12
+ ESM ⚡️ Build success in 114ms
13
+ CJS dist/index.js 11.70 KB
14
+ CJS ⚡️ Build success in 115ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 2453ms
17
- DTS dist/index.d.mts 3.87 KB
18
- DTS dist/index.d.ts 3.87 KB
16
+ DTS ⚡️ Build success in 2188ms
17
+ DTS dist/index.d.mts 3.95 KB
18
+ DTS dist/index.d.ts 3.95 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/crdt-yjs
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
+
3
11
  ## 0.29.0
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -66,9 +66,12 @@ declare const xmlFragment: (children: (XmlElement | XmlText)[] | readonly (XmlEl
66
66
 
67
67
  declare const xmlText: () => YjsType<XmlText, string>;
68
68
 
69
+ declare const kind: "yjs";
70
+
69
71
  type yjs_YjsType<TValue extends unknown, TJson extends unknown = any> = YjsType<TValue, TJson>;
70
72
  declare const yjs_array: typeof array;
71
73
  declare const yjs_doc: typeof doc;
74
+ declare const yjs_kind: typeof kind;
72
75
  declare const yjs_map: typeof map;
73
76
  declare const yjs_object: typeof object;
74
77
  declare const yjs_text: typeof text;
@@ -76,7 +79,7 @@ declare const yjs_xmlElement: typeof xmlElement;
76
79
  declare const yjs_xmlFragment: typeof xmlFragment;
77
80
  declare const yjs_xmlText: typeof xmlText;
78
81
  declare namespace yjs {
79
- export { type yjs_YjsType as YjsType, yjs_array as array, yjs_doc as doc, yjs_map as map, yjs_object as object, yjs_text as text, yjs_xmlElement as xmlElement, yjs_xmlFragment as xmlFragment, yjs_xmlText as xmlText };
82
+ export { type yjs_YjsType as YjsType, yjs_array as array, yjs_doc as doc, yjs_kind as kind, yjs_map as map, yjs_object as object, yjs_text as text, yjs_xmlElement as xmlElement, yjs_xmlFragment as xmlFragment, yjs_xmlText as xmlText };
80
83
  }
81
84
 
82
85
  export { yjs };
package/dist/index.d.ts CHANGED
@@ -66,9 +66,12 @@ declare const xmlFragment: (children: (XmlElement | XmlText)[] | readonly (XmlEl
66
66
 
67
67
  declare const xmlText: () => YjsType<XmlText, string>;
68
68
 
69
+ declare const kind: "yjs";
70
+
69
71
  type yjs_YjsType<TValue extends unknown, TJson extends unknown = any> = YjsType<TValue, TJson>;
70
72
  declare const yjs_array: typeof array;
71
73
  declare const yjs_doc: typeof doc;
74
+ declare const yjs_kind: typeof kind;
72
75
  declare const yjs_map: typeof map;
73
76
  declare const yjs_object: typeof object;
74
77
  declare const yjs_text: typeof text;
@@ -76,7 +79,7 @@ declare const yjs_xmlElement: typeof xmlElement;
76
79
  declare const yjs_xmlFragment: typeof xmlFragment;
77
80
  declare const yjs_xmlText: typeof xmlText;
78
81
  declare namespace yjs {
79
- export { type yjs_YjsType as YjsType, yjs_array as array, yjs_doc as doc, yjs_map as map, yjs_object as object, yjs_text as text, yjs_xmlElement as xmlElement, yjs_xmlFragment as xmlFragment, yjs_xmlText as xmlText };
82
+ export { type yjs_YjsType as YjsType, yjs_array as array, yjs_doc as doc, yjs_kind as kind, yjs_map as map, yjs_object as object, yjs_text as text, yjs_xmlElement as xmlElement, yjs_xmlFragment as xmlFragment, yjs_xmlText as xmlText };
80
83
  }
81
84
 
82
85
  export { yjs };
package/dist/index.js CHANGED
@@ -46,6 +46,7 @@ var yjs_exports = {};
46
46
  __export(yjs_exports, {
47
47
  array: () => array,
48
48
  doc: () => doc,
49
+ kind: () => kind,
49
50
  map: () => map,
50
51
  object: () => object,
51
52
  text: () => text,
@@ -384,6 +385,9 @@ var CrdtYjsDocFactory = class _CrdtYjsDocFactory extends import_crdt2.AbstractCr
384
385
  var doc = (value = () => ({})) => {
385
386
  return new CrdtYjsDocFactory(value);
386
387
  };
388
+
389
+ // src/yjs.ts
390
+ var kind = "yjs";
387
391
  // Annotate the CommonJS export names for ESM import in node:
388
392
  0 && (module.exports = {
389
393
  yjs
package/dist/index.mjs CHANGED
@@ -27,6 +27,7 @@ var yjs_exports = {};
27
27
  __export(yjs_exports, {
28
28
  array: () => array,
29
29
  doc: () => doc,
30
+ kind: () => kind,
30
31
  map: () => map,
31
32
  object: () => object,
32
33
  text: () => text,
@@ -376,6 +377,9 @@ var CrdtYjsDocFactory = class _CrdtYjsDocFactory extends AbstractCrdtDocFactory
376
377
  var doc = (value = () => ({})) => {
377
378
  return new CrdtYjsDocFactory(value);
378
379
  };
380
+
381
+ // src/yjs.ts
382
+ var kind = "yjs";
379
383
  export {
380
384
  yjs_exports as yjs
381
385
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/crdt-yjs",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "yjs 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.29.0",
22
- "@pluv/types": "^0.29.0"
21
+ "@pluv/crdt": "^0.30.0",
22
+ "@pluv/types": "^0.30.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "yjs": "^13.0.0"
@@ -29,8 +29,8 @@
29
29
  "tsup": "^8.3.0",
30
30
  "typescript": "^5.6.2",
31
31
  "yjs": "^13.6.19",
32
- "@pluv/tsconfig": "^0.29.0",
33
- "eslint-config-pluv": "^0.29.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/yjs.ts CHANGED
@@ -7,3 +7,4 @@ export type { YjsType } from "./types";
7
7
  export { xmlElement } from "./xmlElement";
8
8
  export { xmlFragment } from "./xmlFragment";
9
9
  export { xmlText } from "./xmlText";
10
+ export const kind = "yjs" as const;