Skip to content

Commit 7f8afff

Browse files
committed
switch to ImmutableString
1 parent 5f6c6ef commit 7f8afff

4 files changed

Lines changed: 185 additions & 153 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ type AutomergeNodeSpec = {
271271
type BlockMappingSpec = string | { within: { [key: string]: string } }
272272

273273
type BlockMarker = {
274-
type: automerge.RawString
275-
parents: automerge.RawString[]
274+
type: automerge.ImmutableString
275+
parents: automerge.ImmutableString[]
276276
attrs: { [key: string]: any }
277277
isEmbed?: boolean
278278
}

test/Editor.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe("<Editor />", () => {
9393
{
9494
type: "block",
9595
value: {
96-
type: new am.RawString("paragraph"),
96+
type: new am.ImmutableString("paragraph"),
9797
parents: [],
9898
attrs: {},
9999
isEmbed: false,
@@ -103,7 +103,7 @@ describe("<Editor />", () => {
103103
{
104104
type: "block",
105105
value: {
106-
type: new am.RawString("paragraph"),
106+
type: new am.ImmutableString("paragraph"),
107107
parents: [],
108108
attrs: {},
109109
isEmbed: false,
@@ -112,7 +112,7 @@ describe("<Editor />", () => {
112112
{
113113
type: "block",
114114
value: {
115-
type: new am.RawString("paragraph"),
115+
type: new am.ImmutableString("paragraph"),
116116
parents: [],
117117
attrs: {},
118118
isEmbed: false,

0 commit comments

Comments
 (0)