@fluidframework/routerlicious-driver 2.0.0-internal.6.2.0 → 2.0.0-internal.6.3.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.
- package/CHANGELOG.md +4 -0
- package/dist/createNewUtils.js +2 -2
- package/dist/createNewUtils.js.map +1 -1
- package/dist/documentService.js +3 -3
- package/dist/documentService.js.map +1 -1
- package/dist/documentServiceFactory.d.ts.map +1 -1
- package/dist/documentServiceFactory.js +5 -2
- package/dist/documentServiceFactory.js.map +1 -1
- package/dist/historian.js +2 -2
- package/dist/historian.js.map +1 -1
- package/dist/mapWithExpiration.js +2 -2
- package/dist/mapWithExpiration.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/policies.d.ts +7 -1
- package/dist/policies.d.ts.map +1 -1
- package/dist/policies.js.map +1 -1
- package/dist/r11sSnapshotParser.js +2 -2
- package/dist/r11sSnapshotParser.js.map +1 -1
- package/dist/restWrapper.d.ts.map +1 -1
- package/dist/restWrapper.js +10 -9
- package/dist/restWrapper.js.map +1 -1
- package/dist/shreddedSummaryDocumentStorageService.js +3 -3
- package/dist/shreddedSummaryDocumentStorageService.js.map +1 -1
- package/dist/summaryTreeUploadManager.d.ts.map +1 -1
- package/dist/summaryTreeUploadManager.js +9 -8
- package/dist/summaryTreeUploadManager.js.map +1 -1
- package/dist/treeUtils.d.ts.map +1 -1
- package/dist/treeUtils.js +6 -5
- package/dist/treeUtils.js.map +1 -1
- package/dist/wholeSummaryDocumentStorageService.d.ts.map +1 -1
- package/dist/wholeSummaryDocumentStorageService.js +7 -6
- package/dist/wholeSummaryDocumentStorageService.js.map +1 -1
- package/lib/createNewUtils.js +1 -1
- package/lib/createNewUtils.js.map +1 -1
- package/lib/documentService.js +3 -3
- package/lib/documentService.js.map +1 -1
- package/lib/documentServiceFactory.d.ts.map +1 -1
- package/lib/documentServiceFactory.js +4 -1
- package/lib/documentServiceFactory.js.map +1 -1
- package/lib/historian.js +1 -1
- package/lib/historian.js.map +1 -1
- package/lib/mapWithExpiration.js +1 -1
- package/lib/mapWithExpiration.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/policies.d.ts +7 -1
- package/lib/policies.d.ts.map +1 -1
- package/lib/policies.js.map +1 -1
- package/lib/r11sSnapshotParser.js +1 -1
- package/lib/r11sSnapshotParser.js.map +1 -1
- package/lib/restWrapper.d.ts.map +1 -1
- package/lib/restWrapper.js +2 -1
- package/lib/restWrapper.js.map +1 -1
- package/lib/shreddedSummaryDocumentStorageService.js +1 -1
- package/lib/shreddedSummaryDocumentStorageService.js.map +1 -1
- package/lib/summaryTreeUploadManager.d.ts.map +1 -1
- package/lib/summaryTreeUploadManager.js +2 -1
- package/lib/summaryTreeUploadManager.js.map +1 -1
- package/lib/treeUtils.d.ts.map +1 -1
- package/lib/treeUtils.js +2 -1
- package/lib/treeUtils.js.map +1 -1
- package/lib/wholeSummaryDocumentStorageService.d.ts.map +1 -1
- package/lib/wholeSummaryDocumentStorageService.js +2 -1
- package/lib/wholeSummaryDocumentStorageService.js.map +1 -1
- package/package.json +25 -22
- package/src/createNewUtils.ts +1 -1
- package/src/documentService.ts +3 -3
- package/src/documentServiceFactory.ts +4 -1
- package/src/historian.ts +1 -1
- package/src/mapWithExpiration.ts +1 -1
- package/src/packageVersion.ts +1 -1
- package/src/policies.ts +7 -1
- package/src/r11sSnapshotParser.ts +1 -1
- package/src/restWrapper.ts +2 -1
- package/src/shreddedSummaryDocumentStorageService.ts +1 -1
- package/src/summaryTreeUploadManager.ts +2 -7
- package/src/treeUtils.ts +2 -1
- package/src/wholeSummaryDocumentStorageService.ts +2 -6
package/src/documentService.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { assert } from "@fluidframework/
|
|
6
|
+
import { assert } from "@fluidframework/core-utils";
|
|
7
7
|
import * as api from "@fluidframework/driver-definitions";
|
|
8
|
-
import {
|
|
8
|
+
import { DriverErrorTypes } from "@fluidframework/driver-definitions";
|
|
9
9
|
import { RateLimiter, NetworkErrorBasic, canRetryOnError } from "@fluidframework/driver-utils";
|
|
10
10
|
import { IClient } from "@fluidframework/protocol-definitions";
|
|
11
11
|
import io from "socket.io-client";
|
|
@@ -221,7 +221,7 @@ export class DocumentService implements api.IDocumentService {
|
|
|
221
221
|
(errorMessage) =>
|
|
222
222
|
new NetworkErrorBasic(
|
|
223
223
|
`The Host-provided token fetcher threw an error`,
|
|
224
|
-
|
|
224
|
+
DriverErrorTypes.fetchTokenError,
|
|
225
225
|
canRetryOnError(error),
|
|
226
226
|
{ errorMessage, driverVersion },
|
|
227
227
|
),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { assert } from "@fluidframework/
|
|
6
|
+
import { assert } from "@fluidframework/core-utils";
|
|
7
7
|
import { getW3CData } from "@fluidframework/driver-base";
|
|
8
8
|
import {
|
|
9
9
|
FiveDaysMs,
|
|
@@ -53,6 +53,7 @@ const defaultRouterliciousDriverPolicies: IRouterliciousDriverPolicies = {
|
|
|
53
53
|
enableRestLess: true,
|
|
54
54
|
enableInternalSummaryCaching: true,
|
|
55
55
|
enableLongPollingDowngrade: true,
|
|
56
|
+
isEphemeralContainer: false,
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
/**
|
|
@@ -144,6 +145,7 @@ export class RouterliciousDocumentServiceFactory implements IDocumentServiceFact
|
|
|
144
145
|
details: JSON.stringify({
|
|
145
146
|
enableDiscovery: this.driverPolicies.enableDiscovery,
|
|
146
147
|
sequenceNumber: documentAttributes.sequenceNumber,
|
|
148
|
+
isEphemeralContainer: this.driverPolicies.isEphemeralContainer,
|
|
147
149
|
}),
|
|
148
150
|
},
|
|
149
151
|
async (event) => {
|
|
@@ -157,6 +159,7 @@ export class RouterliciousDocumentServiceFactory implements IDocumentServiceFact
|
|
|
157
159
|
values: quorumValues,
|
|
158
160
|
enableDiscovery: this.driverPolicies.enableDiscovery,
|
|
159
161
|
generateToken: this.tokenProvider.documentPostCreateCallback !== undefined,
|
|
162
|
+
isEphemeralContainer: this.driverPolicies.isEphemeralContainer,
|
|
160
163
|
enableAnyBinaryBlobOnFirstSummary: true,
|
|
161
164
|
})
|
|
162
165
|
).content;
|
package/src/historian.ts
CHANGED
package/src/mapWithExpiration.ts
CHANGED
package/src/packageVersion.ts
CHANGED
package/src/policies.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface IRouterliciousDriverPolicies {
|
|
|
36
36
|
* Enable service endpoint discovery when creating or joining a session.
|
|
37
37
|
* Default: false
|
|
38
38
|
*/
|
|
39
|
-
enableDiscovery
|
|
39
|
+
enableDiscovery: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* Enable using RestLess which avoids CORS preflight requests.
|
|
42
42
|
* Default: true
|
|
@@ -54,4 +54,10 @@ export interface IRouterliciousDriverPolicies {
|
|
|
54
54
|
* Default: true
|
|
55
55
|
*/
|
|
56
56
|
enableLongPollingDowngrade: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates that the container is ephemeral.
|
|
59
|
+
* Artifacts relates to the container are limited to container lifetime.
|
|
60
|
+
* Default: false
|
|
61
|
+
*/
|
|
62
|
+
isEphemeralContainer: boolean;
|
|
57
63
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
7
|
-
import { stringToBuffer } from "@
|
|
7
|
+
import { stringToBuffer } from "@fluid-internal/client-utils";
|
|
8
8
|
import { INormalizedWholeSnapshot, IWholeFlatSnapshot, IWholeFlatSnapshotTree } from "./contracts";
|
|
9
9
|
|
|
10
10
|
/**
|
package/src/restWrapper.ts
CHANGED
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
PerformanceEvent,
|
|
10
10
|
numberFromString,
|
|
11
11
|
} from "@fluidframework/telemetry-utils";
|
|
12
|
-
import { assert
|
|
12
|
+
import { assert } from "@fluidframework/core-utils";
|
|
13
|
+
import { fromUtf8ToBase64, performance } from "@fluid-internal/client-utils";
|
|
13
14
|
import { GenericNetworkError, NonRetryableError, RateLimiter } from "@fluidframework/driver-utils";
|
|
14
15
|
import {
|
|
15
16
|
CorrelationIdHeaderName,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ITelemetryLoggerExt, PerformanceEvent } from "@fluidframework/telemetry-utils";
|
|
7
|
-
import { stringToBuffer, Uint8ArrayToString } from "@
|
|
7
|
+
import { stringToBuffer, Uint8ArrayToString } from "@fluid-internal/client-utils";
|
|
8
8
|
import {
|
|
9
9
|
IDocumentStorageService,
|
|
10
10
|
ISummaryContext,
|
|
@@ -3,13 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
gitHashFile,
|
|
9
|
-
IsoBuffer,
|
|
10
|
-
Uint8ArrayToString,
|
|
11
|
-
unreachableCase,
|
|
12
|
-
} from "@fluidframework/common-utils";
|
|
6
|
+
import { gitHashFile, IsoBuffer, Uint8ArrayToString } from "@fluid-internal/client-utils";
|
|
7
|
+
import { assert, unreachableCase } from "@fluidframework/core-utils";
|
|
13
8
|
import { ICreateTreeEntry } from "@fluidframework/gitresources";
|
|
14
9
|
import { getGitMode, getGitType } from "@fluidframework/protocol-base";
|
|
15
10
|
import {
|
package/src/treeUtils.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { IsoBuffer } from "@fluid-internal/client-utils";
|
|
7
|
+
import { assert } from "@fluidframework/core-utils";
|
|
7
8
|
import {
|
|
8
9
|
SummaryType,
|
|
9
10
|
ISnapshotTree,
|
|
@@ -4,12 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ITelemetryLoggerExt, PerformanceEvent } from "@fluidframework/telemetry-utils";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
performance,
|
|
10
|
-
stringToBuffer,
|
|
11
|
-
Uint8ArrayToString,
|
|
12
|
-
} from "@fluidframework/common-utils";
|
|
7
|
+
import { performance, stringToBuffer, Uint8ArrayToString } from "@fluid-internal/client-utils";
|
|
8
|
+
import { assert } from "@fluidframework/core-utils";
|
|
13
9
|
import { getW3CData, promiseRaceWithWinner } from "@fluidframework/driver-base";
|
|
14
10
|
import {
|
|
15
11
|
IDocumentStorageService,
|