@fluidframework/container-loader 2.0.0-internal.7.3.0 → 2.0.0-internal.8.0.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.
- package/CHANGELOG.md +30 -0
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +3 -3
- package/api-report/container-loader.api.md +17 -27
- package/dist/connectionState.cjs +3 -0
- package/dist/connectionState.cjs.map +1 -1
- package/dist/connectionState.d.ts +3 -0
- package/dist/connectionState.d.ts.map +1 -1
- package/dist/connectionStateHandler.cjs +3 -3
- package/dist/connectionStateHandler.cjs.map +1 -1
- package/dist/connectionStateHandler.d.ts +10 -0
- package/dist/connectionStateHandler.d.ts.map +1 -1
- package/dist/container-loader-alpha.d.ts +227 -0
- package/dist/container-loader-beta.d.ts +87 -0
- package/dist/container-loader-public.d.ts +87 -0
- package/dist/container-loader-untrimmed.d.ts +331 -0
- package/dist/container.cjs +11 -22
- package/dist/container.cjs.map +1 -1
- package/dist/container.d.ts +6 -16
- package/dist/container.d.ts.map +1 -1
- package/dist/containerStorageAdapter.cjs +4 -2
- package/dist/containerStorageAdapter.cjs.map +1 -1
- package/dist/containerStorageAdapter.d.ts.map +1 -1
- package/dist/deltaManager.cjs +18 -1
- package/dist/deltaManager.cjs.map +1 -1
- package/dist/deltaManager.d.ts.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/loader.cjs +2 -65
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.ts +11 -25
- package/dist/loader.d.ts.map +1 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.cjs +2 -0
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.cjs.map +1 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -0
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
- package/dist/packageVersion.cjs +1 -1
- package/dist/packageVersion.cjs.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/protocol.cjs.map +1 -1
- package/dist/protocol.d.ts +4 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/utils.cjs +1 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -1
- package/lib/audience.d.ts +0 -4
- package/lib/audience.d.ts.map +1 -1
- package/lib/catchUpMonitor.d.ts.map +1 -1
- package/lib/connectionManager.d.ts +1 -1
- package/lib/connectionManager.d.ts.map +1 -1
- package/lib/connectionState.d.ts +3 -0
- package/lib/connectionState.d.ts.map +1 -1
- package/lib/connectionState.mjs +3 -0
- package/lib/connectionState.mjs.map +1 -1
- package/lib/connectionStateHandler.d.ts +13 -3
- package/lib/connectionStateHandler.d.ts.map +1 -1
- package/lib/connectionStateHandler.mjs +3 -3
- package/lib/connectionStateHandler.mjs.map +1 -1
- package/lib/container-loader-alpha.d.ts +227 -0
- package/lib/container-loader-beta.d.ts +87 -0
- package/lib/container-loader-public.d.ts +87 -0
- package/lib/container-loader-untrimmed.d.ts +331 -0
- package/lib/container.d.ts +10 -20
- package/lib/container.d.ts.map +1 -1
- package/lib/container.mjs +11 -22
- package/lib/container.mjs.map +1 -1
- package/lib/containerContext.d.ts.map +1 -1
- package/lib/containerStorageAdapter.d.ts +1 -1
- package/lib/containerStorageAdapter.d.ts.map +1 -1
- package/lib/containerStorageAdapter.mjs +4 -2
- package/lib/containerStorageAdapter.mjs.map +1 -1
- package/lib/contracts.d.ts.map +1 -1
- package/lib/debugLogger.d.ts.map +1 -1
- package/lib/deltaManager.d.ts +1 -1
- package/lib/deltaManager.d.ts.map +1 -1
- package/lib/deltaManager.mjs +18 -1
- package/lib/deltaManager.mjs.map +1 -1
- package/lib/deltaQueue.d.ts.map +1 -1
- package/lib/disposal.d.ts.map +1 -1
- package/lib/error.d.ts.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/loader.d.ts +13 -27
- package/lib/loader.d.ts.map +1 -1
- package/lib/loader.mjs +1 -63
- package/lib/loader.mjs.map +1 -1
- package/lib/location-redirection-utilities/index.d.ts +1 -1
- package/lib/location-redirection-utilities/index.d.ts.map +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -0
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.mjs +2 -0
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.mjs.map +1 -1
- package/lib/noopHeuristic.d.ts.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.mjs +1 -1
- package/lib/packageVersion.mjs.map +1 -1
- package/lib/protocol.d.ts +4 -0
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.mjs.map +1 -1
- package/lib/protocolTreeDocumentStorageService.d.ts.map +1 -1
- package/lib/quorum.d.ts +0 -4
- package/lib/quorum.d.ts.map +1 -1
- package/lib/retriableDocumentStorageService.d.ts.map +1 -1
- package/lib/utils.d.ts +2 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.mjs +1 -0
- package/lib/utils.mjs.map +1 -1
- package/package.json +46 -16
- package/src/connectionState.ts +3 -0
- package/src/connectionStateHandler.ts +16 -3
- package/src/container.ts +26 -39
- package/src/containerStorageAdapter.ts +4 -2
- package/src/deltaManager.ts +25 -1
- package/src/index.ts +0 -1
- package/src/loader.ts +10 -84
- package/src/location-redirection-utilities/resolveWithLocationRedirection.ts +2 -0
- package/src/packageVersion.ts +1 -1
- package/src/protocol.ts +4 -0
- package/src/utils.ts +2 -0
|
@@ -15,6 +15,7 @@ import { createChildLogger } from "@fluidframework/telemetry-utils";
|
|
|
15
15
|
* Checks if the error is location redirection error.
|
|
16
16
|
* @param error - error whose type is to be determined.
|
|
17
17
|
* @returns `true` is the error is location redirection error, otherwise `false`.
|
|
18
|
+
* @internal
|
|
18
19
|
*/
|
|
19
20
|
export function isLocationRedirectionError(error: any): error is ILocationRedirectionError {
|
|
20
21
|
return (
|
|
@@ -31,6 +32,7 @@ export function isLocationRedirectionError(error: any): error is ILocationRedire
|
|
|
31
32
|
* @param urlResolver - resolver used to resolve the url.
|
|
32
33
|
* @param logger - logger to send events.
|
|
33
34
|
* @returns Response from the API call.
|
|
35
|
+
* @internal
|
|
34
36
|
*/
|
|
35
37
|
export async function resolveWithLocationRedirectionHandling<T>(
|
|
36
38
|
api: (request: IRequest) => Promise<T>,
|
package/src/packageVersion.ts
CHANGED
package/src/protocol.ts
CHANGED
|
@@ -28,6 +28,7 @@ export enum SignalType {
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Function to be used for creating a protocol handler.
|
|
31
|
+
* @alpha
|
|
31
32
|
*/
|
|
32
33
|
export type ProtocolHandlerBuilder = (
|
|
33
34
|
attributes: IDocumentAttributes,
|
|
@@ -35,6 +36,9 @@ export type ProtocolHandlerBuilder = (
|
|
|
35
36
|
sendProposal: (key: string, value: any) => number,
|
|
36
37
|
) => IProtocolHandler;
|
|
37
38
|
|
|
39
|
+
/**
|
|
40
|
+
* @alpha
|
|
41
|
+
*/
|
|
38
42
|
export interface IProtocolHandler extends IBaseProtocolHandler {
|
|
39
43
|
readonly audience: IAudienceOwner;
|
|
40
44
|
processSignal(message: ISignalMessage);
|
package/src/utils.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
|
|
|
27
27
|
* Interface to represent the parsed parts of IResolvedUrl.url to help
|
|
28
28
|
* in getting info about different parts of the url.
|
|
29
29
|
* May not be compatible or relevant for any Url Resolver
|
|
30
|
+
* @internal
|
|
30
31
|
*/
|
|
31
32
|
export interface IParsedUrl {
|
|
32
33
|
/**
|
|
@@ -56,6 +57,7 @@ export interface IParsedUrl {
|
|
|
56
57
|
* with urls of type: protocol://<string>/.../..?<querystring>
|
|
57
58
|
* @param url - This is the IResolvedUrl.url part of the resolved url.
|
|
58
59
|
* @returns The IParsedUrl representing the input URL, or undefined if the format was not supported
|
|
60
|
+
* @internal
|
|
59
61
|
*/
|
|
60
62
|
export function tryParseCompatibleResolvedUrl(url: string): IParsedUrl | undefined {
|
|
61
63
|
const parsed = parse(url, true);
|