@fluidframework/tree 2.116.0 → 2.116.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/tree",
3
- "version": "2.116.0",
3
+ "version": "2.116.1",
4
4
  "description": "Distributed tree",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -101,17 +101,17 @@
101
101
  "temp-directory": "nyc/.nyc_output"
102
102
  },
103
103
  "dependencies": {
104
- "@fluid-internal/client-utils": "~2.116.0",
105
- "@fluidframework/core-interfaces": "~2.116.0",
106
- "@fluidframework/core-utils": "~2.116.0",
107
- "@fluidframework/datastore-definitions": "~2.116.0",
108
- "@fluidframework/driver-definitions": "~2.116.0",
109
- "@fluidframework/id-compressor": "~2.116.0",
110
- "@fluidframework/runtime-definitions": "~2.116.0",
111
- "@fluidframework/runtime-utils": "~2.116.0",
112
- "@fluidframework/shared-object-base": "~2.116.0",
113
- "@fluidframework/telemetry-utils": "~2.116.0",
114
- "@fluidframework/type-factory": "~2.116.0",
104
+ "@fluid-internal/client-utils": "~2.116.1",
105
+ "@fluidframework/core-interfaces": "~2.116.1",
106
+ "@fluidframework/core-utils": "~2.116.1",
107
+ "@fluidframework/datastore-definitions": "~2.116.1",
108
+ "@fluidframework/driver-definitions": "~2.116.1",
109
+ "@fluidframework/id-compressor": "~2.116.1",
110
+ "@fluidframework/runtime-definitions": "~2.116.1",
111
+ "@fluidframework/runtime-utils": "~2.116.1",
112
+ "@fluidframework/shared-object-base": "~2.116.1",
113
+ "@fluidframework/telemetry-utils": "~2.116.1",
114
+ "@fluidframework/type-factory": "~2.116.1",
115
115
  "@sinclair/typebox": "^0.34.13",
116
116
  "@tylerbu/sorted-btree-es6": "^2.1.1",
117
117
  "semver-ts": "^1.0.3",
@@ -121,22 +121,22 @@
121
121
  "devDependencies": {
122
122
  "@arethetypeswrong/cli": "^0.18.5",
123
123
  "@biomejs/biome": "~2.4.5",
124
- "@fluid-internal/mocha-test-setup": "~2.116.0",
125
- "@fluid-private/stochastic-test-utils": "~2.116.0",
126
- "@fluid-private/test-dds-utils": "~2.116.0",
127
- "@fluid-private/test-drivers": "~2.116.0",
124
+ "@fluid-internal/mocha-test-setup": "~2.116.1",
125
+ "@fluid-private/stochastic-test-utils": "~2.116.1",
126
+ "@fluid-private/test-dds-utils": "~2.116.1",
127
+ "@fluid-private/test-drivers": "~2.116.1",
128
128
  "@fluid-tools/benchmark": "^0.59.0",
129
129
  "@fluid-tools/build-cli": "^0.67.0",
130
130
  "@fluidframework/build-common": "^2.0.3",
131
131
  "@fluidframework/build-tools": "^0.67.0",
132
- "@fluidframework/container-definitions": "~2.116.0",
133
- "@fluidframework/container-loader": "~2.116.0",
134
- "@fluidframework/container-runtime": "~2.116.0",
132
+ "@fluidframework/container-definitions": "~2.116.1",
133
+ "@fluidframework/container-loader": "~2.116.1",
134
+ "@fluidframework/container-runtime": "~2.116.1",
135
135
  "@fluidframework/eslint-config-fluid": "^14.0.0",
136
- "@fluidframework/local-driver": "~2.116.0",
137
- "@fluidframework/test-runtime-utils": "~2.116.0",
138
- "@fluidframework/test-utils": "~2.116.0",
139
- "@fluidframework/tree-previous": "npm:@fluidframework/tree@2.114.0",
136
+ "@fluidframework/local-driver": "~2.116.1",
137
+ "@fluidframework/test-runtime-utils": "~2.116.1",
138
+ "@fluidframework/test-utils": "~2.116.1",
139
+ "@fluidframework/tree-previous": "npm:@fluidframework/tree@2.116.0",
140
140
  "@microsoft/api-extractor": "7.58.1",
141
141
  "@types/diff": "^3.5.1",
142
142
  "@types/easy-table": "^0.0.32",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/tree";
9
- export const pkgVersion = "2.116.0";
9
+ export const pkgVersion = "2.116.1";
@@ -850,7 +850,7 @@ export class TreeCheckout implements ITreeCheckout {
850
850
  );
851
851
  this.revertibleCommitBranches.set(
852
852
  revision,
853
- this.#transaction.activeBranch.fork(commit),
853
+ this.#transaction.branch.fork(commit),
854
854
  );
855
855
  this.revertibles.set(revision, revertible);
856
856
  return revertible;
@@ -1207,9 +1207,9 @@ export class TreeCheckout implements ITreeCheckout {
1207
1207
  }
1208
1208
 
1209
1209
  const commitToRevert = revertibleBranch.getHead();
1210
- const activeBranchHead = targetCheckout.#transaction.activeBranch.getHead();
1210
+ const branchHead = targetCheckout.#transaction.branch.getHead();
1211
1211
 
1212
- if (isAncestor(commitToRevert, activeBranchHead, true) === false) {
1212
+ if (isAncestor(commitToRevert, branchHead, true) === false) {
1213
1213
  throw new UsageError(
1214
1214
  "Cannot clone revertible for a commit that is not present on the given branch.",
1215
1215
  );
@@ -1308,7 +1308,7 @@ export class TreeCheckout implements ITreeCheckout {
1308
1308
  throw new UsageError("A view cannot be forked while it has a pending transaction.");
1309
1309
  }
1310
1310
 
1311
- const branch = this.#transaction.activeBranch.fork();
1311
+ const branch = this.#transaction.branch.fork();
1312
1312
  const storedSchema = this.storedSchema.clone();
1313
1313
  const forkBreaker = new Breakable("TreeCheckout", this.logger);
1314
1314
  const forest = this.forest.clone(storedSchema, forkBreaker);
@@ -1381,7 +1381,7 @@ export class TreeCheckout implements ITreeCheckout {
1381
1381
  0xa5d /* Shared branches cannot be rebased onto another branch. */,
1382
1382
  );
1383
1383
 
1384
- checkout.#transaction.activeBranch.rebaseOnto(this.#transaction.activeBranch);
1384
+ checkout.#transaction.branch.rebaseOnto(this.#transaction.branch);
1385
1385
  }
1386
1386
 
1387
1387
  public rebaseOnto(branch: TreeBranch): void {
@@ -1446,7 +1446,7 @@ export class TreeCheckout implements ITreeCheckout {
1446
1446
  "Views with an open transaction cannot be merged into another view.",
1447
1447
  );
1448
1448
  }
1449
- this.#transaction.activeBranch.merge(checkout.#transaction.activeBranch);
1449
+ this.#transaction.branch.merge(checkout.#transaction.branch);
1450
1450
  if (disposeMerged && !checkout.isSharedBranch) {
1451
1451
  // Dispose the merged checkout unless it is a shared branch.
1452
1452
  checkout[disposeSymbol]();
@@ -1545,7 +1545,7 @@ export class TreeCheckout implements ITreeCheckout {
1545
1545
  revisionForInvert,
1546
1546
  );
1547
1547
 
1548
- const headCommit = this.#transaction.activeBranch.getHead();
1548
+ const headCommit = this.#transaction.branch.getHead();
1549
1549
  // Rebase the inverted change onto any commits that occurred after the undoable commits.
1550
1550
  if (commitToRevert !== headCommit) {
1551
1551
  // The inverse may be rebased over newer commits which (despite being present in the history)
@@ -1578,7 +1578,7 @@ export class TreeCheckout implements ITreeCheckout {
1578
1578
  const previousLabelTreeNode = this.labelTreeNode;
1579
1579
  this.labelTreeNode = labelTree;
1580
1580
  try {
1581
- this.#transaction.activeBranch.apply(
1581
+ this.#transaction.branch.apply(
1582
1582
  change,
1583
1583
  kind === CommitKind.Default || kind === CommitKind.Redo
1584
1584
  ? CommitKind.Undo