@fluidframework/merge-tree 1.0.1 → 1.0.2
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/dist/mergeTree.d.ts.map +1 -1
- package/dist/mergeTree.js +2 -2
- package/dist/mergeTree.js.map +1 -1
- package/lib/mergeTree.d.ts.map +1 -1
- package/lib/mergeTree.js +2 -2
- package/lib/mergeTree.js.map +1 -1
- package/package.json +11 -11
- package/src/mergeTree.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/merge-tree",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Merge tree",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -61,23 +61,23 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
63
63
|
"@fluidframework/common-utils": "^0.32.1",
|
|
64
|
-
"@fluidframework/container-definitions": "^1.0.
|
|
65
|
-
"@fluidframework/container-utils": "^1.0.
|
|
66
|
-
"@fluidframework/core-interfaces": "^1.0.
|
|
67
|
-
"@fluidframework/datastore-definitions": "^1.0.
|
|
64
|
+
"@fluidframework/container-definitions": "^1.0.2",
|
|
65
|
+
"@fluidframework/container-utils": "^1.0.2",
|
|
66
|
+
"@fluidframework/core-interfaces": "^1.0.2",
|
|
67
|
+
"@fluidframework/datastore-definitions": "^1.0.2",
|
|
68
68
|
"@fluidframework/protocol-definitions": "^0.1028.2000",
|
|
69
|
-
"@fluidframework/runtime-definitions": "^1.0.
|
|
70
|
-
"@fluidframework/runtime-utils": "^1.0.
|
|
71
|
-
"@fluidframework/shared-object-base": "^1.0.
|
|
72
|
-
"@fluidframework/telemetry-utils": "^1.0.
|
|
69
|
+
"@fluidframework/runtime-definitions": "^1.0.2",
|
|
70
|
+
"@fluidframework/runtime-utils": "^1.0.2",
|
|
71
|
+
"@fluidframework/shared-object-base": "^1.0.2",
|
|
72
|
+
"@fluidframework/telemetry-utils": "^1.0.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@fluidframework/build-common": "^0.23.0",
|
|
76
76
|
"@fluidframework/build-tools": "^0.2.71273",
|
|
77
77
|
"@fluidframework/eslint-config-fluid": "^0.28.2000",
|
|
78
78
|
"@fluidframework/merge-tree-previous": "npm:@fluidframework/merge-tree@^0.58.0",
|
|
79
|
-
"@fluidframework/mocha-test-setup": "^1.0.
|
|
80
|
-
"@fluidframework/test-runtime-utils": "^1.0.
|
|
79
|
+
"@fluidframework/mocha-test-setup": "^1.0.2",
|
|
80
|
+
"@fluidframework/test-runtime-utils": "^1.0.2",
|
|
81
81
|
"@microsoft/api-extractor": "^7.22.2",
|
|
82
82
|
"@rushstack/eslint-config": "^2.5.1",
|
|
83
83
|
"@types/diff": "^3.5.1",
|
package/src/mergeTree.ts
CHANGED
|
@@ -2549,8 +2549,9 @@ export class MergeTree {
|
|
|
2549
2549
|
client: Client,
|
|
2550
2550
|
): ReferencePosition {
|
|
2551
2551
|
if (isRemoved(segment)) {
|
|
2552
|
-
if (!refTypeIncludesFlag(refType, ReferenceType.SlideOnRemove)) {
|
|
2553
|
-
throw new UsageError(
|
|
2552
|
+
if (!refTypeIncludesFlag(refType, ReferenceType.SlideOnRemove | ReferenceType.Transient)) {
|
|
2553
|
+
throw new UsageError(
|
|
2554
|
+
"Can only create SlideOnRemove or Transient local reference position on a removed segment");
|
|
2554
2555
|
}
|
|
2555
2556
|
}
|
|
2556
2557
|
const localRefs = segment.localRefs ?? new LocalReferenceCollection(segment);
|