@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.
Files changed (81) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/createNewUtils.js +2 -2
  3. package/dist/createNewUtils.js.map +1 -1
  4. package/dist/documentService.js +3 -3
  5. package/dist/documentService.js.map +1 -1
  6. package/dist/documentServiceFactory.d.ts.map +1 -1
  7. package/dist/documentServiceFactory.js +5 -2
  8. package/dist/documentServiceFactory.js.map +1 -1
  9. package/dist/historian.js +2 -2
  10. package/dist/historian.js.map +1 -1
  11. package/dist/mapWithExpiration.js +2 -2
  12. package/dist/mapWithExpiration.js.map +1 -1
  13. package/dist/packageVersion.d.ts +1 -1
  14. package/dist/packageVersion.js +1 -1
  15. package/dist/packageVersion.js.map +1 -1
  16. package/dist/policies.d.ts +7 -1
  17. package/dist/policies.d.ts.map +1 -1
  18. package/dist/policies.js.map +1 -1
  19. package/dist/r11sSnapshotParser.js +2 -2
  20. package/dist/r11sSnapshotParser.js.map +1 -1
  21. package/dist/restWrapper.d.ts.map +1 -1
  22. package/dist/restWrapper.js +10 -9
  23. package/dist/restWrapper.js.map +1 -1
  24. package/dist/shreddedSummaryDocumentStorageService.js +3 -3
  25. package/dist/shreddedSummaryDocumentStorageService.js.map +1 -1
  26. package/dist/summaryTreeUploadManager.d.ts.map +1 -1
  27. package/dist/summaryTreeUploadManager.js +9 -8
  28. package/dist/summaryTreeUploadManager.js.map +1 -1
  29. package/dist/treeUtils.d.ts.map +1 -1
  30. package/dist/treeUtils.js +6 -5
  31. package/dist/treeUtils.js.map +1 -1
  32. package/dist/wholeSummaryDocumentStorageService.d.ts.map +1 -1
  33. package/dist/wholeSummaryDocumentStorageService.js +7 -6
  34. package/dist/wholeSummaryDocumentStorageService.js.map +1 -1
  35. package/lib/createNewUtils.js +1 -1
  36. package/lib/createNewUtils.js.map +1 -1
  37. package/lib/documentService.js +3 -3
  38. package/lib/documentService.js.map +1 -1
  39. package/lib/documentServiceFactory.d.ts.map +1 -1
  40. package/lib/documentServiceFactory.js +4 -1
  41. package/lib/documentServiceFactory.js.map +1 -1
  42. package/lib/historian.js +1 -1
  43. package/lib/historian.js.map +1 -1
  44. package/lib/mapWithExpiration.js +1 -1
  45. package/lib/mapWithExpiration.js.map +1 -1
  46. package/lib/packageVersion.d.ts +1 -1
  47. package/lib/packageVersion.js +1 -1
  48. package/lib/packageVersion.js.map +1 -1
  49. package/lib/policies.d.ts +7 -1
  50. package/lib/policies.d.ts.map +1 -1
  51. package/lib/policies.js.map +1 -1
  52. package/lib/r11sSnapshotParser.js +1 -1
  53. package/lib/r11sSnapshotParser.js.map +1 -1
  54. package/lib/restWrapper.d.ts.map +1 -1
  55. package/lib/restWrapper.js +2 -1
  56. package/lib/restWrapper.js.map +1 -1
  57. package/lib/shreddedSummaryDocumentStorageService.js +1 -1
  58. package/lib/shreddedSummaryDocumentStorageService.js.map +1 -1
  59. package/lib/summaryTreeUploadManager.d.ts.map +1 -1
  60. package/lib/summaryTreeUploadManager.js +2 -1
  61. package/lib/summaryTreeUploadManager.js.map +1 -1
  62. package/lib/treeUtils.d.ts.map +1 -1
  63. package/lib/treeUtils.js +2 -1
  64. package/lib/treeUtils.js.map +1 -1
  65. package/lib/wholeSummaryDocumentStorageService.d.ts.map +1 -1
  66. package/lib/wholeSummaryDocumentStorageService.js +2 -1
  67. package/lib/wholeSummaryDocumentStorageService.js.map +1 -1
  68. package/package.json +25 -22
  69. package/src/createNewUtils.ts +1 -1
  70. package/src/documentService.ts +3 -3
  71. package/src/documentServiceFactory.ts +4 -1
  72. package/src/historian.ts +1 -1
  73. package/src/mapWithExpiration.ts +1 -1
  74. package/src/packageVersion.ts +1 -1
  75. package/src/policies.ts +7 -1
  76. package/src/r11sSnapshotParser.ts +1 -1
  77. package/src/restWrapper.ts +2 -1
  78. package/src/shreddedSummaryDocumentStorageService.ts +1 -1
  79. package/src/summaryTreeUploadManager.ts +2 -7
  80. package/src/treeUtils.ts +2 -1
  81. package/src/wholeSummaryDocumentStorageService.ts +2 -6
@@ -3,9 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/common-utils";
6
+ import { assert } from "@fluidframework/core-utils";
7
7
  import * as api from "@fluidframework/driver-definitions";
8
- import { DriverErrorType } from "@fluidframework/driver-definitions";
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
- DriverErrorType.fetchTokenError,
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/common-utils";
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
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { fromUtf8ToBase64 } from "@fluidframework/common-utils";
6
+ import { fromUtf8ToBase64 } from "@fluid-internal/client-utils";
7
7
  import * as git from "@fluidframework/gitresources";
8
8
  import {
9
9
  IWholeSummaryPayload,
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/common-utils";
6
+ import { assert } from "@fluidframework/core-utils";
7
7
 
8
8
  /**
9
9
  * An extension of Map that expires (deletes) entries after a period of inactivity.
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/routerlicious-driver";
9
- export const pkgVersion = "2.0.0-internal.6.2.0";
9
+ export const pkgVersion = "2.0.0-internal.6.3.1";
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?: boolean;
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 "@fluidframework/common-utils";
7
+ import { stringToBuffer } from "@fluid-internal/client-utils";
8
8
  import { INormalizedWholeSnapshot, IWholeFlatSnapshot, IWholeFlatSnapshotTree } from "./contracts";
9
9
 
10
10
  /**
@@ -9,7 +9,8 @@ import {
9
9
  PerformanceEvent,
10
10
  numberFromString,
11
11
  } from "@fluidframework/telemetry-utils";
12
- import { assert, fromUtf8ToBase64, performance } from "@fluidframework/common-utils";
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 "@fluidframework/common-utils";
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
- assert,
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 { assert, IsoBuffer } from "@fluidframework/common-utils";
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
- assert,
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,