microsoft / FluidFramework

Library for building distributed, real-time collaborative web applications
https://fluidframework.com
MIT License
4.74k stars 536 forks source link

Expose squash method on SharedTreeBranch #23170

Closed noencke closed 6 days ago

noencke commented 1 week ago

Description

This exposes the ability to directly remove or squash commits on the head of a SharedTreeBranch. Currently this functionality is used when aborting or committing transactions. In addition to being a nice refactor in general, this will assist with future efforts to remove the notion of transactionality from branches.

msfluid-bot commented 1 week ago
@fluid-example/bundle-size-tests: +505 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 467.26 KB 467.3 KB +35 Bytes
azureClient.js 564.03 KB 564.08 KB +49 Bytes
connectionState.js 724 Bytes 724 Bytes No change
containerRuntime.js 263.45 KB 263.47 KB +14 Bytes
fluidFramework.js 428.91 KB 429.05 KB +144 Bytes
loader.js 134.18 KB 134.19 KB +14 Bytes
map.js 42.71 KB 42.71 KB +7 Bytes
matrix.js 150.15 KB 150.16 KB +7 Bytes
odspClient.js 529.87 KB 529.92 KB +49 Bytes
odspDriver.js 97.88 KB 97.9 KB +21 Bytes
odspPrefetchSnapshot.js 42.81 KB 42.83 KB +14 Bytes
sharedString.js 166.23 KB 166.24 KB +7 Bytes
sharedTree.js 419.37 KB 419.5 KB +137 Bytes
Total Size 3.38 MB 3.38 MB +505 Bytes

Baseline commit: 0ca4681da6207615d47fd2275da3697e97521b6b

Generated by :no_entry_sign: dangerJS against cf62f70a7118e51e51460bddff76336120d3f0f4