jazz-tools 0.14.21 → 0.14.23
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 +5 -5
- package/CHANGELOG.md +16 -0
- package/dist/{chunk-DAOCWHIV.js → chunk-LCH2NPSZ.js} +6 -3
- package/dist/chunk-LCH2NPSZ.js.map +1 -0
- package/dist/coValues/coPlainText.d.ts.map +1 -1
- package/dist/implementation/zodSchema/schemaTypes/AccountSchema.d.ts +1 -1
- package/dist/implementation/zodSchema/schemaTypes/AccountSchema.d.ts.map +1 -1
- package/dist/implementation/zodSchema/zodCo.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/src/coValues/coPlainText.ts +12 -2
- package/src/implementation/zodSchema/schemaTypes/AccountSchema.ts +3 -13
- package/src/tests/coPlainText.test.ts +8 -0
- package/src/tests/groupsAndAccounts.test.ts +24 -17
- package/dist/chunk-DAOCWHIV.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.14.
|
2
|
+
> jazz-tools@0.14.23 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup && pnpm types
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -11,12 +11,12 @@
|
|
11
11
|
[34mESM[39m Build start
|
12
12
|
[32mESM[39m [1mdist/index.js [22m[32m11.11 KB[39m
|
13
13
|
[32mESM[39m [1mdist/testing.js [22m[32m6.31 KB[39m
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
14
|
+
[32mESM[39m [1mdist/chunk-LCH2NPSZ.js [22m[32m136.28 KB[39m
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m18.38 KB[39m
|
16
16
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.57 KB[39m
|
17
|
-
[32mESM[39m [1mdist/chunk-
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
17
|
+
[32mESM[39m [1mdist/chunk-LCH2NPSZ.js.map [22m[32m311.94 KB[39m
|
18
|
+
[32mESM[39m ⚡️ Build success in 46ms
|
19
19
|
|
20
|
-
> jazz-tools@0.14.
|
20
|
+
> jazz-tools@0.14.23 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
21
21
|
> tsc --outDir dist
|
22
22
|
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
+
## 0.14.23
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 9177579: Fixs coText applyDiff out of bounds insertion with emoji
|
8
|
+
- Updated dependencies [1ca9299]
|
9
|
+
- cojson@0.14.23
|
10
|
+
|
11
|
+
## 0.14.22
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- 048ac1d: Fix: Ensure the types on withMigration expect a shallowly loaded Account
|
16
|
+
- Updated dependencies [57fb69f]
|
17
|
+
- cojson@0.14.22
|
18
|
+
|
3
19
|
## 0.14.21
|
4
20
|
|
5
21
|
### Patch Changes
|
@@ -2407,12 +2407,15 @@ var CoPlainText = class extends String {
|
|
2407
2407
|
*/
|
2408
2408
|
applyDiff(other) {
|
2409
2409
|
const current = this._raw.toString();
|
2410
|
-
|
2410
|
+
const currentGraphemes = this._raw.toGraphemes(current);
|
2411
|
+
const otherGraphemes = this._raw.toGraphemes(other);
|
2412
|
+
const patches = [...calcPatch2(currentGraphemes, otherGraphemes)];
|
2413
|
+
for (const [from, to, insert] of patches.reverse()) {
|
2411
2414
|
if (to > from) {
|
2412
2415
|
this.deleteRange({ from, to });
|
2413
2416
|
}
|
2414
2417
|
if (insert.length > 0) {
|
2415
|
-
this.insertBefore(from, insert);
|
2418
|
+
this.insertBefore(from, this._raw.fromGraphemes(insert));
|
2416
2419
|
}
|
2417
2420
|
}
|
2418
2421
|
}
|
@@ -4795,4 +4798,4 @@ export {
|
|
4795
4798
|
JazzContextManager
|
4796
4799
|
};
|
4797
4800
|
/* istanbul ignore file -- @preserve */
|
4798
|
-
//# sourceMappingURL=chunk-
|
4801
|
+
//# sourceMappingURL=chunk-LCH2NPSZ.js.map
|