@pluv/crdt-yjs 0.2.0 → 0.3.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,17 +1,17 @@
1
1
 
2
- > @pluv/crdt-yjs@0.2.0 build /home/runner/work/pluv/pluv/packages/crdt-yjs
2
+ > @pluv/crdt-yjs@0.3.1 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
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v6.5.0
7
+ CLI tsup v6.6.3
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 3.52 KB
12
- ESM ⚡️ Build success in 65ms
13
- CJS dist/index.js 4.73 KB
14
- CJS ⚡️ Build success in 76ms
11
+ CJS dist/index.js 4.69 KB
12
+ CJS ⚡️ Build success in 49ms
13
+ ESM dist/index.mjs 3.50 KB
14
+ ESM ⚡️ Build success in 50ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1515ms
17
- DTS dist/index.d.ts 3.11 KB
16
+ DTS ⚡️ Build success in 1692ms
17
+ DTS dist/index.d.ts 3.09 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @pluv/crdt-yjs
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 161e00e: fixed links to other pluv packages in readmes
8
+ - f6c0e65: bumped dependencies
9
+ - @pluv/types@0.1.3
10
+
11
+ ## 0.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 327a6ef: renamed y.unstable\_\_object to y.object
16
+
17
+ ### Patch Changes
18
+
19
+ - 8bf62cb: bumped dependencies
20
+ - 7e52685: Bumped dependencies
21
+ - b1cb325: Updated dependencies
22
+ - 8e97fb2: Updated dependencies
23
+ - Updated dependencies [8bf62cb]
24
+ - Updated dependencies [7e52685]
25
+ - Updated dependencies [8e97fb2]
26
+ - @pluv/types@0.1.3
27
+
3
28
  ## 0.2.0
4
29
 
5
30
  ### Minor Changes
package/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
  > This package is currently in preview and may have breaking changes between versions. Please wait for a `v1.0.0` stable release before using this in production.
3
3
 
4
4
  <h1 align="center">
5
- <br>
6
- <img src="https://github.com/pluv-io/pluv/blob/master/assets/pluv-icon-192x192.png?raw=true" alt="Pluv.IO" width="180" style="border-radius:16px">
7
- <br>
5
+ <br />
6
+ <img src="https://github.com/pluv-io/pluv/blob/master/assets/pluv-icon-192x192.png?raw=true" alt="Pluv.IO" width="180" style="border-radius:16px" />
7
+ <br />
8
8
  Pluv.IO (preview)
9
- <br>
9
+ <br />
10
10
  </h1>
11
11
 
12
12
  <h3 align="center">Multi-platform, E2E type-safe realtime packages</h3>
@@ -19,7 +19,7 @@
19
19
  <a href="https://github.com/pluv-io/pluv/blob/master/LICENSE">
20
20
  <img alt="GitHub" src="https://img.shields.io/github/license/pluv-io/pluv" alt="License MIT" />
21
21
  </a>
22
- <img src="https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555" alt="TypeScript">
22
+ <img src="https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555" alt="TypeScript" />
23
23
  <a href="https://commitizen.github.io/cz-cli/">
24
24
  <img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen friendly" />
25
25
  </a>
@@ -32,7 +32,7 @@
32
32
 
33
33
  ## `@pluv/crdt-yjs`
34
34
 
35
- > Yjs adapter for [@pluv/client](https://img.shields.io/npm/v/@pluv/client) and [@pluv/io](https://img.shields.io/npm/v/@pluv/io).
35
+ > Yjs adapter for [@pluv/client](https://www.npmjs.com/package/@pluv/client) and [@pluv/io](https://www.npmjs.com/package/@pluv/io).
36
36
 
37
37
  ## Installation
38
38
 
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ type unstable__YObjectValue = Record<string, NonNullable<JsonPrimitive> | Abstra
8
8
  type unstable__YObject<T extends unstable__YObjectValue> = Map<T[keyof T]> & {
9
9
  __$type: T;
10
10
  };
11
- declare const unstable__object: <T extends unstable__YObjectValue = {}>(value: T) => unstable__YObject<T>;
11
+ declare const object: <T extends unstable__YObjectValue = {}>(value: T) => unstable__YObject<T>;
12
12
 
13
13
  type InferYjsDocJson<TDoc extends YjsDoc<any>> = TDoc extends YjsDoc<infer ITypes> ? {
14
14
  [P in keyof ITypes]: InferYjsSharedTypeJson<ITypes[P]>;
@@ -52,4 +52,4 @@ declare const xmlFragment: (params?: XmlFragmentParams) => XmlFragment;
52
52
 
53
53
  declare const xmlText: (value?: string) => XmlText;
54
54
 
55
- export { InferYjsDocJson, InferYjsDocSharedType, InferYjsDocSharedTypeJson, InferYjsDocSharedTypes, InferYjsSharedTypeJson, XmlElementParams, XmlFragmentParams, YjsDoc, array, doc, map, text, unstable__YObject, unstable__object, xmlElement, xmlFragment, xmlText };
55
+ export { InferYjsDocJson, InferYjsDocSharedType, InferYjsDocSharedTypeJson, InferYjsDocSharedTypes, InferYjsSharedTypeJson, XmlElementParams, XmlFragmentParams, YjsDoc, array, doc, map, object, text, unstable__YObject, xmlElement, xmlFragment, xmlText };
package/dist/index.js CHANGED
@@ -41,8 +41,8 @@ __export(src_exports, {
41
41
  array: () => array,
42
42
  doc: () => doc,
43
43
  map: () => map,
44
+ object: () => object,
44
45
  text: () => text,
45
- unstable__object: () => unstable__object,
46
46
  xmlElement: () => xmlElement,
47
47
  xmlFragment: () => xmlFragment,
48
48
  xmlText: () => xmlText
@@ -122,7 +122,7 @@ var map = (value = []) => {
122
122
 
123
123
  // src/object.ts
124
124
  var import_yjs4 = require("yjs");
125
- var unstable__object = (value) => {
125
+ var object = (value) => {
126
126
  return new import_yjs4.Map(Object.entries(value));
127
127
  };
128
128
 
@@ -161,8 +161,8 @@ var xmlText = (value = "") => {
161
161
  array,
162
162
  doc,
163
163
  map,
164
+ object,
164
165
  text,
165
- unstable__object,
166
166
  xmlElement,
167
167
  xmlFragment,
168
168
  xmlText
package/dist/index.mjs CHANGED
@@ -91,7 +91,7 @@ var map = (value = []) => {
91
91
 
92
92
  // src/object.ts
93
93
  import { Map as YMap2 } from "yjs";
94
- var unstable__object = (value) => {
94
+ var object = (value) => {
95
95
  return new YMap2(Object.entries(value));
96
96
  };
97
97
 
@@ -129,8 +129,8 @@ export {
129
129
  array,
130
130
  doc,
131
131
  map,
132
+ object,
132
133
  text,
133
- unstable__object,
134
134
  xmlElement,
135
135
  xmlFragment,
136
136
  xmlText
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/crdt-yjs",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "yjs for @pluv/io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,18 +17,18 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "js-base64": "^3.7.4",
21
- "@pluv/types": "^0.1.2"
20
+ "js-base64": "^3.7.5",
21
+ "@pluv/types": "^0.1.3"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "yjs": "^13.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "tsup": "^6.5.0",
28
- "typescript": "^4.9.4",
29
- "yjs": "^13.5.44",
30
- "@pluv/tsconfig": "^0.1.2",
31
- "eslint-config-pluv": "^0.1.3"
27
+ "tsup": "^6.6.3",
28
+ "typescript": "^4.9.5",
29
+ "yjs": "^13.5.50",
30
+ "@pluv/tsconfig": "^0.1.3",
31
+ "eslint-config-pluv": "^0.1.5"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/index.ts CHANGED
@@ -3,7 +3,7 @@ export { array } from "./array";
3
3
  export { doc, YjsDoc } from "./doc";
4
4
  export { map } from "./map";
5
5
  export type { unstable__YObject } from "./object";
6
- export { unstable__object } from "./object";
6
+ export { object } from "./object";
7
7
  export { text } from "./text";
8
8
  export type { XmlElementParams } from "./xmlElement";
9
9
  export { xmlElement } from "./xmlElement";
package/src/object.ts CHANGED
@@ -11,7 +11,7 @@ export type unstable__YObject<T extends unstable__YObjectValue> = YMap<
11
11
  T[keyof T]
12
12
  > & { __$type: T };
13
13
 
14
- export const unstable__object = <T extends unstable__YObjectValue = {}>(
14
+ export const object = <T extends unstable__YObjectValue = {}>(
15
15
  value: T
16
16
  ): unstable__YObject<T> => {
17
17
  return new YMap(Object.entries(value)) as unstable__YObject<T>;