@fluidframework/odsp-driver 2.0.0-dev-rc.2.0.0.246488 → 2.0.0-dev-rc.3.0.0.250606

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 (353) hide show
  1. package/dist/WriteBufferUtils.d.ts.map +1 -1
  2. package/dist/WriteBufferUtils.js.map +1 -1
  3. package/dist/compactSnapshotParser.d.ts +1 -1
  4. package/dist/compactSnapshotParser.d.ts.map +1 -1
  5. package/dist/compactSnapshotParser.js +1 -1
  6. package/dist/compactSnapshotParser.js.map +1 -1
  7. package/dist/compactSnapshotWriter.d.ts.map +1 -1
  8. package/dist/compactSnapshotWriter.js +1 -1
  9. package/dist/compactSnapshotWriter.js.map +1 -1
  10. package/dist/contracts.d.ts +2 -2
  11. package/dist/contracts.d.ts.map +1 -1
  12. package/dist/contracts.js.map +1 -1
  13. package/dist/createFile.d.ts +2 -2
  14. package/dist/createFile.d.ts.map +1 -1
  15. package/dist/createFile.js +7 -7
  16. package/dist/createFile.js.map +1 -1
  17. package/dist/createNewContainerOnExistingFile.d.ts +2 -2
  18. package/dist/createNewContainerOnExistingFile.d.ts.map +1 -1
  19. package/dist/createNewContainerOnExistingFile.js +4 -4
  20. package/dist/createNewContainerOnExistingFile.js.map +1 -1
  21. package/dist/createNewUtils.d.ts +2 -2
  22. package/dist/createNewUtils.d.ts.map +1 -1
  23. package/dist/createNewUtils.js +4 -4
  24. package/dist/createNewUtils.js.map +1 -1
  25. package/dist/epochTracker.d.ts +3 -3
  26. package/dist/epochTracker.d.ts.map +1 -1
  27. package/dist/epochTracker.js +4 -4
  28. package/dist/epochTracker.js.map +1 -1
  29. package/dist/fetch.js.map +1 -1
  30. package/dist/fetchSnapshot.d.ts +2 -2
  31. package/dist/fetchSnapshot.d.ts.map +1 -1
  32. package/dist/fetchSnapshot.js +5 -5
  33. package/dist/fetchSnapshot.js.map +1 -1
  34. package/dist/getFileLink.d.ts +1 -1
  35. package/dist/getFileLink.d.ts.map +1 -1
  36. package/dist/getFileLink.js +1 -1
  37. package/dist/getFileLink.js.map +1 -1
  38. package/dist/localOdspDriver/localOdspDeltaStorageService.d.ts +1 -1
  39. package/dist/localOdspDriver/localOdspDeltaStorageService.d.ts.map +1 -1
  40. package/dist/localOdspDriver/localOdspDeltaStorageService.js +1 -1
  41. package/dist/localOdspDriver/localOdspDeltaStorageService.js.map +1 -1
  42. package/dist/localOdspDriver/localOdspDocumentService.d.ts +1 -1
  43. package/dist/localOdspDriver/localOdspDocumentService.d.ts.map +1 -1
  44. package/dist/localOdspDriver/localOdspDocumentService.js.map +1 -1
  45. package/dist/localOdspDriver/localOdspDocumentServiceFactory.d.ts +1 -1
  46. package/dist/localOdspDriver/localOdspDocumentServiceFactory.d.ts.map +1 -1
  47. package/dist/localOdspDriver/localOdspDocumentServiceFactory.js +1 -1
  48. package/dist/localOdspDriver/localOdspDocumentServiceFactory.js.map +1 -1
  49. package/dist/localOdspDriver/localOdspDocumentStorageManager.d.ts +1 -1
  50. package/dist/localOdspDriver/localOdspDocumentStorageManager.d.ts.map +1 -1
  51. package/dist/localOdspDriver/localOdspDocumentStorageManager.js +2 -2
  52. package/dist/localOdspDriver/localOdspDocumentStorageManager.js.map +1 -1
  53. package/dist/odspCache.d.ts +1 -1
  54. package/dist/odspCache.d.ts.map +1 -1
  55. package/dist/odspCache.js.map +1 -1
  56. package/dist/odspDelayLoadedDeltaStream.d.ts +4 -4
  57. package/dist/odspDelayLoadedDeltaStream.d.ts.map +1 -1
  58. package/dist/odspDelayLoadedDeltaStream.js +11 -6
  59. package/dist/odspDelayLoadedDeltaStream.js.map +1 -1
  60. package/dist/odspDeltaStorageService.d.ts +3 -3
  61. package/dist/odspDeltaStorageService.d.ts.map +1 -1
  62. package/dist/odspDeltaStorageService.js +3 -3
  63. package/dist/odspDeltaStorageService.js.map +1 -1
  64. package/dist/odspDocumentDeltaConnection.d.ts +5 -4
  65. package/dist/odspDocumentDeltaConnection.d.ts.map +1 -1
  66. package/dist/odspDocumentDeltaConnection.js +3 -5
  67. package/dist/odspDocumentDeltaConnection.js.map +1 -1
  68. package/dist/odspDocumentService.d.ts +4 -4
  69. package/dist/odspDocumentService.d.ts.map +1 -1
  70. package/dist/odspDocumentService.js +2 -2
  71. package/dist/odspDocumentService.js.map +1 -1
  72. package/dist/odspDocumentServiceFactory.d.ts +1 -1
  73. package/dist/odspDocumentServiceFactory.d.ts.map +1 -1
  74. package/dist/odspDocumentServiceFactory.js +1 -1
  75. package/dist/odspDocumentServiceFactory.js.map +1 -1
  76. package/dist/odspDocumentServiceFactoryCore.d.ts +2 -2
  77. package/dist/odspDocumentServiceFactoryCore.d.ts.map +1 -1
  78. package/dist/odspDocumentServiceFactoryCore.js +2 -2
  79. package/dist/odspDocumentServiceFactoryCore.js.map +1 -1
  80. package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts +1 -1
  81. package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +1 -1
  82. package/dist/odspDocumentServiceFactoryWithCodeSplit.js.map +1 -1
  83. package/dist/odspDocumentStorageManager.d.ts +4 -4
  84. package/dist/odspDocumentStorageManager.d.ts.map +1 -1
  85. package/dist/odspDocumentStorageManager.js +3 -3
  86. package/dist/odspDocumentStorageManager.js.map +1 -1
  87. package/dist/odspDocumentStorageServiceBase.d.ts +1 -1
  88. package/dist/odspDocumentStorageServiceBase.d.ts.map +1 -1
  89. package/dist/odspDocumentStorageServiceBase.js.map +1 -1
  90. package/dist/odspDriverUrlResolver.d.ts.map +1 -1
  91. package/dist/odspDriverUrlResolver.js +3 -3
  92. package/dist/odspDriverUrlResolver.js.map +1 -1
  93. package/dist/odspDriverUrlResolverForShareLink.d.ts +1 -1
  94. package/dist/odspDriverUrlResolverForShareLink.d.ts.map +1 -1
  95. package/dist/odspDriverUrlResolverForShareLink.js +2 -2
  96. package/dist/odspDriverUrlResolverForShareLink.js.map +1 -1
  97. package/dist/odspError.d.ts.map +1 -1
  98. package/dist/odspError.js +1 -1
  99. package/dist/odspError.js.map +1 -1
  100. package/dist/odspFluidFileLink.d.ts.map +1 -1
  101. package/dist/odspFluidFileLink.js.map +1 -1
  102. package/dist/odspPublicUtils.js.map +1 -1
  103. package/dist/odspSnapshotParser.d.ts.map +1 -1
  104. package/dist/odspSnapshotParser.js.map +1 -1
  105. package/dist/odspSummaryUploadManager.d.ts +1 -1
  106. package/dist/odspSummaryUploadManager.d.ts.map +1 -1
  107. package/dist/odspSummaryUploadManager.js +1 -1
  108. package/dist/odspSummaryUploadManager.js.map +1 -1
  109. package/dist/odspUtils.d.ts +2 -2
  110. package/dist/odspUtils.d.ts.map +1 -1
  111. package/dist/odspUtils.js +2 -2
  112. package/dist/odspUtils.js.map +1 -1
  113. package/dist/opsCaching.d.ts.map +1 -1
  114. package/dist/opsCaching.js.map +1 -1
  115. package/dist/packageVersion.d.ts +1 -1
  116. package/dist/packageVersion.js +1 -1
  117. package/dist/packageVersion.js.map +1 -1
  118. package/dist/prefetchLatestSnapshot.d.ts.map +1 -1
  119. package/dist/prefetchLatestSnapshot.js +1 -1
  120. package/dist/prefetchLatestSnapshot.js.map +1 -1
  121. package/dist/retryErrorsStorageAdapter.d.ts +2 -2
  122. package/dist/retryErrorsStorageAdapter.d.ts.map +1 -1
  123. package/dist/retryErrorsStorageAdapter.js.map +1 -1
  124. package/dist/retryUtils.d.ts.map +1 -1
  125. package/dist/retryUtils.js.map +1 -1
  126. package/dist/vroom.d.ts +2 -2
  127. package/dist/vroom.d.ts.map +1 -1
  128. package/dist/vroom.js +2 -2
  129. package/dist/vroom.js.map +1 -1
  130. package/dist/zipItDataRepresentationUtils.d.ts.map +1 -1
  131. package/dist/zipItDataRepresentationUtils.js +1 -1
  132. package/dist/zipItDataRepresentationUtils.js.map +1 -1
  133. package/lib/WriteBufferUtils.d.ts.map +1 -1
  134. package/lib/WriteBufferUtils.js +1 -1
  135. package/lib/WriteBufferUtils.js.map +1 -1
  136. package/lib/compactSnapshotParser.d.ts +1 -1
  137. package/lib/compactSnapshotParser.d.ts.map +1 -1
  138. package/lib/compactSnapshotParser.js +1 -1
  139. package/lib/compactSnapshotParser.js.map +1 -1
  140. package/lib/compactSnapshotWriter.d.ts.map +1 -1
  141. package/lib/compactSnapshotWriter.js +2 -2
  142. package/lib/compactSnapshotWriter.js.map +1 -1
  143. package/lib/contracts.d.ts +2 -2
  144. package/lib/contracts.d.ts.map +1 -1
  145. package/lib/contracts.js.map +1 -1
  146. package/lib/createFile.d.ts +2 -2
  147. package/lib/createFile.d.ts.map +1 -1
  148. package/lib/createFile.js +7 -7
  149. package/lib/createFile.js.map +1 -1
  150. package/lib/createNewContainerOnExistingFile.d.ts +2 -2
  151. package/lib/createNewContainerOnExistingFile.d.ts.map +1 -1
  152. package/lib/createNewContainerOnExistingFile.js +4 -4
  153. package/lib/createNewContainerOnExistingFile.js.map +1 -1
  154. package/lib/createNewUtils.d.ts +2 -2
  155. package/lib/createNewUtils.d.ts.map +1 -1
  156. package/lib/createNewUtils.js +5 -5
  157. package/lib/createNewUtils.js.map +1 -1
  158. package/lib/epochTracker.d.ts +3 -3
  159. package/lib/epochTracker.d.ts.map +1 -1
  160. package/lib/epochTracker.js +6 -6
  161. package/lib/epochTracker.js.map +1 -1
  162. package/lib/fetch.js.map +1 -1
  163. package/lib/fetchSnapshot.d.ts +2 -2
  164. package/lib/fetchSnapshot.d.ts.map +1 -1
  165. package/lib/fetchSnapshot.js +6 -6
  166. package/lib/fetchSnapshot.js.map +1 -1
  167. package/lib/getFileLink.d.ts +1 -1
  168. package/lib/getFileLink.d.ts.map +1 -1
  169. package/lib/getFileLink.js +1 -1
  170. package/lib/getFileLink.js.map +1 -1
  171. package/lib/localOdspDriver/localOdspDeltaStorageService.d.ts +1 -1
  172. package/lib/localOdspDriver/localOdspDeltaStorageService.d.ts.map +1 -1
  173. package/lib/localOdspDriver/localOdspDeltaStorageService.js +1 -1
  174. package/lib/localOdspDriver/localOdspDeltaStorageService.js.map +1 -1
  175. package/lib/localOdspDriver/localOdspDocumentService.d.ts +1 -1
  176. package/lib/localOdspDriver/localOdspDocumentService.d.ts.map +1 -1
  177. package/lib/localOdspDriver/localOdspDocumentService.js.map +1 -1
  178. package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.ts +1 -1
  179. package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.ts.map +1 -1
  180. package/lib/localOdspDriver/localOdspDocumentServiceFactory.js +1 -1
  181. package/lib/localOdspDriver/localOdspDocumentServiceFactory.js.map +1 -1
  182. package/lib/localOdspDriver/localOdspDocumentStorageManager.d.ts +1 -1
  183. package/lib/localOdspDriver/localOdspDocumentStorageManager.d.ts.map +1 -1
  184. package/lib/localOdspDriver/localOdspDocumentStorageManager.js +2 -2
  185. package/lib/localOdspDriver/localOdspDocumentStorageManager.js.map +1 -1
  186. package/lib/odspCache.d.ts +1 -1
  187. package/lib/odspCache.d.ts.map +1 -1
  188. package/lib/odspCache.js.map +1 -1
  189. package/lib/odspDelayLoadedDeltaStream.d.ts +4 -4
  190. package/lib/odspDelayLoadedDeltaStream.d.ts.map +1 -1
  191. package/lib/odspDelayLoadedDeltaStream.js +11 -6
  192. package/lib/odspDelayLoadedDeltaStream.js.map +1 -1
  193. package/lib/odspDeltaStorageService.d.ts +3 -3
  194. package/lib/odspDeltaStorageService.d.ts.map +1 -1
  195. package/lib/odspDeltaStorageService.js +3 -3
  196. package/lib/odspDeltaStorageService.js.map +1 -1
  197. package/lib/odspDocumentDeltaConnection.d.ts +5 -4
  198. package/lib/odspDocumentDeltaConnection.d.ts.map +1 -1
  199. package/lib/odspDocumentDeltaConnection.js +4 -6
  200. package/lib/odspDocumentDeltaConnection.js.map +1 -1
  201. package/lib/odspDocumentService.d.ts +4 -4
  202. package/lib/odspDocumentService.d.ts.map +1 -1
  203. package/lib/odspDocumentService.js +2 -2
  204. package/lib/odspDocumentService.js.map +1 -1
  205. package/lib/odspDocumentServiceFactory.d.ts +1 -1
  206. package/lib/odspDocumentServiceFactory.d.ts.map +1 -1
  207. package/lib/odspDocumentServiceFactory.js +1 -1
  208. package/lib/odspDocumentServiceFactory.js.map +1 -1
  209. package/lib/odspDocumentServiceFactoryCore.d.ts +2 -2
  210. package/lib/odspDocumentServiceFactoryCore.d.ts.map +1 -1
  211. package/lib/odspDocumentServiceFactoryCore.js +4 -4
  212. package/lib/odspDocumentServiceFactoryCore.js.map +1 -1
  213. package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts +1 -1
  214. package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +1 -1
  215. package/lib/odspDocumentServiceFactoryWithCodeSplit.js.map +1 -1
  216. package/lib/odspDocumentStorageManager.d.ts +4 -4
  217. package/lib/odspDocumentStorageManager.d.ts.map +1 -1
  218. package/lib/odspDocumentStorageManager.js +4 -4
  219. package/lib/odspDocumentStorageManager.js.map +1 -1
  220. package/lib/odspDocumentStorageServiceBase.d.ts +1 -1
  221. package/lib/odspDocumentStorageServiceBase.d.ts.map +1 -1
  222. package/lib/odspDocumentStorageServiceBase.js.map +1 -1
  223. package/lib/odspDriverUrlResolver.d.ts.map +1 -1
  224. package/lib/odspDriverUrlResolver.js +3 -3
  225. package/lib/odspDriverUrlResolver.js.map +1 -1
  226. package/lib/odspDriverUrlResolverForShareLink.d.ts +1 -1
  227. package/lib/odspDriverUrlResolverForShareLink.d.ts.map +1 -1
  228. package/lib/odspDriverUrlResolverForShareLink.js +3 -3
  229. package/lib/odspDriverUrlResolverForShareLink.js.map +1 -1
  230. package/lib/odspError.d.ts.map +1 -1
  231. package/lib/odspError.js +1 -1
  232. package/lib/odspError.js.map +1 -1
  233. package/lib/odspFluidFileLink.d.ts.map +1 -1
  234. package/lib/odspFluidFileLink.js +1 -1
  235. package/lib/odspFluidFileLink.js.map +1 -1
  236. package/lib/odspPublicUtils.js +1 -1
  237. package/lib/odspPublicUtils.js.map +1 -1
  238. package/lib/odspSnapshotParser.d.ts.map +1 -1
  239. package/lib/odspSnapshotParser.js.map +1 -1
  240. package/lib/odspSummaryUploadManager.d.ts +1 -1
  241. package/lib/odspSummaryUploadManager.d.ts.map +1 -1
  242. package/lib/odspSummaryUploadManager.js +2 -2
  243. package/lib/odspSummaryUploadManager.js.map +1 -1
  244. package/lib/odspUtils.d.ts +2 -2
  245. package/lib/odspUtils.d.ts.map +1 -1
  246. package/lib/odspUtils.js +3 -3
  247. package/lib/odspUtils.js.map +1 -1
  248. package/lib/opsCaching.d.ts.map +1 -1
  249. package/lib/opsCaching.js.map +1 -1
  250. package/lib/packageVersion.d.ts +1 -1
  251. package/lib/packageVersion.js +1 -1
  252. package/lib/packageVersion.js.map +1 -1
  253. package/lib/prefetchLatestSnapshot.d.ts.map +1 -1
  254. package/lib/prefetchLatestSnapshot.js +2 -2
  255. package/lib/prefetchLatestSnapshot.js.map +1 -1
  256. package/lib/retryErrorsStorageAdapter.d.ts +2 -2
  257. package/lib/retryErrorsStorageAdapter.d.ts.map +1 -1
  258. package/lib/retryErrorsStorageAdapter.js.map +1 -1
  259. package/lib/retryUtils.d.ts.map +1 -1
  260. package/lib/retryUtils.js.map +1 -1
  261. package/lib/test/createNewUtilsTests.spec.js +3 -3
  262. package/lib/test/createNewUtilsTests.spec.js.map +1 -1
  263. package/lib/test/deltaStorageService.spec.js +2 -2
  264. package/lib/test/deltaStorageService.spec.js.map +1 -1
  265. package/lib/test/epochTests.spec.js +2 -2
  266. package/lib/test/epochTests.spec.js.map +1 -1
  267. package/lib/test/epochTestsWithRedemption.spec.js +2 -2
  268. package/lib/test/epochTestsWithRedemption.spec.js.map +1 -1
  269. package/lib/test/fetchSnapshot.spec.js +8 -8
  270. package/lib/test/fetchSnapshot.spec.js.map +1 -1
  271. package/lib/test/getFileLink.spec.js +1 -1
  272. package/lib/test/getFileLink.spec.js.map +1 -1
  273. package/lib/test/getVersions.spec.js +6 -6
  274. package/lib/test/getVersions.spec.js.map +1 -1
  275. package/lib/test/joinSessionCacheTests.spec.js +117 -1
  276. package/lib/test/joinSessionCacheTests.spec.js.map +1 -1
  277. package/lib/test/joinSessionPeriodicCall.spec.js +3 -3
  278. package/lib/test/joinSessionPeriodicCall.spec.js.map +1 -1
  279. package/lib/test/localOdspDriver.spec.js +2 -2
  280. package/lib/test/localOdspDriver.spec.js.map +1 -1
  281. package/lib/test/mockFetch.js +1 -1
  282. package/lib/test/mockFetch.js.map +1 -1
  283. package/lib/test/odspCreateContainer.spec.js +7 -7
  284. package/lib/test/odspCreateContainer.spec.js.map +1 -1
  285. package/lib/test/odspDriverResolverTest.spec.js +2 -2
  286. package/lib/test/odspDriverResolverTest.spec.js.map +1 -1
  287. package/lib/test/odspDriverUrlResolverForShareLink.spec.js +4 -4
  288. package/lib/test/odspDriverUrlResolverForShareLink.spec.js.map +1 -1
  289. package/lib/test/odspError.spec.js +2 -2
  290. package/lib/test/odspError.spec.js.map +1 -1
  291. package/lib/test/opsCaching.spec.js +1 -1
  292. package/lib/test/opsCaching.spec.js.map +1 -1
  293. package/lib/test/prefetchSnapshotTests.spec.js +8 -8
  294. package/lib/test/prefetchSnapshotTests.spec.js.map +1 -1
  295. package/lib/test/snapshotFormatTests.spec.js.map +1 -1
  296. package/lib/test/socketTests/deltaConnectionUpdateTests.spec.js +4 -4
  297. package/lib/test/socketTests/deltaConnectionUpdateTests.spec.js.map +1 -1
  298. package/lib/test/socketTests/socketMock.js +6 -2
  299. package/lib/test/socketTests/socketMock.js.map +1 -1
  300. package/lib/test/socketTests/socketTests.spec.js +4 -4
  301. package/lib/test/socketTests/socketTests.spec.js.map +1 -1
  302. package/lib/test/tokenFetch.spec.js +1 -1
  303. package/lib/test/tokenFetch.spec.js.map +1 -1
  304. package/lib/test/zipItDataRepresentationTests.spec.js +1 -1
  305. package/lib/test/zipItDataRepresentationTests.spec.js.map +1 -1
  306. package/lib/vroom.d.ts +2 -2
  307. package/lib/vroom.d.ts.map +1 -1
  308. package/lib/vroom.js +2 -2
  309. package/lib/vroom.js.map +1 -1
  310. package/lib/zipItDataRepresentationUtils.d.ts.map +1 -1
  311. package/lib/zipItDataRepresentationUtils.js +1 -1
  312. package/lib/zipItDataRepresentationUtils.js.map +1 -1
  313. package/package.json +19 -16
  314. package/src/WriteBufferUtils.ts +2 -2
  315. package/src/compactSnapshotParser.ts +6 -6
  316. package/src/compactSnapshotWriter.ts +4 -4
  317. package/src/contracts.ts +2 -2
  318. package/src/createFile.ts +18 -18
  319. package/src/createNewContainerOnExistingFile.ts +10 -10
  320. package/src/createNewUtils.ts +13 -13
  321. package/src/epochTracker.ts +21 -21
  322. package/src/fetch.ts +1 -1
  323. package/src/fetchSnapshot.ts +24 -24
  324. package/src/getFileLink.ts +1 -1
  325. package/src/localOdspDriver/localOdspDeltaStorageService.ts +2 -2
  326. package/src/localOdspDriver/localOdspDocumentService.ts +1 -1
  327. package/src/localOdspDriver/localOdspDocumentServiceFactory.ts +2 -2
  328. package/src/localOdspDriver/localOdspDocumentStorageManager.ts +3 -3
  329. package/src/odspCache.ts +4 -4
  330. package/src/odspDelayLoadedDeltaStream.ts +26 -22
  331. package/src/odspDeltaStorageService.ts +6 -6
  332. package/src/odspDocumentDeltaConnection.ts +17 -14
  333. package/src/odspDocumentService.ts +15 -15
  334. package/src/odspDocumentServiceFactory.ts +3 -3
  335. package/src/odspDocumentServiceFactoryCore.ts +14 -14
  336. package/src/odspDocumentServiceFactoryWithCodeSplit.ts +2 -2
  337. package/src/odspDocumentStorageManager.ts +22 -22
  338. package/src/odspDocumentStorageServiceBase.ts +4 -4
  339. package/src/odspDriverUrlResolver.ts +4 -4
  340. package/src/odspDriverUrlResolverForShareLink.ts +8 -8
  341. package/src/odspError.ts +2 -2
  342. package/src/odspFluidFileLink.ts +1 -1
  343. package/src/odspPublicUtils.ts +1 -1
  344. package/src/odspSnapshotParser.ts +1 -1
  345. package/src/odspSummaryUploadManager.ts +4 -4
  346. package/src/odspUtils.ts +25 -25
  347. package/src/opsCaching.ts +1 -1
  348. package/src/packageVersion.ts +1 -1
  349. package/src/prefetchLatestSnapshot.ts +12 -12
  350. package/src/retryErrorsStorageAdapter.ts +2 -2
  351. package/src/retryUtils.ts +1 -1
  352. package/src/vroom.ts +6 -6
  353. package/src/zipItDataRepresentationUtils.ts +2 -2
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
7
- import { ITelemetryLoggerExt, PerformanceEvent } from "@fluidframework/telemetry-utils";
8
7
  import { assert } from "@fluidframework/core-utils";
9
8
  import { NonRetryableError, runWithRetry } from "@fluidframework/driver-utils";
10
9
  import {
@@ -13,6 +12,7 @@ import {
13
12
  OdspResourceTokenFetchOptions,
14
13
  TokenFetcher,
15
14
  } from "@fluidframework/odsp-driver-definitions";
15
+ import { ITelemetryLoggerExt, PerformanceEvent } from "@fluidframework/telemetry-utils";
16
16
  import { getUrlAndHeadersWithAuth } from "./getUrlAndHeadersWithAuth.js";
17
17
  import {
18
18
  fetchHelper,
@@ -3,11 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
6
+ import { validateMessages } from "@fluidframework/driver-base";
7
7
  import { IDocumentDeltaStorageService, IStream } from "@fluidframework/driver-definitions";
8
8
  import { Queue, emptyMessageStream } from "@fluidframework/driver-utils";
9
9
  import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
10
- import { validateMessages } from "@fluidframework/driver-base";
10
+ import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
11
11
 
12
12
  /**
13
13
  * Implementation of IDocumentDeltaStorageService that will return snapshot ops when fetching messages
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import { TypedEventEmitter } from "@fluid-internal/client-utils";
7
- import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
8
7
  import {
9
8
  IDocumentDeltaStorageService,
10
9
  IDocumentService,
@@ -15,6 +14,7 @@ import {
15
14
  import { UsageError } from "@fluidframework/driver-utils";
16
15
  import { IOdspResolvedUrl } from "@fluidframework/odsp-driver-definitions";
17
16
  import { IClient } from "@fluidframework/protocol-definitions";
17
+ import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
18
18
  import { LocalOdspDeltaStorageService } from "./localOdspDeltaStorageService.js";
19
19
  import { LocalOdspDocumentStorageService } from "./localOdspDocumentStorageManager.js";
20
20
 
@@ -3,14 +3,14 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
+ import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
6
7
  import { IDocumentService, IResolvedUrl } from "@fluidframework/driver-definitions";
7
8
  import { UsageError } from "@fluidframework/driver-utils";
8
9
  import { ISummaryTree } from "@fluidframework/protocol-definitions";
9
- import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
10
10
  import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
11
- import { createOdspLogger, getOdspResolvedUrl } from "../odspUtils.js";
12
11
  import { ICacheAndTracker } from "../epochTracker.js";
13
12
  import { OdspDocumentServiceFactoryCore } from "../odspDocumentServiceFactoryCore.js";
13
+ import { createOdspLogger, getOdspResolvedUrl } from "../odspUtils.js";
14
14
  import { LocalOdspDocumentService } from "./localOdspDocumentService.js";
15
15
 
16
16
  /**
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import { assert } from "@fluidframework/core-utils";
7
- import { ITelemetryLoggerExt, loggerToMonitoringContext } from "@fluidframework/telemetry-utils";
8
7
  import {
9
8
  ISnapshot,
10
9
  ISnapshotFetchOptions,
@@ -12,10 +11,11 @@ import {
12
11
  } from "@fluidframework/driver-definitions";
13
12
  import { UsageError } from "@fluidframework/driver-utils";
14
13
  import * as api from "@fluidframework/protocol-definitions";
15
- import { OdspDocumentStorageServiceBase } from "../odspDocumentStorageServiceBase.js";
14
+ import { ITelemetryLoggerExt, loggerToMonitoringContext } from "@fluidframework/telemetry-utils";
15
+ import { parseCompactSnapshotResponse } from "../compactSnapshotParser.js";
16
16
  import { IOdspSnapshot } from "../contracts.js";
17
+ import { OdspDocumentStorageServiceBase } from "../odspDocumentStorageServiceBase.js";
17
18
  import { convertOdspSnapshotToSnapshotTreeAndBlobs } from "../odspSnapshotParser.js";
18
- import { parseCompactSnapshotResponse } from "../compactSnapshotParser.js";
19
19
 
20
20
  /**
21
21
  * ODSP document storage service that works on a provided snapshot for all its processing.
package/src/odspCache.ts CHANGED
@@ -4,16 +4,16 @@
4
4
  */
5
5
 
6
6
  import { PromiseCache } from "@fluidframework/core-utils";
7
+ import { ISnapshot } from "@fluidframework/driver-definitions";
7
8
  import {
8
- IOdspResolvedUrl,
9
- IFileEntry,
9
+ ICacheEntry,
10
10
  IEntry,
11
+ IFileEntry,
12
+ IOdspResolvedUrl,
11
13
  IPersistedCache,
12
- ICacheEntry,
13
14
  ISocketStorageDiscovery,
14
15
  getKeyForCacheEntry,
15
16
  } from "@fluidframework/odsp-driver-definitions";
16
- import { ISnapshot } from "@fluidframework/driver-definitions";
17
17
 
18
18
  /**
19
19
  * Similar to IPersistedCache, but exposes cache interface for single file
@@ -6,46 +6,46 @@
6
6
  import { performance } from "@fluid-internal/client-utils";
7
7
  import { ISignalEnvelope } from "@fluidframework/core-interfaces";
8
8
  import { assert } from "@fluidframework/core-utils";
9
- import {
10
- IFluidErrorBase,
11
- MonitoringContext,
12
- normalizeError,
13
- } from "@fluidframework/telemetry-utils";
14
9
  import {
15
10
  IDocumentDeltaConnection,
16
- IResolvedUrl,
17
11
  IDocumentServicePolicies,
12
+ IResolvedUrl,
18
13
  } from "@fluidframework/driver-definitions";
19
14
  import {
20
15
  DeltaStreamConnectionForbiddenError,
21
16
  NonRetryableError,
22
17
  } from "@fluidframework/driver-utils";
18
+ import { hasFacetCodes } from "@fluidframework/odsp-doclib-utils/internal";
19
+ import {
20
+ HostStoragePolicy,
21
+ type IOdspError,
22
+ IOdspResolvedUrl,
23
+ ISocketStorageDiscovery,
24
+ InstrumentedStorageTokenFetcher,
25
+ OdspErrorTypes,
26
+ TokenFetchOptions,
27
+ } from "@fluidframework/odsp-driver-definitions";
23
28
  import {
24
29
  IClient,
25
30
  ISequencedDocumentMessage,
26
31
  ISignalMessage,
27
32
  } from "@fluidframework/protocol-definitions";
28
33
  import {
29
- IOdspResolvedUrl,
30
- TokenFetchOptions,
31
- HostStoragePolicy,
32
- InstrumentedStorageTokenFetcher,
33
- ISocketStorageDiscovery,
34
- OdspErrorTypes,
35
- type IOdspError,
36
- } from "@fluidframework/odsp-driver-definitions";
37
- import { hasFacetCodes } from "@fluidframework/odsp-doclib-utils/internal";
34
+ IFluidErrorBase,
35
+ MonitoringContext,
36
+ normalizeError,
37
+ } from "@fluidframework/telemetry-utils";
38
+ import { policyLabelsUpdatesSignalType } from "./contracts.js";
39
+ import { EpochTracker } from "./epochTracker.js";
38
40
  import { IOdspCache } from "./odspCache.js";
39
41
  import { OdspDocumentDeltaConnection } from "./odspDocumentDeltaConnection.js";
40
42
  import {
43
+ TokenFetchOptionsEx,
41
44
  getJoinSessionCacheKey,
42
45
  getWithRetryForTokenRefresh,
43
- TokenFetchOptionsEx,
44
46
  } from "./odspUtils.js";
45
- import { fetchJoinSession } from "./vroom.js";
46
- import { EpochTracker } from "./epochTracker.js";
47
47
  import { pkgVersion as driverVersion } from "./packageVersion.js";
48
- import { policyLabelsUpdatesSignalType } from "./contracts.js";
48
+ import { fetchJoinSession } from "./vroom.js";
49
49
 
50
50
  /**
51
51
  * This OdspDelayLoadedDeltaStream is used by OdspDocumentService.ts to delay load the delta connection
@@ -219,9 +219,13 @@ export class OdspDelayLoadedDeltaStream {
219
219
  this.currentConnection = connection;
220
220
  return connection;
221
221
  } catch (error) {
222
- this.clearJoinSessionTimer();
223
- this.cache.sessionJoinCache.remove(this.joinSessionKey);
224
-
222
+ // Remove join session information from cache only if it is an error related to connect_document and not a socket related error.
223
+ // Otherwise keep it in cache so that this session can be re-used after disconnection.
224
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
225
+ if ((error as any).errorFrom === "connect_document_error") {
226
+ this.clearJoinSessionTimer();
227
+ this.cache.sessionJoinCache.remove(this.joinSessionKey);
228
+ }
225
229
  const normalizedError = this.annotateConnectionError(
226
230
  error,
227
231
  "createDeltaConnection",
@@ -3,23 +3,23 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { v4 as uuid } from "uuid";
7
6
  import { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
8
- import { validateMessages } from "@fluidframework/driver-base";
9
- import { ITelemetryLoggerExt, PerformanceEvent } from "@fluidframework/telemetry-utils";
10
7
  import { assert } from "@fluidframework/core-utils";
11
- import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
12
- import { InstrumentedStorageTokenFetcher } from "@fluidframework/odsp-driver-definitions";
8
+ import { validateMessages } from "@fluidframework/driver-base";
13
9
  import {
14
10
  IDeltasFetchResult,
15
11
  IDocumentDeltaStorageService,
16
12
  type IStream,
17
13
  } from "@fluidframework/driver-definitions";
18
14
  import { requestOps, streamObserver } from "@fluidframework/driver-utils";
15
+ import { InstrumentedStorageTokenFetcher } from "@fluidframework/odsp-driver-definitions";
16
+ import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
17
+ import { ITelemetryLoggerExt, PerformanceEvent } from "@fluidframework/telemetry-utils";
18
+ import { v4 as uuid } from "uuid";
19
19
  import { IDeltaStorageGetResponse, ISequencedDeltaOpMessage } from "./contracts.js";
20
20
  import { EpochTracker } from "./epochTracker.js";
21
- import { getWithRetryForTokenRefresh } from "./odspUtils.js";
22
21
  import { OdspDocumentStorageService } from "./odspDocumentStorageManager.js";
22
+ import { getWithRetryForTokenRefresh } from "./odspUtils.js";
23
23
 
24
24
  /**
25
25
  * Provides access to the underlying delta storage on the server for sharepoint driver.
@@ -3,16 +3,12 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
+ import { TypedEventEmitter, performance } from "@fluid-internal/client-utils";
6
7
  import { IEvent } from "@fluidframework/core-interfaces";
7
- import {
8
- ITelemetryLoggerExt,
9
- IFluidErrorBase,
10
- loggerToMonitoringContext,
11
- } from "@fluidframework/telemetry-utils";
12
- import { performance, TypedEventEmitter } from "@fluid-internal/client-utils";
13
8
  import { assert, Deferred } from "@fluidframework/core-utils";
14
9
  import { DocumentDeltaConnection } from "@fluidframework/driver-base";
15
10
  import { IAnyDriverError } from "@fluidframework/driver-definitions";
11
+ import { createGenericNetworkError } from "@fluidframework/driver-utils";
16
12
  import { OdspError } from "@fluidframework/odsp-driver-definitions";
17
13
  import {
18
14
  IClient,
@@ -23,14 +19,18 @@ import {
23
19
  ISequencedDocumentMessage,
24
20
  ISignalMessage,
25
21
  } from "@fluidframework/protocol-definitions";
22
+ import {
23
+ IFluidErrorBase,
24
+ ITelemetryLoggerExt,
25
+ loggerToMonitoringContext,
26
+ } from "@fluidframework/telemetry-utils";
26
27
  import { Socket } from "socket.io-client";
27
28
  import { v4 as uuid } from "uuid";
28
- import { createGenericNetworkError } from "@fluidframework/driver-utils";
29
- import { IOdspSocketError, IGetOpsResponse, IFlushOpsResponse } from "./contracts.js";
29
+ import { IFlushOpsResponse, IGetOpsResponse, IOdspSocketError } from "./contracts.js";
30
30
  import { EpochTracker } from "./epochTracker.js";
31
31
  import { errorObjectFromSocketError } from "./odspError.js";
32
- import { SocketIOClientStatic } from "./socketModule.js";
33
32
  import { pkgVersion } from "./packageVersion.js";
33
+ import { SocketIOClientStatic } from "./socketModule.js";
34
34
 
35
35
  const protocolVersions = ["^0.4.0", "^0.3.0", "^0.2.0", "^0.1.0"];
36
36
  const feature_get_ops = "api_get_ops";
@@ -740,7 +740,12 @@ export class OdspDocumentDeltaConnection extends DocumentDeltaConnection {
740
740
  return !this.disposed && this.socket.connected;
741
741
  }
742
742
 
743
- protected emitMessages(type: string, messages: IDocumentMessage[][]): void {
743
+ protected override emitMessages(type: "submitOp", messages: IDocumentMessage[][]): void;
744
+ protected override emitMessages(
745
+ type: "submitSignal",
746
+ messages: string[][] | ISentSignalMessage[],
747
+ ): void;
748
+ protected override emitMessages(type: string, messages: unknown): void {
744
749
  // Only submit the op/signals if we are connected.
745
750
  if (this.connected) {
746
751
  this.socket.emit(type, this.clientId, messages);
@@ -761,15 +766,13 @@ export class OdspDocumentDeltaConnection extends DocumentDeltaConnection {
761
766
  * @param content - Content of the signal.
762
767
  * @param targetClientId - When specified, the signal is only sent to the provided client id.
763
768
  */
764
- public submitSignal(content: IDocumentMessage, targetClientId?: string): void {
769
+ public submitSignal(content: string, targetClientId?: string): void {
765
770
  const signal: ISentSignalMessage = {
766
771
  content,
767
772
  targetClientId,
768
773
  };
769
774
 
770
- // back-compat: the typing for this method and emitMessages is incorrect, will be fixed in a future PR
771
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
772
- this.emitMessages("submitSignal", [signal] as any);
775
+ this.emitMessages("submitSignal", [signal]);
773
776
  }
774
777
 
775
778
  /**
@@ -3,40 +3,40 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import {
7
- ITelemetryLoggerExt,
8
- createChildMonitoringContext,
9
- MonitoringContext,
10
- } from "@fluidframework/telemetry-utils";
11
6
  import { TypedEventEmitter } from "@fluid-internal/client-utils";
12
7
  import { assert } from "@fluidframework/core-utils";
13
8
  import {
14
9
  IDocumentDeltaConnection,
15
10
  IDocumentDeltaStorageService,
16
11
  IDocumentService,
17
- IResolvedUrl,
18
- IDocumentStorageService,
19
- IDocumentServicePolicies,
20
12
  IDocumentServiceEvents,
13
+ IDocumentServicePolicies,
14
+ IDocumentStorageService,
15
+ IResolvedUrl,
21
16
  } from "@fluidframework/driver-definitions";
22
- import { IClient, ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
23
17
  import {
24
- IOdspResolvedUrl,
25
- TokenFetchOptions,
26
- IEntry,
27
18
  HostStoragePolicy,
19
+ IEntry,
20
+ IOdspResolvedUrl,
28
21
  InstrumentedStorageTokenFetcher,
22
+ TokenFetchOptions,
29
23
  } from "@fluidframework/odsp-driver-definitions";
24
+ import { IClient, ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
25
+ import {
26
+ ITelemetryLoggerExt,
27
+ MonitoringContext,
28
+ createChildMonitoringContext,
29
+ } from "@fluidframework/telemetry-utils";
30
30
  import { HostStoragePolicyInternal } from "./contracts.js";
31
+ import { EpochTracker } from "./epochTracker.js";
31
32
  import { IOdspCache } from "./odspCache.js";
33
+ import type { OdspDelayLoadedDeltaStream } from "./odspDelayLoadedDeltaStream.js";
32
34
  import { OdspDeltaStorageService, OdspDeltaStorageWithCache } from "./odspDeltaStorageService.js";
33
35
  import { OdspDocumentStorageService } from "./odspDocumentStorageManager.js";
34
- import { getOdspResolvedUrl } from "./odspUtils.js";
35
36
  import { isOdcOrigin } from "./odspUrlHelper.js";
36
- import { EpochTracker } from "./epochTracker.js";
37
+ import { getOdspResolvedUrl } from "./odspUtils.js";
37
38
  import { OpsCache } from "./opsCaching.js";
38
39
  import { RetryErrorsStorageAdapter } from "./retryErrorsStorageAdapter.js";
39
- import type { OdspDelayLoadedDeltaStream } from "./odspDelayLoadedDeltaStream.js";
40
40
 
41
41
  /**
42
42
  * The DocumentService manages the Socket.IO connection and manages routing requests to connected
@@ -5,14 +5,14 @@
5
5
 
6
6
  import { IDocumentServiceFactory } from "@fluidframework/driver-definitions";
7
7
  import {
8
+ HostStoragePolicy,
9
+ IPersistedCache,
8
10
  OdspResourceTokenFetchOptions,
9
11
  TokenFetcher,
10
- IPersistedCache,
11
- HostStoragePolicy,
12
12
  } from "@fluidframework/odsp-driver-definitions";
13
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
14
13
  // eslint-disable-next-line import/no-internal-modules
15
14
  import { LocalOdspDocumentServiceFactory } from "./localOdspDriver/localOdspDocumentServiceFactory.js";
15
+ import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
16
16
 
17
17
  /**
18
18
  * Factory for creating the sharepoint document service. Use this if you want to
@@ -10,43 +10,43 @@ import {
10
10
  IDocumentServiceFactory,
11
11
  IResolvedUrl,
12
12
  } from "@fluidframework/driver-definitions";
13
- import { ISummaryTree } from "@fluidframework/protocol-definitions";
14
- import { PerformanceEvent, createChildLogger } from "@fluidframework/telemetry-utils";
15
13
  import {
16
14
  getDocAttributesFromProtocolSummary,
17
15
  isCombinedAppAndProtocolSummary,
18
16
  } from "@fluidframework/driver-utils";
19
17
  import {
20
- TokenFetchOptions,
21
- OdspResourceTokenFetchOptions,
22
- TokenFetcher,
23
- IPersistedCache,
24
18
  HostStoragePolicy,
25
19
  IFileEntry,
26
20
  IOdspUrlParts,
27
- SharingLinkScope,
28
- SharingLinkRole,
21
+ IPersistedCache,
22
+ IRelaySessionAwareDriverFactory,
29
23
  ISharingLinkKind,
30
24
  ISocketStorageDiscovery,
31
- IRelaySessionAwareDriverFactory,
25
+ OdspResourceTokenFetchOptions,
26
+ SharingLinkRole,
27
+ SharingLinkScope,
28
+ TokenFetchOptions,
29
+ TokenFetcher,
32
30
  } from "@fluidframework/odsp-driver-definitions";
31
+ import { ISummaryTree } from "@fluidframework/protocol-definitions";
32
+ import { PerformanceEvent, createChildLogger } from "@fluidframework/telemetry-utils";
33
33
  import { v4 as uuid } from "uuid";
34
+ import { ICacheAndTracker, createOdspCacheAndTracker } from "./epochTracker.js";
34
35
  import {
35
36
  INonPersistentCache,
36
37
  IPrefetchSnapshotContents,
37
38
  LocalPersistentCache,
38
39
  NonPersistentCache,
39
40
  } from "./odspCache.js";
40
- import { createOdspCacheAndTracker, ICacheAndTracker } from "./epochTracker.js";
41
41
  import { OdspDocumentService } from "./odspDocumentService.js";
42
42
  import {
43
+ IExistingFileInfo,
43
44
  INewFileInfo,
44
- getOdspResolvedUrl,
45
45
  createOdspLogger,
46
- toInstrumentedOdspTokenFetcher,
47
- IExistingFileInfo,
48
- isNewFileInfo,
49
46
  getJoinSessionCacheKey,
47
+ getOdspResolvedUrl,
48
+ isNewFileInfo,
49
+ toInstrumentedOdspTokenFetcher,
50
50
  } from "./odspUtils.js";
51
51
 
52
52
  /**
@@ -5,10 +5,10 @@
5
5
 
6
6
  import { IDocumentServiceFactory } from "@fluidframework/driver-definitions";
7
7
  import {
8
+ HostStoragePolicy,
9
+ IPersistedCache,
8
10
  OdspResourceTokenFetchOptions,
9
11
  TokenFetcher,
10
- IPersistedCache,
11
- HostStoragePolicy,
12
12
  } from "@fluidframework/odsp-driver-definitions";
13
13
  import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
14
14
 
@@ -3,64 +3,64 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import {
7
- generateStack,
8
- ITelemetryLoggerExt,
9
- loggerToMonitoringContext,
10
- normalizeError,
11
- overwriteStack,
12
- PerformanceEvent,
13
- } from "@fluidframework/telemetry-utils";
14
6
  import { performance } from "@fluid-internal/client-utils";
15
- import { assert, delay } from "@fluidframework/core-utils";
16
7
  import { LogLevel } from "@fluidframework/core-interfaces";
17
- import * as api from "@fluidframework/protocol-definitions";
8
+ import { assert, delay } from "@fluidframework/core-utils";
18
9
  import { promiseRaceWithWinner } from "@fluidframework/driver-base";
19
10
  import {
20
- ISummaryContext,
21
11
  FetchSource,
22
12
  ISnapshot,
23
13
  ISnapshotFetchOptions,
14
+ ISummaryContext,
24
15
  } from "@fluidframework/driver-definitions";
25
- import { RateLimiter, NonRetryableError } from "@fluidframework/driver-utils";
16
+ import { NonRetryableError, RateLimiter } from "@fluidframework/driver-utils";
26
17
  import {
27
18
  IOdspResolvedUrl,
28
19
  ISnapshotOptions,
29
- OdspErrorTypes,
30
20
  InstrumentedStorageTokenFetcher,
21
+ OdspErrorTypes,
31
22
  getKeyForCacheEntry,
32
23
  } from "@fluidframework/odsp-driver-definitions";
24
+ import * as api from "@fluidframework/protocol-definitions";
25
+ import {
26
+ ITelemetryLoggerExt,
27
+ PerformanceEvent,
28
+ generateStack,
29
+ loggerToMonitoringContext,
30
+ normalizeError,
31
+ overwriteStack,
32
+ } from "@fluidframework/telemetry-utils";
33
33
  import {
34
- IDocumentStorageGetVersionsResponse,
35
34
  HostStoragePolicyInternal,
36
- IVersionedValueWithEpoch,
35
+ IDocumentStorageGetVersionsResponse,
37
36
  // eslint-disable-next-line import/no-deprecated
38
37
  ISnapshotCachedEntry,
39
38
  ISnapshotCachedEntry2,
39
+ IVersionedValueWithEpoch,
40
40
  } from "./contracts.js";
41
+ import { EpochTracker } from "./epochTracker.js";
41
42
  import {
43
+ ISnapshotRequestAndResponseOptions,
44
+ SnapshotFormatSupportType,
42
45
  downloadSnapshot,
43
46
  evalBlobsAndTrees,
44
47
  fetchSnapshot,
45
48
  fetchSnapshotWithRedeem,
46
- ISnapshotRequestAndResponseOptions,
47
- SnapshotFormatSupportType,
48
49
  } from "./fetchSnapshot.js";
49
50
  import { getUrlAndHeadersWithAuth } from "./getUrlAndHeadersWithAuth.js";
50
51
  import { IOdspCache, IPrefetchSnapshotContents } from "./odspCache.js";
52
+ import { FlushResult } from "./odspDocumentDeltaConnection.js";
53
+ import { OdspDocumentStorageServiceBase } from "./odspDocumentStorageServiceBase.js";
54
+ import type { OdspSummaryUploadManager } from "./odspSummaryUploadManager.js";
51
55
  import {
56
+ IOdspResponse,
52
57
  createCacheSnapshotKey,
53
58
  getWithRetryForTokenRefresh,
54
- IOdspResponse,
55
59
  isInstanceOfISnapshot,
56
60
  isSnapshotFetchForLoadingGroup,
57
61
  useLegacyFlowWithoutGroupsForSnapshotFetch,
58
62
  } from "./odspUtils.js";
59
- import { EpochTracker } from "./epochTracker.js";
60
- import type { OdspSummaryUploadManager } from "./odspSummaryUploadManager.js";
61
- import { FlushResult } from "./odspDocumentDeltaConnection.js";
62
63
  import { pkgVersion as driverVersion } from "./packageVersion.js";
63
- import { OdspDocumentStorageServiceBase } from "./odspDocumentStorageServiceBase.js";
64
64
 
65
65
  export const defaultSummarizerCacheExpiryTimeout: number = 60 * 1000; // 60 seconds.
66
66
 
@@ -5,14 +5,14 @@
5
5
 
6
6
  import { assert } from "@fluidframework/core-utils";
7
7
  import {
8
+ FetchSource,
9
+ FiveDaysMs,
8
10
  IDocumentStorageService,
9
11
  IDocumentStorageServicePolicies,
10
- ISummaryContext,
11
- LoaderCachingPolicy,
12
- FiveDaysMs,
13
- FetchSource,
14
12
  ISnapshot,
15
13
  ISnapshotFetchOptions,
14
+ ISummaryContext,
15
+ LoaderCachingPolicy,
16
16
  } from "@fluidframework/driver-definitions";
17
17
  import { maximumCacheDurationMs } from "@fluidframework/odsp-driver-definitions";
18
18
  import * as api from "@fluidframework/protocol-definitions";
@@ -3,21 +3,21 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/core-utils";
7
6
  import { IRequest } from "@fluidframework/core-interfaces";
7
+ import { assert } from "@fluidframework/core-utils";
8
8
  import {
9
9
  DriverHeader,
10
10
  IContainerPackageInfo,
11
11
  IResolvedUrl,
12
12
  IUrlResolver,
13
13
  } from "@fluidframework/driver-definitions";
14
- import { IOdspResolvedUrl, OdspErrorTypes } from "@fluidframework/odsp-driver-definitions";
15
14
  import { NonRetryableError } from "@fluidframework/driver-utils";
15
+ import { IOdspResolvedUrl, OdspErrorTypes } from "@fluidframework/odsp-driver-definitions";
16
+ import { ClpCompliantAppHeader } from "./contractsPublic.js";
16
17
  import { createOdspUrl } from "./createOdspUrl.js";
18
+ import { getHashedDocumentId } from "./odspPublicUtils.js";
17
19
  import { getApiRoot } from "./odspUrlHelper.js";
18
20
  import { getOdspResolvedUrl } from "./odspUtils.js";
19
- import { getHashedDocumentId } from "./odspPublicUtils.js";
20
- import { ClpCompliantAppHeader } from "./contractsPublic.js";
21
21
  import { pkgVersion } from "./packageVersion.js";
22
22
 
23
23
  function getUrlBase(
@@ -3,30 +3,30 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
+ import { IRequest, ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
6
7
  import { PromiseCache } from "@fluidframework/core-utils";
7
- import { ITelemetryBaseLogger, IRequest } from "@fluidframework/core-interfaces";
8
8
  import {
9
9
  IContainerPackageInfo,
10
10
  IResolvedUrl,
11
11
  IUrlResolver,
12
12
  } from "@fluidframework/driver-definitions";
13
- import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
14
13
  import {
15
14
  IOdspResolvedUrl,
16
15
  IdentityType,
17
16
  OdspResourceTokenFetchOptions,
18
17
  TokenFetcher,
19
18
  } from "@fluidframework/odsp-driver-definitions";
19
+ import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
20
+ import { OdspFluidDataStoreLocator, SharingLinkHeader } from "./contractsPublic.js";
21
+ import { createOdspUrl } from "./createOdspUrl.js";
22
+ import { getFileLink } from "./getFileLink.js";
23
+ import { OdspDriverUrlResolver } from "./odspDriverUrlResolver.js";
20
24
  import {
21
25
  getLocatorFromOdspUrl,
22
- storeLocatorInOdspUrl,
23
26
  locatorQueryParamName,
27
+ storeLocatorInOdspUrl,
24
28
  } from "./odspFluidFileLink.js";
25
- import { OdspFluidDataStoreLocator, SharingLinkHeader } from "./contractsPublic.js";
26
- import { createOdspUrl } from "./createOdspUrl.js";
27
- import { OdspDriverUrlResolver } from "./odspDriverUrlResolver.js";
28
- import { getOdspResolvedUrl, createOdspLogger } from "./odspUtils.js";
29
- import { getFileLink } from "./getFileLink.js";
29
+ import { createOdspLogger, getOdspResolvedUrl } from "./odspUtils.js";
30
30
 
31
31
  /**
32
32
  * Properties passed to the code responsible for fetching share link for a file.
package/src/odspError.ts CHANGED
@@ -3,10 +3,10 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { createOdspNetworkError } from "@fluidframework/odsp-doclib-utils/internal";
7
6
  import { NonRetryableError } from "@fluidframework/driver-utils";
7
+ import { createOdspNetworkError } from "@fluidframework/odsp-doclib-utils/internal";
8
8
  import { OdspError, OdspErrorTypes } from "@fluidframework/odsp-driver-definitions";
9
- import { getCircularReplacer, IFluidErrorBase } from "@fluidframework/telemetry-utils";
9
+ import { IFluidErrorBase, getCircularReplacer } from "@fluidframework/telemetry-utils";
10
10
  import { IOdspSocketError } from "./contracts.js";
11
11
  import { pkgVersion as driverVersion } from "./packageVersion.js";
12
12
 
@@ -4,8 +4,8 @@
4
4
  */
5
5
 
6
6
  import { fromBase64ToUtf8, fromUtf8ToBase64 } from "@fluid-internal/client-utils";
7
+ import { OdcApiSiteOrigin, OdcFileSiteOrigin } from "./constants.js";
7
8
  import { OdspFluidDataStoreLocator } from "./contractsPublic.js";
8
- import { OdcFileSiteOrigin, OdcApiSiteOrigin } from "./constants.js";
9
9
 
10
10
  const fluidSignature = "1";
11
11
  const fluidSignatureParamName = "fluid";
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { hashFile, IsoBuffer } from "@fluid-internal/client-utils";
6
+ import { IsoBuffer, hashFile } from "@fluid-internal/client-utils";
7
7
  import { ISequencedDocumentMessage, ISnapshotTree } from "@fluidframework/protocol-definitions";
8
8
 
9
9
  /**
@@ -5,8 +5,8 @@
5
5
 
6
6
  import { stringToBuffer } from "@fluid-internal/client-utils";
7
7
  import { assert } from "@fluidframework/core-utils";
8
- import * as api from "@fluidframework/protocol-definitions";
9
8
  import { ISnapshot } from "@fluidframework/driver-definitions";
9
+ import * as api from "@fluidframework/protocol-definitions";
10
10
  import { IOdspSnapshot, IOdspSnapshotCommit } from "./contracts.js";
11
11
 
12
12
  /**