Skip to content

Commit 998d3ef

Browse files
authored
feat: add changelog (#6)
1 parent 006d64b commit 998d3ef

5 files changed

Lines changed: 140 additions & 0 deletions

File tree

pages/changelog/v1.1.0.mdx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
version: "v1.1.0"
3+
title: "release v1.1.0"
4+
date: 2024/11/09
5+
---
6+
7+
## New
8+
9+
### LoroDoc
10+
11+
- `forkAt(frontiers: Frontiers)`: Fork the document at the given frontiers.
12+
- `getChangedContainersIn(id: ID, len: number)`: Gets container IDs modified in the given ID range.
13+
- ``
14+
15+
### LoroText
16+
17+
- `getEditorOf(pos: number)`: Get the editor of the text at the given position.
18+
- `push(s: string)`: Push a string to the end of the text.
19+
20+
21+
### LoroMap
22+
23+
- `getLastEditor(key: string)`: Get the peer id of the last editor on the given entry
24+
25+
### LoroList
26+
27+
- `getIdAt(pos: number)`: Get the ID of the list item at the given position.
28+
- `pushContainer(child: Container)`: Push a container to the end of the list.
29+
30+
### LoroMovableList
31+
32+
- `getCreatorAt(pos: number)`: Get the creator of the list item at the given position.
33+
- `getLastMoverAt(pos: number)`: Get the last mover of the list item at the given position.
34+
- `getLastEditorAt(pos: number)`: Get the last editor of the list item at the given position.
35+
- `pushContainer(child: Container)`: Push a container to the end of the list.
36+
37+
### LoroTree
38+
39+
- `toJSON()`: Get JSON format of the LoroTreeNode.
40+
41+
## Fix
42+
43+
- fix get correct encode blob info [#545](https://github.com/loro-dev/loro/pull/545)
44+
- fix: avoid creating non-root containers that doesn't exist by get_container api [#541](https://github.com/loro-dev/loro/pull/541)
45+
- fix: define the fork behavior when the doc is detached [#537](https://github.com/loro-dev/loro/pull/537)

pages/changelog/v1.2.0.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
version: "v1.2.0"
3+
title: "release v1.2.0"
4+
date: 2024/12/10
5+
---
6+
7+
## New
8+
9+
- Add `isDeleted()` method to all container types (Text, Map, List, Tree, etc.)
10+
11+
### LoroDoc
12+
13+
- `changeCount()`: Get the number of changes in the oplog.
14+
- `opCount()`: Get the number of ops in the oplog.
15+
16+
### VersionVector
17+
18+
- `setEnd(id: ID)`: Set the exclusive ending point. target id will NOT be included by self.
19+
- `setLast(id: ID)`: Set the inclusive ending point. target id will be included.
20+
- `remove(peer: PeerID)`: Remove the specific peer id.
21+
- `length()`: Get the number of peers in the VersionVector.
22+
23+
## Change
24+
25+
- Return `ImportStatus` in the `importUpdateBatch` method.
26+
- Fractional index is enabled by default now.
27+
28+
29+
## Fix
30+
31+
- fix: getOrCreateContainer should not throw if value is null [#576](https://github.com/loro-dev/loro/pull/576)
32+
- fix: dead loop when importing updates [#570](https://github.com/loro-dev/loro/pull/570)

pages/changelog/v1.3.0.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
version: "v1.3.0"
3+
title: "release v1.3.0"
4+
date: 2025/01/09
5+
---
6+
7+
## New
8+
9+
- UndoManager's `onPush` now can access the change event.
10+
- add getShallowValue for each container.
11+
12+
### LoroDoc
13+
14+
- `toJsonWithReplacer(replacer: (k, v)=>Value)`: Convert the document to a JSON value with a custom replacer function.
15+
- `revertTo(frontiers: Frontiers)`: Revert the document to the given frontiers.
16+
- `findIdSpansBetween(from: Frontiers, to: Frontiers)`: Find the op id spans that between the `from` version and the `to` version.
17+
- `exportJsonInIdSpan(idSpan: IdSpan)`: Export the readable [`Change`]s in the given [`IdSpan`].
18+
19+
## Fix
20+
21+
- fix: prevent merging remote changes based on local `changeMergeInterval` config [#643](https://github.com/loro-dev/loro/pull/643)
22+
- fix: should commit before travel_change_ancestors [#599](https://github.com/loro-dev/loro/pull/599)
23+
- fix: panic when detach then attach [#592](https://github.com/loro-dev/loro/pull/592)
24+
- fix: move child in current parent [#589](https://github.com/loro-dev/loro/pull/589)
25+
- fix: panic when returned non-boolean value from text.iter(f) [#578](https://github.com/loro-dev/loro/pull/578)

pages/changelog/v1.4.0.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
version: "v1.4.0"
3+
title: "release v1.4.0"
4+
date: 2025/02/13
5+
---
6+
7+
## New
8+
9+
- add `unsubscribe()` for Subscription.
10+
11+
## Fix
12+
13+
- fix: getting values by path in LoroTree [#643](https://github.com/loro-dev/loro/pull/643)
14+
- fix: should be able to call subscription after diffing [#637]
15+
- fix: update long text may fail [#633](https://github.com/loro-dev/loro/pull/633)
16+
- fix: map.keys() may return keys from deleted entries [#618](https://github.com/loro-dev/loro/pull/618)

pages/changelog/v1.4.7.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
version: "v1.4.7"
3+
title: "release v1.4.7"
4+
date: 2025/04/01
5+
---
6+
7+
## New
8+
9+
- You can get the version of Loro by `LORO_VERSION`
10+
- `setNextCommitOrigin(origin: string)`: Set the origin of the next commit.
11+
- `setNextCommitTimestamp(timestamp: number)`: Set the timestamp of the next commit.
12+
- `setNextCommitOptions(options: CommitOption)`: Set the options of the next commit.
13+
- `clearNextCommitOptions()`: Clear the options of the next commit.
14+
- `configDefaultTextStyle(style: TextStyle)`: Configures the default text style for the document.
15+
- `getUncommittedOpsAsJson()`: Get the pending operations from the current transaction in JSON format
16+
17+
## Fix
18+
19+
- fix: memory leak issue [#647](https://github.com/loro-dev/loro/pull/647)
20+
- fix: mark err on detached LoroText [#659](https://github.com/loro-dev/loro/pull/659)
21+
- fix: detached loro text issues [#665](https://github.com/loro-dev/loro/pull/665)
22+
- fix: entity index when the tree is empty [#670](https://github.com/loro-dev/loro/pull/670)

0 commit comments

Comments
 (0)