@pluv/crdt-loro 2.0.0 → 2.0.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/crdt-loro@2.0.0 build /home/runner/work/pluv/pluv/packages/crdt-loro
2
+ > @pluv/crdt-loro@2.0.2 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
- ESM dist/index.mjs 14.35 KB
12
- ESM ⚡️ Build success in 71ms
13
11
  CJS dist/index.js 15.55 KB
14
- CJS ⚡️ Build success in 77ms
12
+ CJS ⚡️ Build success in 72ms
13
+ ESM dist/index.mjs 14.35 KB
14
+ ESM ⚡️ Build success in 74ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4019ms
16
+ DTS ⚡️ Build success in 3975ms
17
17
  DTS dist/index.d.mts 4.57 KB
18
18
  DTS dist/index.d.ts 4.57 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @pluv/crdt-loro
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 945c47d: Updated deprecation warnings to read that features will be removed in v3 instead of v2.
8
+
9
+ Due to an [extremely unfortunate bug in changesets](https://github.com/changesets/changesets/issues/1011), minor and patch changes will create major releases. This caused an unintended v2 release that had no breaking changes. To avoid backtracking and deleting deprecated functionalities right away, the deprecation warnings have been updated so that those APIs will be removed in v3 instead of v2.
10
+
11
+ - @pluv/crdt@2.0.2
12
+ - @pluv/types@2.0.2
13
+
14
+ ## 2.0.1
15
+
16
+ ### Patch Changes
17
+
18
+ - @pluv/crdt@2.0.1
19
+ - @pluv/types@2.0.1
20
+
3
21
  ## 2.0.0
4
22
 
5
23
  ### Minor Changes
package/dist/index.js CHANGED
@@ -131,9 +131,9 @@ var CrdtLoroDoc = class {
131
131
  if (node instanceof import_loro_crdt3.LoroCounter) {
132
132
  this._warn(oneLine`
133
133
  Warning: You are using \`loro.counter\` to declare top-level storage value \`${key}\`.
134
- Adding top-level values this way has been deprecated, to be removed in v2.
135
- Please follow the v2 migration guide to declare top-level types correctly:
136
- https://pluv.io/docs/migration-guides/v2
134
+ Adding top-level values this way has been deprecated, to be removed in v3.
135
+ Please follow the v3 migration guide to declare top-level types correctly:
136
+ https://pluv.io/docs/migration-guides/v3
137
137
  `);
138
138
  const container = this.value.getCounter(key);
139
139
  return __spreadProps(__spreadValues({}, acc), { [key]: container });
@@ -141,9 +141,9 @@ var CrdtLoroDoc = class {
141
141
  if (node instanceof import_loro_crdt3.LoroList) {
142
142
  this._warn(oneLine`
143
143
  Warning: You are using \`loro.list\` to declare top-level storage value \`${key}\`.
144
- Adding top-level values this way has been deprecated, to be removed in v2.
145
- Please follow the v2 migration guide to declare top-level types correctly:
146
- https://pluv.io/docs/migration-guides/v2
144
+ Adding top-level values this way has been deprecated, to be removed in v3.
145
+ Please follow the v3 migration guide to declare top-level types correctly:
146
+ https://pluv.io/docs/migration-guides/v3
147
147
  `);
148
148
  const container = this.value.getList(key);
149
149
  node.toArray().forEach((item, i) => {
@@ -155,9 +155,9 @@ var CrdtLoroDoc = class {
155
155
  if (node instanceof import_loro_crdt3.LoroMap) {
156
156
  this._warn(oneLine`
157
157
  Warning: You are using \`loro.map\` to declare top-level storage value \`${key}\`.
158
- Adding top-level values this way has been deprecated, to be removed in v2.
159
- Please follow the v2 migration guide to declare top-level types correctly:
160
- https://pluv.io/docs/migration-guides/v2
158
+ Adding top-level values this way has been deprecated, to be removed in v3.
159
+ Please follow the v3 migration guide to declare top-level types correctly:
160
+ https://pluv.io/docs/migration-guides/v3
161
161
  `);
162
162
  const container = this.value.getMap(key);
163
163
  container.entries().forEach(([key2, item]) => {
@@ -169,9 +169,9 @@ var CrdtLoroDoc = class {
169
169
  if (node instanceof import_loro_crdt3.LoroMovableList) {
170
170
  this._warn(oneLine`
171
171
  Warning: You are using \`loro.moveableList\` to declare top-level storage value \`${key}\`.
172
- Adding top-level values this way has been deprecated, to be removed in v2.
173
- Please follow the v2 migration guide to declare top-level types correctly:
174
- https://pluv.io/docs/migration-guides/v2
172
+ Adding top-level values this way has been deprecated, to be removed in v3.
173
+ Please follow the v3 migration guide to declare top-level types correctly:
174
+ https://pluv.io/docs/migration-guides/v3
175
175
  `);
176
176
  const container = this.value.getMovableList(key);
177
177
  node.toArray().forEach((item, i) => {
@@ -183,9 +183,9 @@ var CrdtLoroDoc = class {
183
183
  if (node instanceof import_loro_crdt3.LoroText) {
184
184
  this._warn(oneLine`
185
185
  Warning: You are using \`loro.text\` to declare top-level storage value \`${key}\`.
186
- Adding top-level values this way has been deprecated, to be removed in v2.
187
- Please follow the v2 migration guide to declare top-level types correctly:
188
- https://pluv.io/docs/migration-guides/v2
186
+ Adding top-level values this way has been deprecated, to be removed in v3.
187
+ Please follow the v3 migration guide to declare top-level types correctly:
188
+ https://pluv.io/docs/migration-guides/v3
189
189
  `);
190
190
  const container = this.value.getText(key);
191
191
  container.insert(0, node.toString());
@@ -194,9 +194,9 @@ var CrdtLoroDoc = class {
194
194
  if (node instanceof import_loro_crdt3.LoroTree) {
195
195
  this._warn(oneLine`
196
196
  Warning: You are using \`loro.tree\` to declare top-level storage value \`${key}\`.
197
- Adding top-level values this way has been deprecated, to be removed in v2.
198
- Please follow the v2 migration guide to declare top-level types correctly:
199
- https://pluv.io/docs/migration-guides/v2
197
+ Adding top-level values this way has been deprecated, to be removed in v3.
198
+ Please follow the v3 migration guide to declare top-level types correctly:
199
+ https://pluv.io/docs/migration-guides/v3
200
200
  `);
201
201
  const container = this.value.getTree(key);
202
202
  return __spreadProps(__spreadValues({}, acc), { [key]: container });
package/dist/index.mjs CHANGED
@@ -122,9 +122,9 @@ var CrdtLoroDoc = class {
122
122
  if (node instanceof LoroCounter2) {
123
123
  this._warn(oneLine`
124
124
  Warning: You are using \`loro.counter\` to declare top-level storage value \`${key}\`.
125
- Adding top-level values this way has been deprecated, to be removed in v2.
126
- Please follow the v2 migration guide to declare top-level types correctly:
127
- https://pluv.io/docs/migration-guides/v2
125
+ Adding top-level values this way has been deprecated, to be removed in v3.
126
+ Please follow the v3 migration guide to declare top-level types correctly:
127
+ https://pluv.io/docs/migration-guides/v3
128
128
  `);
129
129
  const container = this.value.getCounter(key);
130
130
  return __spreadProps(__spreadValues({}, acc), { [key]: container });
@@ -132,9 +132,9 @@ var CrdtLoroDoc = class {
132
132
  if (node instanceof LoroList) {
133
133
  this._warn(oneLine`
134
134
  Warning: You are using \`loro.list\` to declare top-level storage value \`${key}\`.
135
- Adding top-level values this way has been deprecated, to be removed in v2.
136
- Please follow the v2 migration guide to declare top-level types correctly:
137
- https://pluv.io/docs/migration-guides/v2
135
+ Adding top-level values this way has been deprecated, to be removed in v3.
136
+ Please follow the v3 migration guide to declare top-level types correctly:
137
+ https://pluv.io/docs/migration-guides/v3
138
138
  `);
139
139
  const container = this.value.getList(key);
140
140
  node.toArray().forEach((item, i) => {
@@ -146,9 +146,9 @@ var CrdtLoroDoc = class {
146
146
  if (node instanceof LoroMap) {
147
147
  this._warn(oneLine`
148
148
  Warning: You are using \`loro.map\` to declare top-level storage value \`${key}\`.
149
- Adding top-level values this way has been deprecated, to be removed in v2.
150
- Please follow the v2 migration guide to declare top-level types correctly:
151
- https://pluv.io/docs/migration-guides/v2
149
+ Adding top-level values this way has been deprecated, to be removed in v3.
150
+ Please follow the v3 migration guide to declare top-level types correctly:
151
+ https://pluv.io/docs/migration-guides/v3
152
152
  `);
153
153
  const container = this.value.getMap(key);
154
154
  container.entries().forEach(([key2, item]) => {
@@ -160,9 +160,9 @@ var CrdtLoroDoc = class {
160
160
  if (node instanceof LoroMovableList) {
161
161
  this._warn(oneLine`
162
162
  Warning: You are using \`loro.moveableList\` to declare top-level storage value \`${key}\`.
163
- Adding top-level values this way has been deprecated, to be removed in v2.
164
- Please follow the v2 migration guide to declare top-level types correctly:
165
- https://pluv.io/docs/migration-guides/v2
163
+ Adding top-level values this way has been deprecated, to be removed in v3.
164
+ Please follow the v3 migration guide to declare top-level types correctly:
165
+ https://pluv.io/docs/migration-guides/v3
166
166
  `);
167
167
  const container = this.value.getMovableList(key);
168
168
  node.toArray().forEach((item, i) => {
@@ -174,9 +174,9 @@ var CrdtLoroDoc = class {
174
174
  if (node instanceof LoroText) {
175
175
  this._warn(oneLine`
176
176
  Warning: You are using \`loro.text\` to declare top-level storage value \`${key}\`.
177
- Adding top-level values this way has been deprecated, to be removed in v2.
178
- Please follow the v2 migration guide to declare top-level types correctly:
179
- https://pluv.io/docs/migration-guides/v2
177
+ Adding top-level values this way has been deprecated, to be removed in v3.
178
+ Please follow the v3 migration guide to declare top-level types correctly:
179
+ https://pluv.io/docs/migration-guides/v3
180
180
  `);
181
181
  const container = this.value.getText(key);
182
182
  container.insert(0, node.toString());
@@ -185,9 +185,9 @@ var CrdtLoroDoc = class {
185
185
  if (node instanceof LoroTree) {
186
186
  this._warn(oneLine`
187
187
  Warning: You are using \`loro.tree\` to declare top-level storage value \`${key}\`.
188
- Adding top-level values this way has been deprecated, to be removed in v2.
189
- Please follow the v2 migration guide to declare top-level types correctly:
190
- https://pluv.io/docs/migration-guides/v2
188
+ Adding top-level values this way has been deprecated, to be removed in v3.
189
+ Please follow the v3 migration guide to declare top-level types correctly:
190
+ https://pluv.io/docs/migration-guides/v3
191
191
  `);
192
192
  const container = this.value.getTree(key);
193
193
  return __spreadProps(__spreadValues({}, acc), { [key]: container });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/crdt-loro",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "loro for @pluv/io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,21 +17,21 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
+ "@types/node": "^22.15.17",
20
21
  "js-base64": "^3.7.7",
21
- "@pluv/crdt": "^2.0.0",
22
- "@pluv/types": "^2.0.0"
22
+ "@pluv/crdt": "^2.0.2",
23
+ "@pluv/types": "^2.0.2"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "loro-crdt": "^1.0.0"
26
27
  },
27
28
  "devDependencies": {
28
- "@types/node": "^22.15.3",
29
- "eslint": "^9.25.1",
29
+ "eslint": "^9.26.0",
30
30
  "loro-crdt": "^1.5.4",
31
31
  "tsup": "^8.4.0",
32
32
  "typescript": "^5.8.3",
33
- "@pluv/tsconfig": "^2.0.0",
34
- "eslint-config-pluv": "^2.0.0"
33
+ "@pluv/tsconfig": "^2.0.2",
34
+ "eslint-config-pluv": "^2.0.2"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsup src/index.ts --format esm,cjs --dts",
@@ -58,9 +58,9 @@ export class CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>>
58
58
  if (node instanceof LoroCounter) {
59
59
  this._warn(oneLine`
60
60
  Warning: You are using \`loro.counter\` to declare top-level storage value \`${key}\`.
61
- Adding top-level values this way has been deprecated, to be removed in v2.
62
- Please follow the v2 migration guide to declare top-level types correctly:
63
- https://pluv.io/docs/migration-guides/v2
61
+ Adding top-level values this way has been deprecated, to be removed in v3.
62
+ Please follow the v3 migration guide to declare top-level types correctly:
63
+ https://pluv.io/docs/migration-guides/v3
64
64
  `);
65
65
 
66
66
  const container = this.value.getCounter(key);
@@ -71,9 +71,9 @@ export class CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>>
71
71
  if (node instanceof LoroList) {
72
72
  this._warn(oneLine`
73
73
  Warning: You are using \`loro.list\` to declare top-level storage value \`${key}\`.
74
- Adding top-level values this way has been deprecated, to be removed in v2.
75
- Please follow the v2 migration guide to declare top-level types correctly:
76
- https://pluv.io/docs/migration-guides/v2
74
+ Adding top-level values this way has been deprecated, to be removed in v3.
75
+ Please follow the v3 migration guide to declare top-level types correctly:
76
+ https://pluv.io/docs/migration-guides/v3
77
77
  `);
78
78
 
79
79
  const container = this.value.getList(key);
@@ -89,9 +89,9 @@ export class CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>>
89
89
  if (node instanceof LoroMap) {
90
90
  this._warn(oneLine`
91
91
  Warning: You are using \`loro.map\` to declare top-level storage value \`${key}\`.
92
- Adding top-level values this way has been deprecated, to be removed in v2.
93
- Please follow the v2 migration guide to declare top-level types correctly:
94
- https://pluv.io/docs/migration-guides/v2
92
+ Adding top-level values this way has been deprecated, to be removed in v3.
93
+ Please follow the v3 migration guide to declare top-level types correctly:
94
+ https://pluv.io/docs/migration-guides/v3
95
95
  `);
96
96
 
97
97
  const container = this.value.getMap(key);
@@ -107,9 +107,9 @@ export class CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>>
107
107
  if (node instanceof LoroMovableList) {
108
108
  this._warn(oneLine`
109
109
  Warning: You are using \`loro.moveableList\` to declare top-level storage value \`${key}\`.
110
- Adding top-level values this way has been deprecated, to be removed in v2.
111
- Please follow the v2 migration guide to declare top-level types correctly:
112
- https://pluv.io/docs/migration-guides/v2
110
+ Adding top-level values this way has been deprecated, to be removed in v3.
111
+ Please follow the v3 migration guide to declare top-level types correctly:
112
+ https://pluv.io/docs/migration-guides/v3
113
113
  `);
114
114
 
115
115
  const container = this.value.getMovableList(key);
@@ -125,9 +125,9 @@ export class CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>>
125
125
  if (node instanceof LoroText) {
126
126
  this._warn(oneLine`
127
127
  Warning: You are using \`loro.text\` to declare top-level storage value \`${key}\`.
128
- Adding top-level values this way has been deprecated, to be removed in v2.
129
- Please follow the v2 migration guide to declare top-level types correctly:
130
- https://pluv.io/docs/migration-guides/v2
128
+ Adding top-level values this way has been deprecated, to be removed in v3.
129
+ Please follow the v3 migration guide to declare top-level types correctly:
130
+ https://pluv.io/docs/migration-guides/v3
131
131
  `);
132
132
 
133
133
  const container = this.value.getText(key);
@@ -140,9 +140,9 @@ export class CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>>
140
140
  if (node instanceof LoroTree) {
141
141
  this._warn(oneLine`
142
142
  Warning: You are using \`loro.tree\` to declare top-level storage value \`${key}\`.
143
- Adding top-level values this way has been deprecated, to be removed in v2.
144
- Please follow the v2 migration guide to declare top-level types correctly:
145
- https://pluv.io/docs/migration-guides/v2
143
+ Adding top-level values this way has been deprecated, to be removed in v3.
144
+ Please follow the v3 migration guide to declare top-level types correctly:
145
+ https://pluv.io/docs/migration-guides/v3
146
146
  `);
147
147
 
148
148
  const container = this.value.getTree(key);