@fluidframework/odsp-driver 2.20.0 → 2.21.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -3
  5. package/dist/index.js.map +1 -1
  6. package/dist/odspDelayLoadedDeltaStream.js +2 -2
  7. package/dist/odspDelayLoadedDeltaStream.js.map +1 -1
  8. package/dist/odspDocumentDeltaConnection.js +3 -3
  9. package/dist/odspDocumentDeltaConnection.js.map +1 -1
  10. package/dist/odspDocumentStorageManager.js +6 -6
  11. package/dist/odspDocumentStorageManager.js.map +1 -1
  12. package/dist/odspUtils.js +6 -6
  13. package/dist/odspUtils.js.map +1 -1
  14. package/dist/opsCaching.js +2 -2
  15. package/dist/opsCaching.js.map +1 -1
  16. package/dist/packageVersion.d.ts +1 -1
  17. package/dist/packageVersion.js +1 -1
  18. package/dist/packageVersion.js.map +1 -1
  19. package/dist/prefetchLatestSnapshot.js +1 -1
  20. package/dist/prefetchLatestSnapshot.js.map +1 -1
  21. package/dist/retryUtils.js +4 -4
  22. package/dist/retryUtils.js.map +1 -1
  23. package/lib/index.d.ts +0 -1
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +0 -1
  26. package/lib/index.js.map +1 -1
  27. package/lib/odspDelayLoadedDeltaStream.js +3 -3
  28. package/lib/odspDelayLoadedDeltaStream.js.map +1 -1
  29. package/lib/odspDocumentDeltaConnection.js +4 -4
  30. package/lib/odspDocumentDeltaConnection.js.map +1 -1
  31. package/lib/odspDocumentStorageManager.js +7 -7
  32. package/lib/odspDocumentStorageManager.js.map +1 -1
  33. package/lib/odspUtils.js +7 -7
  34. package/lib/odspUtils.js.map +1 -1
  35. package/lib/opsCaching.js +3 -3
  36. package/lib/opsCaching.js.map +1 -1
  37. package/lib/packageVersion.d.ts +1 -1
  38. package/lib/packageVersion.js +1 -1
  39. package/lib/packageVersion.js.map +1 -1
  40. package/lib/prefetchLatestSnapshot.js +2 -2
  41. package/lib/prefetchLatestSnapshot.js.map +1 -1
  42. package/lib/retryUtils.js +5 -5
  43. package/lib/retryUtils.js.map +1 -1
  44. package/package.json +14 -14
  45. package/src/index.ts +0 -1
  46. package/src/odspDelayLoadedDeltaStream.ts +3 -3
  47. package/src/odspDocumentDeltaConnection.ts +4 -4
  48. package/src/odspDocumentStorageManager.ts +7 -7
  49. package/src/odspUtils.ts +7 -7
  50. package/src/opsCaching.ts +3 -3
  51. package/src/packageVersion.ts +1 -1
  52. package/src/prefetchLatestSnapshot.ts +2 -2
  53. package/src/retryUtils.ts +5 -5
  54. package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts +0 -16
  55. package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +0 -1
  56. package/dist/odspDocumentServiceFactoryWithCodeSplit.js +0 -20
  57. package/dist/odspDocumentServiceFactoryWithCodeSplit.js.map +0 -1
  58. package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts +0 -16
  59. package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +0 -1
  60. package/lib/odspDocumentServiceFactoryWithCodeSplit.js +0 -16
  61. package/lib/odspDocumentServiceFactoryWithCodeSplit.js.map +0 -1
  62. package/src/odspDocumentServiceFactoryWithCodeSplit.ts +0 -33
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { performance } from "@fluid-internal/client-utils";
6
+ import { performanceNow } from "@fluid-internal/client-utils";
7
7
  import { LogLevel } from "@fluidframework/core-interfaces";
8
8
  import { assert, delay } from "@fluidframework/core-utils/internal";
9
9
  import { promiseRaceWithWinner } from "@fluidframework/driver-base/internal";
@@ -271,7 +271,7 @@ export class OdspDocumentStorageService extends OdspDocumentStorageServiceBase {
271
271
  let retrievedSnapshot: ISnapshot | IPrefetchSnapshotContents | undefined;
272
272
 
273
273
  let method: string;
274
- let prefetchWaitStartTime: number = performance.now();
274
+ let prefetchWaitStartTime: number = performanceNow();
275
275
  if (snapshotFetchOptions.fetchSource === FetchSource.noCache) {
276
276
  retrievedSnapshot = await this.fetchSnapshotFromNetwork(
277
277
  hostSnapshotOptions,
@@ -394,13 +394,13 @@ export class OdspDocumentStorageService extends OdspDocumentStorageServiceBase {
394
394
  } else {
395
395
  // Note: There's a race condition here - another caller may come past the undefined check
396
396
  // while the first caller is awaiting later async code in this block.
397
- const startTime = performance.now();
397
+ const startTime = performanceNow();
398
398
  retrievedSnapshot = await cachedSnapshotP;
399
- cacheLookupTimeInSerialFetch = performance.now() - startTime;
399
+ cacheLookupTimeInSerialFetch = performanceNow() - startTime;
400
400
  method = retrievedSnapshot === undefined ? "network" : "cache";
401
401
 
402
402
  if (retrievedSnapshot === undefined) {
403
- prefetchWaitStartTime = performance.now();
403
+ prefetchWaitStartTime = performanceNow();
404
404
  retrievedSnapshot = await this.fetchSnapshotFromNetwork(
405
405
  hostSnapshotOptions,
406
406
  snapshotFetchOptions.loadingGroupIds,
@@ -437,7 +437,7 @@ export class OdspDocumentStorageService extends OdspDocumentStorageServiceBase {
437
437
  },
438
438
  );
439
439
 
440
- const stTime = performance.now();
440
+ const stTime = performanceNow();
441
441
  // Don't override ops which were fetched during initial load, since we could still need them.
442
442
  const id = this.initializeFromSnapshot(
443
443
  odspSnapshotCacheValue,
@@ -447,7 +447,7 @@ export class OdspDocumentStorageService extends OdspDocumentStorageServiceBase {
447
447
  this.logger.sendTelemetryEvent(
448
448
  {
449
449
  eventName: "SnapshotInitializeTime",
450
- duration: performance.now() - stTime,
450
+ duration: performanceNow() - stTime,
451
451
  },
452
452
  undefined,
453
453
  LogLevel.verbose,
package/src/odspUtils.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { performance } from "@fluid-internal/client-utils";
6
+ import { performanceNow } from "@fluid-internal/client-utils";
7
7
  import {
8
8
  ITelemetryBaseLogger,
9
9
  ITelemetryBaseProperties,
@@ -135,7 +135,7 @@ export async function fetchHelper(
135
135
  requestInfo: RequestInfo,
136
136
  requestInit: RequestInit | undefined,
137
137
  ): Promise<IOdspResponse<Response>> {
138
- const start = performance.now();
138
+ const start = performanceNow();
139
139
 
140
140
  // Node-fetch and dom have conflicting typing, force them to work by casting for now
141
141
  return fetch(requestInfo, requestInit).then(
@@ -165,7 +165,7 @@ export async function fetchHelper(
165
165
  content: response,
166
166
  headers,
167
167
  propsToLog: getSPOAndGraphRequestIdsFromResponse(headers),
168
- duration: performance.now() - start,
168
+ duration: performanceNow() - start,
169
169
  };
170
170
  },
171
171
  (error) => {
@@ -508,16 +508,16 @@ export function buildOdspShareLinkReqParams(
508
508
  }
509
509
 
510
510
  export function measure<T>(callback: () => T): [T, number] {
511
- const start = performance.now();
511
+ const start = performanceNow();
512
512
  const result = callback();
513
- const time = performance.now() - start;
513
+ const time = performanceNow() - start;
514
514
  return [result, time];
515
515
  }
516
516
 
517
517
  export async function measureP<T>(callback: () => Promise<T>): Promise<[T, number]> {
518
- const start = performance.now();
518
+ const start = performanceNow();
519
519
  const result = await callback();
520
- const time = performance.now() - start;
520
+ const time = performanceNow() - start;
521
521
  return [result, time];
522
522
  }
523
523
 
package/src/opsCaching.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { performance } from "@fluid-internal/client-utils";
6
+ import { performanceNow } from "@fluid-internal/client-utils";
7
7
  import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
8
8
 
9
9
  // ISequencedDocumentMessage
@@ -183,11 +183,11 @@ export class OpsCache {
183
183
  * @returns ops retrieved
184
184
  */
185
185
  public async get(from: number, to?: number): Promise<IMessage[]> {
186
- const start = performance.now();
186
+ const start = performanceNow();
187
187
 
188
188
  const messages = await this.getCore(from, to);
189
189
 
190
- const duration = performance.now() - start;
190
+ const duration = performanceNow() - start;
191
191
  if (messages.length > 0 || duration > 1000) {
192
192
  this.logger.sendPerformanceEvent({
193
193
  eventName: "CacheOpsUsed",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/odsp-driver";
9
- export const pkgVersion = "2.20.0";
9
+ export const pkgVersion = "2.21.0";
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { performance } from "@fluid-internal/client-utils";
6
+ import { performanceNow } from "@fluid-internal/client-utils";
7
7
  import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
8
8
  import { assert, Deferred } from "@fluidframework/core-utils/internal";
9
9
  import { IResolvedUrl } from "@fluidframework/driver-definitions/internal";
@@ -127,7 +127,7 @@ export async function prefetchLatestSnapshot(
127
127
  odspLogger,
128
128
  { eventName: "PrefetchLatestSnapshot" },
129
129
  async () => {
130
- const prefetchStartTime = performance.now();
130
+ const prefetchStartTime = performanceNow();
131
131
  // Add the deferred promise to the cache, so that it can be leveraged while loading the container.
132
132
  const snapshotContentsWithEpochP = new Deferred<IPrefetchSnapshotContents>();
133
133
  const nonPersistentCacheKey = getKeyForCacheEntry(snapshotKey);
package/src/retryUtils.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { performance } from "@fluid-internal/client-utils";
6
+ import { performanceNow } from "@fluid-internal/client-utils";
7
7
  import { delay } from "@fluidframework/core-utils/internal";
8
8
  import {
9
9
  canRetryOnError,
@@ -24,7 +24,7 @@ export async function runWithRetry<T>(
24
24
  checkDisposed?: () => void,
25
25
  ): Promise<T> {
26
26
  let retryAfter = 1000;
27
- const start = performance.now();
27
+ const start = performanceNow();
28
28
  let lastError: unknown;
29
29
  for (let attempts = 1; ; attempts++) {
30
30
  if (checkDisposed !== undefined) {
@@ -38,7 +38,7 @@ export async function runWithRetry<T>(
38
38
  eventName: "MultipleRetries",
39
39
  callName,
40
40
  attempts,
41
- duration: performance.now() - start,
41
+ duration: performanceNow() - start,
42
42
  },
43
43
  lastError,
44
44
  );
@@ -62,7 +62,7 @@ export async function runWithRetry<T>(
62
62
  eventName: `${callName}_firstFailed`,
63
63
  callName,
64
64
  attempts,
65
- duration: performance.now() - start, // record total wait time.
65
+ duration: performanceNow() - start, // record total wait time.
66
66
  },
67
67
  error,
68
68
  );
@@ -86,7 +86,7 @@ export async function runWithRetry<T>(
86
86
  : "ServiceReadonlyErrorTooManyRetries",
87
87
  callName,
88
88
  attempts,
89
- duration: performance.now() - start, // record total wait time.
89
+ duration: performanceNow() - start, // record total wait time.
90
90
  },
91
91
  error,
92
92
  );
@@ -1,16 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
6
- import { HostStoragePolicy, IPersistedCache, OdspResourceTokenFetchOptions, TokenFetcher } from "@fluidframework/odsp-driver-definitions/internal";
7
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
8
- /**
9
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
10
- * other dynamically imported module.
11
- * @internal
12
- */
13
- export declare class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore implements IDocumentServiceFactory {
14
- constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
15
- }
16
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.d.ts","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EACN,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,YAAY,EACZ,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,qBAAa,uCACZ,SAAQ,8BACR,YAAW,uBAAuB;gBAGjC,eAAe,EAAE,YAAY,CAAC,6BAA6B,CAAC,EAC5D,iBAAiB,EAAE,YAAY,CAAC,6BAA6B,CAAC,GAAG,SAAS,EAC1E,cAAc,CAAC,EAAE,eAAe,EAChC,UAAU,CAAC,EAAE,iBAAiB;CAI/B"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.OdspDocumentServiceFactoryWithCodeSplit = void 0;
8
- const odspDocumentServiceFactoryCore_js_1 = require("./odspDocumentServiceFactoryCore.js");
9
- /**
10
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
11
- * other dynamically imported module.
12
- * @internal
13
- */
14
- class OdspDocumentServiceFactoryWithCodeSplit extends odspDocumentServiceFactoryCore_js_1.OdspDocumentServiceFactoryCore {
15
- constructor(getStorageToken, getWebsocketToken, persistedCache, hostPolicy) {
16
- super(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);
17
- }
18
- }
19
- exports.OdspDocumentServiceFactoryWithCodeSplit = OdspDocumentServiceFactoryWithCodeSplit;
20
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.js","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAUH,2FAAqF;AAErF;;;;GAIG;AACH,MAAa,uCACZ,SAAQ,kEAA8B;IAGtC,YACC,eAA4D,EAC5D,iBAA0E,EAC1E,cAAgC,EAChC,UAA8B;QAE9B,KAAK,CAAC,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;CACD;AAZD,0FAYC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDocumentServiceFactory } from \"@fluidframework/driver-definitions/internal\";\nimport {\n\tHostStoragePolicy,\n\tIPersistedCache,\n\tOdspResourceTokenFetchOptions,\n\tTokenFetcher,\n} from \"@fluidframework/odsp-driver-definitions/internal\";\n\nimport { OdspDocumentServiceFactoryCore } from \"./odspDocumentServiceFactoryCore.js\";\n\n/**\n * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the\n * other dynamically imported module.\n * @internal\n */\nexport class OdspDocumentServiceFactoryWithCodeSplit\n\textends OdspDocumentServiceFactoryCore\n\timplements IDocumentServiceFactory\n{\n\tconstructor(\n\t\tgetStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,\n\t\tgetWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,\n\t\tpersistedCache?: IPersistedCache,\n\t\thostPolicy?: HostStoragePolicy,\n\t) {\n\t\tsuper(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);\n\t}\n}\n"]}
@@ -1,16 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
6
- import { HostStoragePolicy, IPersistedCache, OdspResourceTokenFetchOptions, TokenFetcher } from "@fluidframework/odsp-driver-definitions/internal";
7
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
8
- /**
9
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
10
- * other dynamically imported module.
11
- * @internal
12
- */
13
- export declare class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore implements IDocumentServiceFactory {
14
- constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
15
- }
16
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.d.ts","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EACN,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,YAAY,EACZ,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,qBAAa,uCACZ,SAAQ,8BACR,YAAW,uBAAuB;gBAGjC,eAAe,EAAE,YAAY,CAAC,6BAA6B,CAAC,EAC5D,iBAAiB,EAAE,YAAY,CAAC,6BAA6B,CAAC,GAAG,SAAS,EAC1E,cAAc,CAAC,EAAE,eAAe,EAChC,UAAU,CAAC,EAAE,iBAAiB;CAI/B"}
@@ -1,16 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
6
- /**
7
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
8
- * other dynamically imported module.
9
- * @internal
10
- */
11
- export class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore {
12
- constructor(getStorageToken, getWebsocketToken, persistedCache, hostPolicy) {
13
- super(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);
14
- }
15
- }
16
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.js","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,MAAM,OAAO,uCACZ,SAAQ,8BAA8B;IAGtC,YACC,eAA4D,EAC5D,iBAA0E,EAC1E,cAAgC,EAChC,UAA8B;QAE9B,KAAK,CAAC,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDocumentServiceFactory } from \"@fluidframework/driver-definitions/internal\";\nimport {\n\tHostStoragePolicy,\n\tIPersistedCache,\n\tOdspResourceTokenFetchOptions,\n\tTokenFetcher,\n} from \"@fluidframework/odsp-driver-definitions/internal\";\n\nimport { OdspDocumentServiceFactoryCore } from \"./odspDocumentServiceFactoryCore.js\";\n\n/**\n * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the\n * other dynamically imported module.\n * @internal\n */\nexport class OdspDocumentServiceFactoryWithCodeSplit\n\textends OdspDocumentServiceFactoryCore\n\timplements IDocumentServiceFactory\n{\n\tconstructor(\n\t\tgetStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,\n\t\tgetWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,\n\t\tpersistedCache?: IPersistedCache,\n\t\thostPolicy?: HostStoragePolicy,\n\t) {\n\t\tsuper(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);\n\t}\n}\n"]}
@@ -1,33 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
-
6
- import { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
7
- import {
8
- HostStoragePolicy,
9
- IPersistedCache,
10
- OdspResourceTokenFetchOptions,
11
- TokenFetcher,
12
- } from "@fluidframework/odsp-driver-definitions/internal";
13
-
14
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
15
-
16
- /**
17
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
18
- * other dynamically imported module.
19
- * @internal
20
- */
21
- export class OdspDocumentServiceFactoryWithCodeSplit
22
- extends OdspDocumentServiceFactoryCore
23
- implements IDocumentServiceFactory
24
- {
25
- constructor(
26
- getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,
27
- getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,
28
- persistedCache?: IPersistedCache,
29
- hostPolicy?: HostStoragePolicy,
30
- ) {
31
- super(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);
32
- }
33
- }