Skip to content

Commit 3f16ac9

Browse files
authored
Trim TreeBranchEvents (#26754)
This removes events on tree _branches_ that are specific to _views_. This is part of ongoing effort to expose branches as separate entities from views. This is a breaking alpha API change - I will run the integration pipeline to ensure compatibility. Use `hasRootSchema` to get the view from your branch if you want to use the events that were removed. - [ ] Integration Pipeline Succeeded (FF Build 385127)
1 parent 24418e9 commit 3f16ac9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/dds/tree/api-report/tree.alpha.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ export interface TreeBranchAlpha extends TreeBranch, TreeContextAlpha {
16811681
}
16821682

16831683
// @alpha @sealed
1684-
export interface TreeBranchEvents extends Omit<TreeViewEvents, "commitApplied"> {
1684+
export interface TreeBranchEvents {
16851685
changed(data: ChangeMetadata, getRevertible?: RevertibleAlphaFactory): void;
16861686
commitApplied(data: ChangeMetadata, getRevertible?: RevertibleAlphaFactory): void;
16871687
}

packages/dds/tree/src/simple-tree/api/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export interface SchemaCompatibilityStatus {
559559
* Events for {@link TreeBranch}.
560560
* @sealed @alpha
561561
*/
562-
export interface TreeBranchEvents extends Omit<TreeViewEvents, "commitApplied"> {
562+
export interface TreeBranchEvents {
563563
/**
564564
* Fired when a change is made to the branch. Includes data about the change that is made which listeners
565565
* can use to filter on changes they care about (e.g. local vs. remote changes).

packages/framework/fluid-framework/api-report/fluid-framework.alpha.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,7 @@ export interface TreeBranchAlpha extends TreeBranch, TreeContextAlpha {
20732073
}
20742074

20752075
// @alpha @sealed
2076-
export interface TreeBranchEvents extends Omit<TreeViewEvents, "commitApplied"> {
2076+
export interface TreeBranchEvents {
20772077
changed(data: ChangeMetadata, getRevertible?: RevertibleAlphaFactory): void;
20782078
commitApplied(data: ChangeMetadata, getRevertible?: RevertibleAlphaFactory): void;
20792079
}

0 commit comments

Comments
 (0)