Skip to content

Commit 3927c1a

Browse files
github-actions[bot]zxch3n
authored andcommitted
chore: version packages
1 parent ee94ee4 commit 3927c1a

File tree

9 files changed

+77
-52
lines changed

9 files changed

+77
-52
lines changed

.changeset/green-trains-help.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/odd-rings-care.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/slice-delta-richtext.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

.changeset/thirty-peas-love.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

crates/loro-wasm-map/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# loro-crdt-map
22

3+
## 1.10.0
4+
5+
### Minor Changes
6+
7+
- ce16b52: feat: add sliceDelta method to slice a span of richtext #862
8+
9+
Use `text.sliceDelta(start, end)` when you need a Quill-style delta for only part of a rich text field (for example, to copy a styled snippet). The method takes UTF-16 indices; use `sliceDeltaUtf8` if you want to slice by UTF-8 byte offsets instead.
10+
11+
```ts
12+
import { LoroDoc } from "loro-crdt";
13+
14+
const doc = new LoroDoc();
15+
doc.configTextStyle({
16+
bold: { expand: "after" },
17+
comment: { expand: "none" },
18+
});
19+
const text = doc.getText("text");
20+
21+
text.insert(0, "Hello World!");
22+
text.mark({ start: 0, end: 5 }, "bold", true);
23+
text.mark({ start: 6, end: 11 }, "comment", "greeting");
24+
25+
const snippet = text.sliceDelta(1, 8);
26+
console.log(snippet);
27+
// [
28+
// { insert: "ello", attributes: { bold: true } },
29+
// { insert: " " },
30+
// { insert: "Wo", attributes: { comment: "greeting" } },
31+
// ]
32+
```
33+
34+
### Patch Changes
35+
36+
- a78d70f: fix: avoid convert panic #858
37+
- ee94ee4: fix: EphemeralStore apply should ignore timeout entries #865
38+
- 9e0a613: fix: Reject symbol-keyed map objects in wasm conversion #855
39+
340
## 1.9.0
441

542
### Minor Changes

crates/loro-wasm-map/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loro-crdt-map",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"description": "Source maps for the loro-crdt WebAssembly bundles.",
55
"repository": {
66
"type": "git",

crates/loro-wasm/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Changelog
22

3+
## 1.10.0
4+
5+
### Minor Changes
6+
7+
- ce16b52: feat: add sliceDelta method to slice a span of richtext #862
8+
9+
Use `text.sliceDelta(start, end)` when you need a Quill-style delta for only part of a rich text field (for example, to copy a styled snippet). The method takes UTF-16 indices; use `sliceDeltaUtf8` if you want to slice by UTF-8 byte offsets instead.
10+
11+
```ts
12+
import { LoroDoc } from "loro-crdt";
13+
14+
const doc = new LoroDoc();
15+
doc.configTextStyle({
16+
bold: { expand: "after" },
17+
comment: { expand: "none" },
18+
});
19+
const text = doc.getText("text");
20+
21+
text.insert(0, "Hello World!");
22+
text.mark({ start: 0, end: 5 }, "bold", true);
23+
text.mark({ start: 6, end: 11 }, "comment", "greeting");
24+
25+
const snippet = text.sliceDelta(1, 8);
26+
console.log(snippet);
27+
// [
28+
// { insert: "ello", attributes: { bold: true } },
29+
// { insert: " " },
30+
// { insert: "Wo", attributes: { comment: "greeting" } },
31+
// ]
32+
```
33+
34+
### Patch Changes
35+
36+
- a78d70f: fix: avoid convert panic #858
37+
- ee94ee4: fix: EphemeralStore apply should ignore timeout entries #865
38+
- 9e0a613: fix: Reject symbol-keyed map objects in wasm conversion #855
39+
340
## 1.9.0
441

542
### Minor Changes

crates/loro-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "loro-wasm"
3-
version = "1.9.0"
3+
version = "1.10.0"
44
edition = "2021"
55
publish = false
66
repository = "https://github.com/loro-dev/loro/"

crates/loro-wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loro-crdt",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"description": "Loro CRDTs is a high-performance CRDT framework that makes your app state synchronized, collaborative and maintainable effortlessly.",
55
"keywords": [
66
"crdt",

0 commit comments

Comments
 (0)