@fluidframework/container-loader 2.0.0-rc.2.0.2 → 2.0.0-rc.3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/api-report/container-loader.api.md +13 -13
  3. package/dist/attachment.d.ts +6 -9
  4. package/dist/attachment.d.ts.map +1 -1
  5. package/dist/attachment.js +5 -5
  6. package/dist/attachment.js.map +1 -1
  7. package/dist/audience.d.ts +1 -1
  8. package/dist/audience.d.ts.map +1 -1
  9. package/dist/audience.js +4 -4
  10. package/dist/audience.js.map +1 -1
  11. package/dist/catchUpMonitor.d.ts +1 -1
  12. package/dist/catchUpMonitor.d.ts.map +1 -1
  13. package/dist/catchUpMonitor.js +2 -2
  14. package/dist/catchUpMonitor.js.map +1 -1
  15. package/dist/connectionManager.d.ts +4 -4
  16. package/dist/connectionManager.d.ts.map +1 -1
  17. package/dist/connectionManager.js +48 -43
  18. package/dist/connectionManager.js.map +1 -1
  19. package/dist/connectionStateHandler.d.ts +3 -3
  20. package/dist/connectionStateHandler.d.ts.map +1 -1
  21. package/dist/connectionStateHandler.js +27 -27
  22. package/dist/connectionStateHandler.js.map +1 -1
  23. package/dist/container.d.ts +9 -46
  24. package/dist/container.d.ts.map +1 -1
  25. package/dist/container.js +105 -116
  26. package/dist/container.js.map +1 -1
  27. package/dist/containerContext.d.ts +19 -7
  28. package/dist/containerContext.d.ts.map +1 -1
  29. package/dist/containerContext.js +7 -2
  30. package/dist/containerContext.js.map +1 -1
  31. package/dist/containerStorageAdapter.d.ts +3 -3
  32. package/dist/containerStorageAdapter.d.ts.map +1 -1
  33. package/dist/containerStorageAdapter.js +6 -6
  34. package/dist/containerStorageAdapter.js.map +1 -1
  35. package/dist/contracts.d.ts +4 -3
  36. package/dist/contracts.d.ts.map +1 -1
  37. package/dist/contracts.js +2 -2
  38. package/dist/contracts.js.map +1 -1
  39. package/dist/debugLogger.d.ts +2 -1
  40. package/dist/debugLogger.d.ts.map +1 -1
  41. package/dist/debugLogger.js +4 -4
  42. package/dist/debugLogger.js.map +1 -1
  43. package/dist/deltaManager.d.ts +11 -7
  44. package/dist/deltaManager.d.ts.map +1 -1
  45. package/dist/deltaManager.js +53 -50
  46. package/dist/deltaManager.js.map +1 -1
  47. package/dist/deltaQueue.d.ts +1 -1
  48. package/dist/deltaQueue.d.ts.map +1 -1
  49. package/dist/deltaQueue.js +5 -5
  50. package/dist/deltaQueue.js.map +1 -1
  51. package/dist/error.d.ts +3 -2
  52. package/dist/error.d.ts.map +1 -1
  53. package/dist/error.js +5 -5
  54. package/dist/error.js.map +1 -1
  55. package/dist/legacy.d.ts +29 -0
  56. package/dist/loader.d.ts +4 -4
  57. package/dist/loader.d.ts.map +1 -1
  58. package/dist/loader.js +23 -23
  59. package/dist/loader.js.map +1 -1
  60. package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -2
  61. package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
  62. package/dist/location-redirection-utilities/resolveWithLocationRedirection.js +2 -2
  63. package/dist/location-redirection-utilities/resolveWithLocationRedirection.js.map +1 -1
  64. package/dist/noopHeuristic.d.ts +1 -1
  65. package/dist/noopHeuristic.d.ts.map +1 -1
  66. package/dist/noopHeuristic.js +6 -6
  67. package/dist/noopHeuristic.js.map +1 -1
  68. package/dist/packageVersion.d.ts +1 -1
  69. package/dist/packageVersion.js +1 -1
  70. package/dist/packageVersion.js.map +1 -1
  71. package/dist/protocol.d.ts +1 -1
  72. package/dist/protocol.d.ts.map +1 -1
  73. package/dist/protocol.js +2 -2
  74. package/dist/protocol.js.map +1 -1
  75. package/dist/protocolTreeDocumentStorageService.d.ts +4 -4
  76. package/dist/protocolTreeDocumentStorageService.d.ts.map +1 -1
  77. package/dist/protocolTreeDocumentStorageService.js.map +1 -1
  78. package/dist/public.d.ts +14 -0
  79. package/dist/quorum.d.ts +1 -1
  80. package/dist/quorum.d.ts.map +1 -1
  81. package/dist/quorum.js +4 -0
  82. package/dist/quorum.js.map +1 -1
  83. package/dist/retriableDocumentStorageService.d.ts +2 -2
  84. package/dist/retriableDocumentStorageService.d.ts.map +1 -1
  85. package/dist/retriableDocumentStorageService.js +7 -7
  86. package/dist/retriableDocumentStorageService.js.map +1 -1
  87. package/dist/serializedStateManager.d.ts +86 -16
  88. package/dist/serializedStateManager.d.ts.map +1 -1
  89. package/dist/serializedStateManager.js +182 -82
  90. package/dist/serializedStateManager.js.map +1 -1
  91. package/dist/utils.d.ts +24 -9
  92. package/dist/utils.d.ts.map +1 -1
  93. package/dist/utils.js +82 -25
  94. package/dist/utils.js.map +1 -1
  95. package/internal.d.ts +11 -0
  96. package/legacy.d.ts +11 -0
  97. package/lib/attachment.d.ts +6 -9
  98. package/lib/attachment.d.ts.map +1 -1
  99. package/lib/attachment.js +1 -1
  100. package/lib/attachment.js.map +1 -1
  101. package/lib/audience.d.ts +1 -1
  102. package/lib/audience.d.ts.map +1 -1
  103. package/lib/audience.js +1 -1
  104. package/lib/audience.js.map +1 -1
  105. package/lib/catchUpMonitor.d.ts +1 -1
  106. package/lib/catchUpMonitor.d.ts.map +1 -1
  107. package/lib/catchUpMonitor.js +1 -1
  108. package/lib/catchUpMonitor.js.map +1 -1
  109. package/lib/connectionManager.d.ts +4 -4
  110. package/lib/connectionManager.d.ts.map +1 -1
  111. package/lib/connectionManager.js +11 -6
  112. package/lib/connectionManager.js.map +1 -1
  113. package/lib/connectionStateHandler.d.ts +3 -3
  114. package/lib/connectionStateHandler.d.ts.map +1 -1
  115. package/lib/connectionStateHandler.js +2 -2
  116. package/lib/connectionStateHandler.js.map +1 -1
  117. package/lib/container.d.ts +9 -46
  118. package/lib/container.d.ts.map +1 -1
  119. package/lib/container.js +37 -48
  120. package/lib/container.js.map +1 -1
  121. package/lib/containerContext.d.ts +19 -7
  122. package/lib/containerContext.d.ts.map +1 -1
  123. package/lib/containerContext.js +7 -2
  124. package/lib/containerContext.js.map +1 -1
  125. package/lib/containerStorageAdapter.d.ts +3 -3
  126. package/lib/containerStorageAdapter.d.ts.map +1 -1
  127. package/lib/containerStorageAdapter.js +2 -2
  128. package/lib/containerStorageAdapter.js.map +1 -1
  129. package/lib/contracts.d.ts +4 -3
  130. package/lib/contracts.d.ts.map +1 -1
  131. package/lib/contracts.js +1 -1
  132. package/lib/contracts.js.map +1 -1
  133. package/lib/debugLogger.d.ts +2 -1
  134. package/lib/debugLogger.d.ts.map +1 -1
  135. package/lib/debugLogger.js +1 -1
  136. package/lib/debugLogger.js.map +1 -1
  137. package/lib/deltaManager.d.ts +11 -7
  138. package/lib/deltaManager.d.ts.map +1 -1
  139. package/lib/deltaManager.js +13 -10
  140. package/lib/deltaManager.js.map +1 -1
  141. package/lib/deltaQueue.d.ts +1 -1
  142. package/lib/deltaQueue.d.ts.map +1 -1
  143. package/lib/deltaQueue.js +2 -2
  144. package/lib/deltaQueue.js.map +1 -1
  145. package/lib/error.d.ts +3 -2
  146. package/lib/error.d.ts.map +1 -1
  147. package/lib/error.js +2 -2
  148. package/lib/error.js.map +1 -1
  149. package/lib/legacy.d.ts +29 -0
  150. package/lib/loader.d.ts +4 -4
  151. package/lib/loader.d.ts.map +1 -1
  152. package/lib/loader.js +4 -4
  153. package/lib/loader.js.map +1 -1
  154. package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -2
  155. package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
  156. package/lib/location-redirection-utilities/resolveWithLocationRedirection.js +2 -2
  157. package/lib/location-redirection-utilities/resolveWithLocationRedirection.js.map +1 -1
  158. package/lib/noopHeuristic.d.ts +1 -1
  159. package/lib/noopHeuristic.d.ts.map +1 -1
  160. package/lib/noopHeuristic.js +2 -2
  161. package/lib/noopHeuristic.js.map +1 -1
  162. package/lib/packageVersion.d.ts +1 -1
  163. package/lib/packageVersion.js +1 -1
  164. package/lib/packageVersion.js.map +1 -1
  165. package/lib/protocol.d.ts +1 -1
  166. package/lib/protocol.d.ts.map +1 -1
  167. package/lib/protocol.js +1 -1
  168. package/lib/protocol.js.map +1 -1
  169. package/lib/protocolTreeDocumentStorageService.d.ts +4 -4
  170. package/lib/protocolTreeDocumentStorageService.d.ts.map +1 -1
  171. package/lib/protocolTreeDocumentStorageService.js.map +1 -1
  172. package/lib/public.d.ts +14 -0
  173. package/lib/quorum.d.ts +1 -1
  174. package/lib/quorum.d.ts.map +1 -1
  175. package/lib/quorum.js +4 -0
  176. package/lib/quorum.js.map +1 -1
  177. package/lib/retriableDocumentStorageService.d.ts +2 -2
  178. package/lib/retriableDocumentStorageService.d.ts.map +1 -1
  179. package/lib/retriableDocumentStorageService.js +3 -3
  180. package/lib/retriableDocumentStorageService.js.map +1 -1
  181. package/lib/serializedStateManager.d.ts +86 -16
  182. package/lib/serializedStateManager.d.ts.map +1 -1
  183. package/lib/serializedStateManager.js +174 -77
  184. package/lib/serializedStateManager.js.map +1 -1
  185. package/lib/utils.d.ts +24 -9
  186. package/lib/utils.d.ts.map +1 -1
  187. package/lib/utils.js +69 -15
  188. package/lib/utils.js.map +1 -1
  189. package/package.json +37 -58
  190. package/src/attachment.ts +10 -8
  191. package/src/audience.ts +3 -2
  192. package/src/catchUpMonitor.ts +2 -2
  193. package/src/connectionManager.ts +27 -20
  194. package/src/connectionStateHandler.ts +7 -7
  195. package/src/container.ts +90 -143
  196. package/src/containerContext.ts +22 -12
  197. package/src/containerStorageAdapter.ts +7 -6
  198. package/src/contracts.ts +4 -5
  199. package/src/debugLogger.ts +3 -4
  200. package/src/deltaManager.ts +40 -30
  201. package/src/deltaQueue.ts +2 -2
  202. package/src/error.ts +5 -4
  203. package/src/loader.ts +25 -23
  204. package/src/location-redirection-utilities/resolveWithLocationRedirection.ts +4 -4
  205. package/src/noopHeuristic.ts +3 -3
  206. package/src/packageVersion.ts +1 -1
  207. package/src/protocol.ts +2 -2
  208. package/src/protocolTreeDocumentStorageService.ts +4 -1
  209. package/src/quorum.ts +2 -1
  210. package/src/retriableDocumentStorageService.ts +6 -5
  211. package/src/serializedStateManager.ts +299 -111
  212. package/src/utils.ts +103 -24
  213. package/api-extractor-cjs.json +0 -8
  214. package/dist/container-loader-alpha.d.ts +0 -275
  215. package/dist/container-loader-beta.d.ts +0 -101
  216. package/dist/container-loader-public.d.ts +0 -101
  217. package/dist/container-loader-untrimmed.d.ts +0 -331
  218. package/lib/container-loader-alpha.d.ts +0 -275
  219. package/lib/container-loader-beta.d.ts +0 -101
  220. package/lib/container-loader-public.d.ts +0 -101
  221. package/lib/container-loader-untrimmed.d.ts +0 -331
  222. package/lib/test/attachment.spec.js +0 -380
  223. package/lib/test/attachment.spec.js.map +0 -1
  224. package/lib/test/catchUpMonitor.spec.js +0 -88
  225. package/lib/test/catchUpMonitor.spec.js.map +0 -1
  226. package/lib/test/connectionManager.spec.js +0 -201
  227. package/lib/test/connectionManager.spec.js.map +0 -1
  228. package/lib/test/connectionStateHandler.spec.js +0 -555
  229. package/lib/test/connectionStateHandler.spec.js.map +0 -1
  230. package/lib/test/container.spec.js +0 -64
  231. package/lib/test/container.spec.js.map +0 -1
  232. package/lib/test/deltaManager.spec.js +0 -405
  233. package/lib/test/deltaManager.spec.js.map +0 -1
  234. package/lib/test/loader.spec.js +0 -212
  235. package/lib/test/loader.spec.js.map +0 -1
  236. package/lib/test/locationRedirectionTests.spec.js +0 -44
  237. package/lib/test/locationRedirectionTests.spec.js.map +0 -1
  238. package/lib/test/serializedStateManager.spec.js +0 -148
  239. package/lib/test/serializedStateManager.spec.js.map +0 -1
  240. package/lib/test/snapshotConversionTest.spec.js +0 -79
  241. package/lib/test/snapshotConversionTest.spec.js.map +0 -1
  242. package/lib/test/types/validateContainerLoaderPrevious.generated.js +0 -38
  243. package/lib/test/types/validateContainerLoaderPrevious.generated.js.map +0 -1
  244. package/lib/test/utils.spec.js +0 -31
  245. package/lib/test/utils.spec.js.map +0 -1
  246. /package/{dist → lib}/tsdoc-metadata.json +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshotConversionTest.spec.js","sourceRoot":"","sources":["../../src/test/snapshotConversionTest.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAgB,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EACN,4BAA4B,EAC5B,8CAA8C,GAC9C,MAAM,aAAa,CAAC;AAErB,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACpC,MAAM,eAAe,GAAiB;QACrC,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,IAAI,EAAE;YACL,UAAU,EAAE;gBACX,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;aACrC;YACD,YAAY,EAAE;gBACb,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC;aACvC;SACD;KACD,CAAC;IACF,MAAM,UAAU,GAAiB;QAChC,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,IAAI,EAAE;YACL,OAAO,EAAE;gBACR,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,IAAI,EAAE;oBACL,YAAY,EAAE;wBACb,IAAI,EAAE,WAAW,CAAC,IAAI;wBACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;qBAC3C;oBACD,MAAM,EAAE;wBACP,IAAI,EAAE,WAAW,CAAC,IAAI;wBACtB,IAAI,EAAE;4BACL,UAAU,EAAE;gCACX,IAAI,EAAE,WAAW,CAAC,IAAI;gCACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;6BACzC;yBACD;qBACD;oBACD,OAAO,EAAE;wBACR,IAAI,EAAE,WAAW,CAAC,IAAI;wBACtB,IAAI,EAAE,EAAE;wBACR,YAAY,EAAE,IAAI;qBAClB;oBACD,SAAS,EAAE;wBACV,IAAI,EAAE,WAAW,CAAC,IAAI;wBACtB,IAAI,EAAE,EAAE;wBACR,OAAO,EAAE,OAAO;qBAChB;iBACD;aACD;SACD;KACD,CAAC;IAEF,EAAE,CAAC,sDAAsD,EAAE,KAAK,IAAI,EAAE;QACrE,MAAM,eAAe,GAAG,4BAA4B,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;QAClF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,8CAA8C,CAAC,eAAe,CAAC,CAAC;QAExF,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,yBAAyB,CAAC,CAAC;QACjF,MAAM,CAAC,WAAW,CACjB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,EACjD,CAAC,EACD,mCAAmC,CACnC,CAAC;QAEF,kCAAkC;QAClC,MAAM,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACtE,MAAM,oBAAoB,GAAG,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC3D,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,gCAAgC,CAAC,CAAC;QACtE,MAAM,CAAC,WAAW,CACjB,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAChC,kBAAkB,EAClB,4CAA4C,CAC5C,CAAC;QAEF,4BAA4B;QAC5B,MAAM,oBAAoB,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAC5E,MAAM,kBAAkB,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACvD,MAAM,CAAC,MAAM,CAAC,kBAAkB,EAAE,8BAA8B,CAAC,CAAC;QAClE,MAAM,CAAC,WAAW,CACjB,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAC9B,gBAAgB,EAChB,0CAA0C,CAC1C,CAAC;QACF,MAAM,CAAC,WAAW,CACjB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAC1C,SAAS,EACT,wDAAwD,CACxD,CAAC;QAEF,6BAA6B;QAC7B,MAAM,CAAC,WAAW,CACjB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAC3C,IAAI,EACJ,qDAAqD,CACrD,CAAC;QAEF,+BAA+B;QAC/B,MAAM,CAAC,WAAW,CACjB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EACxC,OAAO,EACP,4CAA4C,CAC5C,CAAC;QAEF,+BAA+B;QAC/B,MAAM,CAAC,WAAW,CACjB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EACxC,OAAO,EACP,4CAA4C,CAC5C,CAAC;IACH,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 { strict as assert } from \"assert\";\nimport { ISummaryTree, SummaryType } from \"@fluidframework/protocol-definitions\";\nimport {\n\tcombineAppAndProtocolSummary,\n\tgetSnapshotTreeAndBlobsFromSerializedContainer,\n} from \"../utils.js\";\n\ndescribe(\"Dehydrate Container\", () => {\n\tconst protocolSummary: ISummaryTree = {\n\t\ttype: SummaryType.Tree,\n\t\ttree: {\n\t\t\tattributes: {\n\t\t\t\ttype: SummaryType.Blob,\n\t\t\t\tcontent: JSON.stringify(\"attributes\"),\n\t\t\t},\n\t\t\tquorumValues: {\n\t\t\t\ttype: SummaryType.Blob,\n\t\t\t\tcontent: JSON.stringify(\"quorumValues\"),\n\t\t\t},\n\t\t},\n\t};\n\tconst appSummary: ISummaryTree = {\n\t\ttype: SummaryType.Tree,\n\t\ttree: {\n\t\t\tdefault: {\n\t\t\t\ttype: SummaryType.Tree,\n\t\t\t\ttree: {\n\t\t\t\t\t\".component\": {\n\t\t\t\t\t\ttype: SummaryType.Blob,\n\t\t\t\t\t\tcontent: JSON.stringify(\"defaultDataStore\"),\n\t\t\t\t\t},\n\t\t\t\t\t\"root\": {\n\t\t\t\t\t\ttype: SummaryType.Tree,\n\t\t\t\t\t\ttree: {\n\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\ttype: SummaryType.Blob,\n\t\t\t\t\t\t\t\tcontent: JSON.stringify(\"rootattributes\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t\"unref\": {\n\t\t\t\t\t\ttype: SummaryType.Tree,\n\t\t\t\t\t\ttree: {},\n\t\t\t\t\t\tunreferenced: true,\n\t\t\t\t\t},\n\t\t\t\t\t\"groupId\": {\n\t\t\t\t\t\ttype: SummaryType.Tree,\n\t\t\t\t\t\ttree: {},\n\t\t\t\t\t\tgroupId: \"group\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t};\n\n\tit(\"Summary to snapshottree and snapshotBlobs conversion\", async () => {\n\t\tconst combinedSummary = combineAppAndProtocolSummary(appSummary, protocolSummary);\n\t\tconst { tree, blobs } = getSnapshotTreeAndBlobsFromSerializedContainer(combinedSummary);\n\n\t\tassert.strictEqual(Object.keys(tree.trees).length, 2, \"2 trees should be there\");\n\t\tassert.strictEqual(\n\t\t\tObject.keys(tree.trees[\".protocol\"].blobs).length,\n\t\t\t2,\n\t\t\t\"2 protocol blobs should be there.\",\n\t\t);\n\n\t\t// Validate the \".component\" blob.\n\t\tconst defaultDataStoreBlobId = tree.trees.default.blobs[\".component\"];\n\t\tconst defaultDataStoreBlob = blobs[defaultDataStoreBlobId];\n\t\tassert.strict(defaultDataStoreBlob, \"defaultDataStoreBlob undefined\");\n\t\tassert.strictEqual(\n\t\t\tJSON.parse(defaultDataStoreBlob),\n\t\t\t\"defaultDataStore\",\n\t\t\t\"The .component blob's content is incorrect\",\n\t\t);\n\n\t\t// Validate \"root\" sub-tree.\n\t\tconst rootAttributesBlobId = tree.trees.default.trees.root.blobs.attributes;\n\t\tconst rootAttributesBlob = blobs[rootAttributesBlobId];\n\t\tassert.strict(rootAttributesBlob, \"rootAttributesBlob undefined\");\n\t\tassert.strictEqual(\n\t\t\tJSON.parse(rootAttributesBlob),\n\t\t\t\"rootattributes\",\n\t\t\t\"The root sub-tree's content is incorrect\",\n\t\t);\n\t\tassert.strictEqual(\n\t\t\ttree.trees.default.trees.root.unreferenced,\n\t\t\tundefined,\n\t\t\t\"The root sub-tree should not be marked as unreferenced\",\n\t\t);\n\n\t\t// Validate \"unref\" sub-tree.\n\t\tassert.strictEqual(\n\t\t\ttree.trees.default.trees.unref.unreferenced,\n\t\t\ttrue,\n\t\t\t\"The unref sub-tree should be marked as unreferenced\",\n\t\t);\n\n\t\t// Validate \"groupId\" sub-tree.\n\t\tassert.strictEqual(\n\t\t\ttree.trees.default.trees.groupId.groupId,\n\t\t\t\"group\",\n\t\t\t\"The groupId sub-tree should have a groupId\",\n\t\t);\n\n\t\t// Validate \"groupId\" sub-tree.\n\t\tassert.strictEqual(\n\t\t\ttree.trees.default.trees.groupId.groupId,\n\t\t\t\"group\",\n\t\t\t\"The groupId sub-tree should have a groupId\",\n\t\t);\n\t});\n});\n"]}
@@ -1,38 +0,0 @@
1
- use_current_EnumDeclaration_ConnectionState(get_old_EnumDeclaration_ConnectionState());
2
- use_old_EnumDeclaration_ConnectionState(get_current_EnumDeclaration_ConnectionState());
3
- use_current_InterfaceDeclaration_ICodeDetailsLoader(get_old_InterfaceDeclaration_ICodeDetailsLoader());
4
- use_old_InterfaceDeclaration_ICodeDetailsLoader(get_current_InterfaceDeclaration_ICodeDetailsLoader());
5
- use_current_InterfaceDeclaration_IContainerExperimental(
6
- // @ts-expect-error compatibility expected to be broken
7
- get_old_InterfaceDeclaration_IContainerExperimental());
8
- use_old_InterfaceDeclaration_IContainerExperimental(get_current_InterfaceDeclaration_IContainerExperimental());
9
- use_current_TypeAliasDeclaration_IDetachedBlobStorage(get_old_TypeAliasDeclaration_IDetachedBlobStorage());
10
- use_old_TypeAliasDeclaration_IDetachedBlobStorage(get_current_TypeAliasDeclaration_IDetachedBlobStorage());
11
- use_current_InterfaceDeclaration_IFluidModuleWithDetails(get_old_InterfaceDeclaration_IFluidModuleWithDetails());
12
- use_old_InterfaceDeclaration_IFluidModuleWithDetails(get_current_InterfaceDeclaration_IFluidModuleWithDetails());
13
- use_current_InterfaceDeclaration_ILoaderOptions(get_old_InterfaceDeclaration_ILoaderOptions());
14
- use_old_InterfaceDeclaration_ILoaderOptions(get_current_InterfaceDeclaration_ILoaderOptions());
15
- use_current_InterfaceDeclaration_ILoaderProps(get_old_InterfaceDeclaration_ILoaderProps());
16
- use_old_InterfaceDeclaration_ILoaderProps(get_current_InterfaceDeclaration_ILoaderProps());
17
- use_current_InterfaceDeclaration_ILoaderServices(get_old_InterfaceDeclaration_ILoaderServices());
18
- use_old_InterfaceDeclaration_ILoaderServices(get_current_InterfaceDeclaration_ILoaderServices());
19
- use_current_InterfaceDeclaration_IParsedUrl(
20
- // @ts-expect-error compatibility expected to be broken
21
- get_old_InterfaceDeclaration_IParsedUrl());
22
- use_old_InterfaceDeclaration_IParsedUrl(get_current_InterfaceDeclaration_IParsedUrl());
23
- use_current_InterfaceDeclaration_IProtocolHandler(get_old_InterfaceDeclaration_IProtocolHandler());
24
- use_old_InterfaceDeclaration_IProtocolHandler(get_current_InterfaceDeclaration_IProtocolHandler());
25
- use_current_ClassDeclaration_Loader(get_old_ClassDeclaration_Loader());
26
- use_old_ClassDeclaration_Loader(get_current_ClassDeclaration_Loader());
27
- use_current_TypeAliasDeclaration_ProtocolHandlerBuilder(get_old_TypeAliasDeclaration_ProtocolHandlerBuilder());
28
- use_old_TypeAliasDeclaration_ProtocolHandlerBuilder(get_current_TypeAliasDeclaration_ProtocolHandlerBuilder());
29
- use_current_FunctionDeclaration_isLocationRedirectionError(get_old_FunctionDeclaration_isLocationRedirectionError());
30
- use_old_FunctionDeclaration_isLocationRedirectionError(get_current_FunctionDeclaration_isLocationRedirectionError());
31
- use_current_FunctionDeclaration_resolveWithLocationRedirectionHandling(get_old_FunctionDeclaration_resolveWithLocationRedirectionHandling());
32
- use_old_FunctionDeclaration_resolveWithLocationRedirectionHandling(get_current_FunctionDeclaration_resolveWithLocationRedirectionHandling());
33
- use_current_FunctionDeclaration_tryParseCompatibleResolvedUrl(get_old_FunctionDeclaration_tryParseCompatibleResolvedUrl());
34
- use_old_FunctionDeclaration_tryParseCompatibleResolvedUrl(get_current_FunctionDeclaration_tryParseCompatibleResolvedUrl());
35
- use_current_FunctionDeclaration_waitContainerToCatchUp(get_old_FunctionDeclaration_waitContainerToCatchUp());
36
- use_old_FunctionDeclaration_waitContainerToCatchUp(get_current_FunctionDeclaration_waitContainerToCatchUp());
37
- export {};
38
- //# sourceMappingURL=validateContainerLoaderPrevious.generated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateContainerLoaderPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateContainerLoaderPrevious.generated.ts"],"names":[],"mappings":"AAgCA,2CAA2C,CACvC,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,mDAAmD,CAC/C,+CAA+C,EAAE,CAAC,CAAC;AAWvD,+CAA+C,CAC3C,mDAAmD,EAAE,CAAC,CAAC;AAW3D,uDAAuD;AACnD,uDAAuD;AACvD,mDAAmD,EAAE,CAAC,CAAC;AAW3D,mDAAmD,CAC/C,uDAAuD,EAAE,CAAC,CAAC;AAW/D,qDAAqD,CACjD,iDAAiD,EAAE,CAAC,CAAC;AAWzD,iDAAiD,CAC7C,qDAAqD,EAAE,CAAC,CAAC;AAW7D,wDAAwD,CACpD,oDAAoD,EAAE,CAAC,CAAC;AAW5D,oDAAoD,CAChD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,+CAA+C,CAC3C,2CAA2C,EAAE,CAAC,CAAC;AAWnD,2CAA2C,CACvC,+CAA+C,EAAE,CAAC,CAAC;AAWvD,6CAA6C,CACzC,yCAAyC,EAAE,CAAC,CAAC;AAWjD,yCAAyC,CACrC,6CAA6C,EAAE,CAAC,CAAC;AAWrD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,2CAA2C;AACvC,uDAAuD;AACvD,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,iDAAiD,CAC7C,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,mCAAmC,CAC/B,+BAA+B,EAAE,CAAC,CAAC;AAWvC,+BAA+B,CAC3B,mCAAmC,EAAE,CAAC,CAAC;AAW3C,uDAAuD,CACnD,mDAAmD,EAAE,CAAC,CAAC;AAW3D,mDAAmD,CAC/C,uDAAuD,EAAE,CAAC,CAAC;AAW/D,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC;AAWlE,sEAAsE,CAClE,kEAAkE,EAAE,CAAC,CAAC;AAW1E,kEAAkE,CAC9D,sEAAsE,EAAE,CAAC,CAAC;AAW9E,6DAA6D,CACzD,yDAAyD,EAAE,CAAC,CAAC;AAWjE,yDAAyD,CACrD,6DAA6D,EAAE,CAAC,CAAC;AAWrE,sDAAsD,CAClD,kDAAkD,EAAE,CAAC,CAAC;AAW1D,kDAAkD,CAC9C,sDAAsD,EAAE,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/*\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n * Generated by fluid-type-test-generator in @fluidframework/build-tools.\n */\nimport type * as old from \"@fluidframework/container-loader-previous\";\nimport type * as current from \"../../index.js\";\n\n\n// See 'build-tools/src/type-test-generator/compatibility.ts' for more information.\ntype TypeOnly<T> = T extends number\n\t? number\n\t: T extends string\n\t? string\n\t: T extends boolean | bigint | symbol\n\t? T\n\t: {\n\t\t\t[P in keyof T]: TypeOnly<T[P]>;\n\t };\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"EnumDeclaration_ConnectionState\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_ConnectionState():\n TypeOnly<old.ConnectionState>;\ndeclare function use_current_EnumDeclaration_ConnectionState(\n use: TypeOnly<current.ConnectionState>): void;\nuse_current_EnumDeclaration_ConnectionState(\n get_old_EnumDeclaration_ConnectionState());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"EnumDeclaration_ConnectionState\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_ConnectionState():\n TypeOnly<current.ConnectionState>;\ndeclare function use_old_EnumDeclaration_ConnectionState(\n use: TypeOnly<old.ConnectionState>): void;\nuse_old_EnumDeclaration_ConnectionState(\n get_current_EnumDeclaration_ConnectionState());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ICodeDetailsLoader\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ICodeDetailsLoader():\n TypeOnly<old.ICodeDetailsLoader>;\ndeclare function use_current_InterfaceDeclaration_ICodeDetailsLoader(\n use: TypeOnly<current.ICodeDetailsLoader>): void;\nuse_current_InterfaceDeclaration_ICodeDetailsLoader(\n get_old_InterfaceDeclaration_ICodeDetailsLoader());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ICodeDetailsLoader\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ICodeDetailsLoader():\n TypeOnly<current.ICodeDetailsLoader>;\ndeclare function use_old_InterfaceDeclaration_ICodeDetailsLoader(\n use: TypeOnly<old.ICodeDetailsLoader>): void;\nuse_old_InterfaceDeclaration_ICodeDetailsLoader(\n get_current_InterfaceDeclaration_ICodeDetailsLoader());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IContainerExperimental\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IContainerExperimental():\n TypeOnly<old.IContainerExperimental>;\ndeclare function use_current_InterfaceDeclaration_IContainerExperimental(\n use: TypeOnly<current.IContainerExperimental>): void;\nuse_current_InterfaceDeclaration_IContainerExperimental(\n // @ts-expect-error compatibility expected to be broken\n get_old_InterfaceDeclaration_IContainerExperimental());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IContainerExperimental\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IContainerExperimental():\n TypeOnly<current.IContainerExperimental>;\ndeclare function use_old_InterfaceDeclaration_IContainerExperimental(\n use: TypeOnly<old.IContainerExperimental>): void;\nuse_old_InterfaceDeclaration_IContainerExperimental(\n get_current_InterfaceDeclaration_IContainerExperimental());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_IDetachedBlobStorage\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_IDetachedBlobStorage():\n TypeOnly<old.IDetachedBlobStorage>;\ndeclare function use_current_TypeAliasDeclaration_IDetachedBlobStorage(\n use: TypeOnly<current.IDetachedBlobStorage>): void;\nuse_current_TypeAliasDeclaration_IDetachedBlobStorage(\n get_old_TypeAliasDeclaration_IDetachedBlobStorage());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_IDetachedBlobStorage\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_IDetachedBlobStorage():\n TypeOnly<current.IDetachedBlobStorage>;\ndeclare function use_old_TypeAliasDeclaration_IDetachedBlobStorage(\n use: TypeOnly<old.IDetachedBlobStorage>): void;\nuse_old_TypeAliasDeclaration_IDetachedBlobStorage(\n get_current_TypeAliasDeclaration_IDetachedBlobStorage());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IFluidModuleWithDetails\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IFluidModuleWithDetails():\n TypeOnly<old.IFluidModuleWithDetails>;\ndeclare function use_current_InterfaceDeclaration_IFluidModuleWithDetails(\n use: TypeOnly<current.IFluidModuleWithDetails>): void;\nuse_current_InterfaceDeclaration_IFluidModuleWithDetails(\n get_old_InterfaceDeclaration_IFluidModuleWithDetails());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IFluidModuleWithDetails\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IFluidModuleWithDetails():\n TypeOnly<current.IFluidModuleWithDetails>;\ndeclare function use_old_InterfaceDeclaration_IFluidModuleWithDetails(\n use: TypeOnly<old.IFluidModuleWithDetails>): void;\nuse_old_InterfaceDeclaration_IFluidModuleWithDetails(\n get_current_InterfaceDeclaration_IFluidModuleWithDetails());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ILoaderOptions\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ILoaderOptions():\n TypeOnly<old.ILoaderOptions>;\ndeclare function use_current_InterfaceDeclaration_ILoaderOptions(\n use: TypeOnly<current.ILoaderOptions>): void;\nuse_current_InterfaceDeclaration_ILoaderOptions(\n get_old_InterfaceDeclaration_ILoaderOptions());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ILoaderOptions\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ILoaderOptions():\n TypeOnly<current.ILoaderOptions>;\ndeclare function use_old_InterfaceDeclaration_ILoaderOptions(\n use: TypeOnly<old.ILoaderOptions>): void;\nuse_old_InterfaceDeclaration_ILoaderOptions(\n get_current_InterfaceDeclaration_ILoaderOptions());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ILoaderProps\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ILoaderProps():\n TypeOnly<old.ILoaderProps>;\ndeclare function use_current_InterfaceDeclaration_ILoaderProps(\n use: TypeOnly<current.ILoaderProps>): void;\nuse_current_InterfaceDeclaration_ILoaderProps(\n get_old_InterfaceDeclaration_ILoaderProps());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ILoaderProps\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ILoaderProps():\n TypeOnly<current.ILoaderProps>;\ndeclare function use_old_InterfaceDeclaration_ILoaderProps(\n use: TypeOnly<old.ILoaderProps>): void;\nuse_old_InterfaceDeclaration_ILoaderProps(\n get_current_InterfaceDeclaration_ILoaderProps());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ILoaderServices\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ILoaderServices():\n TypeOnly<old.ILoaderServices>;\ndeclare function use_current_InterfaceDeclaration_ILoaderServices(\n use: TypeOnly<current.ILoaderServices>): void;\nuse_current_InterfaceDeclaration_ILoaderServices(\n get_old_InterfaceDeclaration_ILoaderServices());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ILoaderServices\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ILoaderServices():\n TypeOnly<current.ILoaderServices>;\ndeclare function use_old_InterfaceDeclaration_ILoaderServices(\n use: TypeOnly<old.ILoaderServices>): void;\nuse_old_InterfaceDeclaration_ILoaderServices(\n get_current_InterfaceDeclaration_ILoaderServices());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IParsedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IParsedUrl():\n TypeOnly<old.IParsedUrl>;\ndeclare function use_current_InterfaceDeclaration_IParsedUrl(\n use: TypeOnly<current.IParsedUrl>): void;\nuse_current_InterfaceDeclaration_IParsedUrl(\n // @ts-expect-error compatibility expected to be broken\n get_old_InterfaceDeclaration_IParsedUrl());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IParsedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IParsedUrl():\n TypeOnly<current.IParsedUrl>;\ndeclare function use_old_InterfaceDeclaration_IParsedUrl(\n use: TypeOnly<old.IParsedUrl>): void;\nuse_old_InterfaceDeclaration_IParsedUrl(\n get_current_InterfaceDeclaration_IParsedUrl());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IProtocolHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IProtocolHandler():\n TypeOnly<old.IProtocolHandler>;\ndeclare function use_current_InterfaceDeclaration_IProtocolHandler(\n use: TypeOnly<current.IProtocolHandler>): void;\nuse_current_InterfaceDeclaration_IProtocolHandler(\n get_old_InterfaceDeclaration_IProtocolHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IProtocolHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IProtocolHandler():\n TypeOnly<current.IProtocolHandler>;\ndeclare function use_old_InterfaceDeclaration_IProtocolHandler(\n use: TypeOnly<old.IProtocolHandler>): void;\nuse_old_InterfaceDeclaration_IProtocolHandler(\n get_current_InterfaceDeclaration_IProtocolHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_Loader\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_Loader():\n TypeOnly<old.Loader>;\ndeclare function use_current_ClassDeclaration_Loader(\n use: TypeOnly<current.Loader>): void;\nuse_current_ClassDeclaration_Loader(\n get_old_ClassDeclaration_Loader());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_Loader\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_Loader():\n TypeOnly<current.Loader>;\ndeclare function use_old_ClassDeclaration_Loader(\n use: TypeOnly<old.Loader>): void;\nuse_old_ClassDeclaration_Loader(\n get_current_ClassDeclaration_Loader());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_ProtocolHandlerBuilder\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_ProtocolHandlerBuilder():\n TypeOnly<old.ProtocolHandlerBuilder>;\ndeclare function use_current_TypeAliasDeclaration_ProtocolHandlerBuilder(\n use: TypeOnly<current.ProtocolHandlerBuilder>): void;\nuse_current_TypeAliasDeclaration_ProtocolHandlerBuilder(\n get_old_TypeAliasDeclaration_ProtocolHandlerBuilder());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_ProtocolHandlerBuilder\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_ProtocolHandlerBuilder():\n TypeOnly<current.ProtocolHandlerBuilder>;\ndeclare function use_old_TypeAliasDeclaration_ProtocolHandlerBuilder(\n use: TypeOnly<old.ProtocolHandlerBuilder>): void;\nuse_old_TypeAliasDeclaration_ProtocolHandlerBuilder(\n get_current_TypeAliasDeclaration_ProtocolHandlerBuilder());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_isLocationRedirectionError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_isLocationRedirectionError():\n TypeOnly<typeof old.isLocationRedirectionError>;\ndeclare function use_current_FunctionDeclaration_isLocationRedirectionError(\n use: TypeOnly<typeof current.isLocationRedirectionError>): void;\nuse_current_FunctionDeclaration_isLocationRedirectionError(\n get_old_FunctionDeclaration_isLocationRedirectionError());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_isLocationRedirectionError\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_isLocationRedirectionError():\n TypeOnly<typeof current.isLocationRedirectionError>;\ndeclare function use_old_FunctionDeclaration_isLocationRedirectionError(\n use: TypeOnly<typeof old.isLocationRedirectionError>): void;\nuse_old_FunctionDeclaration_isLocationRedirectionError(\n get_current_FunctionDeclaration_isLocationRedirectionError());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_resolveWithLocationRedirectionHandling\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_resolveWithLocationRedirectionHandling():\n TypeOnly<typeof old.resolveWithLocationRedirectionHandling>;\ndeclare function use_current_FunctionDeclaration_resolveWithLocationRedirectionHandling(\n use: TypeOnly<typeof current.resolveWithLocationRedirectionHandling>): void;\nuse_current_FunctionDeclaration_resolveWithLocationRedirectionHandling(\n get_old_FunctionDeclaration_resolveWithLocationRedirectionHandling());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_resolveWithLocationRedirectionHandling\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_resolveWithLocationRedirectionHandling():\n TypeOnly<typeof current.resolveWithLocationRedirectionHandling>;\ndeclare function use_old_FunctionDeclaration_resolveWithLocationRedirectionHandling(\n use: TypeOnly<typeof old.resolveWithLocationRedirectionHandling>): void;\nuse_old_FunctionDeclaration_resolveWithLocationRedirectionHandling(\n get_current_FunctionDeclaration_resolveWithLocationRedirectionHandling());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_tryParseCompatibleResolvedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_tryParseCompatibleResolvedUrl():\n TypeOnly<typeof old.tryParseCompatibleResolvedUrl>;\ndeclare function use_current_FunctionDeclaration_tryParseCompatibleResolvedUrl(\n use: TypeOnly<typeof current.tryParseCompatibleResolvedUrl>): void;\nuse_current_FunctionDeclaration_tryParseCompatibleResolvedUrl(\n get_old_FunctionDeclaration_tryParseCompatibleResolvedUrl());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_tryParseCompatibleResolvedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_tryParseCompatibleResolvedUrl():\n TypeOnly<typeof current.tryParseCompatibleResolvedUrl>;\ndeclare function use_old_FunctionDeclaration_tryParseCompatibleResolvedUrl(\n use: TypeOnly<typeof old.tryParseCompatibleResolvedUrl>): void;\nuse_old_FunctionDeclaration_tryParseCompatibleResolvedUrl(\n get_current_FunctionDeclaration_tryParseCompatibleResolvedUrl());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_waitContainerToCatchUp\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_waitContainerToCatchUp():\n TypeOnly<typeof old.waitContainerToCatchUp>;\ndeclare function use_current_FunctionDeclaration_waitContainerToCatchUp(\n use: TypeOnly<typeof current.waitContainerToCatchUp>): void;\nuse_current_FunctionDeclaration_waitContainerToCatchUp(\n get_old_FunctionDeclaration_waitContainerToCatchUp());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_waitContainerToCatchUp\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_waitContainerToCatchUp():\n TypeOnly<typeof current.waitContainerToCatchUp>;\ndeclare function use_old_FunctionDeclaration_waitContainerToCatchUp(\n use: TypeOnly<typeof old.waitContainerToCatchUp>): void;\nuse_old_FunctionDeclaration_waitContainerToCatchUp(\n get_current_FunctionDeclaration_waitContainerToCatchUp());\n"]}
@@ -1,31 +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 { runSingle } from "../utils.js";
7
- describe("container-loader utils", () => {
8
- describe("runSingle", () => {
9
- it("correctly calls internal func", async () => {
10
- const wrappedFunc = runSingle(async (base, plus) => base + plus);
11
- assert.strictEqual(await wrappedFunc(4, 1), 5);
12
- });
13
- it("returns same promise for same args", async () => {
14
- const wrappedFunc = runSingle(async (base, plus) => base + plus);
15
- const [p1, p2] = [wrappedFunc(4, 1), wrappedFunc(4, 1)];
16
- assert.strictEqual(p2, p1);
17
- assert.strictEqual(await p1, 5);
18
- assert.strictEqual(await p2, 5);
19
- });
20
- it("fails for different args", async () => {
21
- const wrappedFunc = runSingle(async (base, plus) => base + plus);
22
- const [p1, p2] = [wrappedFunc(4, 1), wrappedFunc(4, 2)];
23
- assert.notStrictEqual(p2, p1);
24
- assert.strictEqual(await p1, 5);
25
- await p2
26
- .then(() => assert.fail("should fail"))
27
- .catch((e) => assert.strictEqual(e.message, "Subsequent calls cannot use different arguments."));
28
- });
29
- });
30
- });
31
- //# sourceMappingURL=utils.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.spec.js","sourceRoot":"","sources":["../../src/test/utils.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACvC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QAC1B,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;YAC9C,MAAM,WAAW,GAAG,SAAS,CAAC,KAAK,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;YAEjF,MAAM,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;YACnD,MAAM,WAAW,GAAG,SAAS,CAAC,KAAK,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;YAEjF,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAExD,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC3B,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;YAChC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE;YACzC,MAAM,WAAW,GAAG,SAAS,CAAC,KAAK,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;YAEjF,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAExD,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC9B,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;YAChC,MAAM,EAAE;iBACN,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBACtC,KAAK,CAAC,CAAC,CAAQ,EAAE,EAAE,CACnB,MAAM,CAAC,WAAW,CACjB,CAAC,CAAC,OAAO,EACT,kDAAkD,CAClD,CACD,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,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 { strict as assert } from \"assert\";\nimport { runSingle } from \"../utils.js\";\n\ndescribe(\"container-loader utils\", () => {\n\tdescribe(\"runSingle\", () => {\n\t\tit(\"correctly calls internal func\", async () => {\n\t\t\tconst wrappedFunc = runSingle(async (base: number, plus: number) => base + plus);\n\n\t\t\tassert.strictEqual(await wrappedFunc(4, 1), 5);\n\t\t});\n\n\t\tit(\"returns same promise for same args\", async () => {\n\t\t\tconst wrappedFunc = runSingle(async (base: number, plus: number) => base + plus);\n\n\t\t\tconst [p1, p2] = [wrappedFunc(4, 1), wrappedFunc(4, 1)];\n\n\t\t\tassert.strictEqual(p2, p1);\n\t\t\tassert.strictEqual(await p1, 5);\n\t\t\tassert.strictEqual(await p2, 5);\n\t\t});\n\n\t\tit(\"fails for different args\", async () => {\n\t\t\tconst wrappedFunc = runSingle(async (base: number, plus: number) => base + plus);\n\n\t\t\tconst [p1, p2] = [wrappedFunc(4, 1), wrappedFunc(4, 2)];\n\n\t\t\tassert.notStrictEqual(p2, p1);\n\t\t\tassert.strictEqual(await p1, 5);\n\t\t\tawait p2\n\t\t\t\t.then(() => assert.fail(\"should fail\"))\n\t\t\t\t.catch((e: Error) =>\n\t\t\t\t\tassert.strictEqual(\n\t\t\t\t\t\te.message,\n\t\t\t\t\t\t\"Subsequent calls cannot use different arguments.\",\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t});\n\t});\n});\n"]}
File without changes