@fluid-experimental/tree 2.0.0-rc.2.0.1 → 2.0.0-rc.3.0.0

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.
Files changed (571) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/api-report/experimental-tree.api.md +2 -2
  3. package/dist/ChangeCompression.d.ts +2 -2
  4. package/dist/ChangeCompression.d.ts.map +1 -1
  5. package/dist/ChangeCompression.js +1 -1
  6. package/dist/ChangeCompression.js.map +1 -1
  7. package/dist/ChangeTypes.d.ts +1 -1
  8. package/dist/ChangeTypes.d.ts.map +1 -1
  9. package/dist/ChangeTypes.js +4 -4
  10. package/dist/ChangeTypes.js.map +1 -1
  11. package/dist/Checkout.d.ts +3 -3
  12. package/dist/Checkout.d.ts.map +1 -1
  13. package/dist/Checkout.js +17 -17
  14. package/dist/Checkout.js.map +1 -1
  15. package/dist/EditLog.d.ts +1 -1
  16. package/dist/EditLog.d.ts.map +1 -1
  17. package/dist/EditLog.js +9 -9
  18. package/dist/EditLog.js.map +1 -1
  19. package/dist/EditUtilities.d.ts +3 -3
  20. package/dist/EditUtilities.d.ts.map +1 -1
  21. package/dist/EditUtilities.js +6 -6
  22. package/dist/EditUtilities.js.map +1 -1
  23. package/dist/Forest.d.ts.map +1 -1
  24. package/dist/Forest.js +23 -23
  25. package/dist/Forest.js.map +1 -1
  26. package/dist/HistoryEditFactory.d.ts +1 -1
  27. package/dist/HistoryEditFactory.d.ts.map +1 -1
  28. package/dist/HistoryEditFactory.js +7 -7
  29. package/dist/HistoryEditFactory.js.map +1 -1
  30. package/dist/IdConversion.d.ts.map +1 -1
  31. package/dist/IdConversion.js.map +1 -1
  32. package/dist/LogViewer.d.ts +2 -2
  33. package/dist/LogViewer.d.ts.map +1 -1
  34. package/dist/LogViewer.js +7 -7
  35. package/dist/LogViewer.js.map +1 -1
  36. package/dist/MergeHealth.d.ts.map +1 -1
  37. package/dist/MergeHealth.js +1 -1
  38. package/dist/MergeHealth.js.map +1 -1
  39. package/dist/NodeIdUtilities.d.ts +1 -1
  40. package/dist/NodeIdUtilities.d.ts.map +1 -1
  41. package/dist/NodeIdUtilities.js +1 -1
  42. package/dist/NodeIdUtilities.js.map +1 -1
  43. package/dist/PayloadUtilities.d.ts.map +1 -1
  44. package/dist/PayloadUtilities.js +2 -2
  45. package/dist/PayloadUtilities.js.map +1 -1
  46. package/dist/ReconciliationPath.d.ts +1 -1
  47. package/dist/ReconciliationPath.d.ts.map +1 -1
  48. package/dist/ReconciliationPath.js.map +1 -1
  49. package/dist/RevisionValueCache.d.ts.map +1 -1
  50. package/dist/RevisionValueCache.js +2 -2
  51. package/dist/RevisionValueCache.js.map +1 -1
  52. package/dist/RevisionView.d.ts +2 -2
  53. package/dist/RevisionView.d.ts.map +1 -1
  54. package/dist/RevisionView.js.map +1 -1
  55. package/dist/SerializationUtilities.d.ts +1 -1
  56. package/dist/SerializationUtilities.d.ts.map +1 -1
  57. package/dist/SerializationUtilities.js.map +1 -1
  58. package/dist/SharedTree.d.ts +8 -7
  59. package/dist/SharedTree.d.ts.map +1 -1
  60. package/dist/SharedTree.js +78 -78
  61. package/dist/SharedTree.js.map +1 -1
  62. package/dist/SharedTreeEncoder.d.ts +1 -1
  63. package/dist/SharedTreeEncoder.d.ts.map +1 -1
  64. package/dist/SharedTreeEncoder.js +31 -31
  65. package/dist/SharedTreeEncoder.js.map +1 -1
  66. package/dist/Summary.d.ts +2 -2
  67. package/dist/Summary.d.ts.map +1 -1
  68. package/dist/Summary.js +2 -2
  69. package/dist/Summary.js.map +1 -1
  70. package/dist/SummaryBackCompatibility.d.ts.map +1 -1
  71. package/dist/SummaryBackCompatibility.js.map +1 -1
  72. package/dist/SummaryTestUtilities.d.ts +1 -1
  73. package/dist/SummaryTestUtilities.d.ts.map +1 -1
  74. package/dist/SummaryTestUtilities.js.map +1 -1
  75. package/dist/Transaction.d.ts +3 -3
  76. package/dist/Transaction.d.ts.map +1 -1
  77. package/dist/Transaction.js +3 -3
  78. package/dist/Transaction.js.map +1 -1
  79. package/dist/TransactionInternal.d.ts +3 -3
  80. package/dist/TransactionInternal.d.ts.map +1 -1
  81. package/dist/TransactionInternal.js +6 -6
  82. package/dist/TransactionInternal.js.map +1 -1
  83. package/dist/TreeCompressor.d.ts +5 -1
  84. package/dist/TreeCompressor.d.ts.map +1 -1
  85. package/dist/TreeCompressor.js +5 -5
  86. package/dist/TreeCompressor.js.map +1 -1
  87. package/dist/TreeNodeHandle.d.ts +1 -1
  88. package/dist/TreeNodeHandle.d.ts.map +1 -1
  89. package/dist/TreeNodeHandle.js.map +1 -1
  90. package/dist/TreeView.d.ts +1 -1
  91. package/dist/TreeView.d.ts.map +1 -1
  92. package/dist/TreeView.js +2 -3
  93. package/dist/TreeView.js.map +1 -1
  94. package/dist/UuidUtilities.d.ts.map +1 -1
  95. package/dist/UuidUtilities.js.map +1 -1
  96. package/dist/id-compressor/AppendOnlySortedMap.d.ts.map +1 -1
  97. package/dist/id-compressor/AppendOnlySortedMap.js +3 -3
  98. package/dist/id-compressor/AppendOnlySortedMap.js.map +1 -1
  99. package/dist/id-compressor/IdCompressor.d.ts +1 -1
  100. package/dist/id-compressor/IdCompressor.d.ts.map +1 -1
  101. package/dist/id-compressor/IdCompressor.js +25 -26
  102. package/dist/id-compressor/IdCompressor.js.map +1 -1
  103. package/dist/id-compressor/IdRange.d.ts.map +1 -1
  104. package/dist/id-compressor/IdRange.js +2 -2
  105. package/dist/id-compressor/IdRange.js.map +1 -1
  106. package/dist/id-compressor/NumericUuid.d.ts.map +1 -1
  107. package/dist/id-compressor/NumericUuid.js +2 -1
  108. package/dist/id-compressor/NumericUuid.js.map +1 -1
  109. package/dist/id-compressor/SessionIdNormalizer.d.ts.map +1 -1
  110. package/dist/id-compressor/SessionIdNormalizer.js +8 -9
  111. package/dist/id-compressor/SessionIdNormalizer.js.map +1 -1
  112. package/dist/migration-shim/migrationDeltaHandler.d.ts +1 -1
  113. package/dist/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
  114. package/dist/migration-shim/migrationDeltaHandler.js +11 -11
  115. package/dist/migration-shim/migrationDeltaHandler.js.map +1 -1
  116. package/dist/migration-shim/migrationShim.d.ts +8 -4
  117. package/dist/migration-shim/migrationShim.d.ts.map +1 -1
  118. package/dist/migration-shim/migrationShim.js +13 -13
  119. package/dist/migration-shim/migrationShim.js.map +1 -1
  120. package/dist/migration-shim/migrationShimFactory.d.ts +2 -2
  121. package/dist/migration-shim/migrationShimFactory.d.ts.map +1 -1
  122. package/dist/migration-shim/migrationShimFactory.js +2 -2
  123. package/dist/migration-shim/migrationShimFactory.js.map +1 -1
  124. package/dist/migration-shim/packageVersion.d.ts +0 -2
  125. package/dist/migration-shim/packageVersion.d.ts.map +1 -1
  126. package/dist/migration-shim/packageVersion.js +0 -2
  127. package/dist/migration-shim/packageVersion.js.map +1 -1
  128. package/dist/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
  129. package/dist/migration-shim/sharedTreeDeltaHandler.js +8 -8
  130. package/dist/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
  131. package/dist/migration-shim/sharedTreeShim.d.ts +2 -2
  132. package/dist/migration-shim/sharedTreeShim.d.ts.map +1 -1
  133. package/dist/migration-shim/sharedTreeShim.js +8 -4
  134. package/dist/migration-shim/sharedTreeShim.js.map +1 -1
  135. package/dist/migration-shim/sharedTreeShimFactory.d.ts +1 -1
  136. package/dist/migration-shim/sharedTreeShimFactory.d.ts.map +1 -1
  137. package/dist/migration-shim/sharedTreeShimFactory.js +2 -2
  138. package/dist/migration-shim/sharedTreeShimFactory.js.map +1 -1
  139. package/dist/migration-shim/shimChannelServices.d.ts +1 -1
  140. package/dist/migration-shim/shimChannelServices.d.ts.map +1 -1
  141. package/dist/migration-shim/shimChannelServices.js.map +1 -1
  142. package/dist/migration-shim/shimDeltaConnection.d.ts +1 -1
  143. package/dist/migration-shim/shimDeltaConnection.d.ts.map +1 -1
  144. package/dist/migration-shim/shimDeltaConnection.js +2 -2
  145. package/dist/migration-shim/shimDeltaConnection.js.map +1 -1
  146. package/dist/migration-shim/shimHandle.d.ts.map +1 -1
  147. package/dist/migration-shim/shimHandle.js.map +1 -1
  148. package/dist/migration-shim/types.d.ts +1 -1
  149. package/dist/migration-shim/types.d.ts.map +1 -1
  150. package/dist/migration-shim/types.js.map +1 -1
  151. package/dist/migration-shim/utils.d.ts +1 -1
  152. package/dist/migration-shim/utils.d.ts.map +1 -1
  153. package/dist/migration-shim/utils.js.map +1 -1
  154. package/dist/persisted-types/0.0.2.d.ts +1 -1
  155. package/dist/persisted-types/0.0.2.d.ts.map +1 -1
  156. package/dist/persisted-types/0.0.2.js.map +1 -1
  157. package/dist/persisted-types/0.1.1.d.ts +1 -1
  158. package/dist/persisted-types/0.1.1.d.ts.map +1 -1
  159. package/dist/persisted-types/0.1.1.js +3 -3
  160. package/dist/persisted-types/0.1.1.js.map +1 -1
  161. package/lib/ChangeCompression.d.ts +2 -2
  162. package/lib/ChangeCompression.d.ts.map +1 -1
  163. package/lib/ChangeCompression.js +1 -1
  164. package/lib/ChangeCompression.js.map +1 -1
  165. package/lib/ChangeTypes.d.ts +1 -1
  166. package/lib/ChangeTypes.d.ts.map +1 -1
  167. package/lib/ChangeTypes.js +2 -2
  168. package/lib/ChangeTypes.js.map +1 -1
  169. package/lib/Checkout.d.ts +3 -3
  170. package/lib/Checkout.d.ts.map +1 -1
  171. package/lib/Checkout.js +4 -4
  172. package/lib/Checkout.js.map +1 -1
  173. package/lib/EditLog.d.ts +1 -1
  174. package/lib/EditLog.d.ts.map +1 -1
  175. package/lib/EditLog.js +2 -2
  176. package/lib/EditLog.js.map +1 -1
  177. package/lib/EditUtilities.d.ts +3 -3
  178. package/lib/EditUtilities.d.ts.map +1 -1
  179. package/lib/EditUtilities.js +5 -5
  180. package/lib/EditUtilities.js.map +1 -1
  181. package/lib/Forest.d.ts.map +1 -1
  182. package/lib/Forest.js +2 -2
  183. package/lib/Forest.js.map +1 -1
  184. package/lib/HistoryEditFactory.d.ts +1 -1
  185. package/lib/HistoryEditFactory.d.ts.map +1 -1
  186. package/lib/HistoryEditFactory.js +5 -5
  187. package/lib/HistoryEditFactory.js.map +1 -1
  188. package/lib/IdConversion.d.ts.map +1 -1
  189. package/lib/IdConversion.js.map +1 -1
  190. package/lib/LogViewer.d.ts +2 -2
  191. package/lib/LogViewer.d.ts.map +1 -1
  192. package/lib/LogViewer.js +3 -3
  193. package/lib/LogViewer.js.map +1 -1
  194. package/lib/MergeHealth.d.ts.map +1 -1
  195. package/lib/MergeHealth.js +1 -1
  196. package/lib/MergeHealth.js.map +1 -1
  197. package/lib/NodeIdUtilities.d.ts +1 -1
  198. package/lib/NodeIdUtilities.d.ts.map +1 -1
  199. package/lib/NodeIdUtilities.js +1 -1
  200. package/lib/NodeIdUtilities.js.map +1 -1
  201. package/lib/PayloadUtilities.d.ts.map +1 -1
  202. package/lib/PayloadUtilities.js +1 -1
  203. package/lib/PayloadUtilities.js.map +1 -1
  204. package/lib/ReconciliationPath.d.ts +1 -1
  205. package/lib/ReconciliationPath.d.ts.map +1 -1
  206. package/lib/ReconciliationPath.js.map +1 -1
  207. package/lib/RevisionValueCache.d.ts.map +1 -1
  208. package/lib/RevisionValueCache.js +2 -2
  209. package/lib/RevisionValueCache.js.map +1 -1
  210. package/lib/RevisionView.d.ts +2 -2
  211. package/lib/RevisionView.d.ts.map +1 -1
  212. package/lib/RevisionView.js.map +1 -1
  213. package/lib/SerializationUtilities.d.ts +1 -1
  214. package/lib/SerializationUtilities.d.ts.map +1 -1
  215. package/lib/SerializationUtilities.js.map +1 -1
  216. package/lib/SharedTree.d.ts +8 -7
  217. package/lib/SharedTree.d.ts.map +1 -1
  218. package/lib/SharedTree.js +13 -13
  219. package/lib/SharedTree.js.map +1 -1
  220. package/lib/SharedTreeEncoder.d.ts +1 -1
  221. package/lib/SharedTreeEncoder.d.ts.map +1 -1
  222. package/lib/SharedTreeEncoder.js +5 -5
  223. package/lib/SharedTreeEncoder.js.map +1 -1
  224. package/lib/Summary.d.ts +2 -2
  225. package/lib/Summary.d.ts.map +1 -1
  226. package/lib/Summary.js +1 -1
  227. package/lib/Summary.js.map +1 -1
  228. package/lib/SummaryBackCompatibility.d.ts.map +1 -1
  229. package/lib/SummaryBackCompatibility.js.map +1 -1
  230. package/lib/SummaryTestUtilities.d.ts +1 -1
  231. package/lib/SummaryTestUtilities.d.ts.map +1 -1
  232. package/lib/SummaryTestUtilities.js.map +1 -1
  233. package/lib/Transaction.d.ts +3 -3
  234. package/lib/Transaction.d.ts.map +1 -1
  235. package/lib/Transaction.js +3 -3
  236. package/lib/Transaction.js.map +1 -1
  237. package/lib/TransactionInternal.d.ts +3 -3
  238. package/lib/TransactionInternal.d.ts.map +1 -1
  239. package/lib/TransactionInternal.js +3 -3
  240. package/lib/TransactionInternal.js.map +1 -1
  241. package/lib/TreeCompressor.d.ts +5 -1
  242. package/lib/TreeCompressor.d.ts.map +1 -1
  243. package/lib/TreeCompressor.js +2 -2
  244. package/lib/TreeCompressor.js.map +1 -1
  245. package/lib/TreeNodeHandle.d.ts +1 -1
  246. package/lib/TreeNodeHandle.d.ts.map +1 -1
  247. package/lib/TreeNodeHandle.js.map +1 -1
  248. package/lib/TreeView.d.ts +1 -1
  249. package/lib/TreeView.d.ts.map +1 -1
  250. package/lib/TreeView.js +1 -2
  251. package/lib/TreeView.js.map +1 -1
  252. package/lib/UuidUtilities.d.ts.map +1 -1
  253. package/lib/UuidUtilities.js +1 -1
  254. package/lib/UuidUtilities.js.map +1 -1
  255. package/lib/id-compressor/AppendOnlySortedMap.d.ts.map +1 -1
  256. package/lib/id-compressor/AppendOnlySortedMap.js +1 -1
  257. package/lib/id-compressor/AppendOnlySortedMap.js.map +1 -1
  258. package/lib/id-compressor/IdCompressor.d.ts +1 -1
  259. package/lib/id-compressor/IdCompressor.d.ts.map +1 -1
  260. package/lib/id-compressor/IdCompressor.js +4 -5
  261. package/lib/id-compressor/IdCompressor.js.map +1 -1
  262. package/lib/id-compressor/IdRange.d.ts.map +1 -1
  263. package/lib/id-compressor/IdRange.js +1 -1
  264. package/lib/id-compressor/IdRange.js.map +1 -1
  265. package/lib/id-compressor/NumericUuid.d.ts.map +1 -1
  266. package/lib/id-compressor/NumericUuid.js +2 -1
  267. package/lib/id-compressor/NumericUuid.js.map +1 -1
  268. package/lib/id-compressor/SessionIdNormalizer.d.ts.map +1 -1
  269. package/lib/id-compressor/SessionIdNormalizer.js +1 -2
  270. package/lib/id-compressor/SessionIdNormalizer.js.map +1 -1
  271. package/lib/migration-shim/migrationDeltaHandler.d.ts +1 -1
  272. package/lib/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
  273. package/lib/migration-shim/migrationDeltaHandler.js +1 -1
  274. package/lib/migration-shim/migrationDeltaHandler.js.map +1 -1
  275. package/lib/migration-shim/migrationShim.d.ts +8 -4
  276. package/lib/migration-shim/migrationShim.d.ts.map +1 -1
  277. package/lib/migration-shim/migrationShim.js +3 -3
  278. package/lib/migration-shim/migrationShim.js.map +1 -1
  279. package/lib/migration-shim/migrationShimFactory.d.ts +2 -2
  280. package/lib/migration-shim/migrationShimFactory.d.ts.map +1 -1
  281. package/lib/migration-shim/migrationShimFactory.js +1 -1
  282. package/lib/migration-shim/migrationShimFactory.js.map +1 -1
  283. package/lib/migration-shim/packageVersion.d.ts +0 -2
  284. package/lib/migration-shim/packageVersion.d.ts.map +1 -1
  285. package/lib/migration-shim/packageVersion.js +0 -2
  286. package/lib/migration-shim/packageVersion.js.map +1 -1
  287. package/lib/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
  288. package/lib/migration-shim/sharedTreeDeltaHandler.js +1 -1
  289. package/lib/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
  290. package/lib/migration-shim/sharedTreeShim.d.ts +2 -2
  291. package/lib/migration-shim/sharedTreeShim.d.ts.map +1 -1
  292. package/lib/migration-shim/sharedTreeShim.js +6 -2
  293. package/lib/migration-shim/sharedTreeShim.js.map +1 -1
  294. package/lib/migration-shim/sharedTreeShimFactory.d.ts +1 -1
  295. package/lib/migration-shim/sharedTreeShimFactory.d.ts.map +1 -1
  296. package/lib/migration-shim/sharedTreeShimFactory.js +1 -1
  297. package/lib/migration-shim/sharedTreeShimFactory.js.map +1 -1
  298. package/lib/migration-shim/shimChannelServices.d.ts +1 -1
  299. package/lib/migration-shim/shimChannelServices.d.ts.map +1 -1
  300. package/lib/migration-shim/shimChannelServices.js.map +1 -1
  301. package/lib/migration-shim/shimDeltaConnection.d.ts +1 -1
  302. package/lib/migration-shim/shimDeltaConnection.d.ts.map +1 -1
  303. package/lib/migration-shim/shimDeltaConnection.js +1 -1
  304. package/lib/migration-shim/shimDeltaConnection.js.map +1 -1
  305. package/lib/migration-shim/shimHandle.d.ts.map +1 -1
  306. package/lib/migration-shim/shimHandle.js.map +1 -1
  307. package/lib/migration-shim/types.d.ts +1 -1
  308. package/lib/migration-shim/types.d.ts.map +1 -1
  309. package/lib/migration-shim/types.js.map +1 -1
  310. package/lib/migration-shim/utils.d.ts +1 -1
  311. package/lib/migration-shim/utils.d.ts.map +1 -1
  312. package/lib/migration-shim/utils.js.map +1 -1
  313. package/lib/persisted-types/0.0.2.d.ts +1 -1
  314. package/lib/persisted-types/0.0.2.d.ts.map +1 -1
  315. package/lib/persisted-types/0.0.2.js.map +1 -1
  316. package/lib/persisted-types/0.1.1.d.ts +1 -1
  317. package/lib/persisted-types/0.1.1.d.ts.map +1 -1
  318. package/lib/persisted-types/0.1.1.js +1 -1
  319. package/lib/persisted-types/0.1.1.js.map +1 -1
  320. package/package.json +33 -32
  321. package/src/ChangeCompression.ts +8 -8
  322. package/src/ChangeTypes.ts +5 -4
  323. package/src/Checkout.ts +9 -7
  324. package/src/EditLog.ts +4 -3
  325. package/src/EditUtilities.ts +9 -8
  326. package/src/Forest.ts +3 -2
  327. package/src/HistoryEditFactory.ts +12 -11
  328. package/src/IdConversion.ts +2 -2
  329. package/src/LogViewer.ts +5 -4
  330. package/src/MergeHealth.ts +2 -1
  331. package/src/NodeIdUtilities.ts +2 -2
  332. package/src/PayloadUtilities.ts +2 -1
  333. package/src/ReconciliationPath.ts +1 -1
  334. package/src/RevisionValueCache.ts +3 -2
  335. package/src/RevisionView.ts +3 -3
  336. package/src/SerializationUtilities.ts +1 -1
  337. package/src/SharedTree.ts +46 -49
  338. package/src/SharedTreeEncoder.ts +30 -29
  339. package/src/Summary.ts +5 -3
  340. package/src/SummaryBackCompatibility.ts +1 -0
  341. package/src/SummaryTestUtilities.ts +2 -1
  342. package/src/Transaction.ts +7 -6
  343. package/src/TransactionInternal.ts +17 -16
  344. package/src/TreeCompressor.ts +6 -4
  345. package/src/TreeNodeHandle.ts +2 -2
  346. package/src/TreeView.ts +3 -3
  347. package/src/UuidUtilities.ts +2 -1
  348. package/src/id-compressor/AppendOnlySortedMap.ts +2 -1
  349. package/src/id-compressor/IdCompressor.ts +18 -17
  350. package/src/id-compressor/IdRange.ts +2 -1
  351. package/src/id-compressor/NumericUuid.ts +1 -1
  352. package/src/id-compressor/SessionIdNormalizer.ts +3 -3
  353. package/src/migration-shim/migrationDeltaHandler.ts +3 -2
  354. package/src/migration-shim/migrationShim.ts +14 -10
  355. package/src/migration-shim/migrationShimFactory.ts +6 -4
  356. package/src/migration-shim/packageVersion.ts +0 -2
  357. package/src/migration-shim/sharedTreeDeltaHandler.ts +3 -2
  358. package/src/migration-shim/sharedTreeShim.ts +7 -5
  359. package/src/migration-shim/sharedTreeShimFactory.ts +3 -3
  360. package/src/migration-shim/shimChannelServices.ts +1 -1
  361. package/src/migration-shim/shimDeltaConnection.ts +3 -2
  362. package/src/migration-shim/shimHandle.ts +1 -0
  363. package/src/migration-shim/types.ts +3 -1
  364. package/src/migration-shim/utils.ts +2 -1
  365. package/src/persisted-types/0.0.2.ts +2 -2
  366. package/src/persisted-types/0.1.1.ts +10 -8
  367. package/dist/tree-alpha.d.ts +0 -2901
  368. package/dist/tree-beta.d.ts +0 -348
  369. package/dist/tree-public.d.ts +0 -348
  370. package/dist/tree-untrimmed.d.ts +0 -3820
  371. package/lib/test/AppendOnlySortedMap.perf.tests.d.ts +0 -6
  372. package/lib/test/AppendOnlySortedMap.perf.tests.d.ts.map +0 -1
  373. package/lib/test/AppendOnlySortedMap.perf.tests.js +0 -49
  374. package/lib/test/AppendOnlySortedMap.perf.tests.js.map +0 -1
  375. package/lib/test/AppendOnlySortedMap.tests.d.ts +0 -6
  376. package/lib/test/AppendOnlySortedMap.tests.d.ts.map +0 -1
  377. package/lib/test/AppendOnlySortedMap.tests.js +0 -213
  378. package/lib/test/AppendOnlySortedMap.tests.js.map +0 -1
  379. package/lib/test/ChangeCompression.tests.d.ts +0 -6
  380. package/lib/test/ChangeCompression.tests.d.ts.map +0 -1
  381. package/lib/test/ChangeCompression.tests.js +0 -154
  382. package/lib/test/ChangeCompression.tests.js.map +0 -1
  383. package/lib/test/Checkout.tests.d.ts +0 -10
  384. package/lib/test/Checkout.tests.d.ts.map +0 -1
  385. package/lib/test/Checkout.tests.js +0 -460
  386. package/lib/test/Checkout.tests.js.map +0 -1
  387. package/lib/test/Common.tests.d.ts +0 -6
  388. package/lib/test/Common.tests.d.ts.map +0 -1
  389. package/lib/test/Common.tests.js +0 -102
  390. package/lib/test/Common.tests.js.map +0 -1
  391. package/lib/test/EagerCheckout.tests.d.ts +0 -6
  392. package/lib/test/EagerCheckout.tests.d.ts.map +0 -1
  393. package/lib/test/EagerCheckout.tests.js +0 -20
  394. package/lib/test/EagerCheckout.tests.js.map +0 -1
  395. package/lib/test/Edit.tests.d.ts +0 -6
  396. package/lib/test/Edit.tests.d.ts.map +0 -1
  397. package/lib/test/Edit.tests.js +0 -60
  398. package/lib/test/Edit.tests.js.map +0 -1
  399. package/lib/test/EditLog.perf.tests.d.ts +0 -6
  400. package/lib/test/EditLog.perf.tests.d.ts.map +0 -1
  401. package/lib/test/EditLog.perf.tests.js +0 -41
  402. package/lib/test/EditLog.perf.tests.js.map +0 -1
  403. package/lib/test/EditLog.tests.d.ts +0 -6
  404. package/lib/test/EditLog.tests.d.ts.map +0 -1
  405. package/lib/test/EditLog.tests.js +0 -355
  406. package/lib/test/EditLog.tests.js.map +0 -1
  407. package/lib/test/EditUtilities.tests.d.ts +0 -6
  408. package/lib/test/EditUtilities.tests.d.ts.map +0 -1
  409. package/lib/test/EditUtilities.tests.js +0 -512
  410. package/lib/test/EditUtilities.tests.js.map +0 -1
  411. package/lib/test/Forest.perf.tests.d.ts +0 -6
  412. package/lib/test/Forest.perf.tests.d.ts.map +0 -1
  413. package/lib/test/Forest.perf.tests.js +0 -135
  414. package/lib/test/Forest.perf.tests.js.map +0 -1
  415. package/lib/test/Forest.tests.d.ts +0 -6
  416. package/lib/test/Forest.tests.d.ts.map +0 -1
  417. package/lib/test/Forest.tests.js +0 -213
  418. package/lib/test/Forest.tests.js.map +0 -1
  419. package/lib/test/GenericTransaction.tests.d.ts +0 -6
  420. package/lib/test/GenericTransaction.tests.d.ts.map +0 -1
  421. package/lib/test/GenericTransaction.tests.js +0 -31
  422. package/lib/test/GenericTransaction.tests.js.map +0 -1
  423. package/lib/test/HistoryEditFactory.tests.d.ts +0 -6
  424. package/lib/test/HistoryEditFactory.tests.d.ts.map +0 -1
  425. package/lib/test/HistoryEditFactory.tests.js +0 -170
  426. package/lib/test/HistoryEditFactory.tests.js.map +0 -1
  427. package/lib/test/IdCompressor.perf.tests.d.ts +0 -6
  428. package/lib/test/IdCompressor.perf.tests.d.ts.map +0 -1
  429. package/lib/test/IdCompressor.perf.tests.js +0 -290
  430. package/lib/test/IdCompressor.perf.tests.js.map +0 -1
  431. package/lib/test/IdCompressor.tests.d.ts +0 -6
  432. package/lib/test/IdCompressor.tests.d.ts.map +0 -1
  433. package/lib/test/IdCompressor.tests.js +0 -1542
  434. package/lib/test/IdCompressor.tests.js.map +0 -1
  435. package/lib/test/IdConversion.tests.d.ts +0 -6
  436. package/lib/test/IdConversion.tests.d.ts.map +0 -1
  437. package/lib/test/IdConversion.tests.js +0 -36
  438. package/lib/test/IdConversion.tests.js.map +0 -1
  439. package/lib/test/LazyCheckout.tests.d.ts +0 -6
  440. package/lib/test/LazyCheckout.tests.d.ts.map +0 -1
  441. package/lib/test/LazyCheckout.tests.js +0 -22
  442. package/lib/test/LazyCheckout.tests.js.map +0 -1
  443. package/lib/test/LogViewer.tests.d.ts +0 -6
  444. package/lib/test/LogViewer.tests.d.ts.map +0 -1
  445. package/lib/test/LogViewer.tests.js +0 -588
  446. package/lib/test/LogViewer.tests.js.map +0 -1
  447. package/lib/test/MergeHealthTelemetryHeartbeat.tests.d.ts +0 -6
  448. package/lib/test/MergeHealthTelemetryHeartbeat.tests.d.ts.map +0 -1
  449. package/lib/test/MergeHealthTelemetryHeartbeat.tests.js +0 -351
  450. package/lib/test/MergeHealthTelemetryHeartbeat.tests.js.map +0 -1
  451. package/lib/test/NumericUuid.perf.tests.d.ts +0 -6
  452. package/lib/test/NumericUuid.perf.tests.d.ts.map +0 -1
  453. package/lib/test/NumericUuid.perf.tests.js +0 -68
  454. package/lib/test/NumericUuid.perf.tests.js.map +0 -1
  455. package/lib/test/NumericUuid.tests.d.ts +0 -6
  456. package/lib/test/NumericUuid.tests.d.ts.map +0 -1
  457. package/lib/test/NumericUuid.tests.js +0 -192
  458. package/lib/test/NumericUuid.tests.js.map +0 -1
  459. package/lib/test/RevisionValueCache.tests.d.ts +0 -6
  460. package/lib/test/RevisionValueCache.tests.d.ts.map +0 -1
  461. package/lib/test/RevisionValueCache.tests.js +0 -106
  462. package/lib/test/RevisionValueCache.tests.js.map +0 -1
  463. package/lib/test/RevisionView.tests.d.ts +0 -6
  464. package/lib/test/RevisionView.tests.d.ts.map +0 -1
  465. package/lib/test/RevisionView.tests.js +0 -131
  466. package/lib/test/RevisionView.tests.js.map +0 -1
  467. package/lib/test/SessionIdNormalizer.tests.d.ts +0 -6
  468. package/lib/test/SessionIdNormalizer.tests.d.ts.map +0 -1
  469. package/lib/test/SessionIdNormalizer.tests.js +0 -377
  470. package/lib/test/SessionIdNormalizer.tests.js.map +0 -1
  471. package/lib/test/SharedTree.fuzz.tests.d.ts +0 -6
  472. package/lib/test/SharedTree.fuzz.tests.d.ts.map +0 -1
  473. package/lib/test/SharedTree.fuzz.tests.js +0 -9
  474. package/lib/test/SharedTree.fuzz.tests.js.map +0 -1
  475. package/lib/test/SharedTree.perf.tests.d.ts +0 -6
  476. package/lib/test/SharedTree.perf.tests.d.ts.map +0 -1
  477. package/lib/test/SharedTree.perf.tests.js +0 -39
  478. package/lib/test/SharedTree.perf.tests.js.map +0 -1
  479. package/lib/test/SharedTree.tests.d.ts +0 -6
  480. package/lib/test/SharedTree.tests.d.ts.map +0 -1
  481. package/lib/test/SharedTree.tests.js +0 -22
  482. package/lib/test/SharedTree.tests.js.map +0 -1
  483. package/lib/test/StringInterner.tests.d.ts +0 -6
  484. package/lib/test/StringInterner.tests.d.ts.map +0 -1
  485. package/lib/test/StringInterner.tests.js +0 -73
  486. package/lib/test/StringInterner.tests.js.map +0 -1
  487. package/lib/test/Summary.tests.d.ts +0 -7
  488. package/lib/test/Summary.tests.d.ts.map +0 -1
  489. package/lib/test/Summary.tests.js +0 -386
  490. package/lib/test/Summary.tests.js.map +0 -1
  491. package/lib/test/Transaction.tests.d.ts +0 -6
  492. package/lib/test/Transaction.tests.d.ts.map +0 -1
  493. package/lib/test/Transaction.tests.js +0 -124
  494. package/lib/test/Transaction.tests.js.map +0 -1
  495. package/lib/test/TransactionInternal.tests.d.ts +0 -6
  496. package/lib/test/TransactionInternal.tests.d.ts.map +0 -1
  497. package/lib/test/TransactionInternal.tests.js +0 -576
  498. package/lib/test/TransactionInternal.tests.js.map +0 -1
  499. package/lib/test/TreeCompression.tests.d.ts +0 -6
  500. package/lib/test/TreeCompression.tests.d.ts.map +0 -1
  501. package/lib/test/TreeCompression.tests.js +0 -291
  502. package/lib/test/TreeCompression.tests.js.map +0 -1
  503. package/lib/test/TreeView.tests.d.ts +0 -6
  504. package/lib/test/TreeView.tests.d.ts.map +0 -1
  505. package/lib/test/TreeView.tests.js +0 -178
  506. package/lib/test/TreeView.tests.js.map +0 -1
  507. package/lib/test/UndoRedoHandler.tests.d.ts +0 -6
  508. package/lib/test/UndoRedoHandler.tests.d.ts.map +0 -1
  509. package/lib/test/UndoRedoHandler.tests.js +0 -37
  510. package/lib/test/UndoRedoHandler.tests.js.map +0 -1
  511. package/lib/test/fuzz/Generators.d.ts +0 -8
  512. package/lib/test/fuzz/Generators.d.ts.map +0 -1
  513. package/lib/test/fuzz/Generators.js +0 -345
  514. package/lib/test/fuzz/Generators.js.map +0 -1
  515. package/lib/test/fuzz/SharedTreeFuzzTests.d.ts +0 -23
  516. package/lib/test/fuzz/SharedTreeFuzzTests.d.ts.map +0 -1
  517. package/lib/test/fuzz/SharedTreeFuzzTests.js +0 -241
  518. package/lib/test/fuzz/SharedTreeFuzzTests.js.map +0 -1
  519. package/lib/test/fuzz/Types.d.ts +0 -136
  520. package/lib/test/fuzz/Types.d.ts.map +0 -1
  521. package/lib/test/fuzz/Types.js +0 -6
  522. package/lib/test/fuzz/Types.js.map +0 -1
  523. package/lib/test/utilities/IdCompressorTestUtilities.d.ts +0 -246
  524. package/lib/test/utilities/IdCompressorTestUtilities.d.ts.map +0 -1
  525. package/lib/test/utilities/IdCompressorTestUtilities.js +0 -608
  526. package/lib/test/utilities/IdCompressorTestUtilities.js.map +0 -1
  527. package/lib/test/utilities/MockTransaction.d.ts +0 -35
  528. package/lib/test/utilities/MockTransaction.d.ts.map +0 -1
  529. package/lib/test/utilities/MockTransaction.js +0 -51
  530. package/lib/test/utilities/MockTransaction.js.map +0 -1
  531. package/lib/test/utilities/PendingLocalStateTests.d.ts +0 -12
  532. package/lib/test/utilities/PendingLocalStateTests.d.ts.map +0 -1
  533. package/lib/test/utilities/PendingLocalStateTests.js +0 -223
  534. package/lib/test/utilities/PendingLocalStateTests.js.map +0 -1
  535. package/lib/test/utilities/SharedTreeTests.d.ts +0 -12
  536. package/lib/test/utilities/SharedTreeTests.d.ts.map +0 -1
  537. package/lib/test/utilities/SharedTreeTests.js +0 -949
  538. package/lib/test/utilities/SharedTreeTests.js.map +0 -1
  539. package/lib/test/utilities/SharedTreeVersioningTests.d.ts +0 -11
  540. package/lib/test/utilities/SharedTreeVersioningTests.d.ts.map +0 -1
  541. package/lib/test/utilities/SharedTreeVersioningTests.js +0 -439
  542. package/lib/test/utilities/SharedTreeVersioningTests.js.map +0 -1
  543. package/lib/test/utilities/SummaryLoadPerfTests.d.ts +0 -10
  544. package/lib/test/utilities/SummaryLoadPerfTests.d.ts.map +0 -1
  545. package/lib/test/utilities/SummaryLoadPerfTests.js +0 -105
  546. package/lib/test/utilities/SummaryLoadPerfTests.js.map +0 -1
  547. package/lib/test/utilities/SummarySizeTests.d.ts +0 -11
  548. package/lib/test/utilities/SummarySizeTests.d.ts.map +0 -1
  549. package/lib/test/utilities/SummarySizeTests.js +0 -160
  550. package/lib/test/utilities/SummarySizeTests.js.map +0 -1
  551. package/lib/test/utilities/TestCommon.d.ts +0 -13
  552. package/lib/test/utilities/TestCommon.d.ts.map +0 -1
  553. package/lib/test/utilities/TestCommon.js +0 -19
  554. package/lib/test/utilities/TestCommon.js.map +0 -1
  555. package/lib/test/utilities/TestNode.d.ts +0 -140
  556. package/lib/test/utilities/TestNode.d.ts.map +0 -1
  557. package/lib/test/utilities/TestNode.js +0 -282
  558. package/lib/test/utilities/TestNode.js.map +0 -1
  559. package/lib/test/utilities/TestSerializer.d.ts +0 -24
  560. package/lib/test/utilities/TestSerializer.d.ts.map +0 -1
  561. package/lib/test/utilities/TestSerializer.js +0 -40
  562. package/lib/test/utilities/TestSerializer.js.map +0 -1
  563. package/lib/test/utilities/TestUtilities.d.ts +0 -212
  564. package/lib/test/utilities/TestUtilities.d.ts.map +0 -1
  565. package/lib/test/utilities/TestUtilities.js +0 -413
  566. package/lib/test/utilities/TestUtilities.js.map +0 -1
  567. package/lib/test/utilities/UndoRedoTests.d.ts +0 -32
  568. package/lib/test/utilities/UndoRedoTests.d.ts.map +0 -1
  569. package/lib/test/utilities/UndoRedoTests.js +0 -317
  570. package/lib/test/utilities/UndoRedoTests.js.map +0 -1
  571. /package/{dist → lib}/tsdoc-metadata.json +0 -0
@@ -3,9 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { ChangeInternal } from './persisted-types/index.js';
7
6
  import { TransactionView } from './RevisionView.js';
8
7
  import { TreeView } from './TreeView.js';
8
+ import { ChangeInternal } from './persisted-types/index.js';
9
9
 
10
10
  /**
11
11
  * The path of edits from the revision view where a change was meant to have been applied to the view where the edit that contains the
@@ -3,10 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from '@fluidframework/core-utils';
6
+ import { assert } from '@fluidframework/core-utils/internal';
7
7
  import { BTree } from '@tylerbu/sorted-btree-es6';
8
8
  import LRU from 'lru-cache';
9
- import { fail, compareFiniteNumbers } from './Common.js';
9
+
10
+ import { compareFiniteNumbers, fail } from './Common.js';
10
11
 
11
12
  /**
12
13
  * A revision corresponds to an index in an `EditLog`.
@@ -3,13 +3,13 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { copyPropertyIfDefined, fail, Mutable, MutableMap } from './Common.js';
6
+ import { HasVariadicTraits } from './ChangeTypes.js';
7
+ import { Mutable, MutableMap, copyPropertyIfDefined, fail } from './Common.js';
7
8
  import { Forest } from './Forest.js';
8
9
  import { NodeId, StableNodeId, TraitLabel } from './Identifiers.js';
9
10
  import { NodeIdConverter } from './NodeIdUtilities.js';
10
- import { Payload, TreeNode, TreeNodeSequence } from './persisted-types/index.js';
11
11
  import { TreeView, TreeViewNode, TreeViewPlace, TreeViewRange } from './TreeView.js';
12
- import { HasVariadicTraits } from './ChangeTypes.js';
12
+ import { Payload, TreeNode, TreeNodeSequence } from './persisted-types/index.js';
13
13
 
14
14
  /**
15
15
  * An immutable view of a distributed tree.
@@ -6,8 +6,8 @@
6
6
  import { copyPropertyIfDefined, memoizeGetter } from './Common.js';
7
7
  import { NodeId, TraitLabel } from './Identifiers.js';
8
8
  import { NodeIdConverter } from './NodeIdUtilities.js';
9
- import { ChangeNode, ChangeNode_0_0_2, TraitMap } from './persisted-types/index.js';
10
9
  import { TreeView } from './TreeView.js';
10
+ import { ChangeNode, ChangeNode_0_0_2, TraitMap } from './persisted-types/index.js';
11
11
 
12
12
  /**
13
13
  * Converts this tree view to an equivalent `ChangeNode`.
package/src/SharedTree.ts CHANGED
@@ -3,44 +3,54 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from '@fluidframework/core-utils';
7
6
  import { bufferToString } from '@fluid-internal/client-utils';
8
- import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
7
+ import { AttachState } from '@fluidframework/container-definitions';
8
+ import { ITelemetryBaseProperties } from '@fluidframework/core-interfaces';
9
+ import { assert } from '@fluidframework/core-utils/internal';
9
10
  import {
10
- IFluidDataStoreRuntime,
11
- IChannelStorageService,
12
- IChannelFactory,
13
11
  IChannelAttributes,
12
+ IChannelFactory,
14
13
  IChannelServices,
14
+ IChannelStorageService,
15
+ IFluidDataStoreRuntime,
15
16
  } from '@fluidframework/datastore-definitions';
16
- import { AttachState } from '@fluidframework/container-definitions';
17
- import {
18
- createSingleBlobSummary,
19
- IFluidSerializer,
20
- ISharedObjectEvents,
21
- SharedObject,
22
- } from '@fluidframework/shared-object-base';
23
- import { ITelemetryBaseProperties } from '@fluidframework/core-interfaces';
17
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
18
+ import { ISummaryTreeWithStats, ITelemetryContext } from '@fluidframework/runtime-definitions';
19
+ import { IFluidSerializer, ISharedObjectEvents } from '@fluidframework/shared-object-base';
20
+ import { SharedObject, createSingleBlobSummary } from '@fluidframework/shared-object-base/internal';
21
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
24
22
  import {
25
- ITelemetryLoggerExt,
26
- createChildLogger,
23
+ IEventSampler,
27
24
  ITelemetryLoggerPropertyBags,
28
25
  PerformanceEvent,
26
+ createChildLogger,
29
27
  createSampledLogger,
30
- IEventSampler,
31
- } from '@fluidframework/telemetry-utils';
32
- import { ISummaryTreeWithStats, ITelemetryContext } from '@fluidframework/runtime-definitions';
33
- import { fail, copyPropertyIfDefined, RestOrArray, unwrapRestOrArray } from './Common.js';
28
+ } from '@fluidframework/telemetry-utils/internal';
29
+
30
+ import { BuildNode, BuildTreeNode, Change, ChangeType } from './ChangeTypes.js';
31
+ import { RestOrArray, copyPropertyIfDefined, fail, unwrapRestOrArray } from './Common.js';
34
32
  import { EditHandle, EditLog, OrderedEditSet } from './EditLog.js';
35
33
  import {
34
+ areRevisionViewsSemanticallyEqual,
35
+ convertTreeNodes,
36
+ deepCloneStablePlace,
37
+ deepCloneStableRange,
38
+ internalizeBuildNode,
39
+ newEditId,
40
+ walkTree,
41
+ } from './EditUtilities.js';
42
+ import { SharedTreeDiagnosticEvent, SharedTreeEvent } from './EventTypes.js';
43
+ import { revert } from './HistoryEditFactory.js';
44
+ import { convertEditIds } from './IdConversion.js';
45
+ import {
46
+ AttributionId,
47
+ DetachedSequenceId,
36
48
  EditId,
37
49
  NodeId,
38
- StableNodeId,
39
- DetachedSequenceId,
40
50
  OpSpaceNodeId,
41
- isDetachedSequenceId,
42
- AttributionId,
43
51
  SessionId,
52
+ StableNodeId,
53
+ isDetachedSequenceId,
44
54
  } from './Identifiers.js';
45
55
  import { initialTree } from './InitialTree.js';
46
56
  import {
@@ -51,8 +61,16 @@ import {
51
61
  SequencedEditResult,
52
62
  SequencedEditResultCallback,
53
63
  } from './LogViewer.js';
54
- import { deserialize, getSummaryStatistics } from './SummaryBackCompatibility.js';
64
+ import { NodeIdContext, NodeIdNormalizer, getNodeIdContext } from './NodeIdUtilities.js';
55
65
  import { ReconciliationPath } from './ReconciliationPath.js';
66
+ import { RevisionView } from './RevisionView.js';
67
+ import { SharedTreeEncoder_0_0_2, SharedTreeEncoder_0_1_1 } from './SharedTreeEncoder.js';
68
+ import { MutableStringInterner } from './StringInterner.js';
69
+ import { SummaryContents, serialize } from './Summary.js';
70
+ import { deserialize, getSummaryStatistics } from './SummaryBackCompatibility.js';
71
+ import { TransactionInternal } from './TransactionInternal.js';
72
+ import { nilUuid } from './UuidUtilities.js';
73
+ import { IdCompressor, createSessionId } from './id-compressor/index.js';
56
74
  import {
57
75
  BuildNodeInternal,
58
76
  ChangeInternal,
@@ -63,7 +81,7 @@ import {
63
81
  Edit,
64
82
  EditLogSummary,
65
83
  EditStatus,
66
- reservedIdCount,
84
+ InternalizedChange,
67
85
  SharedTreeEditOp,
68
86
  SharedTreeEditOp_0_0_2,
69
87
  SharedTreeOp,
@@ -73,32 +91,11 @@ import {
73
91
  SharedTreeSummaryBase,
74
92
  SharedTreeSummary_0_0_2,
75
93
  TreeNode,
76
- ghostSessionId,
77
- WriteFormat,
78
94
  TreeNodeSequence,
79
- InternalizedChange,
95
+ WriteFormat,
96
+ ghostSessionId,
97
+ reservedIdCount,
80
98
  } from './persisted-types/index.js';
81
- import { serialize, SummaryContents } from './Summary.js';
82
- import {
83
- areRevisionViewsSemanticallyEqual,
84
- convertTreeNodes,
85
- deepCloneStablePlace,
86
- deepCloneStableRange,
87
- internalizeBuildNode,
88
- newEditId,
89
- walkTree,
90
- } from './EditUtilities.js';
91
- import { getNodeIdContext, NodeIdContext, NodeIdNormalizer } from './NodeIdUtilities.js';
92
- import { SharedTreeDiagnosticEvent, SharedTreeEvent } from './EventTypes.js';
93
- import { RevisionView } from './RevisionView.js';
94
- import { SharedTreeEncoder_0_0_2, SharedTreeEncoder_0_1_1 } from './SharedTreeEncoder.js';
95
- import { revert } from './HistoryEditFactory.js';
96
- import { BuildNode, BuildTreeNode, Change, ChangeType } from './ChangeTypes.js';
97
- import { TransactionInternal } from './TransactionInternal.js';
98
- import { IdCompressor, createSessionId } from './id-compressor/index.js';
99
- import { convertEditIds } from './IdConversion.js';
100
- import { MutableStringInterner } from './StringInterner.js';
101
- import { nilUuid } from './UuidUtilities.js';
102
99
 
103
100
  /**
104
101
  * The write format and associated options used to construct a `SharedTree`
@@ -3,60 +3,61 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from '@fluidframework/core-utils';
7
6
  import { IsoBuffer } from '@fluid-internal/client-utils';
7
+ import { assert } from '@fluidframework/core-utils/internal';
8
+
9
+ import { ChangeCompressor, compressEdit, decompressEdit } from './ChangeCompression.js';
8
10
  import { assertWithMessage, fail } from './Common.js';
9
11
  import { EditLog } from './EditLog.js';
10
12
  import { convertTreeNodes, newEdit } from './EditUtilities.js';
13
+ import { convertEditIds, convertNodeDataIds } from './IdConversion.js';
11
14
  import { AttributionId, DetachedSequenceId, FinalNodeId, OpSpaceNodeId, TraitLabel } from './Identifiers.js';
12
15
  import { initialTree } from './InitialTree.js';
13
16
  import {
14
17
  ContextualizedNodeIdNormalizer,
15
- getNodeIdContext,
16
18
  NodeIdContext,
17
19
  NodeIdConverter,
18
20
  NodeIdGenerator,
19
21
  NodeIdNormalizer,
22
+ getNodeIdContext,
20
23
  scopeIdNormalizer,
21
24
  sequencedIdNormalizer,
22
25
  } from './NodeIdUtilities.js';
26
+ import { RevisionView } from './RevisionView.js';
23
27
  import { getChangeNodeFromView, getChangeNode_0_0_2FromView } from './SerializationUtilities.js';
28
+ import { MutableStringInterner, StringInterner } from './StringInterner.js';
29
+ import { SummaryContents } from './Summary.js';
30
+ import { InterningTreeCompressor } from './TreeCompressor.js';
31
+ import {
32
+ IdCompressor,
33
+ IdCreationRange,
34
+ SerializedIdCompressorWithNoSession,
35
+ createSessionId,
36
+ hasOngoingSession,
37
+ } from './id-compressor/index.js';
24
38
  import {
25
- CompressedChangeInternal,
26
39
  ChangeInternal,
27
- SharedTreeSummary_0_0_2,
28
- WriteFormat,
29
- ChangeNode,
30
- Edit,
31
- SharedTreeEditOp,
32
- SharedTreeOpType,
33
- SharedTreeSummary,
34
- EditWithoutId,
35
- ChangeTypeInternal,
36
40
  ChangeInternal_0_0_2,
37
- SharedTreeEditOp_0_0_2,
38
- reservedIdCount,
41
+ ChangeNode,
39
42
  ChangeNode_0_0_2,
43
+ ChangeTypeInternal,
44
+ CompressedChangeInternal,
45
+ Edit,
40
46
  EditChunkContents,
41
- EditLogSummary,
42
47
  EditChunkContents_0_1_1,
48
+ EditLogSummary,
49
+ EditWithoutId,
43
50
  FluidEditHandle,
44
- StablePlaceInternal,
51
+ SharedTreeEditOp,
52
+ SharedTreeEditOp_0_0_2,
53
+ SharedTreeOpType,
54
+ SharedTreeSummary,
55
+ SharedTreeSummary_0_0_2,
45
56
  Side,
57
+ StablePlaceInternal,
58
+ WriteFormat,
59
+ reservedIdCount,
46
60
  } from './persisted-types/index.js';
47
- import { RevisionView } from './RevisionView.js';
48
- import { MutableStringInterner, StringInterner } from './StringInterner.js';
49
- import { SummaryContents } from './Summary.js';
50
- import { InterningTreeCompressor } from './TreeCompressor.js';
51
- import {
52
- createSessionId,
53
- hasOngoingSession,
54
- IdCompressor,
55
- IdCreationRange,
56
- SerializedIdCompressorWithNoSession,
57
- } from './id-compressor/index.js';
58
- import { ChangeCompressor, compressEdit, decompressEdit } from './ChangeCompression.js';
59
- import { convertEditIds, convertNodeDataIds } from './IdConversion.js';
60
61
 
61
62
  /**
62
63
  * Object capable of converting between the current internal representation for 0.1.1 edits and their wire format.
package/src/Summary.ts CHANGED
@@ -4,12 +4,14 @@
4
4
  */
5
5
 
6
6
  import type { IFluidHandle } from '@fluidframework/core-interfaces';
7
- import { IFluidSerializer, serializeHandles } from '@fluidframework/shared-object-base';
7
+ import { IFluidSerializer } from '@fluidframework/shared-object-base';
8
+ import { serializeHandles } from '@fluidframework/shared-object-base/internal';
9
+
8
10
  import { fail } from './Common.js';
9
- import type { IdCompressor } from './id-compressor/index.js';
10
- import type { EditLogSummary, SharedTreeSummaryBase, ChangeNode, ChangeInternal } from './persisted-types/index.js';
11
11
  import type { EditHandle } from './EditLog.js';
12
12
  import type { MutableStringInterner } from './StringInterner.js';
13
+ import type { IdCompressor } from './id-compressor/index.js';
14
+ import type { ChangeInternal, ChangeNode, EditLogSummary, SharedTreeSummaryBase } from './persisted-types/index.js';
13
15
 
14
16
  /**
15
17
  * The contents of a SharedTree summary, converted to a common internal format that can be
@@ -5,6 +5,7 @@
5
5
 
6
6
  import type { ITelemetryBaseProperties } from '@fluidframework/core-interfaces';
7
7
  import type { IFluidSerializer } from '@fluidframework/shared-object-base';
8
+
8
9
  import { fail } from './Common.js';
9
10
  import { getNumberOfHandlesFromEditLogSummary } from './EditLog.js';
10
11
  import {
@@ -4,9 +4,10 @@
4
4
  */
5
5
 
6
6
  import { IsoBuffer } from '@fluid-internal/client-utils';
7
+
7
8
  import type { EditLog } from './EditLog.js';
8
- import type { ChangeInternal, EditChunkContents, FluidEditHandle } from './persisted-types/index.js';
9
9
  import type { SharedTree } from './SharedTree.js';
10
+ import type { ChangeInternal, EditChunkContents, FluidEditHandle } from './persisted-types/index.js';
10
11
 
11
12
  /**
12
13
  * Format used for exporting an uploaded edit chunk and its associated handle path. Primarily used for testing SharedTree summaries.
@@ -3,16 +3,17 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { IErrorEvent } from '@fluidframework/core-interfaces';
7
6
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
8
- import { ChangeInternal, Edit, EditStatus } from './persisted-types/index.js';
9
- import { newEditId } from './EditUtilities.js';
10
- import { TreeView } from './TreeView.js';
7
+ import { IErrorEvent } from '@fluidframework/core-interfaces';
8
+
11
9
  import { Change } from './ChangeTypes.js';
10
+ import { RestOrArray, unwrapRestOrArray } from './Common.js';
11
+ import { newEditId } from './EditUtilities.js';
12
+ import { CachingLogViewer } from './LogViewer.js';
12
13
  import { SharedTree } from './SharedTree.js';
13
14
  import { GenericTransaction, TransactionInternal } from './TransactionInternal.js';
14
- import { CachingLogViewer } from './LogViewer.js';
15
- import { RestOrArray, unwrapRestOrArray } from './Common.js';
15
+ import { TreeView } from './TreeView.js';
16
+ import { ChangeInternal, Edit, EditStatus } from './persisted-types/index.js';
16
17
 
17
18
  /**
18
19
  * An event emitted by a `Transaction` to indicate a state change. See {@link TransactionEvents} for event argument information.
@@ -3,9 +3,23 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from '@fluidframework/core-utils';
7
- import { assertWithMessage, copyPropertyIfDefined, fail, Result } from './Common.js';
8
- import { NodeId, DetachedSequenceId, TraitLabel, isDetachedSequenceId } from './Identifiers.js';
6
+ import { assert } from '@fluidframework/core-utils/internal';
7
+
8
+ import { Result, assertWithMessage, copyPropertyIfDefined, fail } from './Common.js';
9
+ import {
10
+ BadPlaceValidationResult,
11
+ BadRangeValidationResult,
12
+ PlaceValidationResult,
13
+ RangeValidationResultKind,
14
+ detachRange,
15
+ insertIntoTrait,
16
+ validateStablePlace,
17
+ validateStableRange,
18
+ } from './EditUtilities.js';
19
+ import { DetachedSequenceId, NodeId, TraitLabel, isDetachedSequenceId } from './Identifiers.js';
20
+ import { ReconciliationChange, ReconciliationPath } from './ReconciliationPath.js';
21
+ import { RevisionView, TransactionView } from './RevisionView.js';
22
+ import { TreeViewNode } from './TreeView.js';
9
23
  import { rangeFromStableRange } from './TreeViewUtilities.js';
10
24
  import {
11
25
  BuildInternal,
@@ -21,19 +35,6 @@ import {
21
35
  StablePlaceInternal,
22
36
  StableRangeInternal,
23
37
  } from './persisted-types/index.js';
24
- import {
25
- detachRange,
26
- insertIntoTrait,
27
- validateStablePlace,
28
- validateStableRange,
29
- BadPlaceValidationResult,
30
- BadRangeValidationResult,
31
- PlaceValidationResult,
32
- RangeValidationResultKind,
33
- } from './EditUtilities.js';
34
- import { RevisionView, TransactionView } from './RevisionView.js';
35
- import { ReconciliationChange, ReconciliationPath } from './ReconciliationPath.js';
36
- import { TreeViewNode } from './TreeView.js';
37
38
 
38
39
  /**
39
40
  * Result of applying a transaction.
@@ -2,13 +2,15 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { assert } from '@fluidframework/core-utils';
5
+
6
+ import { assert } from '@fluidframework/core-utils/internal';
7
+
8
+ import { Mutable, fail } from './Common.js';
6
9
  import { isDetachedSequenceId } from './Identifiers.js';
7
10
  import type { Definition, DetachedSequenceId, InternedStringId, OpSpaceNodeId, TraitLabel } from './Identifiers.js';
8
- import type { StringInterner } from './StringInterner.js';
9
- import type { CompressedTraits, CompressedPlaceholderTree, PlaceholderTree, Payload } from './persisted-types/index.js';
10
11
  import type { ContextualizedNodeIdNormalizer } from './NodeIdUtilities.js';
11
- import { fail, Mutable } from './Common.js';
12
+ import type { StringInterner } from './StringInterner.js';
13
+ import type { CompressedPlaceholderTree, CompressedTraits, Payload, PlaceholderTree } from './persisted-types/index.js';
12
14
 
13
15
  /**
14
16
  * Compresses a given {@link PlaceholderTree} into a more compact serializable format.
@@ -3,10 +3,10 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { Definition, NodeId } from './Identifiers.js';
7
6
  import { fail, memoizeGetter } from './Common.js';
8
- import { Payload, TraitMap, TreeNode } from './persisted-types/index.js';
7
+ import { Definition, NodeId } from './Identifiers.js';
9
8
  import { TreeView, TreeViewNode } from './TreeView.js';
9
+ import { Payload, TraitMap, TreeNode } from './persisted-types/index.js';
10
10
 
11
11
  /**
12
12
  * A handle to a `TreeNode` that exists within a specific `TreeView`. This type provides a convenient
package/src/TreeView.ts CHANGED
@@ -3,10 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from '@fluidframework/core-utils';
6
+ import { assert } from '@fluidframework/core-utils/internal';
7
+
7
8
  import { copyPropertyIfDefined, fail } from './Common.js';
8
- import { NodeId, TraitLabel } from './Identifiers.js';
9
9
  import { Delta, Forest, isParentedForestNode } from './Forest.js';
10
+ import { NodeId, TraitLabel } from './Identifiers.js';
10
11
  import { NodeData, Side } from './persisted-types/index.js';
11
12
 
12
13
  /**
@@ -318,6 +319,5 @@ export abstract class TreeView {
318
319
  }
319
320
 
320
321
  function getIndex(side: Side, index: TraitNodeIndex): PlaceIndex {
321
- // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
322
322
  return (side + index) as PlaceIndex;
323
323
  }
@@ -3,7 +3,8 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { v4, NIL } from 'uuid';
6
+ import { NIL, v4 } from 'uuid';
7
+
7
8
  import { assertWithMessage } from './Common.js';
8
9
  import { StableId, UuidString } from './Identifiers.js';
9
10
 
@@ -5,7 +5,8 @@
5
5
 
6
6
  /* eslint-disable no-bitwise */
7
7
 
8
- import { assert } from '@fluidframework/core-utils';
8
+ import { assert } from '@fluidframework/core-utils/internal';
9
+
9
10
  import { fail } from '../Common.js';
10
11
 
11
12
  /**
@@ -3,48 +3,50 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- /* eslint-disable @typescript-eslint/restrict-plus-operands */
7
-
8
- import { assert } from '@fluidframework/core-utils';
9
- import { ITelemetryLoggerExt, createChildLogger } from '@fluidframework/telemetry-utils';
10
- import { BTree } from '@tylerbu/sorted-btree-es6';
11
6
  import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
7
+ import { assert } from '@fluidframework/core-utils/internal';
8
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
9
+ import { createChildLogger } from '@fluidframework/telemetry-utils/internal';
10
+ import { BTree } from '@tylerbu/sorted-btree-es6';
11
+
12
12
  import {
13
- hasLength,
13
+ Mutable,
14
14
  assertNotUndefined,
15
+ assertWithMessage,
15
16
  compareFiniteNumbers,
16
17
  compareFiniteNumbersReversed,
17
18
  compareMaps,
18
19
  compareStrings,
19
20
  fail,
20
21
  getOrCreate,
21
- Mutable,
22
+ hasLength,
22
23
  setPropertyIfDefined,
23
- assertWithMessage,
24
24
  } from '../Common.js';
25
25
  import {
26
- LocalCompressedId,
26
+ AttributionId,
27
+ CompressedId,
27
28
  FinalCompressedId,
28
- SessionSpaceCompressedId,
29
- StableId,
29
+ LocalCompressedId,
30
30
  OpSpaceCompressedId,
31
31
  SessionId,
32
- CompressedId,
32
+ SessionSpaceCompressedId,
33
+ StableId,
33
34
  UuidString,
34
- AttributionId,
35
35
  } from '../Identifiers.js';
36
36
  import { assertIsStableId, assertIsUuidString, isStableId } from '../UuidUtilities.js';
37
+
37
38
  import { AppendOnlySortedMap } from './AppendOnlySortedMap.js';
38
39
  import { getIds } from './IdRange.js';
39
40
  import {
40
- numericUuidEquals,
41
+ NumericUuid,
42
+ ensureSessionUuid,
41
43
  getPositiveDelta,
42
44
  incrementUuid,
45
+ numericUuidEquals,
43
46
  numericUuidFromStableId,
44
- NumericUuid,
45
47
  stableIdFromNumericUuid,
46
- ensureSessionUuid,
47
48
  } from './NumericUuid.js';
49
+ import { SessionIdNormalizer } from './SessionIdNormalizer.js';
48
50
  import type {
49
51
  IdCreationRange,
50
52
  SerializedCluster,
@@ -57,7 +59,6 @@ import type {
57
59
  UnackedLocalId,
58
60
  VersionedSerializedIdCompressor,
59
61
  } from './persisted-types/index.js';
60
- import { SessionIdNormalizer } from './SessionIdNormalizer.js';
61
62
 
62
63
  /**
63
64
  * A cluster of final (sequenced via consensus), sequentially allocated compressed IDs.
@@ -3,7 +3,8 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from '@fluidframework/core-utils';
6
+ import { assert } from '@fluidframework/core-utils/internal';
7
+
7
8
  import type { IdCreationRange, UnackedLocalId } from './persisted-types/index.js';
8
9
 
9
10
  export function getIds(
@@ -5,9 +5,9 @@
5
5
 
6
6
  /* eslint-disable no-bitwise */
7
7
 
8
+ import { assertWithMessage, fail } from '../Common.js';
8
9
  import { SessionId, StableId } from '../Identifiers.js';
9
10
  import { generateStableId } from '../UuidUtilities.js';
10
- import { assertWithMessage, fail } from '../Common.js';
11
11
 
12
12
  /**
13
13
  * A UUID (128 bit identifier) optimized for use as a 128 bit unsigned integer with fast addition and toString operations.
@@ -3,11 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- /* eslint-disable @typescript-eslint/restrict-plus-operands */
6
+ import { assert } from '@fluidframework/core-utils/internal';
7
7
 
8
- import { assert } from '@fluidframework/core-utils';
9
- import { compareFiniteNumbers, compareFiniteNumbersReversed, fail, Mutable } from '../Common.js';
8
+ import { Mutable, compareFiniteNumbers, compareFiniteNumbersReversed, fail } from '../Common.js';
10
9
  import { FinalCompressedId, LocalCompressedId, SessionSpaceCompressedId } from '../Identifiers.js';
10
+
11
11
  import { AppendOnlyDoublySortedMap } from './AppendOnlySortedMap.js';
12
12
  import { SerializedSessionIdNormalizer } from './persisted-types/index.js';
13
13
 
@@ -3,9 +3,10 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { MessageType, type ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
6
+ import { assert } from '@fluidframework/core-utils/internal';
7
7
  import { type IChannelAttributes, type IDeltaHandler } from '@fluidframework/datastore-definitions';
8
- import { assert } from '@fluidframework/core-utils';
8
+ import { type ISequencedDocumentMessage, MessageType } from '@fluidframework/protocol-definitions';
9
+
9
10
  import { type IOpContents, type IShimDeltaHandler } from './types.js';
10
11
  import { attributesMatch, isBarrierOp, isStampedOp } from './utils.js';
11
12
 
@@ -2,35 +2,39 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
+
6
+ import { type EventEmitterEventType } from '@fluid-internal/client-utils';
5
7
  import { AttachState } from '@fluidframework/container-definitions';
6
8
  import { type IEvent, type IFluidHandle, type IFluidLoadable } from '@fluidframework/core-interfaces';
9
+ import { assert } from '@fluidframework/core-utils/internal';
7
10
  import {
8
- IChannelFactory,
9
11
  type IChannelAttributes,
12
+ IChannelFactory,
10
13
  type IChannelServices,
11
14
  type IFluidDataStoreRuntime,
12
15
  } from '@fluidframework/datastore-definitions';
16
+ import type { SessionId } from '@fluidframework/id-compressor';
17
+ import type { IIdCompressorCore } from '@fluidframework/id-compressor/internal';
18
+ import { type ISequencedDocumentMessage, MessageType } from '@fluidframework/protocol-definitions';
13
19
  import {
14
20
  type IExperimentalIncrementalSummaryContext,
15
21
  type IGarbageCollectionData,
16
- type ITelemetryContext,
17
22
  type ISummaryTreeWithStats,
23
+ type ITelemetryContext,
18
24
  } from '@fluidframework/runtime-definitions';
25
+ import { DataProcessingError, EventEmitterWithErrorHandling } from '@fluidframework/telemetry-utils/internal';
19
26
  import { type ITree } from '@fluidframework/tree';
20
- import { assert } from '@fluidframework/core-utils';
21
- import { MessageType, type ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
22
- import { type EventEmitterEventType } from '@fluid-internal/client-utils';
23
- import { DataProcessingError, EventEmitterWithErrorHandling } from '@fluidframework/telemetry-utils';
24
- import type { SessionId, IIdCompressorCore } from '@fluidframework/id-compressor';
27
+
25
28
  import {
26
- type SharedTreeFactory as LegacySharedTreeFactory,
27
29
  type SharedTree as LegacySharedTree,
30
+ type SharedTreeFactory as LegacySharedTreeFactory,
28
31
  } from '../SharedTree.js';
29
- import { type IShimChannelServices, NoDeltasChannelServices } from './shimChannelServices.js';
32
+
30
33
  import { MigrationShimDeltaHandler } from './migrationDeltaHandler.js';
34
+ import { type IShimChannelServices, NoDeltasChannelServices } from './shimChannelServices.js';
31
35
  import { PreMigrationDeltaConnection, StampDeltaConnection } from './shimDeltaConnection.js';
32
36
  import { ShimHandle } from './shimHandle.js';
33
- import { type IShim, type IOpContents } from './types.js';
37
+ import { type IOpContents, type IShim } from './types.js';
34
38
 
35
39
  /**
36
40
  * Interface for migration events to indicate the stage of the migration. There really is two stages: before, and after.