@fluidframework/container-loader 2.53.1 → 2.61.0-355054
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/.mocharc.cjs +1 -2
- package/CHANGELOG.md +4 -0
- package/api-report/{container-loader.legacy.alpha.api.md → container-loader.legacy.beta.api.md} +24 -24
- package/dist/attachment.d.ts +3 -3
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js.map +1 -1
- package/dist/audience.d.ts +3 -3
- package/dist/audience.d.ts.map +1 -1
- package/dist/audience.js.map +1 -1
- package/dist/catchUpMonitor.d.ts +2 -2
- package/dist/catchUpMonitor.d.ts.map +1 -1
- package/dist/catchUpMonitor.js.map +1 -1
- package/dist/connectionManager.d.ts +7 -7
- package/dist/connectionManager.d.ts.map +1 -1
- package/dist/connectionManager.js.map +1 -1
- package/dist/connectionStateHandler.d.ts +7 -7
- package/dist/connectionStateHandler.d.ts.map +1 -1
- package/dist/connectionStateHandler.js.map +1 -1
- package/dist/container.d.ts +7 -8
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +1 -2
- package/dist/container.js.map +1 -1
- package/dist/containerContext.d.ts +7 -7
- package/dist/containerContext.d.ts.map +1 -1
- package/dist/containerContext.js.map +1 -1
- package/dist/containerStorageAdapter.d.ts +5 -5
- package/dist/containerStorageAdapter.d.ts.map +1 -1
- package/dist/containerStorageAdapter.js.map +1 -1
- package/dist/contracts.d.ts +5 -5
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js.map +1 -1
- package/dist/createAndLoadContainerUtils.d.ts +12 -19
- package/dist/createAndLoadContainerUtils.d.ts.map +1 -1
- package/dist/createAndLoadContainerUtils.js +3 -6
- package/dist/createAndLoadContainerUtils.js.map +1 -1
- package/dist/debugLogger.d.ts +2 -2
- package/dist/debugLogger.d.ts.map +1 -1
- package/dist/debugLogger.js.map +1 -1
- package/dist/deltaManager.d.ts +8 -8
- package/dist/deltaManager.d.ts.map +1 -1
- package/dist/deltaManager.js.map +1 -1
- package/dist/deltaQueue.d.ts +1 -1
- package/dist/deltaQueue.d.ts.map +1 -1
- package/dist/deltaQueue.js.map +1 -1
- package/dist/disposal.d.ts +1 -1
- package/dist/disposal.d.ts.map +1 -1
- package/dist/disposal.js.map +1 -1
- package/dist/error.d.ts +2 -2
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +4 -2
- package/dist/loadPaused.d.ts +2 -2
- package/dist/loadPaused.d.ts.map +1 -1
- package/dist/loadPaused.js.map +1 -1
- package/dist/loader.d.ts +11 -16
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +1 -2
- package/dist/loader.js.map +1 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts +3 -3
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.js +1 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.js.map +1 -1
- package/dist/noopHeuristic.d.ts +2 -2
- package/dist/noopHeuristic.d.ts.map +1 -1
- package/dist/noopHeuristic.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/protocol/index.d.ts +2 -2
- package/dist/protocol/index.d.ts.map +1 -1
- package/dist/protocol/index.js.map +1 -1
- package/dist/protocol/protocol.d.ts +5 -7
- package/dist/protocol/protocol.d.ts.map +1 -1
- package/dist/protocol/protocol.js.map +1 -1
- package/dist/protocol/quorum.d.ts +5 -8
- package/dist/protocol/quorum.d.ts.map +1 -1
- package/dist/protocol/quorum.js.map +1 -1
- package/dist/protocol.d.ts +5 -7
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/protocolTreeDocumentStorageService.d.ts +3 -3
- package/dist/protocolTreeDocumentStorageService.d.ts.map +1 -1
- package/dist/protocolTreeDocumentStorageService.js.map +1 -1
- package/dist/public.d.ts +2 -1
- package/dist/quorum.d.ts +2 -2
- package/dist/quorum.d.ts.map +1 -1
- package/dist/quorum.js.map +1 -1
- package/dist/retriableDocumentStorageService.d.ts +4 -4
- package/dist/retriableDocumentStorageService.d.ts.map +1 -1
- package/dist/retriableDocumentStorageService.js.map +1 -1
- package/dist/serializedStateManager.d.ts +4 -4
- package/dist/serializedStateManager.d.ts.map +1 -1
- package/dist/serializedStateManager.js.map +1 -1
- package/dist/utils.d.ts +6 -9
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -2
- package/dist/utils.js.map +1 -1
- package/internal.d.ts +1 -1
- package/legacy.d.ts +1 -1
- package/lib/attachment.d.ts +3 -3
- package/lib/attachment.d.ts.map +1 -1
- package/lib/attachment.js.map +1 -1
- package/lib/audience.d.ts +3 -3
- package/lib/audience.d.ts.map +1 -1
- package/lib/audience.js.map +1 -1
- package/lib/catchUpMonitor.d.ts +2 -2
- package/lib/catchUpMonitor.d.ts.map +1 -1
- package/lib/catchUpMonitor.js.map +1 -1
- package/lib/connectionManager.d.ts +7 -7
- package/lib/connectionManager.d.ts.map +1 -1
- package/lib/connectionManager.js.map +1 -1
- package/lib/connectionStateHandler.d.ts +7 -7
- package/lib/connectionStateHandler.d.ts.map +1 -1
- package/lib/connectionStateHandler.js.map +1 -1
- package/lib/container.d.ts +7 -8
- package/lib/container.d.ts.map +1 -1
- package/lib/container.js +1 -2
- package/lib/container.js.map +1 -1
- package/lib/containerContext.d.ts +7 -7
- package/lib/containerContext.d.ts.map +1 -1
- package/lib/containerContext.js.map +1 -1
- package/lib/containerStorageAdapter.d.ts +5 -5
- package/lib/containerStorageAdapter.d.ts.map +1 -1
- package/lib/containerStorageAdapter.js.map +1 -1
- package/lib/contracts.d.ts +5 -5
- package/lib/contracts.d.ts.map +1 -1
- package/lib/contracts.js.map +1 -1
- package/lib/createAndLoadContainerUtils.d.ts +12 -19
- package/lib/createAndLoadContainerUtils.d.ts.map +1 -1
- package/lib/createAndLoadContainerUtils.js +3 -6
- package/lib/createAndLoadContainerUtils.js.map +1 -1
- package/lib/debugLogger.d.ts +2 -2
- package/lib/debugLogger.d.ts.map +1 -1
- package/lib/debugLogger.js.map +1 -1
- package/lib/deltaManager.d.ts +8 -8
- package/lib/deltaManager.d.ts.map +1 -1
- package/lib/deltaManager.js.map +1 -1
- package/lib/deltaQueue.d.ts +1 -1
- package/lib/deltaQueue.d.ts.map +1 -1
- package/lib/deltaQueue.js.map +1 -1
- package/lib/disposal.d.ts +1 -1
- package/lib/disposal.d.ts.map +1 -1
- package/lib/disposal.js.map +1 -1
- package/lib/error.d.ts +2 -2
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +4 -2
- package/lib/loadPaused.d.ts +2 -2
- package/lib/loadPaused.d.ts.map +1 -1
- package/lib/loadPaused.js.map +1 -1
- package/lib/loader.d.ts +11 -16
- package/lib/loader.d.ts.map +1 -1
- package/lib/loader.js +1 -2
- package/lib/loader.js.map +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts +3 -3
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.js +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.js.map +1 -1
- package/lib/noopHeuristic.d.ts +2 -2
- package/lib/noopHeuristic.d.ts.map +1 -1
- package/lib/noopHeuristic.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/protocol/index.d.ts +2 -2
- package/lib/protocol/index.d.ts.map +1 -1
- package/lib/protocol/index.js.map +1 -1
- package/lib/protocol/protocol.d.ts +5 -7
- package/lib/protocol/protocol.d.ts.map +1 -1
- package/lib/protocol/protocol.js.map +1 -1
- package/lib/protocol/quorum.d.ts +5 -8
- package/lib/protocol/quorum.d.ts.map +1 -1
- package/lib/protocol/quorum.js.map +1 -1
- package/lib/protocol.d.ts +5 -7
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -1
- package/lib/protocol.js.map +1 -1
- package/lib/protocolTreeDocumentStorageService.d.ts +3 -3
- package/lib/protocolTreeDocumentStorageService.d.ts.map +1 -1
- package/lib/protocolTreeDocumentStorageService.js.map +1 -1
- package/lib/public.d.ts +2 -1
- package/lib/quorum.d.ts +2 -2
- package/lib/quorum.d.ts.map +1 -1
- package/lib/quorum.js.map +1 -1
- package/lib/retriableDocumentStorageService.d.ts +4 -4
- package/lib/retriableDocumentStorageService.d.ts.map +1 -1
- package/lib/retriableDocumentStorageService.js.map +1 -1
- package/lib/serializedStateManager.d.ts +4 -4
- package/lib/serializedStateManager.d.ts.map +1 -1
- package/lib/serializedStateManager.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib/utils.d.ts +6 -9
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -2
- package/lib/utils.js.map +1 -1
- package/package.json +21 -21
- package/src/attachment.ts +3 -3
- package/src/audience.ts +3 -3
- package/src/catchUpMonitor.ts +3 -3
- package/src/connectionManager.ts +30 -23
- package/src/connectionStateHandler.ts +9 -9
- package/src/container.ts +44 -45
- package/src/containerContext.ts +8 -8
- package/src/containerStorageAdapter.ts +6 -6
- package/src/contracts.ts +8 -8
- package/src/createAndLoadContainerUtils.ts +13 -20
- package/src/debugLogger.ts +3 -3
- package/src/deltaManager.ts +15 -15
- package/src/deltaQueue.ts +1 -1
- package/src/disposal.ts +1 -1
- package/src/error.ts +4 -4
- package/src/index.ts +12 -12
- package/src/loadPaused.ts +2 -3
- package/src/loader.ts +18 -23
- package/src/location-redirection-utilities/resolveWithLocationRedirection.ts +4 -4
- package/src/noopHeuristic.ts +2 -2
- package/src/packageVersion.ts +1 -1
- package/src/protocol/index.ts +5 -5
- package/src/protocol/protocol.ts +13 -15
- package/src/protocol/quorum.ts +5 -8
- package/src/protocol.ts +13 -11
- package/src/protocolTreeDocumentStorageService.ts +4 -4
- package/src/quorum.ts +2 -2
- package/src/retriableDocumentStorageService.ts +4 -4
- package/src/serializedStateManager.ts +9 -9
- package/src/utils.ts +9 -13
package/src/container.ts
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
} from "@fluid-internal/client-utils";
|
|
13
13
|
import {
|
|
14
14
|
AttachState,
|
|
15
|
-
IAudience,
|
|
16
|
-
ICriticalContainerError,
|
|
15
|
+
type IAudience,
|
|
16
|
+
type ICriticalContainerError,
|
|
17
17
|
} from "@fluidframework/container-definitions";
|
|
18
18
|
import type {
|
|
19
19
|
ContainerWarning,
|
|
@@ -35,41 +35,41 @@ import type {
|
|
|
35
35
|
} from "@fluidframework/container-definitions/internal";
|
|
36
36
|
import { isFluidCodeDetails } from "@fluidframework/container-definitions/internal";
|
|
37
37
|
import {
|
|
38
|
-
FluidObject,
|
|
39
|
-
IEvent,
|
|
40
|
-
IRequest,
|
|
41
|
-
ITelemetryBaseProperties,
|
|
38
|
+
type FluidObject,
|
|
39
|
+
type IEvent,
|
|
40
|
+
type IRequest,
|
|
41
|
+
type ITelemetryBaseProperties,
|
|
42
42
|
LogLevel,
|
|
43
43
|
} from "@fluidframework/core-interfaces";
|
|
44
|
-
import {
|
|
44
|
+
import type { ISignalEnvelope } from "@fluidframework/core-interfaces/internal";
|
|
45
45
|
import { assert, isPromiseLike, unreachableCase } from "@fluidframework/core-utils/internal";
|
|
46
46
|
import {
|
|
47
|
-
IClient,
|
|
48
|
-
IClientDetails,
|
|
49
|
-
IQuorumClients,
|
|
50
|
-
ISequencedClient,
|
|
51
|
-
ISummaryTree,
|
|
47
|
+
type IClient,
|
|
48
|
+
type IClientDetails,
|
|
49
|
+
type IQuorumClients,
|
|
50
|
+
type ISequencedClient,
|
|
51
|
+
type ISummaryTree,
|
|
52
52
|
SummaryType,
|
|
53
53
|
} from "@fluidframework/driver-definitions";
|
|
54
54
|
import {
|
|
55
|
-
IDocumentService,
|
|
56
|
-
IDocumentServiceFactory,
|
|
57
|
-
IDocumentStorageService,
|
|
58
|
-
IResolvedUrl,
|
|
59
|
-
ISnapshot,
|
|
60
|
-
IThrottlingWarning,
|
|
61
|
-
IUrlResolver,
|
|
62
|
-
ICommittedProposal,
|
|
63
|
-
IDocumentAttributes,
|
|
64
|
-
IDocumentMessage,
|
|
65
|
-
IQuorumProposals,
|
|
66
|
-
ISequencedProposal,
|
|
67
|
-
ISnapshotTree,
|
|
68
|
-
ISummaryContent,
|
|
69
|
-
IVersion,
|
|
55
|
+
type IDocumentService,
|
|
56
|
+
type IDocumentServiceFactory,
|
|
57
|
+
type IDocumentStorageService,
|
|
58
|
+
type IResolvedUrl,
|
|
59
|
+
type ISnapshot,
|
|
60
|
+
type IThrottlingWarning,
|
|
61
|
+
type IUrlResolver,
|
|
62
|
+
type ICommittedProposal,
|
|
63
|
+
type IDocumentAttributes,
|
|
64
|
+
type IDocumentMessage,
|
|
65
|
+
type IQuorumProposals,
|
|
66
|
+
type ISequencedProposal,
|
|
67
|
+
type ISnapshotTree,
|
|
68
|
+
type ISummaryContent,
|
|
69
|
+
type IVersion,
|
|
70
70
|
MessageType,
|
|
71
|
-
ISequencedDocumentMessage,
|
|
72
|
-
ISignalMessage,
|
|
71
|
+
type ISequencedDocumentMessage,
|
|
72
|
+
type ISignalMessage,
|
|
73
73
|
type ConnectionMode,
|
|
74
74
|
} from "@fluidframework/driver-definitions/internal";
|
|
75
75
|
import {
|
|
@@ -84,11 +84,11 @@ import {
|
|
|
84
84
|
} from "@fluidframework/driver-utils/internal";
|
|
85
85
|
import {
|
|
86
86
|
type TelemetryEventCategory,
|
|
87
|
-
ITelemetryLoggerExt,
|
|
87
|
+
type ITelemetryLoggerExt,
|
|
88
88
|
EventEmitterWithErrorHandling,
|
|
89
89
|
GenericError,
|
|
90
|
-
IFluidErrorBase,
|
|
91
|
-
MonitoringContext,
|
|
90
|
+
type IFluidErrorBase,
|
|
91
|
+
type MonitoringContext,
|
|
92
92
|
PerformanceEvent,
|
|
93
93
|
UsageError,
|
|
94
94
|
connectedEventName,
|
|
@@ -105,27 +105,27 @@ import structuredClone from "@ungap/structured-clone";
|
|
|
105
105
|
import { v4 as uuid } from "uuid";
|
|
106
106
|
|
|
107
107
|
import {
|
|
108
|
-
AttachProcessProps,
|
|
109
|
-
AttachmentData,
|
|
108
|
+
type AttachProcessProps,
|
|
109
|
+
type AttachmentData,
|
|
110
110
|
runRetriableAttachProcess,
|
|
111
111
|
} from "./attachment.js";
|
|
112
112
|
import { Audience } from "./audience.js";
|
|
113
113
|
import { ConnectionManager } from "./connectionManager.js";
|
|
114
114
|
import { ConnectionState } from "./connectionState.js";
|
|
115
115
|
import {
|
|
116
|
-
IConnectionStateHandler,
|
|
116
|
+
type IConnectionStateHandler,
|
|
117
117
|
createConnectionStateHandler,
|
|
118
118
|
} from "./connectionStateHandler.js";
|
|
119
119
|
import { ContainerContext } from "./containerContext.js";
|
|
120
120
|
import { ContainerStorageAdapter } from "./containerStorageAdapter.js";
|
|
121
121
|
import {
|
|
122
|
-
IConnectionDetailsInternal,
|
|
123
|
-
IConnectionManagerFactoryArgs,
|
|
124
|
-
IConnectionStateChangeReason,
|
|
122
|
+
type IConnectionDetailsInternal,
|
|
123
|
+
type IConnectionManagerFactoryArgs,
|
|
124
|
+
type IConnectionStateChangeReason,
|
|
125
125
|
ReconnectMode,
|
|
126
126
|
getPackageName,
|
|
127
127
|
} from "./contracts.js";
|
|
128
|
-
import { DeltaManager, IConnectionArgs } from "./deltaManager.js";
|
|
128
|
+
import { DeltaManager, type IConnectionArgs } from "./deltaManager.js";
|
|
129
129
|
import { RelativeLoader } from "./loader.js";
|
|
130
130
|
import {
|
|
131
131
|
validateDriverCompatibility,
|
|
@@ -138,11 +138,11 @@ import {
|
|
|
138
138
|
} from "./memoryBlobStorage.js";
|
|
139
139
|
import { NoopHeuristic } from "./noopHeuristic.js";
|
|
140
140
|
import { pkgVersion } from "./packageVersion.js";
|
|
141
|
-
import { IQuorumSnapshot } from "./protocol/index.js";
|
|
141
|
+
import type { IQuorumSnapshot } from "./protocol/index.js";
|
|
142
142
|
import {
|
|
143
|
-
IProtocolHandler,
|
|
143
|
+
type IProtocolHandler,
|
|
144
144
|
ProtocolHandler,
|
|
145
|
-
ProtocolHandlerBuilder,
|
|
145
|
+
type ProtocolHandlerBuilder,
|
|
146
146
|
protocolHandlerShouldProcessSignal,
|
|
147
147
|
} from "./protocol.js";
|
|
148
148
|
import { initQuorumValuesFromCodeDetails } from "./quorum.js";
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
SerializedStateManager,
|
|
153
153
|
} from "./serializedStateManager.js";
|
|
154
154
|
import {
|
|
155
|
-
ISnapshotTreeWithBlobContents,
|
|
155
|
+
type ISnapshotTreeWithBlobContents,
|
|
156
156
|
combineAppAndProtocolSummary,
|
|
157
157
|
combineSnapshotTreeAndSnapshotBlobs,
|
|
158
158
|
getDetachedContainerStateFromSerializedContainer,
|
|
@@ -272,8 +272,7 @@ export interface IContainerCreateProps {
|
|
|
272
272
|
* but it maybe still behind.
|
|
273
273
|
*
|
|
274
274
|
* @throws an error beginning with `"Container closed"` if the container is closed before it catches up.
|
|
275
|
-
* @legacy
|
|
276
|
-
* @alpha
|
|
275
|
+
* @legacy @beta
|
|
277
276
|
*/
|
|
278
277
|
export async function waitContainerToCatchUp(container: IContainer): Promise<boolean> {
|
|
279
278
|
// Make sure we stop waiting if container is closed.
|
package/src/containerContext.ts
CHANGED
|
@@ -7,23 +7,23 @@ import type {
|
|
|
7
7
|
ILayerCompatDetails,
|
|
8
8
|
IProvideLayerCompatDetails,
|
|
9
9
|
} from "@fluid-internal/client-utils";
|
|
10
|
-
import {
|
|
10
|
+
import type {
|
|
11
11
|
AttachState,
|
|
12
12
|
IAudience,
|
|
13
13
|
ICriticalContainerError,
|
|
14
14
|
} from "@fluidframework/container-definitions";
|
|
15
|
-
import {
|
|
15
|
+
import type {
|
|
16
16
|
IBatchMessage,
|
|
17
17
|
IContainerContext,
|
|
18
18
|
ILoader,
|
|
19
19
|
ILoaderOptions,
|
|
20
20
|
IDeltaManager,
|
|
21
|
-
|
|
21
|
+
IContainerStorageService,
|
|
22
22
|
} from "@fluidframework/container-definitions/internal";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { IClientDetails, IQuorumClients } from "@fluidframework/driver-definitions";
|
|
26
|
-
import {
|
|
23
|
+
import type { FluidObject } from "@fluidframework/core-interfaces";
|
|
24
|
+
import type { ISignalEnvelope } from "@fluidframework/core-interfaces/internal";
|
|
25
|
+
import type { IClientDetails, IQuorumClients } from "@fluidframework/driver-definitions";
|
|
26
|
+
import type {
|
|
27
27
|
ISnapshot,
|
|
28
28
|
IDocumentMessage,
|
|
29
29
|
ISnapshotTree,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
MessageType,
|
|
33
33
|
ISequencedDocumentMessage,
|
|
34
34
|
} from "@fluidframework/driver-definitions/internal";
|
|
35
|
-
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
35
|
+
import type { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
36
36
|
|
|
37
37
|
import type { ConnectionState } from "./connectionState.js";
|
|
38
38
|
import { loaderCompatDetailsForRuntime } from "./loaderLayerCompatState.js";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { bufferToString, stringToBuffer } from "@fluid-internal/client-utils";
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
8
|
ISnapshotTreeWithBlobContents,
|
|
9
|
-
|
|
9
|
+
IContainerStorageService,
|
|
10
10
|
} from "@fluidframework/container-definitions/internal";
|
|
11
|
-
import { IDisposable } from "@fluidframework/core-interfaces";
|
|
11
|
+
import type { IDisposable } from "@fluidframework/core-interfaces";
|
|
12
12
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
13
|
-
import { ISummaryHandle, ISummaryTree } from "@fluidframework/driver-definitions";
|
|
14
|
-
import {
|
|
13
|
+
import type { ISummaryHandle, ISummaryTree } from "@fluidframework/driver-definitions";
|
|
14
|
+
import type {
|
|
15
15
|
FetchSource,
|
|
16
16
|
IDocumentService,
|
|
17
17
|
IDocumentStorageService,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
IVersion,
|
|
25
25
|
} from "@fluidframework/driver-definitions/internal";
|
|
26
26
|
import { isInstanceOfISnapshot, UsageError } from "@fluidframework/driver-utils/internal";
|
|
27
|
-
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
27
|
+
import type { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
28
28
|
|
|
29
29
|
import type { MemoryDetachedBlobStorage } from "./memoryBlobStorage.js";
|
|
30
30
|
import { ProtocolTreeStorageService } from "./protocolTreeDocumentStorageService.js";
|
package/src/contracts.ts
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ICriticalContainerError } from "@fluidframework/container-definitions";
|
|
6
|
+
import type { ICriticalContainerError } from "@fluidframework/container-definitions";
|
|
7
7
|
import {
|
|
8
|
-
IDeltaQueue,
|
|
9
|
-
ReadOnlyInfo,
|
|
10
|
-
IFluidCodeDetails,
|
|
8
|
+
type IDeltaQueue,
|
|
9
|
+
type ReadOnlyInfo,
|
|
10
|
+
type IFluidCodeDetails,
|
|
11
11
|
isFluidPackage,
|
|
12
|
-
IConnectionDetails,
|
|
12
|
+
type IConnectionDetails,
|
|
13
13
|
} from "@fluidframework/container-definitions/internal";
|
|
14
|
-
import { IErrorBase, ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
15
|
-
import { ConnectionMode, IClientDetails } from "@fluidframework/driver-definitions";
|
|
16
|
-
import {
|
|
14
|
+
import type { IErrorBase, ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
15
|
+
import type { ConnectionMode, IClientDetails } from "@fluidframework/driver-definitions";
|
|
16
|
+
import type {
|
|
17
17
|
IContainerPackageInfo,
|
|
18
18
|
IClientConfiguration,
|
|
19
19
|
IDocumentMessage,
|
|
@@ -3,31 +3,30 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import type {
|
|
7
7
|
IContainer,
|
|
8
8
|
ICodeDetailsLoader,
|
|
9
9
|
IFluidCodeDetails,
|
|
10
|
-
|
|
10
|
+
IContainerPolicies,
|
|
11
11
|
} from "@fluidframework/container-definitions/internal";
|
|
12
|
-
import {
|
|
12
|
+
import type {
|
|
13
13
|
FluidObject,
|
|
14
14
|
IConfigProviderBase,
|
|
15
15
|
IRequest,
|
|
16
16
|
ITelemetryBaseLogger,
|
|
17
17
|
} from "@fluidframework/core-interfaces";
|
|
18
|
-
import { IClientDetails } from "@fluidframework/driver-definitions";
|
|
19
|
-
import {
|
|
18
|
+
import type { IClientDetails } from "@fluidframework/driver-definitions";
|
|
19
|
+
import type {
|
|
20
20
|
IDocumentServiceFactory,
|
|
21
21
|
IUrlResolver,
|
|
22
22
|
} from "@fluidframework/driver-definitions/internal";
|
|
23
23
|
|
|
24
24
|
import { Loader } from "./loader.js";
|
|
25
|
-
import { ProtocolHandlerBuilder } from "./protocol.js";
|
|
25
|
+
import type { ProtocolHandlerBuilder } from "./protocol.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Properties necessary for creating and loading a container.
|
|
29
|
-
* @legacy
|
|
30
|
-
* @alpha
|
|
29
|
+
* @legacy @beta
|
|
31
30
|
*/
|
|
32
31
|
export interface ICreateAndLoadContainerProps {
|
|
33
32
|
/**
|
|
@@ -89,8 +88,7 @@ export interface ICreateAndLoadContainerProps {
|
|
|
89
88
|
|
|
90
89
|
/**
|
|
91
90
|
* Props used to load a container.
|
|
92
|
-
* @legacy
|
|
93
|
-
* @alpha
|
|
91
|
+
* @legacy @beta
|
|
94
92
|
*/
|
|
95
93
|
export interface ILoadExistingContainerProps extends ICreateAndLoadContainerProps {
|
|
96
94
|
/**
|
|
@@ -106,8 +104,7 @@ export interface ILoadExistingContainerProps extends ICreateAndLoadContainerProp
|
|
|
106
104
|
|
|
107
105
|
/**
|
|
108
106
|
* Props used to create a detached container.
|
|
109
|
-
* @legacy
|
|
110
|
-
* @alpha
|
|
107
|
+
* @legacy @beta
|
|
111
108
|
*/
|
|
112
109
|
export interface ICreateDetachedContainerProps extends ICreateAndLoadContainerProps {
|
|
113
110
|
/**
|
|
@@ -118,8 +115,7 @@ export interface ICreateDetachedContainerProps extends ICreateAndLoadContainerPr
|
|
|
118
115
|
|
|
119
116
|
/**
|
|
120
117
|
* Props used to rehydrate a detached container.
|
|
121
|
-
* @legacy
|
|
122
|
-
* @alpha
|
|
118
|
+
* @legacy @beta
|
|
123
119
|
*/
|
|
124
120
|
export interface IRehydrateDetachedContainerProps extends ICreateAndLoadContainerProps {
|
|
125
121
|
/**
|
|
@@ -132,8 +128,7 @@ export interface IRehydrateDetachedContainerProps extends ICreateAndLoadContaine
|
|
|
132
128
|
* Creates a new container using the specified code details but in an unattached state. While unattached, all
|
|
133
129
|
* updates will only be local until the user explicitly attaches the container to a service provider.
|
|
134
130
|
* @param createDetachedContainerProps - Services and properties necessary for creating detached container.
|
|
135
|
-
* @legacy
|
|
136
|
-
* @alpha
|
|
131
|
+
* @legacy @beta
|
|
137
132
|
*/
|
|
138
133
|
export async function createDetachedContainer(
|
|
139
134
|
createDetachedContainerProps: ICreateDetachedContainerProps,
|
|
@@ -149,8 +144,7 @@ export async function createDetachedContainer(
|
|
|
149
144
|
* Creates a new container using the specified snapshot but in an unattached state. While unattached, all
|
|
150
145
|
* updates will only be local until the user explicitly attaches the container to a service provider.
|
|
151
146
|
* @param rehydrateDetachedContainerProps - Services and properties necessary for rehydrating detached container from a previously serialized container's state.
|
|
152
|
-
* @legacy
|
|
153
|
-
* @alpha
|
|
147
|
+
* @legacy @beta
|
|
154
148
|
*/
|
|
155
149
|
export async function rehydrateDetachedContainer(
|
|
156
150
|
rehydrateDetachedContainerProps: IRehydrateDetachedContainerProps,
|
|
@@ -168,8 +162,7 @@ export async function rehydrateDetachedContainer(
|
|
|
168
162
|
/**
|
|
169
163
|
* Loads a container with an existing snapshot from the service.
|
|
170
164
|
* @param loadExistingContainerProps - Services and properties necessary for loading an existing container.
|
|
171
|
-
* @legacy
|
|
172
|
-
* @alpha
|
|
165
|
+
* @legacy @beta
|
|
173
166
|
*/
|
|
174
167
|
export async function loadExistingContainer(
|
|
175
168
|
loadExistingContainerProps: ILoadExistingContainerProps,
|
package/src/debugLogger.ts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { performanceNow } from "@fluid-internal/client-utils";
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
8
|
ITelemetryBaseEvent,
|
|
9
9
|
ITelemetryBaseLogger,
|
|
10
10
|
ITelemetryBaseProperties,
|
|
11
11
|
} from "@fluidframework/core-interfaces";
|
|
12
12
|
import {
|
|
13
|
-
ITelemetryLoggerExt,
|
|
14
|
-
ITelemetryLoggerPropertyBags,
|
|
13
|
+
type ITelemetryLoggerExt,
|
|
14
|
+
type ITelemetryLoggerPropertyBags,
|
|
15
15
|
createMultiSinkLogger,
|
|
16
16
|
eventNamespaceSeparator,
|
|
17
17
|
formatTick,
|
package/src/deltaManager.ts
CHANGED
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ICriticalContainerError } from "@fluidframework/container-definitions";
|
|
7
|
-
import {
|
|
6
|
+
import type { ICriticalContainerError } from "@fluidframework/container-definitions";
|
|
7
|
+
import type {
|
|
8
8
|
IDeltaManagerEvents,
|
|
9
9
|
IDeltaManagerFull,
|
|
10
10
|
IDeltaQueue,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
IDeltaSender,
|
|
12
|
+
ReadOnlyInfo,
|
|
13
13
|
} from "@fluidframework/container-definitions/internal";
|
|
14
|
-
import {
|
|
14
|
+
import type {
|
|
15
15
|
IEventProvider,
|
|
16
|
-
|
|
16
|
+
ITelemetryBaseEvent,
|
|
17
17
|
ITelemetryBaseProperties,
|
|
18
18
|
} from "@fluidframework/core-interfaces";
|
|
19
|
-
import { IThrottlingWarning } from "@fluidframework/core-interfaces/internal";
|
|
19
|
+
import type { IThrottlingWarning } from "@fluidframework/core-interfaces/internal";
|
|
20
20
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
21
|
-
import { ConnectionMode } from "@fluidframework/driver-definitions";
|
|
21
|
+
import type { ConnectionMode } from "@fluidframework/driver-definitions";
|
|
22
22
|
import {
|
|
23
|
-
IDocumentDeltaStorageService,
|
|
24
|
-
IDocumentService,
|
|
23
|
+
type IDocumentDeltaStorageService,
|
|
24
|
+
type IDocumentService,
|
|
25
25
|
DriverErrorTypes,
|
|
26
|
-
IDocumentMessage,
|
|
26
|
+
type IDocumentMessage,
|
|
27
27
|
MessageType,
|
|
28
|
-
ISequencedDocumentMessage,
|
|
29
|
-
ISignalMessage,
|
|
28
|
+
type ISequencedDocumentMessage,
|
|
29
|
+
type ISignalMessage,
|
|
30
30
|
type IClientDetails,
|
|
31
31
|
type IClientConfiguration,
|
|
32
32
|
} from "@fluidframework/driver-definitions/internal";
|
|
@@ -34,7 +34,7 @@ import { NonRetryableError, isRuntimeMessage } from "@fluidframework/driver-util
|
|
|
34
34
|
import {
|
|
35
35
|
type ITelemetryErrorEventExt,
|
|
36
36
|
type ITelemetryGenericEventExt,
|
|
37
|
-
ITelemetryLoggerExt,
|
|
37
|
+
type ITelemetryLoggerExt,
|
|
38
38
|
DataCorruptionError,
|
|
39
39
|
DataProcessingError,
|
|
40
40
|
UsageError,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
} from "@fluidframework/telemetry-utils/internal";
|
|
47
47
|
import { v4 as uuid } from "uuid";
|
|
48
48
|
|
|
49
|
-
import {
|
|
49
|
+
import type {
|
|
50
50
|
IConnectionDetailsInternal,
|
|
51
51
|
IConnectionManager,
|
|
52
52
|
IConnectionManagerFactoryArgs,
|
package/src/deltaQueue.ts
CHANGED
package/src/disposal.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IDisposable } from "@fluidframework/core-interfaces";
|
|
6
|
+
import type { IDisposable } from "@fluidframework/core-interfaces";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns a wrapper around the provided function, which will only invoke the inner function if the provided
|
package/src/error.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ContainerErrorTypes } from "@fluidframework/container-definitions/internal";
|
|
7
|
-
import { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
8
|
-
import { IThrottlingWarning } from "@fluidframework/core-interfaces/internal";
|
|
7
|
+
import type { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
8
|
+
import type { IThrottlingWarning } from "@fluidframework/core-interfaces/internal";
|
|
9
9
|
import {
|
|
10
|
-
IFluidErrorBase,
|
|
11
|
-
ITelemetryLoggerExt,
|
|
10
|
+
type IFluidErrorBase,
|
|
11
|
+
type ITelemetryLoggerExt,
|
|
12
12
|
LoggingError,
|
|
13
13
|
wrapErrorAndLog,
|
|
14
14
|
} from "@fluidframework/telemetry-utils/internal";
|
package/src/index.ts
CHANGED
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export { ConnectionState } from "./connectionState.js";
|
|
7
|
-
export { IContainerExperimental, waitContainerToCatchUp } from "./container.js";
|
|
7
|
+
export { type IContainerExperimental, waitContainerToCatchUp } from "./container.js";
|
|
8
8
|
export {
|
|
9
9
|
createDetachedContainer,
|
|
10
10
|
loadExistingContainer,
|
|
11
11
|
rehydrateDetachedContainer,
|
|
12
|
-
ICreateAndLoadContainerProps,
|
|
13
|
-
ICreateDetachedContainerProps,
|
|
14
|
-
ILoadExistingContainerProps,
|
|
15
|
-
IRehydrateDetachedContainerProps,
|
|
12
|
+
type ICreateAndLoadContainerProps,
|
|
13
|
+
type ICreateDetachedContainerProps,
|
|
14
|
+
type ILoadExistingContainerProps,
|
|
15
|
+
type IRehydrateDetachedContainerProps,
|
|
16
16
|
} from "./createAndLoadContainerUtils.js";
|
|
17
17
|
export {
|
|
18
|
-
ICodeDetailsLoader,
|
|
19
|
-
IFluidModuleWithDetails,
|
|
20
|
-
ILoaderProps,
|
|
21
|
-
ILoaderServices,
|
|
18
|
+
type ICodeDetailsLoader,
|
|
19
|
+
type IFluidModuleWithDetails,
|
|
20
|
+
type ILoaderProps,
|
|
21
|
+
type ILoaderServices,
|
|
22
22
|
Loader,
|
|
23
23
|
} from "./loader.js";
|
|
24
24
|
export {
|
|
@@ -32,12 +32,12 @@ export {
|
|
|
32
32
|
isLocationRedirectionError,
|
|
33
33
|
resolveWithLocationRedirectionHandling,
|
|
34
34
|
} from "./location-redirection-utilities/index.js";
|
|
35
|
-
export { IProtocolHandler, ProtocolHandlerBuilder } from "./protocol.js";
|
|
35
|
+
export type { IProtocolHandler, ProtocolHandlerBuilder } from "./protocol.js";
|
|
36
36
|
export {
|
|
37
37
|
tryParseCompatibleResolvedUrl,
|
|
38
|
-
IParsedUrl,
|
|
38
|
+
type IParsedUrl,
|
|
39
39
|
} from "./utils.js";
|
|
40
|
-
export {
|
|
40
|
+
export type {
|
|
41
41
|
IBaseProtocolHandler,
|
|
42
42
|
IScribeProtocolState,
|
|
43
43
|
IQuorumSnapshot,
|
package/src/loadPaused.ts
CHANGED
|
@@ -8,13 +8,12 @@ import {
|
|
|
8
8
|
LoaderHeader,
|
|
9
9
|
type IContainer,
|
|
10
10
|
} from "@fluidframework/container-definitions/internal";
|
|
11
|
-
import { IRequest } from "@fluidframework/core-interfaces";
|
|
12
|
-
import type { IErrorBase } from "@fluidframework/core-interfaces";
|
|
11
|
+
import type { IRequest, IErrorBase } from "@fluidframework/core-interfaces";
|
|
13
12
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
14
13
|
import { GenericError } from "@fluidframework/telemetry-utils/internal";
|
|
15
14
|
|
|
16
15
|
import { loadExistingContainer } from "./createAndLoadContainerUtils.js";
|
|
17
|
-
import {
|
|
16
|
+
import type { ILoaderProps } from "./loader.js";
|
|
18
17
|
|
|
19
18
|
/* eslint-disable jsdoc/check-indentation */
|
|
20
19
|
|
package/src/loader.ts
CHANGED
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
|
-
IContainer,
|
|
8
|
-
IFluidCodeDetails,
|
|
9
|
-
IFluidModule,
|
|
10
|
-
IHostLoader,
|
|
11
|
-
ILoader,
|
|
12
|
-
ILoaderOptions,
|
|
13
|
-
IProvideFluidCodeDetailsComparer,
|
|
7
|
+
type IContainer,
|
|
8
|
+
type IFluidCodeDetails,
|
|
9
|
+
type IFluidModule,
|
|
10
|
+
type IHostLoader,
|
|
11
|
+
type ILoader,
|
|
12
|
+
type ILoaderOptions,
|
|
13
|
+
type IProvideFluidCodeDetailsComparer,
|
|
14
14
|
LoaderHeader,
|
|
15
15
|
} from "@fluidframework/container-definitions/internal";
|
|
16
|
-
import {
|
|
16
|
+
import type {
|
|
17
17
|
FluidObject,
|
|
18
18
|
IConfigProviderBase,
|
|
19
19
|
IRequest,
|
|
20
20
|
ITelemetryBaseLogger,
|
|
21
21
|
} from "@fluidframework/core-interfaces";
|
|
22
|
-
import { IClientDetails } from "@fluidframework/driver-definitions";
|
|
23
|
-
import {
|
|
22
|
+
import type { IClientDetails } from "@fluidframework/driver-definitions";
|
|
23
|
+
import type {
|
|
24
24
|
IDocumentServiceFactory,
|
|
25
25
|
IResolvedUrl,
|
|
26
26
|
IUrlResolver,
|
|
27
27
|
} from "@fluidframework/driver-definitions/internal";
|
|
28
28
|
import {
|
|
29
|
-
ITelemetryLoggerExt,
|
|
30
|
-
MonitoringContext,
|
|
29
|
+
type ITelemetryLoggerExt,
|
|
30
|
+
type MonitoringContext,
|
|
31
31
|
PerformanceEvent,
|
|
32
32
|
createChildMonitoringContext,
|
|
33
33
|
mixinMonitoringContext,
|
|
@@ -38,7 +38,7 @@ import { v4 as uuid } from "uuid";
|
|
|
38
38
|
import { Container } from "./container.js";
|
|
39
39
|
import { DebugLogger } from "./debugLogger.js";
|
|
40
40
|
import { pkgVersion } from "./packageVersion.js";
|
|
41
|
-
import { ProtocolHandlerBuilder } from "./protocol.js";
|
|
41
|
+
import type { ProtocolHandlerBuilder } from "./protocol.js";
|
|
42
42
|
import type { IPendingContainerState } from "./serializedStateManager.js";
|
|
43
43
|
import {
|
|
44
44
|
getAttachedContainerStateFromSerializedContainer,
|
|
@@ -94,8 +94,7 @@ export class RelativeLoader implements ILoader {
|
|
|
94
94
|
* {@link @fluidframework/container-definitions#IFluidModuleWithDetails}
|
|
95
95
|
* to have all the code loading modules in one package. #8193
|
|
96
96
|
* Encapsulates a module entry point with corresponding code details.
|
|
97
|
-
* @legacy
|
|
98
|
-
* @alpha
|
|
97
|
+
* @legacy @beta
|
|
99
98
|
*/
|
|
100
99
|
export interface IFluidModuleWithDetails {
|
|
101
100
|
/**
|
|
@@ -115,8 +114,7 @@ export interface IFluidModuleWithDetails {
|
|
|
115
114
|
* to have code loading modules in one package. #8193
|
|
116
115
|
* Fluid code loader resolves a code module matching the document schema, i.e. code details, such as
|
|
117
116
|
* a package name and package version range.
|
|
118
|
-
* @legacy
|
|
119
|
-
* @alpha
|
|
117
|
+
* @legacy @beta
|
|
120
118
|
*/
|
|
121
119
|
export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComparer> {
|
|
122
120
|
/**
|
|
@@ -130,8 +128,7 @@ export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComp
|
|
|
130
128
|
|
|
131
129
|
/**
|
|
132
130
|
* Services and properties necessary for creating a loader
|
|
133
|
-
* @legacy
|
|
134
|
-
* @alpha
|
|
131
|
+
* @legacy @beta
|
|
135
132
|
*/
|
|
136
133
|
export interface ILoaderProps {
|
|
137
134
|
/**
|
|
@@ -183,8 +180,7 @@ export interface ILoaderProps {
|
|
|
183
180
|
|
|
184
181
|
/**
|
|
185
182
|
* Services and properties used by and exposed by the loader
|
|
186
|
-
* @legacy
|
|
187
|
-
* @alpha
|
|
183
|
+
* @legacy @beta
|
|
188
184
|
*/
|
|
189
185
|
export interface ILoaderServices {
|
|
190
186
|
/**
|
|
@@ -231,8 +227,7 @@ export interface ILoaderServices {
|
|
|
231
227
|
|
|
232
228
|
/**
|
|
233
229
|
* Manages Fluid resource loading
|
|
234
|
-
* @legacy
|
|
235
|
-
* @alpha
|
|
230
|
+
* @legacy @beta
|
|
236
231
|
*
|
|
237
232
|
* @remarks The Loader class is deprecated and will be removed in a future release. Use the free-form functions instead (See issue #24450 for more details).
|
|
238
233
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IRequest, ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
6
|
+
import type { IRequest, ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
7
|
import {
|
|
8
|
-
ILocationRedirectionError,
|
|
9
|
-
IUrlResolver,
|
|
8
|
+
type ILocationRedirectionError,
|
|
9
|
+
type IUrlResolver,
|
|
10
10
|
DriverErrorTypes,
|
|
11
11
|
} from "@fluidframework/driver-definitions/internal";
|
|
12
12
|
import { createChildLogger } from "@fluidframework/telemetry-utils/internal";
|
|
@@ -36,7 +36,7 @@ export function isLocationRedirectionError(
|
|
|
36
36
|
* @param logger - logger to send events.
|
|
37
37
|
* @returns Response from the API call.
|
|
38
38
|
* @legacy
|
|
39
|
-
* @
|
|
39
|
+
* @beta
|
|
40
40
|
*/
|
|
41
41
|
export async function resolveWithLocationRedirectionHandling<T>(
|
|
42
42
|
api: (request: IRequest) => Promise<T>,
|
package/src/noopHeuristic.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
|
-
import { IEvent } from "@fluidframework/core-interfaces";
|
|
7
|
+
import type { IEvent } from "@fluidframework/core-interfaces";
|
|
8
8
|
import { assert, Timer } from "@fluidframework/core-utils/internal";
|
|
9
|
-
import { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
9
|
+
import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
10
10
|
import { isRuntimeMessage } from "@fluidframework/driver-utils/internal";
|
|
11
11
|
|
|
12
12
|
const defaultNoopTimeFrequency = 2000;
|