@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +25 -0
- package/README.md +6 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
- package/src/index.ts +1 -1
- package/src/object.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/crdt-yjs@0.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v6.
|
|
7
|
+
[34mCLI[39m tsup v6.6.3
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m4.69 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 49ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m3.50 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 50ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 1692ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.09 KB[39m
|
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://
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
21
|
-
"@pluv/types": "^0.1.
|
|
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.
|
|
28
|
-
"typescript": "^4.9.
|
|
29
|
-
"yjs": "^13.5.
|
|
30
|
-
"@pluv/tsconfig": "^0.1.
|
|
31
|
-
"eslint-config-pluv": "^0.1.
|
|
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 {
|
|
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
|
|
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>;
|