@pluv/crdt-yjs 2.2.4 → 2.2.6

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@2.2.4 build /home/runner/work/pluv/pluv/packages/crdt-yjs
2
+ > @pluv/crdt-yjs@2.2.6 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 22.25 KB
12
- ESM ⚡️ Build success in 127ms
13
- CJS dist/index.js 23.19 KB
14
- CJS ⚡️ Build success in 128ms
11
+ ESM dist/index.mjs 22.24 KB
12
+ ESM ⚡️ Build success in 105ms
13
+ CJS dist/index.js 23.18 KB
14
+ CJS ⚡️ Build success in 105ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4888ms
16
+ DTS ⚡️ Build success in 4897ms
17
17
  DTS dist/index.d.mts 10.95 KB
18
18
  DTS dist/index.d.ts 10.95 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @pluv/crdt-yjs
2
2
 
3
+ ## 2.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/crdt@2.2.6
8
+ - @pluv/types@2.2.6
9
+
10
+ ## 2.2.5
11
+
12
+ ### Patch Changes
13
+
14
+ - @pluv/crdt@2.2.5
15
+ - @pluv/types@2.2.5
16
+
3
17
  ## 2.2.4
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -258,7 +258,7 @@ var YjsText = class extends import_yjs4.Text {
258
258
 
259
259
  // src/utils/oneLine.ts
260
260
  var oneLine = (strings, ...values) => {
261
- return strings.map((str) => str.replace(/\s+/g, " ").trim()).reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "").replace(/\s+/g, " ").trim();
261
+ return strings.map((str) => str.replace(/\s+/g, " ")).reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "").replace(/\s+/g, " ").trim();
262
262
  };
263
263
 
264
264
  // src/xmlElement/YjsXmlElement.ts
package/dist/index.mjs CHANGED
@@ -251,7 +251,7 @@ var YjsText = class extends YText {
251
251
 
252
252
  // src/utils/oneLine.ts
253
253
  var oneLine = (strings, ...values) => {
254
- return strings.map((str) => str.replace(/\s+/g, " ").trim()).reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "").replace(/\s+/g, " ").trim();
254
+ return strings.map((str) => str.replace(/\s+/g, " ")).reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "").replace(/\s+/g, " ").trim();
255
255
  };
256
256
 
257
257
  // src/xmlElement/YjsXmlElement.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/crdt-yjs",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "yjs for @pluv/io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -20,8 +20,8 @@
20
20
  "@types/node": "^22.15.21",
21
21
  "js-base64": "^3.7.7",
22
22
  "lib0": "^0.2.108",
23
- "@pluv/crdt": "^2.2.4",
24
- "@pluv/types": "^2.2.4"
23
+ "@pluv/crdt": "^2.2.6",
24
+ "@pluv/types": "^2.2.6"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "yjs": "^13.0.0"
@@ -31,8 +31,8 @@
31
31
  "tsup": "^8.5.0",
32
32
  "typescript": "^5.8.3",
33
33
  "yjs": "^13.6.27",
34
- "@pluv/tsconfig": "^2.2.4",
35
- "eslint-config-pluv": "^2.2.4"
34
+ "@pluv/tsconfig": "^2.2.6",
35
+ "eslint-config-pluv": "^2.2.6"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsup src/index.ts --format esm,cjs --dts",
@@ -1,6 +1,6 @@
1
1
  export const oneLine = (strings: TemplateStringsArray, ...values: unknown[]): string => {
2
2
  return strings
3
- .map((str) => str.replace(/\s+/g, " ").trim())
3
+ .map((str) => str.replace(/\s+/g, " "))
4
4
  .reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "")
5
5
  .replace(/\s+/g, " ")
6
6
  .trim();