@pluv/client 0.9.1 → 0.9.2

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/client@0.9.1 build /home/runner/work/pluv/pluv/packages/client
2
+ > @pluv/client@0.9.2 build /home/runner/work/pluv/pluv/packages/client
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 39.02 KB
12
- ESM ⚡️ Build success in 135ms
13
- CJS dist/index.js 40.23 KB
14
- CJS ⚡️ Build success in 135ms
11
+ CJS dist/index.js 40.37 KB
12
+ CJS ⚡️ Build success in 91ms
13
+ ESM dist/index.mjs 39.16 KB
14
+ ESM ⚡️ Build success in 92ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4784ms
17
- DTS dist/index.d.mts 12.92 KB
18
- DTS dist/index.d.ts 12.92 KB
16
+ DTS ⚡️ Build success in 4611ms
17
+ DTS dist/index.d.mts 13.18 KB
18
+ DTS dist/index.d.ts 13.18 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @pluv/client
2
2
 
3
+ ## 0.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f4317ba: \* Renamed type `unstable_YObjectValue` to `YObjectValue`;
8
+
9
+ - Renamed type `unstable_YObject` to `YObject`.
10
+ - Re-exported `xmlElement`, `xmlFragment` and `xmlText` from `@pluv/client`.
11
+
12
+ ```ts
13
+ import { y } from "@pluv/client";
14
+ // or
15
+ import { y } from "@pluv/react";
16
+
17
+ y.xmlElement("MyElement", {});
18
+ y.xmlFragment({});
19
+ y.xmlText("hello world");
20
+ ```
21
+
22
+ - Updated dependencies [f4317ba]
23
+ - @pluv/crdt-yjs@0.4.2
24
+
3
25
  ## 0.9.1
4
26
 
5
27
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { InferYjsSharedTypeJson, array, map, object, text } from '@pluv/crdt-yjs';
1
+ import { InferYjsSharedTypeJson, array, map, object, text, xmlElement, xmlFragment, xmlText } from '@pluv/crdt-yjs';
2
2
  export { InferYjsSharedTypeJson } from '@pluv/crdt-yjs';
3
3
  import * as _pluv_types from '@pluv/types';
4
4
  import { IOLike, InferIOOutput, Id, IOEventMessage, JsonObject, InferIOAuthorizeUser, InferIOAuthorize, InferIOInput, InputZodLike, InferIOAuthorizeRequired } from '@pluv/types';
@@ -261,12 +261,18 @@ declare const y_array: typeof array;
261
261
  declare const y_map: typeof map;
262
262
  declare const y_object: typeof object;
263
263
  declare const y_text: typeof text;
264
+ declare const y_xmlElement: typeof xmlElement;
265
+ declare const y_xmlFragment: typeof xmlFragment;
266
+ declare const y_xmlText: typeof xmlText;
264
267
  declare namespace y {
265
268
  export {
266
269
  y_array as array,
267
270
  y_map as map,
268
271
  y_object as object,
269
272
  y_text as text,
273
+ y_xmlElement as xmlElement,
274
+ y_xmlFragment as xmlFragment,
275
+ y_xmlText as xmlText,
270
276
  };
271
277
  }
272
278
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { InferYjsSharedTypeJson, array, map, object, text } from '@pluv/crdt-yjs';
1
+ import { InferYjsSharedTypeJson, array, map, object, text, xmlElement, xmlFragment, xmlText } from '@pluv/crdt-yjs';
2
2
  export { InferYjsSharedTypeJson } from '@pluv/crdt-yjs';
3
3
  import * as _pluv_types from '@pluv/types';
4
4
  import { IOLike, InferIOOutput, Id, IOEventMessage, JsonObject, InferIOAuthorizeUser, InferIOAuthorize, InferIOInput, InputZodLike, InferIOAuthorizeRequired } from '@pluv/types';
@@ -261,12 +261,18 @@ declare const y_array: typeof array;
261
261
  declare const y_map: typeof map;
262
262
  declare const y_object: typeof object;
263
263
  declare const y_text: typeof text;
264
+ declare const y_xmlElement: typeof xmlElement;
265
+ declare const y_xmlFragment: typeof xmlFragment;
266
+ declare const y_xmlText: typeof xmlText;
264
267
  declare namespace y {
265
268
  export {
266
269
  y_array as array,
267
270
  y_map as map,
268
271
  y_object as object,
269
272
  y_text as text,
273
+ y_xmlElement as xmlElement,
274
+ y_xmlFragment as xmlFragment,
275
+ y_xmlText as xmlText,
270
276
  };
271
277
  }
272
278
 
package/dist/index.js CHANGED
@@ -1332,7 +1332,10 @@ __export(y_exports, {
1332
1332
  array: () => import_crdt_yjs2.array,
1333
1333
  map: () => import_crdt_yjs2.map,
1334
1334
  object: () => import_crdt_yjs2.object,
1335
- text: () => import_crdt_yjs2.text
1335
+ text: () => import_crdt_yjs2.text,
1336
+ xmlElement: () => import_crdt_yjs2.xmlElement,
1337
+ xmlFragment: () => import_crdt_yjs2.xmlFragment,
1338
+ xmlText: () => import_crdt_yjs2.xmlText
1336
1339
  });
1337
1340
  var import_crdt_yjs2 = require("@pluv/crdt-yjs");
1338
1341
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1306,9 +1306,20 @@ __export(y_exports, {
1306
1306
  array: () => array,
1307
1307
  map: () => map,
1308
1308
  object: () => object,
1309
- text: () => text
1309
+ text: () => text,
1310
+ xmlElement: () => xmlElement,
1311
+ xmlFragment: () => xmlFragment,
1312
+ xmlText: () => xmlText
1310
1313
  });
1311
- import { array, map, text, object } from "@pluv/crdt-yjs";
1314
+ import {
1315
+ array,
1316
+ map,
1317
+ object,
1318
+ text,
1319
+ xmlElement,
1320
+ xmlFragment,
1321
+ xmlText
1322
+ } from "@pluv/crdt-yjs";
1312
1323
  export {
1313
1324
  AbstractRoom,
1314
1325
  AbstractStorageStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/client",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "@pluv/io frontend client",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@types/react": "^18.2.15",
21
- "wonka": "^6.3.2",
22
- "@pluv/crdt-yjs": "^0.4.1",
21
+ "wonka": "^6.3.3",
22
+ "@pluv/crdt-yjs": "^0.4.2",
23
23
  "@pluv/types": "^0.2.2"
24
24
  },
25
25
  "peerDependencies": {
@@ -28,8 +28,8 @@
28
28
  "devDependencies": {
29
29
  "tsup": "^7.1.0",
30
30
  "typescript": "^5.1.6",
31
- "yjs": "^13.6.6",
32
- "@pluv/tsconfig": "^0.1.8",
31
+ "yjs": "^13.6.7",
32
+ "@pluv/tsconfig": "^0.2.0",
33
33
  "eslint-config-pluv": "^0.1.14"
34
34
  },
35
35
  "scripts": {
package/src/y.ts CHANGED
@@ -1 +1,9 @@
1
- export { array, map, text, object } from "@pluv/crdt-yjs";
1
+ export {
2
+ array,
3
+ map,
4
+ object,
5
+ text,
6
+ xmlElement,
7
+ xmlFragment,
8
+ xmlText,
9
+ } from "@pluv/crdt-yjs";