@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/packageVersion.ts
CHANGED
package/src/protocol/index.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export {
|
|
7
|
-
IProtocolHandler as IBaseProtocolHandler,
|
|
7
|
+
type IProtocolHandler as IBaseProtocolHandler,
|
|
8
8
|
ProtocolOpHandler,
|
|
9
|
-
IScribeProtocolState,
|
|
9
|
+
type IScribeProtocolState,
|
|
10
10
|
} from "./protocol.js";
|
|
11
11
|
export {
|
|
12
|
-
IQuorumSnapshot,
|
|
12
|
+
type IQuorumSnapshot,
|
|
13
13
|
Quorum,
|
|
14
|
-
QuorumClientsSnapshot,
|
|
15
|
-
QuorumProposalsSnapshot,
|
|
14
|
+
type QuorumClientsSnapshot,
|
|
15
|
+
type QuorumProposalsSnapshot,
|
|
16
16
|
} from "./quorum.js";
|
package/src/protocol/protocol.ts
CHANGED
|
@@ -3,25 +3,24 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ISequencedClient } from "@fluidframework/driver-definitions";
|
|
6
|
+
import type { ISequencedClient } from "@fluidframework/driver-definitions";
|
|
7
7
|
import {
|
|
8
|
-
ISequencedDocumentMessage,
|
|
9
|
-
IDocumentAttributes,
|
|
10
|
-
IClientJoin,
|
|
11
|
-
ICommittedProposal,
|
|
12
|
-
IProcessMessageResult,
|
|
13
|
-
IProposal,
|
|
14
|
-
IQuorum,
|
|
15
|
-
ISequencedDocumentSystemMessage,
|
|
16
|
-
ISequencedProposal,
|
|
8
|
+
type ISequencedDocumentMessage,
|
|
9
|
+
type IDocumentAttributes,
|
|
10
|
+
type IClientJoin,
|
|
11
|
+
type ICommittedProposal,
|
|
12
|
+
type IProcessMessageResult,
|
|
13
|
+
type IProposal,
|
|
14
|
+
type IQuorum,
|
|
15
|
+
type ISequencedDocumentSystemMessage,
|
|
16
|
+
type ISequencedProposal,
|
|
17
17
|
MessageType,
|
|
18
18
|
} from "@fluidframework/driver-definitions/internal";
|
|
19
19
|
|
|
20
|
-
import { IQuorumSnapshot, Quorum } from "./quorum.js";
|
|
20
|
+
import { type IQuorumSnapshot, Quorum } from "./quorum.js";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @legacy
|
|
24
|
-
* @alpha
|
|
23
|
+
* @legacy @beta
|
|
25
24
|
*/
|
|
26
25
|
export interface IScribeProtocolState {
|
|
27
26
|
sequenceNumber: number;
|
|
@@ -32,8 +31,7 @@ export interface IScribeProtocolState {
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
/**
|
|
35
|
-
* @legacy
|
|
36
|
-
* @alpha
|
|
34
|
+
* @legacy @beta
|
|
37
35
|
*/
|
|
38
36
|
export interface IProtocolHandler {
|
|
39
37
|
readonly quorum: IQuorum;
|
package/src/protocol/quorum.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
7
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
-
import { IQuorumClients, ISequencedClient } from "@fluidframework/driver-definitions";
|
|
9
|
-
import {
|
|
8
|
+
import type { IQuorumClients, ISequencedClient } from "@fluidframework/driver-definitions";
|
|
9
|
+
import type {
|
|
10
10
|
ISequencedDocumentMessage,
|
|
11
11
|
ICommittedProposal,
|
|
12
12
|
IQuorum,
|
|
@@ -30,15 +30,13 @@ class PendingProposal implements ISequencedProposal {
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Snapshot format for a QuorumClients
|
|
33
|
-
* @legacy
|
|
34
|
-
* @alpha
|
|
33
|
+
* @legacy @beta
|
|
35
34
|
*/
|
|
36
35
|
export type QuorumClientsSnapshot = [string, ISequencedClient][];
|
|
37
36
|
|
|
38
37
|
/**
|
|
39
38
|
* Snapshot format for a QuorumProposals
|
|
40
|
-
* @legacy
|
|
41
|
-
* @alpha
|
|
39
|
+
* @legacy @beta
|
|
42
40
|
*/
|
|
43
41
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
44
42
|
export type QuorumProposalsSnapshot = {
|
|
@@ -48,8 +46,7 @@ export type QuorumProposalsSnapshot = {
|
|
|
48
46
|
|
|
49
47
|
/**
|
|
50
48
|
* Snapshot format for a Quorum
|
|
51
|
-
* @legacy
|
|
52
|
-
* @alpha
|
|
49
|
+
* @legacy @beta
|
|
53
50
|
*/
|
|
54
51
|
export interface IQuorumSnapshot {
|
|
55
52
|
members: QuorumClientsSnapshot;
|
package/src/protocol.ts
CHANGED
|
@@ -3,18 +3,22 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IAudienceOwner } from "@fluidframework/container-definitions/internal";
|
|
6
|
+
import type { IAudienceOwner } from "@fluidframework/container-definitions/internal";
|
|
7
7
|
import {
|
|
8
|
-
IDocumentAttributes,
|
|
9
|
-
IProcessMessageResult,
|
|
10
|
-
ISignalClient,
|
|
8
|
+
type IDocumentAttributes,
|
|
9
|
+
type IProcessMessageResult,
|
|
10
|
+
type ISignalClient,
|
|
11
11
|
MessageType,
|
|
12
|
-
ISequencedDocumentMessage,
|
|
13
|
-
ISignalMessage,
|
|
12
|
+
type ISequencedDocumentMessage,
|
|
13
|
+
type ISignalMessage,
|
|
14
14
|
} from "@fluidframework/driver-definitions/internal";
|
|
15
15
|
import { canBeCoalescedByService } from "@fluidframework/driver-utils/internal";
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
type IBaseProtocolHandler,
|
|
19
|
+
type IQuorumSnapshot,
|
|
20
|
+
ProtocolOpHandler,
|
|
21
|
+
} from "./protocol/index.js";
|
|
18
22
|
|
|
19
23
|
// ADO: #1986: Start using enum from protocol-base.
|
|
20
24
|
export enum SignalType {
|
|
@@ -25,8 +29,7 @@ export enum SignalType {
|
|
|
25
29
|
|
|
26
30
|
/**
|
|
27
31
|
* Function to be used for creating a protocol handler.
|
|
28
|
-
* @legacy
|
|
29
|
-
* @alpha
|
|
32
|
+
* @legacy @beta
|
|
30
33
|
*/
|
|
31
34
|
export type ProtocolHandlerBuilder = (
|
|
32
35
|
attributes: IDocumentAttributes,
|
|
@@ -37,8 +40,7 @@ export type ProtocolHandlerBuilder = (
|
|
|
37
40
|
) => IProtocolHandler;
|
|
38
41
|
|
|
39
42
|
/**
|
|
40
|
-
* @legacy
|
|
41
|
-
* @alpha
|
|
43
|
+
* @legacy @beta
|
|
42
44
|
*/
|
|
43
45
|
export interface IProtocolHandler extends IBaseProtocolHandler {
|
|
44
46
|
readonly audience: IAudienceOwner;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IDisposable } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
8
|
-
import {
|
|
6
|
+
import type { IDisposable } from "@fluidframework/core-interfaces";
|
|
7
|
+
import type { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
8
|
+
import type {
|
|
9
9
|
IDocumentStorageService,
|
|
10
10
|
ISummaryContext,
|
|
11
|
-
|
|
11
|
+
IDocumentStorageServicePolicies,
|
|
12
12
|
} from "@fluidframework/driver-definitions/internal";
|
|
13
13
|
|
|
14
14
|
/**
|
package/src/quorum.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IFluidCodeDetails } from "@fluidframework/container-definitions/internal";
|
|
7
|
-
import { ICommittedProposal } from "@fluidframework/driver-definitions/internal";
|
|
6
|
+
import type { IFluidCodeDetails } from "@fluidframework/container-definitions/internal";
|
|
7
|
+
import type { ICommittedProposal } from "@fluidframework/driver-definitions/internal";
|
|
8
8
|
|
|
9
9
|
export function initQuorumValuesFromCodeDetails(
|
|
10
10
|
source: IFluidCodeDetails,
|
|
@@ -3,10 +3,10 @@
|
|
|
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
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
-
import { ISummaryHandle, ISummaryTree } from "@fluidframework/driver-definitions";
|
|
9
|
-
import {
|
|
8
|
+
import type { ISummaryHandle, ISummaryTree } from "@fluidframework/driver-definitions";
|
|
9
|
+
import type {
|
|
10
10
|
FetchSource,
|
|
11
11
|
IDocumentStorageService,
|
|
12
12
|
IDocumentStorageServicePolicies,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "@fluidframework/driver-definitions/internal";
|
|
20
20
|
import { runWithRetry } from "@fluidframework/driver-utils/internal";
|
|
21
21
|
import {
|
|
22
|
-
ITelemetryLoggerExt,
|
|
22
|
+
type ITelemetryLoggerExt,
|
|
23
23
|
GenericError,
|
|
24
24
|
UsageError,
|
|
25
25
|
} from "@fluidframework/telemetry-utils/internal";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { stringToBuffer } from "@fluid-internal/client-utils";
|
|
7
|
-
import { IRuntime } from "@fluidframework/container-definitions/internal";
|
|
7
|
+
import type { IRuntime } from "@fluidframework/container-definitions/internal";
|
|
8
8
|
import type {
|
|
9
9
|
IEventProvider,
|
|
10
10
|
IEvent,
|
|
@@ -14,17 +14,17 @@ import type {
|
|
|
14
14
|
import { Timer, assert } from "@fluidframework/core-utils/internal";
|
|
15
15
|
import {
|
|
16
16
|
FetchSource,
|
|
17
|
-
IDocumentStorageService,
|
|
18
|
-
IResolvedUrl,
|
|
19
|
-
ISnapshot,
|
|
17
|
+
type IDocumentStorageService,
|
|
18
|
+
type IResolvedUrl,
|
|
19
|
+
type ISnapshot,
|
|
20
20
|
type IDocumentAttributes,
|
|
21
|
-
ISnapshotTree,
|
|
22
|
-
IVersion,
|
|
23
|
-
ISequencedDocumentMessage,
|
|
21
|
+
type ISnapshotTree,
|
|
22
|
+
type IVersion,
|
|
23
|
+
type ISequencedDocumentMessage,
|
|
24
24
|
} from "@fluidframework/driver-definitions/internal";
|
|
25
25
|
import { getSnapshotTree } from "@fluidframework/driver-utils/internal";
|
|
26
26
|
import {
|
|
27
|
-
MonitoringContext,
|
|
27
|
+
type MonitoringContext,
|
|
28
28
|
PerformanceEvent,
|
|
29
29
|
UsageError,
|
|
30
30
|
createChildMonitoringContext,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "@fluidframework/telemetry-utils/internal";
|
|
33
33
|
|
|
34
34
|
import {
|
|
35
|
-
ISerializableBlobContents,
|
|
35
|
+
type ISerializableBlobContents,
|
|
36
36
|
getBlobContentsFromTree,
|
|
37
37
|
} from "./containerStorageAdapter.js";
|
|
38
38
|
import { convertSnapshotToSnapshotInfo, getDocumentAttributes } from "./utils.js";
|
package/src/utils.ts
CHANGED
|
@@ -9,19 +9,17 @@ import {
|
|
|
9
9
|
stringToBuffer,
|
|
10
10
|
} from "@fluid-internal/client-utils";
|
|
11
11
|
import { assert, compareArrays, unreachableCase } from "@fluidframework/core-utils/internal";
|
|
12
|
-
import { ISummaryTree, SummaryType } from "@fluidframework/driver-definitions";
|
|
12
|
+
import { type ISummaryTree, SummaryType } from "@fluidframework/driver-definitions";
|
|
13
13
|
import {
|
|
14
14
|
DriverErrorTypes,
|
|
15
|
-
IDocumentAttributes,
|
|
16
|
-
ISnapshotTree,
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
IDocumentStorageService,
|
|
15
|
+
type IDocumentAttributes,
|
|
16
|
+
type ISnapshotTree,
|
|
17
|
+
type IDocumentStorageService,
|
|
20
18
|
type ISnapshot,
|
|
21
19
|
} from "@fluidframework/driver-definitions/internal";
|
|
22
20
|
import {
|
|
23
|
-
CombinedAppAndProtocolSummary,
|
|
24
|
-
DeltaStreamConnectionForbiddenError,
|
|
21
|
+
type CombinedAppAndProtocolSummary,
|
|
22
|
+
type DeltaStreamConnectionForbiddenError,
|
|
25
23
|
isCombinedAppAndProtocolSummary,
|
|
26
24
|
readAndParse,
|
|
27
25
|
} from "@fluidframework/driver-utils/internal";
|
|
@@ -32,7 +30,7 @@ import {
|
|
|
32
30
|
} from "@fluidframework/telemetry-utils/internal";
|
|
33
31
|
import { v4 as uuid } from "uuid";
|
|
34
32
|
|
|
35
|
-
import { ISerializableBlobContents } from "./containerStorageAdapter.js";
|
|
33
|
+
import type { ISerializableBlobContents } from "./containerStorageAdapter.js";
|
|
36
34
|
import type {
|
|
37
35
|
IPendingContainerState,
|
|
38
36
|
IPendingDetachedContainerState,
|
|
@@ -51,8 +49,7 @@ export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
|
|
|
51
49
|
* Interface to represent the parsed parts of IResolvedUrl.url to help
|
|
52
50
|
* in getting info about different parts of the url.
|
|
53
51
|
* May not be compatible or relevant for any Url Resolver
|
|
54
|
-
* @legacy
|
|
55
|
-
* @alpha
|
|
52
|
+
* @legacy @beta
|
|
56
53
|
*/
|
|
57
54
|
export interface IParsedUrl {
|
|
58
55
|
/**
|
|
@@ -81,8 +78,7 @@ export interface IParsedUrl {
|
|
|
81
78
|
* with urls of type: protocol://<string>/.../..?<querystring>
|
|
82
79
|
* @param url - This is the IResolvedUrl.url part of the resolved url.
|
|
83
80
|
* @returns The IParsedUrl representing the input URL, or undefined if the format was not supported
|
|
84
|
-
* @legacy
|
|
85
|
-
* @alpha
|
|
81
|
+
* @legacy @beta
|
|
86
82
|
*/
|
|
87
83
|
export function tryParseCompatibleResolvedUrl(url: string): IParsedUrl | undefined {
|
|
88
84
|
const parsed = new URL(url);
|