diff --git a/CHANGELOG.md b/CHANGELOG.md index fd1fa07ac..b633602de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,20 @@ and Yorkie JS SDK adheres to [Semantic Versioning](https://semver.org/spec/v2.0. ## [Unreleased] +## [0.2.10] - 2022-07-06 + +### Added + +- Implement array methods with objects: #327 + +### Changed + +- Improve performance deletion in Text: #326 + +### Fixed + +- Fix a bug when deleting blocks concurrently: #328 + ## [0.2.9] - 2022-06-30 ### Changed diff --git a/package.json b/package.json index 7982faceb..2babb356f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yorkie-js-sdk", - "version": "0.2.9", + "version": "0.2.10", "description": "Yorkie JS SDK", "main": "./dist/yorkie-js-sdk.js", "typings": "./dist/yorkie-js-sdk.d.ts", diff --git a/src/document/crdt/rga_tree_split.ts b/src/document/crdt/rga_tree_split.ts index f5af73eb7..f67a69e14 100644 --- a/src/document/crdt/rga_tree_split.ts +++ b/src/document/crdt/rga_tree_split.ts @@ -801,8 +801,11 @@ export class RGATreeSplit { // There are 2 types of nodes in `candidates`: should delete, should not delete. // `nodesToKeep` contains nodes should not delete, // then is used to find the boundary of the range to be deleted. - const [nodesToDelete, nodesToKeep] = - this.filterNodes(candidates, editedAt, latestCreatedAtMapByActor) + const [nodesToDelete, nodesToKeep] = this.filterNodes( + candidates, + editedAt, + latestCreatedAtMapByActor, + ); const createdAtMapByActor = new Map(); const removedNodeMap = new Map(); @@ -831,10 +834,7 @@ export class RGATreeSplit { candidates: Array>, editedAt: TimeTicket, latestCreatedAtMapByActor?: Map, - ): [ - Array>, - Array | undefined>, - ] { + ): [Array>, Array | undefined>] { const isRemote = !!latestCreatedAtMapByActor; const nodesToDelete: Array> = []; const nodesToKeep: Array | undefined> = [];