@fluidframework/routerlicious-driver 2.0.0-rc.2.0.1 → 2.0.0-rc.3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/api-extractor-lint.json +1 -1
- package/api-extractor.json +1 -1
- package/api-report/routerlicious-driver.api.md +3 -3
- package/beta.d.ts +11 -0
- package/{lib/storageContracts.mjs → dist/axios.cjs} +3 -2
- package/dist/axios.cjs.map +1 -0
- package/dist/axios.d.cts +7 -0
- package/dist/axios.d.cts.map +1 -0
- package/dist/beta.d.ts +15 -0
- package/dist/cache.js +2 -2
- package/dist/cache.js.map +1 -1
- package/dist/defaultTokenProvider.d.ts +1 -1
- package/dist/defaultTokenProvider.d.ts.map +1 -1
- package/dist/defaultTokenProvider.js.map +1 -1
- package/dist/deltaStorageService.d.ts +3 -3
- package/dist/deltaStorageService.d.ts.map +1 -1
- package/dist/deltaStorageService.js +12 -12
- package/dist/deltaStorageService.js.map +1 -1
- package/dist/documentDeltaConnection.d.ts +4 -3
- package/dist/documentDeltaConnection.d.ts.map +1 -1
- package/dist/documentDeltaConnection.js +6 -6
- package/dist/documentDeltaConnection.js.map +1 -1
- package/dist/documentService.d.ts +7 -7
- package/dist/documentService.d.ts.map +1 -1
- package/dist/documentService.js +30 -31
- package/dist/documentService.js.map +1 -1
- package/dist/documentServiceFactory.d.ts +3 -3
- package/dist/documentServiceFactory.d.ts.map +1 -1
- package/dist/documentServiceFactory.js +43 -43
- package/dist/documentServiceFactory.js.map +1 -1
- package/dist/documentStorageService.d.ts +8 -8
- package/dist/documentStorageService.d.ts.map +1 -1
- package/dist/documentStorageService.js +9 -9
- package/dist/documentStorageService.js.map +1 -1
- package/dist/errorUtils.d.ts +4 -3
- package/dist/errorUtils.d.ts.map +1 -1
- package/dist/errorUtils.js +8 -9
- package/dist/errorUtils.js.map +1 -1
- package/dist/gitManager.d.ts +3 -3
- package/dist/gitManager.d.ts.map +1 -1
- package/dist/gitManager.js.map +1 -1
- package/dist/historian.d.ts +4 -4
- package/dist/historian.d.ts.map +1 -1
- package/dist/historian.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +18 -0
- package/dist/mapWithExpiration.js +2 -2
- package/dist/mapWithExpiration.js.map +1 -1
- package/dist/nullBlobStorageService.d.ts +1 -1
- package/dist/nullBlobStorageService.d.ts.map +1 -1
- package/dist/nullBlobStorageService.js.map +1 -1
- package/dist/package.json +3 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/public.d.ts +15 -0
- package/dist/r11sSnapshotParser.d.ts +1 -1
- package/dist/r11sSnapshotParser.d.ts.map +1 -1
- package/dist/r11sSnapshotParser.js.map +1 -1
- package/dist/restWrapper.d.ts +4 -4
- package/dist/restWrapper.d.ts.map +1 -1
- package/dist/restWrapper.js +16 -16
- package/dist/restWrapper.js.map +1 -1
- package/dist/restWrapperBase.d.ts +2 -2
- package/dist/restWrapperBase.d.ts.map +1 -1
- package/dist/restWrapperBase.js.map +1 -1
- package/dist/retriableGitManager.d.ts +3 -3
- package/dist/retriableGitManager.d.ts.map +1 -1
- package/dist/retriableGitManager.js +2 -2
- package/dist/retriableGitManager.js.map +1 -1
- package/dist/routerliciousResolvedUrl.d.ts +1 -1
- package/dist/routerliciousResolvedUrl.d.ts.map +1 -1
- package/dist/routerliciousResolvedUrl.js.map +1 -1
- package/dist/shreddedSummaryDocumentStorageService.d.ts +6 -6
- package/dist/shreddedSummaryDocumentStorageService.d.ts.map +1 -1
- package/dist/shreddedSummaryDocumentStorageService.js +13 -13
- package/dist/shreddedSummaryDocumentStorageService.js.map +1 -1
- package/dist/storageContracts.d.ts +2 -2
- package/dist/storageContracts.d.ts.map +1 -1
- package/dist/storageContracts.js.map +1 -1
- package/dist/summaryTreeUploadManager.d.ts +1 -1
- package/dist/summaryTreeUploadManager.d.ts.map +1 -1
- package/dist/summaryTreeUploadManager.js +6 -6
- package/dist/summaryTreeUploadManager.js.map +1 -1
- package/dist/treeUtils.d.ts +2 -2
- package/dist/treeUtils.d.ts.map +1 -1
- package/dist/treeUtils.js +4 -4
- package/dist/treeUtils.js.map +1 -1
- package/dist/urlUtils.d.ts +1 -1
- package/dist/urlUtils.d.ts.map +1 -1
- package/dist/urlUtils.js.map +1 -1
- package/dist/wholeSummaryDocumentStorageService.d.ts +6 -6
- package/dist/wholeSummaryDocumentStorageService.d.ts.map +1 -1
- package/dist/wholeSummaryDocumentStorageService.js +25 -25
- package/dist/wholeSummaryDocumentStorageService.js.map +1 -1
- package/dist/wholeSummaryUploadManager.d.ts +1 -1
- package/dist/wholeSummaryUploadManager.d.ts.map +1 -1
- package/dist/wholeSummaryUploadManager.js.map +1 -1
- package/internal.d.ts +11 -0
- package/legacy.d.ts +11 -0
- package/lib/axios.cjs +7 -0
- package/lib/axios.cjs.map +1 -0
- package/lib/axios.d.cts +7 -0
- package/lib/axios.d.cts.map +1 -0
- package/lib/beta.d.ts +15 -0
- package/lib/{cache.d.mts → cache.d.ts} +1 -1
- package/lib/cache.d.ts.map +1 -0
- package/lib/{cache.mjs → cache.js} +2 -2
- package/lib/cache.js.map +1 -0
- package/lib/{contracts.d.mts → contracts.d.ts} +1 -1
- package/lib/contracts.d.ts.map +1 -0
- package/lib/{policies.mjs → contracts.js} +1 -1
- package/lib/contracts.js.map +1 -0
- package/lib/{createNewUtils.d.mts → createNewUtils.d.ts} +1 -1
- package/lib/createNewUtils.d.ts.map +1 -0
- package/lib/{createNewUtils.mjs → createNewUtils.js} +1 -1
- package/lib/createNewUtils.js.map +1 -0
- package/lib/{defaultTokenProvider.d.mts → defaultTokenProvider.d.ts} +2 -2
- package/lib/defaultTokenProvider.d.ts.map +1 -0
- package/lib/{defaultTokenProvider.mjs → defaultTokenProvider.js} +1 -1
- package/lib/defaultTokenProvider.js.map +1 -0
- package/lib/{definitions.d.mts → definitions.d.ts} +1 -1
- package/lib/definitions.d.ts.map +1 -0
- package/lib/{definitions.mjs → definitions.js} +1 -1
- package/lib/definitions.js.map +1 -0
- package/lib/{deltaStorageService.d.mts → deltaStorageService.d.ts} +4 -4
- package/lib/deltaStorageService.d.ts.map +1 -0
- package/lib/{deltaStorageService.mjs → deltaStorageService.js} +4 -4
- package/lib/deltaStorageService.js.map +1 -0
- package/lib/{documentDeltaConnection.d.mts → documentDeltaConnection.d.ts} +5 -4
- package/lib/documentDeltaConnection.d.ts.map +1 -0
- package/lib/{documentDeltaConnection.mjs → documentDeltaConnection.js} +4 -4
- package/lib/documentDeltaConnection.js.map +1 -0
- package/lib/{documentService.d.mts → documentService.d.ts} +8 -8
- package/lib/documentService.d.ts.map +1 -0
- package/lib/{documentService.mjs → documentService.js} +13 -14
- package/lib/documentService.js.map +1 -0
- package/lib/{documentServiceFactory.d.mts → documentServiceFactory.d.ts} +4 -4
- package/lib/documentServiceFactory.d.ts.map +1 -0
- package/lib/{documentServiceFactory.mjs → documentServiceFactory.js} +12 -12
- package/lib/documentServiceFactory.js.map +1 -0
- package/lib/{documentStorageService.d.mts → documentStorageService.d.ts} +9 -9
- package/lib/documentStorageService.d.ts.map +1 -0
- package/lib/{documentStorageService.mjs → documentStorageService.js} +5 -5
- package/lib/documentStorageService.js.map +1 -0
- package/lib/{errorUtils.d.mts → errorUtils.d.ts} +5 -4
- package/lib/errorUtils.d.ts.map +1 -0
- package/lib/{errorUtils.mjs → errorUtils.js} +4 -5
- package/lib/errorUtils.js.map +1 -0
- package/lib/{gitManager.d.mts → gitManager.d.ts} +4 -4
- package/lib/gitManager.d.ts.map +1 -0
- package/lib/{gitManager.mjs → gitManager.js} +1 -1
- package/lib/gitManager.js.map +1 -0
- package/lib/{historian.d.mts → historian.d.ts} +5 -5
- package/lib/historian.d.ts.map +1 -0
- package/lib/{historian.mjs → historian.js} +1 -1
- package/lib/historian.js.map +1 -0
- package/lib/{index.d.mts → index.d.ts} +7 -7
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -0
- package/lib/legacy.d.ts +18 -0
- package/lib/{mapWithExpiration.d.mts → mapWithExpiration.d.ts} +1 -1
- package/lib/mapWithExpiration.d.ts.map +1 -0
- package/lib/{mapWithExpiration.mjs → mapWithExpiration.js} +2 -2
- package/lib/mapWithExpiration.js.map +1 -0
- package/lib/{nullBlobStorageService.d.mts → nullBlobStorageService.d.ts} +2 -2
- package/lib/nullBlobStorageService.d.ts.map +1 -0
- package/lib/{nullBlobStorageService.mjs → nullBlobStorageService.js} +1 -1
- package/lib/nullBlobStorageService.js.map +1 -0
- package/lib/{packageVersion.d.mts → packageVersion.d.ts} +2 -2
- package/lib/packageVersion.d.ts.map +1 -0
- package/lib/{packageVersion.mjs → packageVersion.js} +2 -2
- package/lib/packageVersion.js.map +1 -0
- package/lib/{policies.d.mts → policies.d.ts} +1 -1
- package/lib/policies.d.ts.map +1 -0
- package/lib/{contracts.mjs → policies.js} +1 -1
- package/lib/policies.js.map +1 -0
- package/lib/public.d.ts +15 -0
- package/lib/{r11sSnapshotParser.d.mts → r11sSnapshotParser.d.ts} +2 -2
- package/lib/r11sSnapshotParser.d.ts.map +1 -0
- package/lib/{r11sSnapshotParser.mjs → r11sSnapshotParser.js} +1 -1
- package/lib/r11sSnapshotParser.js.map +1 -0
- package/lib/{restWrapper.d.mts → restWrapper.d.ts} +5 -5
- package/lib/restWrapper.d.ts.map +1 -0
- package/lib/{restWrapper.mjs → restWrapper.js} +8 -8
- package/lib/restWrapper.js.map +1 -0
- package/lib/{restWrapperBase.d.mts → restWrapperBase.d.ts} +3 -3
- package/lib/restWrapperBase.d.ts.map +1 -0
- package/lib/{restWrapperBase.mjs → restWrapperBase.js} +1 -1
- package/lib/restWrapperBase.js.map +1 -0
- package/lib/{retriableGitManager.d.mts → retriableGitManager.d.ts} +4 -4
- package/lib/retriableGitManager.d.ts.map +1 -0
- package/lib/{retriableGitManager.mjs → retriableGitManager.js} +2 -2
- package/lib/retriableGitManager.js.map +1 -0
- package/lib/{routerliciousResolvedUrl.d.mts → routerliciousResolvedUrl.d.ts} +2 -2
- package/lib/routerliciousResolvedUrl.d.ts.map +1 -0
- package/lib/{routerliciousResolvedUrl.mjs → routerliciousResolvedUrl.js} +1 -1
- package/lib/routerliciousResolvedUrl.js.map +1 -0
- package/lib/{shreddedSummaryDocumentStorageService.d.mts → shreddedSummaryDocumentStorageService.d.ts} +7 -7
- package/lib/shreddedSummaryDocumentStorageService.d.ts.map +1 -0
- package/lib/{shreddedSummaryDocumentStorageService.mjs → shreddedSummaryDocumentStorageService.js} +6 -6
- package/lib/shreddedSummaryDocumentStorageService.js.map +1 -0
- package/lib/{storageContracts.d.mts → storageContracts.d.ts} +3 -3
- package/lib/storageContracts.d.ts.map +1 -0
- package/lib/storageContracts.js +6 -0
- package/lib/storageContracts.js.map +1 -0
- package/lib/{summaryTreeUploadManager.d.mts → summaryTreeUploadManager.d.ts} +2 -2
- package/lib/summaryTreeUploadManager.d.ts.map +1 -0
- package/lib/{summaryTreeUploadManager.mjs → summaryTreeUploadManager.js} +3 -3
- package/lib/summaryTreeUploadManager.js.map +1 -0
- package/lib/{tokens.d.mts → tokens.d.ts} +1 -1
- package/lib/tokens.d.ts.map +1 -0
- package/lib/{tokens.mjs → tokens.js} +1 -1
- package/lib/tokens.js.map +1 -0
- package/lib/{treeUtils.d.mts → treeUtils.d.ts} +3 -3
- package/lib/treeUtils.d.ts.map +1 -0
- package/lib/{treeUtils.mjs → treeUtils.js} +2 -2
- package/lib/treeUtils.js.map +1 -0
- package/lib/{urlUtils.d.mts → urlUtils.d.ts} +2 -2
- package/lib/urlUtils.d.ts.map +1 -0
- package/lib/{urlUtils.mjs → urlUtils.js} +1 -1
- package/lib/urlUtils.js.map +1 -0
- package/lib/{wholeSummaryDocumentStorageService.d.mts → wholeSummaryDocumentStorageService.d.ts} +7 -7
- package/lib/wholeSummaryDocumentStorageService.d.ts.map +1 -0
- package/lib/{wholeSummaryDocumentStorageService.mjs → wholeSummaryDocumentStorageService.js} +9 -9
- package/lib/wholeSummaryDocumentStorageService.js.map +1 -0
- package/lib/{wholeSummaryUploadManager.d.mts → wholeSummaryUploadManager.d.ts} +2 -2
- package/lib/wholeSummaryUploadManager.d.ts.map +1 -0
- package/lib/{wholeSummaryUploadManager.mjs → wholeSummaryUploadManager.js} +1 -1
- package/lib/wholeSummaryUploadManager.js.map +1 -0
- package/package.json +50 -68
- package/src/axios.cts +8 -0
- package/src/cache.ts +1 -1
- package/src/defaultTokenProvider.ts +1 -1
- package/src/deltaStorageService.ts +11 -9
- package/src/documentDeltaConnection.ts +7 -5
- package/src/documentService.ts +26 -20
- package/src/documentServiceFactory.ts +19 -18
- package/src/documentStorageService.ts +12 -11
- package/src/errorUtils.ts +9 -12
- package/src/gitManager.ts +4 -3
- package/src/historian.ts +5 -4
- package/src/index.ts +6 -6
- package/src/mapWithExpiration.ts +1 -1
- package/src/nullBlobStorageService.ts +4 -1
- package/src/packageVersion.ts +1 -1
- package/src/r11sSnapshotParser.ts +7 -2
- package/src/restWrapper.ts +15 -13
- package/src/restWrapperBase.ts +2 -2
- package/src/retriableGitManager.ts +5 -4
- package/src/routerliciousResolvedUrl.ts +1 -1
- package/src/shreddedSummaryDocumentStorageService.ts +17 -16
- package/src/storageContracts.ts +3 -2
- package/src/summaryTreeUploadManager.ts +4 -3
- package/src/treeUtils.ts +4 -3
- package/src/urlUtils.ts +1 -1
- package/src/wholeSummaryDocumentStorageService.ts +21 -20
- package/src/wholeSummaryUploadManager.ts +2 -1
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +2 -5
- package/api-extractor-esm.json +0 -4
- package/dist/routerlicious-driver-alpha.d.ts +0 -113
- package/dist/routerlicious-driver-beta.d.ts +0 -97
- package/dist/routerlicious-driver-public.d.ts +0 -97
- package/dist/routerlicious-driver-untrimmed.d.ts +0 -260
- package/lib/cache.d.mts.map +0 -1
- package/lib/cache.mjs.map +0 -1
- package/lib/contracts.d.mts.map +0 -1
- package/lib/contracts.mjs.map +0 -1
- package/lib/createNewUtils.d.mts.map +0 -1
- package/lib/createNewUtils.mjs.map +0 -1
- package/lib/defaultTokenProvider.d.mts.map +0 -1
- package/lib/defaultTokenProvider.mjs.map +0 -1
- package/lib/definitions.d.mts.map +0 -1
- package/lib/definitions.mjs.map +0 -1
- package/lib/deltaStorageService.d.mts.map +0 -1
- package/lib/deltaStorageService.mjs.map +0 -1
- package/lib/documentDeltaConnection.d.mts.map +0 -1
- package/lib/documentDeltaConnection.mjs.map +0 -1
- package/lib/documentService.d.mts.map +0 -1
- package/lib/documentService.mjs.map +0 -1
- package/lib/documentServiceFactory.d.mts.map +0 -1
- package/lib/documentServiceFactory.mjs.map +0 -1
- package/lib/documentStorageService.d.mts.map +0 -1
- package/lib/documentStorageService.mjs.map +0 -1
- package/lib/errorUtils.d.mts.map +0 -1
- package/lib/errorUtils.mjs.map +0 -1
- package/lib/gitManager.d.mts.map +0 -1
- package/lib/gitManager.mjs.map +0 -1
- package/lib/historian.d.mts.map +0 -1
- package/lib/historian.mjs.map +0 -1
- package/lib/index.d.mts.map +0 -1
- package/lib/index.mjs +0 -8
- package/lib/index.mjs.map +0 -1
- package/lib/mapWithExpiration.d.mts.map +0 -1
- package/lib/mapWithExpiration.mjs.map +0 -1
- package/lib/nullBlobStorageService.d.mts.map +0 -1
- package/lib/nullBlobStorageService.mjs.map +0 -1
- package/lib/packageVersion.d.mts.map +0 -1
- package/lib/packageVersion.mjs.map +0 -1
- package/lib/policies.d.mts.map +0 -1
- package/lib/policies.mjs.map +0 -1
- package/lib/r11sSnapshotParser.d.mts.map +0 -1
- package/lib/r11sSnapshotParser.mjs.map +0 -1
- package/lib/restWrapper.d.mts.map +0 -1
- package/lib/restWrapper.mjs.map +0 -1
- package/lib/restWrapperBase.d.mts.map +0 -1
- package/lib/restWrapperBase.mjs.map +0 -1
- package/lib/retriableGitManager.d.mts.map +0 -1
- package/lib/retriableGitManager.mjs.map +0 -1
- package/lib/routerlicious-driver-alpha.d.mts +0 -113
- package/lib/routerlicious-driver-beta.d.mts +0 -97
- package/lib/routerlicious-driver-public.d.mts +0 -97
- package/lib/routerlicious-driver-untrimmed.d.mts +0 -260
- package/lib/routerliciousResolvedUrl.d.mts.map +0 -1
- package/lib/routerliciousResolvedUrl.mjs.map +0 -1
- package/lib/shreddedSummaryDocumentStorageService.d.mts.map +0 -1
- package/lib/shreddedSummaryDocumentStorageService.mjs.map +0 -1
- package/lib/storageContracts.d.mts.map +0 -1
- package/lib/storageContracts.mjs.map +0 -1
- package/lib/summaryTreeUploadManager.d.mts.map +0 -1
- package/lib/summaryTreeUploadManager.mjs.map +0 -1
- package/lib/tokens.d.mts.map +0 -1
- package/lib/tokens.mjs.map +0 -1
- package/lib/treeUtils.d.mts.map +0 -1
- package/lib/treeUtils.mjs.map +0 -1
- package/lib/urlUtils.d.mts.map +0 -1
- package/lib/urlUtils.mjs.map +0 -1
- package/lib/wholeSummaryDocumentStorageService.d.mts.map +0 -1
- package/lib/wholeSummaryDocumentStorageService.mjs.map +0 -1
- package/lib/wholeSummaryUploadManager.d.mts.map +0 -1
- package/lib/wholeSummaryUploadManager.mjs.map +0 -1
- /package/{dist → lib}/tsdoc-metadata.json +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/routerlicious-driver",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.3.0.0",
|
|
4
4
|
"description": "Socket.IO + Git implementation of Fluid service API",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -11,72 +11,62 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": "Microsoft and contributors",
|
|
13
13
|
"sideEffects": false,
|
|
14
|
+
"type": "module",
|
|
14
15
|
"exports": {
|
|
15
16
|
".": {
|
|
16
17
|
"import": {
|
|
17
|
-
"types": "./lib/
|
|
18
|
-
"default": "./lib/index.
|
|
18
|
+
"types": "./lib/public.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
19
20
|
},
|
|
20
21
|
"require": {
|
|
21
|
-
"types": "./dist/
|
|
22
|
+
"types": "./dist/public.d.ts",
|
|
22
23
|
"default": "./dist/index.js"
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
|
-
"./
|
|
26
|
+
"./beta": {
|
|
26
27
|
"import": {
|
|
27
|
-
"types": "./lib/
|
|
28
|
-
"default": "./lib/index.
|
|
28
|
+
"types": "./lib/beta.d.ts",
|
|
29
|
+
"default": "./lib/index.js"
|
|
29
30
|
},
|
|
30
31
|
"require": {
|
|
31
|
-
"types": "./dist/
|
|
32
|
+
"types": "./dist/beta.d.ts",
|
|
32
33
|
"default": "./dist/index.js"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
|
-
"./
|
|
36
|
+
"./legacy": {
|
|
36
37
|
"import": {
|
|
37
|
-
"types": "./lib/
|
|
38
|
-
"default": "./lib/index.
|
|
38
|
+
"types": "./lib/legacy.d.ts",
|
|
39
|
+
"default": "./lib/index.js"
|
|
39
40
|
},
|
|
40
41
|
"require": {
|
|
41
|
-
"types": "./dist/
|
|
42
|
+
"types": "./dist/legacy.d.ts",
|
|
42
43
|
"default": "./dist/index.js"
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
"./internal": {
|
|
46
47
|
"import": {
|
|
47
|
-
"types": "./lib/index.d.
|
|
48
|
-
"default": "./lib/index.
|
|
48
|
+
"types": "./lib/index.d.ts",
|
|
49
|
+
"default": "./lib/index.js"
|
|
49
50
|
},
|
|
50
51
|
"require": {
|
|
51
52
|
"types": "./dist/index.d.ts",
|
|
52
53
|
"default": "./dist/index.js"
|
|
53
54
|
}
|
|
54
|
-
},
|
|
55
|
-
"./public": {
|
|
56
|
-
"import": {
|
|
57
|
-
"types": "./lib/routerlicious-driver-public.d.mts",
|
|
58
|
-
"default": "./lib/index.mjs"
|
|
59
|
-
},
|
|
60
|
-
"require": {
|
|
61
|
-
"types": "./dist/routerlicious-driver-public.d.ts",
|
|
62
|
-
"default": "./dist/index.js"
|
|
63
|
-
}
|
|
64
55
|
}
|
|
65
56
|
},
|
|
66
|
-
"main": "
|
|
67
|
-
"
|
|
68
|
-
"types": "dist/index.d.ts",
|
|
57
|
+
"main": "lib/index.js",
|
|
58
|
+
"types": "lib/public.d.ts",
|
|
69
59
|
"c8": {
|
|
70
60
|
"all": true,
|
|
71
61
|
"cache-dir": "nyc/.cache",
|
|
72
62
|
"exclude": [
|
|
73
63
|
"src/test/**/*.*ts",
|
|
74
|
-
"
|
|
64
|
+
"lib/test/**/*.*js"
|
|
75
65
|
],
|
|
76
66
|
"exclude-after-remap": false,
|
|
77
67
|
"include": [
|
|
78
68
|
"src/**/*.*ts",
|
|
79
|
-
"
|
|
69
|
+
"lib/**/*.*js"
|
|
80
70
|
],
|
|
81
71
|
"report-dir": "nyc/report",
|
|
82
72
|
"reporter": [
|
|
@@ -87,29 +77,30 @@
|
|
|
87
77
|
"temp-directory": "nyc/.nyc_output"
|
|
88
78
|
},
|
|
89
79
|
"dependencies": {
|
|
90
|
-
"@fluid-internal/client-utils": ">=2.0.0-rc.
|
|
91
|
-
"@fluidframework/core-interfaces": ">=2.0.0-rc.
|
|
92
|
-
"@fluidframework/core-utils": ">=2.0.0-rc.
|
|
93
|
-
"@fluidframework/driver-base": ">=2.0.0-rc.
|
|
94
|
-
"@fluidframework/driver-definitions": ">=2.0.0-rc.
|
|
95
|
-
"@fluidframework/driver-utils": ">=2.0.0-rc.
|
|
80
|
+
"@fluid-internal/client-utils": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
81
|
+
"@fluidframework/core-interfaces": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
82
|
+
"@fluidframework/core-utils": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
83
|
+
"@fluidframework/driver-base": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
84
|
+
"@fluidframework/driver-definitions": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
85
|
+
"@fluidframework/driver-utils": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
96
86
|
"@fluidframework/gitresources": "^4.0.0",
|
|
97
87
|
"@fluidframework/protocol-base": "^4.0.0",
|
|
98
88
|
"@fluidframework/protocol-definitions": "^3.2.0",
|
|
99
89
|
"@fluidframework/server-services-client": "^4.0.0",
|
|
100
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-rc.
|
|
90
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
101
91
|
"cross-fetch": "^3.1.5",
|
|
102
92
|
"json-stringify-safe": "5.0.1",
|
|
103
93
|
"socket.io-client": "^4.7.3",
|
|
104
94
|
"uuid": "^9.0.0"
|
|
105
95
|
},
|
|
106
96
|
"devDependencies": {
|
|
107
|
-
"@arethetypeswrong/cli": "^0.
|
|
108
|
-
"@
|
|
109
|
-
"@fluid-
|
|
97
|
+
"@arethetypeswrong/cli": "^0.15.2",
|
|
98
|
+
"@biomejs/biome": "^1.6.2",
|
|
99
|
+
"@fluid-internal/mocha-test-setup": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
|
|
100
|
+
"@fluid-tools/build-cli": "^0.37.0",
|
|
110
101
|
"@fluidframework/build-common": "^2.0.3",
|
|
111
|
-
"@fluidframework/build-tools": "^0.
|
|
112
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
102
|
+
"@fluidframework/build-tools": "^0.37.0",
|
|
103
|
+
"@fluidframework/eslint-config-fluid": "^5.1.0",
|
|
113
104
|
"@fluidframework/routerlicious-driver-previous": "npm:@fluidframework/routerlicious-driver@2.0.0-internal.8.0.0",
|
|
114
105
|
"@microsoft/api-extractor": "^7.42.3",
|
|
115
106
|
"@types/mocha": "^9.1.1",
|
|
@@ -130,21 +121,8 @@
|
|
|
130
121
|
"prettier": "~3.0.3",
|
|
131
122
|
"rimraf": "^4.4.0",
|
|
132
123
|
"sinon": "^17.0.1",
|
|
133
|
-
"tsc-multi": "^1.1.0",
|
|
134
124
|
"typescript": "~5.1.6"
|
|
135
125
|
},
|
|
136
|
-
"fluidBuild": {
|
|
137
|
-
"tasks": {
|
|
138
|
-
"build:docs": {
|
|
139
|
-
"dependsOn": [
|
|
140
|
-
"...",
|
|
141
|
-
"api-extractor:commonjs",
|
|
142
|
-
"api-extractor:esnext"
|
|
143
|
-
],
|
|
144
|
-
"script": false
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
126
|
"typeValidation": {
|
|
149
127
|
"broken": {
|
|
150
128
|
"RemovedEnumDeclaration_RouterliciousErrorType": {
|
|
@@ -158,31 +136,35 @@
|
|
|
158
136
|
},
|
|
159
137
|
"scripts": {
|
|
160
138
|
"api": "fluid-build . --task api",
|
|
161
|
-
"api-extractor:commonjs": "
|
|
162
|
-
"api-extractor:esnext": "
|
|
139
|
+
"api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
|
|
140
|
+
"api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
|
|
163
141
|
"build": "fluid-build . --task build",
|
|
164
142
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
165
143
|
"build:compile": "fluid-build . --task compile",
|
|
166
|
-
"build:docs": "
|
|
167
|
-
"build:esnext": "tsc
|
|
144
|
+
"build:docs": "api-extractor run --local",
|
|
145
|
+
"build:esnext": "tsc --project ./tsconfig.json",
|
|
168
146
|
"build:genver": "gen-version",
|
|
169
|
-
"build:test": "
|
|
170
|
-
"
|
|
147
|
+
"build:test": "npm run build:test:esm && npm run build:test:cjs",
|
|
148
|
+
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
149
|
+
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
150
|
+
"check:are-the-types-wrong": "attw --pack .",
|
|
151
|
+
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
171
152
|
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
172
153
|
"ci:build:docs": "api-extractor run",
|
|
173
|
-
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
154
|
+
"clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
174
155
|
"eslint": "eslint --format stylish src",
|
|
175
156
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
176
|
-
"format": "
|
|
177
|
-
"
|
|
178
|
-
"lint
|
|
179
|
-
"
|
|
180
|
-
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
157
|
+
"format": "fluid-build --task format .",
|
|
158
|
+
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
159
|
+
"lint": "fluid-build . --task lint",
|
|
160
|
+
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
181
161
|
"test": "npm run test:mocha",
|
|
182
162
|
"test:coverage": "c8 npm test",
|
|
183
|
-
"test:mocha": "
|
|
163
|
+
"test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs",
|
|
164
|
+
"test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\" --exit",
|
|
165
|
+
"test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit",
|
|
184
166
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
185
|
-
"tsc": "tsc",
|
|
167
|
+
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
186
168
|
"typetests:gen": "fluid-type-test-generator",
|
|
187
169
|
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
188
170
|
}
|
package/src/axios.cts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { AxiosRequestConfig, AxiosRequestHeaders, RawAxiosRequestHeaders } from "axios";
|
|
7
|
+
|
|
8
|
+
export { AxiosRequestConfig, AxiosRequestHeaders, RawAxiosRequestHeaders };
|
package/src/cache.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITokenProvider, ITokenResponse } from "./tokens";
|
|
6
|
+
import { ITokenProvider, ITokenResponse } from "./tokens.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Default token provider in case the host does not provide one. It simply caches the provided jwt and returns it back.
|
|
@@ -4,23 +4,25 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { getW3CData, validateMessages } from "@fluidframework/driver-base";
|
|
7
|
+
import { getW3CData, validateMessages } from "@fluidframework/driver-base/internal";
|
|
8
8
|
import {
|
|
9
9
|
IDeltaStorageService,
|
|
10
|
-
IDocumentDeltaStorageService,
|
|
11
10
|
IDeltasFetchResult,
|
|
11
|
+
IDocumentDeltaStorageService,
|
|
12
12
|
IStream,
|
|
13
|
-
} from "@fluidframework/driver-definitions";
|
|
14
|
-
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
|
|
13
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
15
14
|
import {
|
|
15
|
+
emptyMessageStream,
|
|
16
16
|
readAndParse,
|
|
17
17
|
requestOps,
|
|
18
|
-
emptyMessageStream,
|
|
19
18
|
streamObserver,
|
|
20
|
-
} from "@fluidframework/driver-utils";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
19
|
+
} from "@fluidframework/driver-utils/internal";
|
|
20
|
+
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
|
|
21
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
22
|
+
import { PerformanceEvent } from "@fluidframework/telemetry-utils/internal";
|
|
23
|
+
|
|
24
|
+
import { DocumentStorageService } from "./documentStorageService.js";
|
|
25
|
+
import { RestWrapper } from "./restWrapperBase.js";
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* Maximum number of ops we can fetch at a time. This should be kept at 2k, as
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { DocumentDeltaConnection } from "@fluidframework/driver-base/internal";
|
|
7
|
+
import { IAnyDriverError } from "@fluidframework/driver-definitions";
|
|
8
|
+
import { IDocumentDeltaConnection } from "@fluidframework/driver-definitions/internal";
|
|
9
9
|
import { IClient, IConnect } from "@fluidframework/protocol-definitions";
|
|
10
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
10
11
|
import type { io as SocketIOClientStatic } from "socket.io-client";
|
|
11
|
-
|
|
12
|
-
import {
|
|
12
|
+
|
|
13
|
+
import { IR11sSocketError, errorObjectFromSocketError } from "./errorUtils.js";
|
|
14
|
+
import { pkgVersion as driverVersion } from "./packageVersion.js";
|
|
13
15
|
|
|
14
16
|
const protocolVersions = ["^0.4.0", "^0.3.0", "^0.2.0", "^0.1.0"];
|
|
15
17
|
|
package/src/documentService.ts
CHANGED
|
@@ -4,31 +4,37 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
|
-
import { assert } from "@fluidframework/core-utils";
|
|
8
|
-
import * as api from "@fluidframework/driver-definitions";
|
|
9
|
-
import {
|
|
7
|
+
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
+
import * as api from "@fluidframework/driver-definitions/internal";
|
|
9
|
+
import {
|
|
10
|
+
NetworkErrorBasic,
|
|
11
|
+
RateLimiter,
|
|
12
|
+
canRetryOnError,
|
|
13
|
+
} from "@fluidframework/driver-utils/internal";
|
|
10
14
|
import { IClient } from "@fluidframework/protocol-definitions";
|
|
15
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
16
|
+
import { PerformanceEvent, wrapError } from "@fluidframework/telemetry-utils/internal";
|
|
11
17
|
import io from "socket.io-client";
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
18
|
+
|
|
19
|
+
import { ICache } from "./cache.js";
|
|
20
|
+
import { INormalizedWholeSnapshot } from "./contracts.js";
|
|
21
|
+
import { ISnapshotTreeVersion } from "./definitions.js";
|
|
22
|
+
import { DeltaStorageService, DocumentDeltaStorageService } from "./deltaStorageService.js";
|
|
23
|
+
import { R11sDocumentDeltaConnection } from "./documentDeltaConnection.js";
|
|
24
|
+
import { DocumentStorageService } from "./documentStorageService.js";
|
|
25
|
+
import { RouterliciousErrorTypes } from "./errorUtils.js";
|
|
26
|
+
import { GitManager } from "./gitManager.js";
|
|
27
|
+
import { Historian } from "./historian.js";
|
|
28
|
+
import { NullBlobStorageService } from "./nullBlobStorageService.js";
|
|
29
|
+
import { pkgVersion as driverVersion } from "./packageVersion.js";
|
|
30
|
+
import { IRouterliciousDriverPolicies } from "./policies.js";
|
|
19
31
|
import {
|
|
20
32
|
RouterliciousOrdererRestWrapper,
|
|
21
33
|
RouterliciousStorageRestWrapper,
|
|
22
34
|
TokenFetcher,
|
|
23
|
-
} from "./restWrapper";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { ISnapshotTreeVersion } from "./definitions";
|
|
27
|
-
import { pkgVersion as driverVersion } from "./packageVersion";
|
|
28
|
-
import { GitManager } from "./gitManager";
|
|
29
|
-
import { Historian } from "./historian";
|
|
30
|
-
import { RestWrapper } from "./restWrapperBase";
|
|
31
|
-
import { INormalizedWholeSnapshot } from "./contracts";
|
|
35
|
+
} from "./restWrapper.js";
|
|
36
|
+
import { RestWrapper } from "./restWrapperBase.js";
|
|
37
|
+
import { ITokenProvider } from "./tokens.js";
|
|
32
38
|
|
|
33
39
|
/**
|
|
34
40
|
* Amount of time between discoveries within which we don't need to rediscover on re-connect.
|
|
@@ -42,9 +48,9 @@ const RediscoverAfterTimeSinceDiscoveryMs = 5 * 60000; // 5 minute
|
|
|
42
48
|
* The DocumentService manages the Socket.IO connection and manages routing requests to connected
|
|
43
49
|
* clients.
|
|
44
50
|
*/
|
|
45
|
-
// eslint-disable-next-line import/namespace
|
|
46
51
|
export class DocumentService
|
|
47
52
|
extends TypedEventEmitter<api.IDocumentServiceEvents>
|
|
53
|
+
// eslint-disable-next-line import/namespace
|
|
48
54
|
implements api.IDocumentService
|
|
49
55
|
{
|
|
50
56
|
private lastDiscoveredAt: number = Date.now();
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
|
+
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
+
import { getW3CData } from "@fluidframework/driver-base/internal";
|
|
8
9
|
import {
|
|
9
10
|
FiveDaysMs,
|
|
10
11
|
IDocumentService,
|
|
@@ -12,35 +13,35 @@ import {
|
|
|
12
13
|
IDocumentStorageServicePolicies,
|
|
13
14
|
IResolvedUrl,
|
|
14
15
|
LoaderCachingPolicy,
|
|
15
|
-
} from "@fluidframework/driver-definitions";
|
|
16
|
-
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
17
|
-
import { ISummaryTree } from "@fluidframework/protocol-definitions";
|
|
16
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
18
17
|
import {
|
|
18
|
+
RateLimiter,
|
|
19
19
|
getDocAttributesFromProtocolSummary,
|
|
20
20
|
getQuorumValuesFromProtocolSummary,
|
|
21
21
|
isCombinedAppAndProtocolSummary,
|
|
22
|
-
|
|
23
|
-
} from "@fluidframework/
|
|
24
|
-
import { createChildLogger, PerformanceEvent } from "@fluidframework/telemetry-utils";
|
|
22
|
+
} from "@fluidframework/driver-utils/internal";
|
|
23
|
+
import { ISummaryTree } from "@fluidframework/protocol-definitions";
|
|
25
24
|
import {
|
|
26
25
|
ISession,
|
|
27
26
|
convertSummaryTreeToWholeSummaryTree,
|
|
28
27
|
} from "@fluidframework/server-services-client";
|
|
29
|
-
import {
|
|
30
|
-
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
28
|
+
import { PerformanceEvent, createChildLogger } from "@fluidframework/telemetry-utils/internal";
|
|
29
|
+
|
|
30
|
+
import { ICache, InMemoryCache, NullCache } from "./cache.js";
|
|
31
|
+
import { INormalizedWholeSnapshot } from "./contracts.js";
|
|
32
|
+
import { ISnapshotTreeVersion } from "./definitions.js";
|
|
33
|
+
import { DocumentService } from "./documentService.js";
|
|
34
|
+
import { pkgVersion as driverVersion } from "./packageVersion.js";
|
|
35
|
+
import { IRouterliciousDriverPolicies } from "./policies.js";
|
|
35
36
|
import {
|
|
36
37
|
RouterliciousOrdererRestWrapper,
|
|
37
38
|
RouterliciousStorageRestWrapper,
|
|
38
39
|
toInstrumentedR11sOrdererTokenFetcher,
|
|
39
40
|
toInstrumentedR11sStorageTokenFetcher,
|
|
40
|
-
} from "./restWrapper";
|
|
41
|
-
import { isRouterliciousResolvedUrl } from "./routerliciousResolvedUrl";
|
|
42
|
-
import { ITokenProvider } from "./tokens";
|
|
43
|
-
import {
|
|
41
|
+
} from "./restWrapper.js";
|
|
42
|
+
import { isRouterliciousResolvedUrl } from "./routerliciousResolvedUrl.js";
|
|
43
|
+
import { ITokenProvider } from "./tokens.js";
|
|
44
|
+
import { getDiscoveredFluidResolvedUrl, replaceDocumentIdInPath } from "./urlUtils.js";
|
|
44
45
|
|
|
45
46
|
const maximumSnapshotCacheDurationMs: FiveDaysMs = 432_000_000; // 5 days in ms
|
|
46
47
|
|
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
7
6
|
import {
|
|
8
7
|
IDocumentStorageService,
|
|
9
8
|
IDocumentStorageServicePolicies,
|
|
10
9
|
LoaderCachingPolicy,
|
|
11
|
-
} from "@fluidframework/driver-definitions";
|
|
12
|
-
import { ISnapshotTree, IVersion } from "@fluidframework/protocol-definitions";
|
|
10
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
13
11
|
import {
|
|
14
12
|
DocumentStorageServiceProxy,
|
|
15
13
|
PrefetchDocumentStorageService,
|
|
16
|
-
} from "@fluidframework/driver-utils";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { ISnapshotTreeVersion } from "./definitions";
|
|
23
|
-
import {
|
|
14
|
+
} from "@fluidframework/driver-utils/internal";
|
|
15
|
+
import { ISnapshotTree, IVersion } from "@fluidframework/protocol-definitions";
|
|
16
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
17
|
+
|
|
18
|
+
import { ICache } from "./cache.js";
|
|
19
|
+
import { INormalizedWholeSnapshot } from "./contracts.js";
|
|
20
|
+
import { ISnapshotTreeVersion } from "./definitions.js";
|
|
21
|
+
import { GitManager } from "./gitManager.js";
|
|
22
|
+
import { IRouterliciousDriverPolicies } from "./policies.js";
|
|
23
|
+
import { ShreddedSummaryDocumentStorageService } from "./shreddedSummaryDocumentStorageService.js";
|
|
24
|
+
import { WholeSummaryDocumentStorageService } from "./wholeSummaryDocumentStorageService.js";
|
|
24
25
|
|
|
25
26
|
export class DocumentStorageService extends DocumentStorageServiceProxy {
|
|
26
27
|
private _logTailSha: string | undefined = undefined;
|
package/src/errorUtils.ts
CHANGED
|
@@ -3,19 +3,17 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { DriverErrorTypes, IDriverErrorBase } from "@fluidframework/driver-definitions";
|
|
7
|
+
import { DriverError } from "@fluidframework/driver-definitions/internal";
|
|
6
8
|
import {
|
|
7
|
-
|
|
8
|
-
IDriverErrorBase,
|
|
9
|
-
DriverErrorTypes,
|
|
10
|
-
} from "@fluidframework/driver-definitions";
|
|
11
|
-
import {
|
|
12
|
-
NonRetryableError,
|
|
9
|
+
AuthorizationError,
|
|
13
10
|
GenericNetworkError,
|
|
11
|
+
NonRetryableError,
|
|
14
12
|
createGenericNetworkError,
|
|
15
|
-
|
|
16
|
-
} from "@fluidframework/
|
|
17
|
-
|
|
18
|
-
import { pkgVersion as driverVersion } from "./packageVersion";
|
|
13
|
+
} from "@fluidframework/driver-utils/internal";
|
|
14
|
+
import { IFluidErrorBase } from "@fluidframework/telemetry-utils/internal";
|
|
15
|
+
|
|
16
|
+
import { pkgVersion as driverVersion } from "./packageVersion.js";
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* Routerlicious Error types
|
|
@@ -39,7 +37,7 @@ export type RouterliciousErrorTypes =
|
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* Interface for error responses for the WebSocket connection
|
|
42
|
-
* Intended to be compatible with output from
|
|
40
|
+
* Intended to be compatible with output from `NetworkError.toJSON`.
|
|
43
41
|
*/
|
|
44
42
|
export interface IR11sSocketError {
|
|
45
43
|
/**
|
|
@@ -118,7 +116,6 @@ export function throwR11sNetworkError(
|
|
|
118
116
|
): never {
|
|
119
117
|
const networkError = createR11sNetworkError(errorMessage, statusCode, retryAfterMs);
|
|
120
118
|
|
|
121
|
-
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
|
122
119
|
throw networkError;
|
|
123
120
|
}
|
|
124
121
|
|
package/src/gitManager.ts
CHANGED
|
@@ -8,9 +8,10 @@ import {
|
|
|
8
8
|
IWholeSummaryPayload,
|
|
9
9
|
IWriteSummaryResponse,
|
|
10
10
|
} from "@fluidframework/server-services-client";
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
|
|
12
|
+
import { IWholeFlatSnapshot } from "./contracts.js";
|
|
13
|
+
import { IR11sResponse } from "./restWrapper.js";
|
|
14
|
+
import { IGitManager, IHistorian } from "./storageContracts.js";
|
|
14
15
|
|
|
15
16
|
export class GitManager implements IGitManager {
|
|
16
17
|
constructor(private readonly historian: IHistorian) {}
|
package/src/historian.ts
CHANGED
|
@@ -9,10 +9,11 @@ import {
|
|
|
9
9
|
IWholeSummaryPayload,
|
|
10
10
|
IWriteSummaryResponse,
|
|
11
11
|
} from "@fluidframework/server-services-client";
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
|
|
13
|
+
import { IWholeFlatSnapshot } from "./contracts.js";
|
|
14
|
+
import { IR11sResponse } from "./restWrapper.js";
|
|
15
|
+
import { QueryStringType, RestWrapper } from "./restWrapperBase.js";
|
|
16
|
+
import { IHistorian } from "./storageContracts.js";
|
|
16
17
|
|
|
17
18
|
export interface ICredentials {
|
|
18
19
|
user: string;
|
package/src/index.ts
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// URL
|
|
7
|
-
export type { IRouterliciousResolvedUrl } from "./routerliciousResolvedUrl";
|
|
7
|
+
export type { IRouterliciousResolvedUrl } from "./routerliciousResolvedUrl.js";
|
|
8
8
|
|
|
9
9
|
// Tokens
|
|
10
|
-
export { DefaultTokenProvider } from "./defaultTokenProvider";
|
|
11
|
-
export { ITokenProvider, ITokenResponse, ITokenService } from "./tokens";
|
|
10
|
+
export { DefaultTokenProvider } from "./defaultTokenProvider.js";
|
|
11
|
+
export { ITokenProvider, ITokenResponse, ITokenService } from "./tokens.js";
|
|
12
12
|
|
|
13
13
|
// Errors
|
|
14
|
-
export { RouterliciousErrorTypes } from "./errorUtils";
|
|
14
|
+
export { RouterliciousErrorTypes } from "./errorUtils.js";
|
|
15
15
|
|
|
16
16
|
// Factory
|
|
17
17
|
export {
|
|
18
18
|
DocumentPostCreateError,
|
|
19
19
|
RouterliciousDocumentServiceFactory,
|
|
20
|
-
} from "./documentServiceFactory";
|
|
20
|
+
} from "./documentServiceFactory.js";
|
|
21
21
|
|
|
22
22
|
// Configuration
|
|
23
|
-
export { IRouterliciousDriverPolicies } from "./policies";
|
|
23
|
+
export { IRouterliciousDriverPolicies } from "./policies.js";
|
package/src/mapWithExpiration.ts
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
IDocumentStorageService,
|
|
8
|
+
ISummaryContext,
|
|
9
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
7
10
|
import * as api from "@fluidframework/protocol-definitions";
|
|
8
11
|
|
|
9
12
|
/**
|
package/src/packageVersion.ts
CHANGED
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
7
6
|
import { stringToBuffer } from "@fluid-internal/client-utils";
|
|
8
|
-
import {
|
|
7
|
+
import { ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
INormalizedWholeSnapshot,
|
|
11
|
+
IWholeFlatSnapshot,
|
|
12
|
+
IWholeFlatSnapshotTree,
|
|
13
|
+
} from "./contracts.js";
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
16
|
* Build a tree hierarchy from a flat tree.
|