@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
@@ -1,135 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { strict as assert } from 'assert';
6
- import { benchmark, BenchmarkType, isInPerformanceTestingMode } from '@fluid-tools/benchmark';
7
- import { v4 } from 'uuid';
8
- import { Forest } from '../Forest.js';
9
- import { RevisionView } from '../RevisionView.js';
10
- import { Side } from '../persisted-types/index.js';
11
- import { refreshTestTree } from './utilities/TestUtilities.js';
12
- describe('Forest Perf', () => {
13
- const testTree = refreshTestTree();
14
- // Larger sizes can slow down correctness test runs, or even time out, so only run smaller sizes as correctness tests.
15
- const sizes = isInPerformanceTestingMode ? [100, 1000, 10000, 100000] : [100, 1000];
16
- for (const count of sizes) {
17
- // Pick a single representative size for the 'Measurement' suite to keep it small.
18
- const type = count === 10000 ? BenchmarkType.Measurement : BenchmarkType.Perspective;
19
- benchmark({
20
- type,
21
- title: `${count} random inserts in TreeView`,
22
- benchmarkFn: () => {
23
- buildRandomTree(testTree, count);
24
- },
25
- });
26
- let built;
27
- let rootId;
28
- benchmark({
29
- type,
30
- title: `walk ${count} node TreeView`,
31
- before: () => {
32
- [built, rootId] = buildRandomTree(testTree, count);
33
- },
34
- benchmarkFn: () => {
35
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
36
- const nodes = walk(built, rootId);
37
- assert(nodes === count);
38
- },
39
- after: () => {
40
- built = undefined;
41
- rootId = undefined;
42
- },
43
- });
44
- let forest;
45
- let nodes;
46
- benchmark({
47
- type,
48
- title: `insert ${count} nodes into Forest`,
49
- before: () => {
50
- forest = Forest.create(true);
51
- nodes = [];
52
- for (let i = 0; i < count; i++) {
53
- nodes.push(makeTestForestNode(testTree));
54
- }
55
- },
56
- benchmarkFn: () => {
57
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
58
- forest.add(nodes);
59
- },
60
- after: () => {
61
- forest = undefined;
62
- },
63
- });
64
- let otherForest;
65
- for (const otherCount of sizes) {
66
- benchmark({
67
- type,
68
- title: `invoke delta on Forest with ${count} nodes against Forest with ${otherCount} nodes`,
69
- before: () => {
70
- forest = Forest.create(true);
71
- otherForest = Forest.create(true);
72
- nodes = [];
73
- for (let i = 0; i < count; i++) {
74
- nodes.push(makeTestForestNode(testTree));
75
- }
76
- forest = forest.add(nodes);
77
- const otherNodes = [];
78
- for (let i = 0; i < otherCount; i++) {
79
- otherNodes.push(makeTestForestNode(testTree));
80
- }
81
- otherForest = otherForest.add(otherNodes);
82
- },
83
- benchmarkFn: () => {
84
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
85
- forest.delta(otherForest);
86
- },
87
- after: () => {
88
- forest = undefined;
89
- otherForest = undefined;
90
- },
91
- });
92
- }
93
- }
94
- });
95
- function walk(s, id) {
96
- let count = 1;
97
- const n = s.getViewNode(id);
98
- for (const [_label, v] of n.traits.entries()) {
99
- for (const child of v) {
100
- count += walk(s, child);
101
- }
102
- }
103
- return count;
104
- }
105
- function buildRandomTree(testTree, size) {
106
- function getId() {
107
- return testTree.generateNodeId();
108
- }
109
- function getLabel() {
110
- return v4();
111
- }
112
- const rootId = getId();
113
- const root = { traits: {}, definition: v4(), identifier: rootId };
114
- const ids = [rootId];
115
- let f = RevisionView.fromTree(root).openForTransaction();
116
- for (let i = 1; i < size; i++) {
117
- const label = getLabel();
118
- const def = v4();
119
- const id = getId();
120
- const newNode = {
121
- identifier: id,
122
- definition: def,
123
- traits: new Map(),
124
- };
125
- f = f.addNodes([newNode]);
126
- const parent = ids[Math.floor(Math.random() * ids.length)];
127
- f = f.attachRange([id], { trait: { parent, label }, side: Side.Before });
128
- ids.push(id);
129
- }
130
- return [f.close(), rootId];
131
- }
132
- function makeTestForestNode(testTree) {
133
- return { ...testTree.buildLeaf(testTree.generateNodeId()), traits: new Map() };
134
- }
135
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AAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACzE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACb;IACD,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;AAC5B,CAAC;AAED,SAAS,kBAAkB,CAAC,QAAkB;IAC7C,OAAO,EAAE,GAAG,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC;AAChF,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { strict as assert } from 'assert';\nimport { benchmark, BenchmarkType, isInPerformanceTestingMode } from '@fluid-tools/benchmark';\nimport { v4 } from 'uuid';\n\nimport { Definition, NodeId, TraitLabel } from '../Identifiers.js';\nimport { Forest, ForestNode } from '../Forest.js';\nimport { RevisionView } from '../RevisionView.js';\nimport { ChangeNode, Side } from '../persisted-types/index.js';\nimport { TreeViewNode } from '../TreeView.js';\nimport { TestTree } from './utilities/TestNode.js';\nimport { refreshTestTree } from './utilities/TestUtilities.js';\n\ndescribe('Forest Perf', () => {\n\tconst testTree = refreshTestTree();\n\t// Larger sizes can slow down correctness test runs, or even time out, so only run smaller sizes as correctness tests.\n\tconst sizes = isInPerformanceTestingMode ? [100, 1_000, 10_000, 100_000] : [100, 1_000];\n\n\tfor (const count of sizes) {\n\t\t// Pick a single representative size for the 'Measurement' suite to keep it small.\n\t\tconst type = count === 10_000 ? BenchmarkType.Measurement : BenchmarkType.Perspective;\n\n\t\tbenchmark({\n\t\t\ttype,\n\t\t\ttitle: `${count} random inserts in TreeView`,\n\t\t\tbenchmarkFn: () => {\n\t\t\t\tbuildRandomTree(testTree, count);\n\t\t\t},\n\t\t});\n\n\t\tlet built: RevisionView | undefined;\n\t\tlet rootId: NodeId | undefined;\n\t\tbenchmark({\n\t\t\ttype,\n\t\t\ttitle: `walk ${count} node TreeView`,\n\t\t\tbefore: () => {\n\t\t\t\t[built, rootId] = buildRandomTree(testTree, count);\n\t\t\t},\n\t\t\tbenchmarkFn: () => {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\t\tconst nodes = walk(built!, rootId!);\n\t\t\t\tassert(nodes === count);\n\t\t\t},\n\t\t\tafter: () => {\n\t\t\t\tbuilt = undefined;\n\t\t\t\trootId = undefined;\n\t\t\t},\n\t\t});\n\n\t\tlet forest: Forest | undefined;\n\t\tlet nodes: ForestNode[];\n\t\tbenchmark({\n\t\t\ttype,\n\t\t\ttitle: `insert ${count} nodes into Forest`,\n\t\t\tbefore: () => {\n\t\t\t\tforest = Forest.create(true);\n\t\t\t\tnodes = [];\n\t\t\t\tfor (let i = 0; i < count; i++) {\n\t\t\t\t\tnodes.push(makeTestForestNode(testTree));\n\t\t\t\t}\n\t\t\t},\n\t\t\tbenchmarkFn: () => {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\t\tforest!.add(nodes);\n\t\t\t},\n\t\t\tafter: () => {\n\t\t\t\tforest = undefined;\n\t\t\t},\n\t\t});\n\n\t\tlet otherForest: Forest | undefined;\n\t\tfor (const otherCount of sizes) {\n\t\t\tbenchmark({\n\t\t\t\ttype,\n\t\t\t\ttitle: `invoke delta on Forest with ${count} nodes against Forest with ${otherCount} nodes`,\n\t\t\t\tbefore: () => {\n\t\t\t\t\tforest = Forest.create(true);\n\t\t\t\t\totherForest = Forest.create(true);\n\t\t\t\t\tnodes = [];\n\t\t\t\t\tfor (let i = 0; i < count; i++) {\n\t\t\t\t\t\tnodes.push(makeTestForestNode(testTree));\n\t\t\t\t\t}\n\t\t\t\t\tforest = forest.add(nodes);\n\n\t\t\t\t\tconst otherNodes: ForestNode[] = [];\n\t\t\t\t\tfor (let i = 0; i < otherCount; i++) {\n\t\t\t\t\t\totherNodes.push(makeTestForestNode(testTree));\n\t\t\t\t\t}\n\t\t\t\t\totherForest = otherForest.add(otherNodes);\n\t\t\t\t},\n\t\t\t\tbenchmarkFn: () => {\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\t\t\tforest!.delta(otherForest!);\n\t\t\t\t},\n\t\t\t\tafter: () => {\n\t\t\t\t\tforest = undefined;\n\t\t\t\t\totherForest = undefined;\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\t}\n});\n\nfunction walk(s: RevisionView, id: NodeId): number {\n\tlet count = 1;\n\tconst n = s.getViewNode(id);\n\tfor (const [_label, v] of n.traits.entries()) {\n\t\tfor (const child of v) {\n\t\t\tcount += walk(s, child);\n\t\t}\n\t}\n\treturn count;\n}\n\nfunction buildRandomTree(testTree: TestTree, size: number): [RevisionView, NodeId] {\n\tfunction getId(): NodeId {\n\t\treturn testTree.generateNodeId();\n\t}\n\n\tfunction getLabel(): TraitLabel {\n\t\treturn v4() as TraitLabel;\n\t}\n\n\tconst rootId = getId();\n\tconst root: ChangeNode = { traits: {}, definition: v4() as Definition, identifier: rootId };\n\tconst ids = [rootId];\n\tlet f = RevisionView.fromTree(root).openForTransaction();\n\n\tfor (let i = 1; i < size; i++) {\n\t\tconst label = getLabel();\n\t\tconst def: Definition = v4() as Definition;\n\t\tconst id = getId();\n\n\t\tconst newNode: TreeViewNode = {\n\t\t\tidentifier: id,\n\t\t\tdefinition: def,\n\t\t\ttraits: new Map<TraitLabel, readonly NodeId[]>(),\n\t\t};\n\n\t\tf = f.addNodes([newNode]);\n\t\tconst parent = ids[Math.floor(Math.random() * ids.length)];\n\t\tf = f.attachRange([id], { trait: { parent, label }, side: Side.Before });\n\t\tids.push(id);\n\t}\n\treturn [f.close(), rootId];\n}\n\nfunction makeTestForestNode(testTree: TestTree): ForestNode {\n\treturn { ...testTree.buildLeaf(testTree.generateNodeId()), traits: new Map() };\n}\n"]}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- export {};
6
- //# sourceMappingURL=Forest.tests.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Forest.tests.d.ts","sourceRoot":"","sources":["../../src/test/Forest.tests.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,213 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { strict as assert } from 'assert';
6
- import { expect } from 'chai';
7
- import { validateAssertionError } from '@fluidframework/test-runtime-utils';
8
- import { compareForestNodes, Forest } from '../Forest.js';
9
- import { refreshTestTree } from './utilities/TestUtilities.js';
10
- const mainTraitLabel = 'main';
11
- function makeForestNodeWithChildren(testTree, id, ...children) {
12
- return {
13
- ...testTree.buildLeaf(id),
14
- traits: new Map(children.length > 0 ? [[mainTraitLabel, [...children]]] : []),
15
- };
16
- }
17
- describe('Forest', () => {
18
- let parentId;
19
- let childId;
20
- let secondChildId;
21
- let thirdChildId;
22
- let childNode;
23
- let parentNode;
24
- let emptyForest;
25
- let oneNodeForest;
26
- let parentForest;
27
- let grandparentForest;
28
- let threeLeafForest;
29
- const testTree = refreshTestTree(undefined, (t) => {
30
- parentId = t.generateNodeId();
31
- childId = t.generateNodeId();
32
- secondChildId = t.generateNodeId();
33
- thirdChildId = t.generateNodeId();
34
- childNode = makeForestNodeWithChildren(t, childId);
35
- parentNode = makeForestNodeWithChildren(t, parentId);
36
- emptyForest = Forest.create(true);
37
- oneNodeForest = emptyForest.add([parentNode]);
38
- parentForest = oneNodeForest.add([childNode]).attachRangeOfChildren(parentId, mainTraitLabel, 0, [childId]);
39
- grandparentForest = parentForest
40
- .add([makeForestNodeWithChildren(t, secondChildId)])
41
- .attachRangeOfChildren(childId, mainTraitLabel, 0, [secondChildId]);
42
- threeLeafForest = parentForest
43
- .add([makeForestNodeWithChildren(t, secondChildId), makeForestNodeWithChildren(t, thirdChildId)])
44
- .attachRangeOfChildren(parentId, mainTraitLabel, 1, [secondChildId, thirdChildId]);
45
- });
46
- it('test forests are consistent', () => {
47
- emptyForest.assertConsistent();
48
- parentForest.assertConsistent();
49
- expect(emptyForest.size).equals(0);
50
- expect(parentForest.size).equals(2);
51
- });
52
- it('fails on multiparenting', () => {
53
- assert.throws(() => oneNodeForest.add([makeForestNodeWithChildren(testTree, parentId, childId, childId)]));
54
- });
55
- it('cannot add a node with a duplicate ID', () => {
56
- assert.throws(() => oneNodeForest.add([makeForestNodeWithChildren(testTree, parentId)]));
57
- });
58
- it('can get nodes in the forest', () => {
59
- expect(compareForestNodes(parentForest.get(childId), childNode));
60
- expect(compareForestNodes(parentForest.get(parentId), parentNode));
61
- });
62
- it('can get parents in the forest', () => {
63
- expect(parentForest.tryGetParent(parentId)).to.be.undefined;
64
- expect(parentForest.tryGetParent(childId)?.parentId).to.equal(parentId);
65
- });
66
- it('can add nodes', () => {
67
- let forestA = emptyForest;
68
- const children = [];
69
- const numToAdd = 10;
70
- for (let i = 0; i < numToAdd; i++) {
71
- const node = makeForestNodeWithChildren(testTree, testTree.generateNodeId());
72
- children.push(node);
73
- forestA = forestA.add([node]);
74
- }
75
- const forestB = emptyForest.add(children);
76
- forestA.assertConsistent();
77
- forestB.assertConsistent();
78
- expect(forestA.size).to.equal(10);
79
- expect(forestA.equals(forestB)).to.be.true;
80
- });
81
- // Test that Forest.add() adds descendants and ancestors correctly regardless of the order in which they are supplied
82
- it('can add nodes in any order', () => {
83
- const childId = testTree.generateNodeId();
84
- const parentId = testTree.generateNodeId();
85
- const child = makeForestNodeWithChildren(testTree, childId);
86
- const parent = makeForestNodeWithChildren(testTree, parentId, childId);
87
- const grandparent = makeForestNodeWithChildren(testTree, testTree.generateNodeId(), parentId);
88
- const forestA = emptyForest.add([child, parent, grandparent]);
89
- const forestB = emptyForest.add([grandparent, parent, child]);
90
- forestA.assertConsistent();
91
- forestB.assertConsistent();
92
- expect(forestA.size).to.equal(3);
93
- expect(forestA.equals(forestB)).to.be.true;
94
- });
95
- it('can replace payloads', () => {
96
- expectSuccessfulReplace(oneNodeForest, parentId, 0); // Set a payload when there was none
97
- expectSuccessfulReplace(oneNodeForest, parentId, 1); // Change a payload
98
- });
99
- it('can correctly attach a range to an empty trait on a root', () => {
100
- const moreChildrenForest = oneNodeForest.add([
101
- makeForestNodeWithChildren(testTree, childId),
102
- makeForestNodeWithChildren(testTree, secondChildId),
103
- ]);
104
- expectSuccessfulAttach(moreChildrenForest, parentId, mainTraitLabel, 0, [childId, secondChildId]);
105
- });
106
- it('can correctly attach ranges to a populated trait on a root', () => {
107
- const twoLeafForest = parentForest.add([
108
- makeForestNodeWithChildren(testTree, secondChildId),
109
- makeForestNodeWithChildren(testTree, thirdChildId),
110
- ]);
111
- expectSuccessfulAttach(twoLeafForest, parentId, mainTraitLabel, 1, [secondChildId]);
112
- expectSuccessfulAttach(twoLeafForest, parentId, mainTraitLabel, 1, [thirdChildId]);
113
- });
114
- it('can correctly attach ranges under a leaf', () => {
115
- const threeNodeForest = parentForest.add([makeForestNodeWithChildren(testTree, secondChildId)]);
116
- expectSuccessfulAttach(threeNodeForest, childId, mainTraitLabel, 0, [secondChildId]);
117
- });
118
- it('only accepts valid indices for attaches', () => {
119
- const twoNodeForest = oneNodeForest.add([makeForestNodeWithChildren(testTree, childId)]);
120
- assert.throws(() => twoNodeForest.attachRangeOfChildren(parentId, mainTraitLabel, -1, [childId]), (e) => validateAssertionError(e, 'invalid attach index'));
121
- assert.throws(() => twoNodeForest.attachRangeOfChildren(parentId, mainTraitLabel, 1, [childId]), (e) => validateAssertionError(e, 'invalid attach index'));
122
- });
123
- it('does not add trait when attaching empty range to empty trait', () => {
124
- const forestWithAttach = oneNodeForest.attachRangeOfChildren(parentId, mainTraitLabel, 0, []);
125
- const newParent = forestWithAttach.get(parentId);
126
- expect(newParent.traits.get(mainTraitLabel)).equals(undefined);
127
- });
128
- it('can correctly detach a range on a root node', () => {
129
- expectSuccessfulDetach(threeLeafForest, parentId, mainTraitLabel, 1, 2);
130
- });
131
- it('can correctly detach a range on a leaf node', () => {
132
- expectSuccessfulDetach(grandparentForest, childId, mainTraitLabel, 0, 1);
133
- });
134
- it('can correctly detach an entire trait', () => {
135
- expectSuccessfulDetach(threeLeafForest, parentId, mainTraitLabel, 0, 2);
136
- });
137
- it('only accepts valid indices for detaches', () => {
138
- assert.throws(() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, -1, -1), (e) => validateAssertionError(e, 'invalid detach index range'));
139
- assert.throws(() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, -1, 0), (e) => validateAssertionError(e, 'invalid detach index range'));
140
- assert.throws(() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, 1, 0), (e) => validateAssertionError(e, 'invalid detach index range'));
141
- assert.throws(() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, 0, 2), (e) => validateAssertionError(e, 'invalid detach index range'));
142
- assert.throws(() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, 1, 2), (e) => validateAssertionError(e, 'invalid detach index range'));
143
- });
144
- it('cannot delete parented nodes', () => {
145
- assert.throws(() => parentForest.delete([childId], false), (e) => validateAssertionError(e, 'deleted nodes must be unparented'));
146
- });
147
- it('can delete a root', () => {
148
- const deleteRoot = parentForest.delete([parentId], false);
149
- deleteRoot.assertConsistent();
150
- expect(deleteRoot.size).to.equal(1);
151
- expect(deleteRoot.tryGet(childId)).to.not.be.undefined;
152
- });
153
- it('can delete a subtree', () => {
154
- const deleteLeaf = parentForest.delete([parentId], true);
155
- deleteLeaf.assertConsistent();
156
- expect(deleteLeaf.size).to.equal(0);
157
- });
158
- it('calculates deltas correctly', () => {
159
- const add = emptyForest.delta(oneNodeForest);
160
- const remove = oneNodeForest.delta(emptyForest);
161
- const same = parentForest.delta(parentForest);
162
- const modified = parentForest.setValue(childId, -1);
163
- const modify = parentForest.delta(modified);
164
- expect(remove).deep.equals({ changed: [], added: [], removed: [parentId] });
165
- expect(add).deep.equals({ changed: [], added: [parentId], removed: [] });
166
- expect(same).deep.equals({ changed: [], added: [], removed: [] });
167
- expect(modify).deep.equals({ changed: [childId], added: [], removed: [] });
168
- });
169
- it('calculates equality correctly', () => {
170
- const modified = parentForest.setValue(parentId, -1);
171
- expect(oneNodeForest.equals(emptyForest)).false;
172
- expect(emptyForest.equals(oneNodeForest)).false;
173
- expect(parentForest.equals(parentForest)).true;
174
- expect(parentForest.equals(modified)).false;
175
- });
176
- function expectSuccessfulAttach(forest, parentId, label, index, childIds) {
177
- const parent = forest.get(parentId);
178
- const expectedTrait = [...(parent.traits.get(label) ?? [])];
179
- expectedTrait.splice(index, 0, ...childIds);
180
- const forestWithAttach = forest.attachRangeOfChildren(parentId, label, index, childIds);
181
- const newParent = forestWithAttach.get(parentId);
182
- expect(newParent.traits.get(label)).deep.equals(expectedTrait);
183
- for (const childId of childIds) {
184
- const parentData = forestWithAttach.tryGetParent(childId);
185
- expect(parentData?.traitParent).to.equal(label);
186
- expect(parentData?.parentId).to.equal(parentId);
187
- }
188
- }
189
- function expectSuccessfulDetach(forest, parentId, label, startIndex, endIndex) {
190
- const parent = forest.get(parentId);
191
- const expectedTrait = [...(parent.traits.get(label) ?? [])];
192
- const spliced = expectedTrait.splice(startIndex, endIndex - startIndex);
193
- const { forest: forestWithDetach, detached } = forest.detachRangeOfChildren(parentId, label, startIndex, endIndex);
194
- const newParent = forestWithDetach.get(parentId);
195
- const trait = newParent.traits.get(label);
196
- if (expectedTrait.length === 0) {
197
- expect(trait).to.be.undefined;
198
- }
199
- else {
200
- expect(trait).deep.equals(expectedTrait);
201
- }
202
- expect(detached).deep.equals(spliced);
203
- for (const detachedId of detached) {
204
- expect(forestWithDetach.tryGetParent(detachedId)).to.be.undefined;
205
- }
206
- }
207
- function expectSuccessfulReplace(forest, nodeId, payload) {
208
- const forestWithReplace = forest.setValue(nodeId, payload);
209
- const newNode = forestWithReplace.get(nodeId);
210
- expect(newNode.payload).equals(payload);
211
- }
212
- });
213
- //# sourceMappingURL=Forest.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;QAED,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACtC,KAAK,MAAM,UAAU,IAAI,QAAQ,EAAE;YAClC,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC;SAClE;IACF,CAAC;IAED,SAAS,uBAAuB,CAAC,MAAc,EAAE,MAAc,EAAE,OAAuB;QACvF,MAAM,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC3D,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC9C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;AACF,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { strict as assert } from 'assert';\nimport { expect } from 'chai';\nimport { validateAssertionError } from '@fluidframework/test-runtime-utils';\nimport { compareForestNodes, Forest, ForestNode } from '../Forest.js';\nimport { NodeId, TraitLabel } from '../Identifiers.js';\nimport { Payload } from '../persisted-types/index.js';\nimport { TestTree } from './utilities/TestNode.js';\nimport { refreshTestTree } from './utilities/TestUtilities.js';\n\nconst mainTraitLabel = 'main' as TraitLabel;\n\nfunction makeForestNodeWithChildren(testTree: TestTree, id: NodeId, ...children: NodeId[]): ForestNode {\n\treturn {\n\t\t...testTree.buildLeaf(id),\n\t\ttraits: new Map(children.length > 0 ? [[mainTraitLabel, [...children]]] : []),\n\t};\n}\n\ndescribe('Forest', () => {\n\tlet parentId: NodeId;\n\tlet childId: NodeId;\n\tlet secondChildId: NodeId;\n\tlet thirdChildId: NodeId;\n\n\tlet childNode: ForestNode;\n\tlet parentNode: ForestNode;\n\tlet emptyForest: Forest;\n\tlet oneNodeForest: Forest;\n\tlet parentForest: Forest;\n\tlet grandparentForest: Forest;\n\tlet threeLeafForest: Forest;\n\n\tconst testTree = refreshTestTree(undefined, (t) => {\n\t\tparentId = t.generateNodeId();\n\t\tchildId = t.generateNodeId();\n\t\tsecondChildId = t.generateNodeId();\n\t\tthirdChildId = t.generateNodeId();\n\n\t\tchildNode = makeForestNodeWithChildren(t, childId);\n\t\tparentNode = makeForestNodeWithChildren(t, parentId);\n\t\temptyForest = Forest.create(true);\n\t\toneNodeForest = emptyForest.add([parentNode]);\n\t\tparentForest = oneNodeForest.add([childNode]).attachRangeOfChildren(parentId, mainTraitLabel, 0, [childId]);\n\t\tgrandparentForest = parentForest\n\t\t\t.add([makeForestNodeWithChildren(t, secondChildId)])\n\t\t\t.attachRangeOfChildren(childId, mainTraitLabel, 0, [secondChildId]);\n\n\t\tthreeLeafForest = parentForest\n\t\t\t.add([makeForestNodeWithChildren(t, secondChildId), makeForestNodeWithChildren(t, thirdChildId)])\n\t\t\t.attachRangeOfChildren(parentId, mainTraitLabel, 1, [secondChildId, thirdChildId]);\n\t});\n\n\tit('test forests are consistent', () => {\n\t\temptyForest.assertConsistent();\n\t\tparentForest.assertConsistent();\n\t\texpect(emptyForest.size).equals(0);\n\t\texpect(parentForest.size).equals(2);\n\t});\n\n\tit('fails on multiparenting', () => {\n\t\tassert.throws(() => oneNodeForest.add([makeForestNodeWithChildren(testTree, parentId, childId, childId)]));\n\t});\n\n\tit('cannot add a node with a duplicate ID', () => {\n\t\tassert.throws(() => oneNodeForest.add([makeForestNodeWithChildren(testTree, parentId)]));\n\t});\n\n\tit('can get nodes in the forest', () => {\n\t\texpect(compareForestNodes(parentForest.get(childId), childNode));\n\t\texpect(compareForestNodes(parentForest.get(parentId), parentNode));\n\t});\n\n\tit('can get parents in the forest', () => {\n\t\texpect(parentForest.tryGetParent(parentId)).to.be.undefined;\n\t\texpect(parentForest.tryGetParent(childId)?.parentId).to.equal(parentId);\n\t});\n\n\tit('can add nodes', () => {\n\t\tlet forestA = emptyForest;\n\t\tconst children: ForestNode[] = [];\n\t\tconst numToAdd = 10;\n\t\tfor (let i = 0; i < numToAdd; i++) {\n\t\t\tconst node = makeForestNodeWithChildren(testTree, testTree.generateNodeId());\n\t\t\tchildren.push(node);\n\t\t\tforestA = forestA.add([node]);\n\t\t}\n\t\tconst forestB = emptyForest.add(children);\n\t\tforestA.assertConsistent();\n\t\tforestB.assertConsistent();\n\t\texpect(forestA.size).to.equal(10);\n\t\texpect(forestA.equals(forestB)).to.be.true;\n\t});\n\n\t// Test that Forest.add() adds descendants and ancestors correctly regardless of the order in which they are supplied\n\tit('can add nodes in any order', () => {\n\t\tconst childId = testTree.generateNodeId();\n\t\tconst parentId = testTree.generateNodeId();\n\t\tconst child = makeForestNodeWithChildren(testTree, childId);\n\t\tconst parent = makeForestNodeWithChildren(testTree, parentId, childId);\n\t\tconst grandparent = makeForestNodeWithChildren(testTree, testTree.generateNodeId(), parentId);\n\t\tconst forestA = emptyForest.add([child, parent, grandparent]);\n\t\tconst forestB = emptyForest.add([grandparent, parent, child]);\n\t\tforestA.assertConsistent();\n\t\tforestB.assertConsistent();\n\t\texpect(forestA.size).to.equal(3);\n\t\texpect(forestA.equals(forestB)).to.be.true;\n\t});\n\n\tit('can replace payloads', () => {\n\t\texpectSuccessfulReplace(oneNodeForest, parentId, 0); // Set a payload when there was none\n\t\texpectSuccessfulReplace(oneNodeForest, parentId, 1); // Change a payload\n\t});\n\n\tit('can correctly attach a range to an empty trait on a root', () => {\n\t\tconst moreChildrenForest = oneNodeForest.add([\n\t\t\tmakeForestNodeWithChildren(testTree, childId),\n\t\t\tmakeForestNodeWithChildren(testTree, secondChildId),\n\t\t]);\n\n\t\texpectSuccessfulAttach(moreChildrenForest, parentId, mainTraitLabel, 0, [childId, secondChildId]);\n\t});\n\n\tit('can correctly attach ranges to a populated trait on a root', () => {\n\t\tconst twoLeafForest = parentForest.add([\n\t\t\tmakeForestNodeWithChildren(testTree, secondChildId),\n\t\t\tmakeForestNodeWithChildren(testTree, thirdChildId),\n\t\t]);\n\n\t\texpectSuccessfulAttach(twoLeafForest, parentId, mainTraitLabel, 1, [secondChildId]);\n\t\texpectSuccessfulAttach(twoLeafForest, parentId, mainTraitLabel, 1, [thirdChildId]);\n\t});\n\n\tit('can correctly attach ranges under a leaf', () => {\n\t\tconst threeNodeForest = parentForest.add([makeForestNodeWithChildren(testTree, secondChildId)]);\n\t\texpectSuccessfulAttach(threeNodeForest, childId, mainTraitLabel, 0, [secondChildId]);\n\t});\n\n\tit('only accepts valid indices for attaches', () => {\n\t\tconst twoNodeForest = oneNodeForest.add([makeForestNodeWithChildren(testTree, childId)]);\n\t\tassert.throws(\n\t\t\t() => twoNodeForest.attachRangeOfChildren(parentId, mainTraitLabel, -1, [childId]),\n\t\t\t(e: Error) => validateAssertionError(e, 'invalid attach index')\n\t\t);\n\t\tassert.throws(\n\t\t\t() => twoNodeForest.attachRangeOfChildren(parentId, mainTraitLabel, 1, [childId]),\n\t\t\t(e: Error) => validateAssertionError(e, 'invalid attach index')\n\t\t);\n\t});\n\n\tit('does not add trait when attaching empty range to empty trait', () => {\n\t\tconst forestWithAttach = oneNodeForest.attachRangeOfChildren(parentId, mainTraitLabel, 0, []);\n\t\tconst newParent = forestWithAttach.get(parentId);\n\t\texpect(newParent.traits.get(mainTraitLabel)).equals(undefined);\n\t});\n\n\tit('can correctly detach a range on a root node', () => {\n\t\texpectSuccessfulDetach(threeLeafForest, parentId, mainTraitLabel, 1, 2);\n\t});\n\n\tit('can correctly detach a range on a leaf node', () => {\n\t\texpectSuccessfulDetach(grandparentForest, childId, mainTraitLabel, 0, 1);\n\t});\n\n\tit('can correctly detach an entire trait', () => {\n\t\texpectSuccessfulDetach(threeLeafForest, parentId, mainTraitLabel, 0, 2);\n\t});\n\n\tit('only accepts valid indices for detaches', () => {\n\t\tassert.throws(\n\t\t\t() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, -1, -1),\n\t\t\t(e: Error) => validateAssertionError(e, 'invalid detach index range')\n\t\t);\n\t\tassert.throws(\n\t\t\t() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, -1, 0),\n\t\t\t(e: Error) => validateAssertionError(e, 'invalid detach index range')\n\t\t);\n\t\tassert.throws(\n\t\t\t() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, 1, 0),\n\t\t\t(e: Error) => validateAssertionError(e, 'invalid detach index range')\n\t\t);\n\t\tassert.throws(\n\t\t\t() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, 0, 2),\n\t\t\t(e: Error) => validateAssertionError(e, 'invalid detach index range')\n\t\t);\n\t\tassert.throws(\n\t\t\t() => parentForest.detachRangeOfChildren(parentId, mainTraitLabel, 1, 2),\n\t\t\t(e: Error) => validateAssertionError(e, 'invalid detach index range')\n\t\t);\n\t});\n\n\tit('cannot delete parented nodes', () => {\n\t\tassert.throws(\n\t\t\t() => parentForest.delete([childId], false),\n\t\t\t(e: Error) => validateAssertionError(e, 'deleted nodes must be unparented')\n\t\t);\n\t});\n\n\tit('can delete a root', () => {\n\t\tconst deleteRoot = parentForest.delete([parentId], false);\n\t\tdeleteRoot.assertConsistent();\n\t\texpect(deleteRoot.size).to.equal(1);\n\t\texpect(deleteRoot.tryGet(childId)).to.not.be.undefined;\n\t});\n\n\tit('can delete a subtree', () => {\n\t\tconst deleteLeaf = parentForest.delete([parentId], true);\n\t\tdeleteLeaf.assertConsistent();\n\t\texpect(deleteLeaf.size).to.equal(0);\n\t});\n\n\tit('calculates deltas correctly', () => {\n\t\tconst add = emptyForest.delta(oneNodeForest);\n\t\tconst remove = oneNodeForest.delta(emptyForest);\n\t\tconst same = parentForest.delta(parentForest);\n\t\tconst modified = parentForest.setValue(childId, -1);\n\t\tconst modify = parentForest.delta(modified);\n\n\t\texpect(remove).deep.equals({ changed: [], added: [], removed: [parentId] });\n\t\texpect(add).deep.equals({ changed: [], added: [parentId], removed: [] });\n\t\texpect(same).deep.equals({ changed: [], added: [], removed: [] });\n\t\texpect(modify).deep.equals({ changed: [childId], added: [], removed: [] });\n\t});\n\n\tit('calculates equality correctly', () => {\n\t\tconst modified = parentForest.setValue(parentId, -1);\n\n\t\texpect(oneNodeForest.equals(emptyForest)).false;\n\t\texpect(emptyForest.equals(oneNodeForest)).false;\n\t\texpect(parentForest.equals(parentForest)).true;\n\t\texpect(parentForest.equals(modified)).false;\n\t});\n\n\tfunction expectSuccessfulAttach(\n\t\tforest: Forest,\n\t\tparentId: NodeId,\n\t\tlabel: TraitLabel,\n\t\tindex: number,\n\t\tchildIds: NodeId[]\n\t): void {\n\t\tconst parent = forest.get(parentId);\n\t\tconst expectedTrait = [...(parent.traits.get(label) ?? [])];\n\t\texpectedTrait.splice(index, 0, ...childIds);\n\t\tconst forestWithAttach = forest.attachRangeOfChildren(parentId, label, index, childIds);\n\t\tconst newParent = forestWithAttach.get(parentId);\n\t\texpect(newParent.traits.get(label)).deep.equals(expectedTrait);\n\t\tfor (const childId of childIds) {\n\t\t\tconst parentData = forestWithAttach.tryGetParent(childId);\n\t\t\texpect(parentData?.traitParent).to.equal(label);\n\t\t\texpect(parentData?.parentId).to.equal(parentId);\n\t\t}\n\t}\n\n\tfunction expectSuccessfulDetach(\n\t\tforest: Forest,\n\t\tparentId: NodeId,\n\t\tlabel: TraitLabel,\n\t\tstartIndex: number,\n\t\tendIndex: number\n\t): void {\n\t\tconst parent = forest.get(parentId);\n\t\tconst expectedTrait = [...(parent.traits.get(label) ?? [])];\n\t\tconst spliced = expectedTrait.splice(startIndex, endIndex - startIndex);\n\t\tconst { forest: forestWithDetach, detached } = forest.detachRangeOfChildren(\n\t\t\tparentId,\n\t\t\tlabel,\n\t\t\tstartIndex,\n\t\t\tendIndex\n\t\t);\n\n\t\tconst newParent = forestWithDetach.get(parentId);\n\t\tconst trait = newParent.traits.get(label);\n\t\tif (expectedTrait.length === 0) {\n\t\t\texpect(trait).to.be.undefined;\n\t\t} else {\n\t\t\texpect(trait).deep.equals(expectedTrait);\n\t\t}\n\n\t\texpect(detached).deep.equals(spliced);\n\t\tfor (const detachedId of detached) {\n\t\t\texpect(forestWithDetach.tryGetParent(detachedId)).to.be.undefined;\n\t\t}\n\t}\n\n\tfunction expectSuccessfulReplace(forest: Forest, nodeId: NodeId, payload: Payload | null): void {\n\t\tconst forestWithReplace = forest.setValue(nodeId, payload);\n\t\tconst newNode = forestWithReplace.get(nodeId);\n\t\texpect(newNode.payload).equals(payload);\n\t}\n});\n"]}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- export {};
6
- //# sourceMappingURL=GenericTransaction.tests.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GenericTransaction.tests.d.ts","sourceRoot":"","sources":["../../src/test/GenericTransaction.tests.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,31 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { expect } from 'chai';
6
- import { EditStatus } from '../persisted-types/index.js';
7
- import { refreshTestTree } from './utilities/TestUtilities.js';
8
- import { MockTransaction } from './utilities/MockTransaction.js';
9
- describe('GenericTransaction', () => {
10
- const testTree = refreshTestTree();
11
- it('does not read the reconciliation path when change resolution does not require it', () => {
12
- const trappedPath = new Proxy([], {
13
- get: (target, prop) => {
14
- expect('the path was read').equals('the path should not be read');
15
- return target[prop];
16
- },
17
- });
18
- const transaction = MockTransaction.factory(testTree.view);
19
- transaction.applyChanges([{}, {}], trappedPath);
20
- expect(transaction.status).equals(EditStatus.Applied);
21
- });
22
- it('reflects failure status when validateOnClose is not successful', () => {
23
- const transaction = MockTransaction.factory(testTree.view, {
24
- statusOnClose: EditStatus.Invalid,
25
- });
26
- const result = transaction.close();
27
- expect(result.status).equals(EditStatus.Invalid);
28
- expect(transaction.status).equals(EditStatus.Invalid);
29
- });
30
- });
31
- //# sourceMappingURL=GenericTrans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nC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACjD,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { expect } from 'chai';\nimport { ReconciliationEdit } from '../ReconciliationPath.js';\nimport { ChangeInternal, EditStatus } from '../persisted-types/index.js';\nimport { refreshTestTree } from './utilities/TestUtilities.js';\nimport { MockTransaction } from './utilities/MockTransaction.js';\n\ndescribe('GenericTransaction', () => {\n\tconst testTree = refreshTestTree();\n\tit('does not read the reconciliation path when change resolution does not require it', () => {\n\t\tconst trappedPath = new Proxy([] as ReconciliationEdit[], {\n\t\t\tget: (target, prop): unknown => {\n\t\t\t\texpect('the path was read').equals('the path should not be read');\n\t\t\t\treturn target[prop];\n\t\t\t},\n\t\t});\n\t\tconst transaction = MockTransaction.factory(testTree.view);\n\t\ttransaction.applyChanges([{}, {}] as unknown as ChangeInternal[], trappedPath);\n\t\texpect(transaction.status).equals(EditStatus.Applied);\n\t});\n\n\tit('reflects failure status when validateOnClose is not successful', () => {\n\t\tconst transaction = MockTransaction.factory(testTree.view, {\n\t\t\tstatusOnClose: EditStatus.Invalid,\n\t\t});\n\t\tconst result = transaction.close();\n\t\texpect(result.status).equals(EditStatus.Invalid);\n\t\texpect(transaction.status).equals(EditStatus.Invalid);\n\t});\n});\n"]}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- export {};
6
- //# sourceMappingURL=HistoryEditFactory.tests.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HistoryEditFactory.tests.d.ts","sourceRoot":"","sources":["../../src/test/HistoryEditFactory.tests.ts"],"names":[],"mappings":"AAAA;;;GAGG"}