@fluidframework/container-loader 2.0.0-internal.8.0.1 → 2.0.0-rc.1.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 +34 -0
- package/README.md +0 -6
- package/api-extractor-esm.json +4 -0
- package/api-extractor-lint.json +1 -10
- package/api-extractor.json +1 -9
- package/api-report/container-loader.api.md +3 -3
- package/dist/{audience.cjs → audience.js} +1 -1
- package/dist/audience.js.map +1 -0
- package/dist/{catchUpMonitor.cjs → catchUpMonitor.js} +1 -1
- package/dist/catchUpMonitor.js.map +1 -0
- package/dist/{connectionManager.cjs → connectionManager.js} +5 -5
- package/dist/connectionManager.js.map +1 -0
- package/dist/connectionState.d.ts +1 -1
- package/dist/{connectionState.cjs → connectionState.js} +2 -2
- package/dist/connectionState.js.map +1 -0
- package/dist/{connectionStateHandler.cjs → connectionStateHandler.js} +3 -3
- package/dist/connectionStateHandler.js.map +1 -0
- package/dist/container-loader-alpha.d.ts +52 -5
- package/dist/container-loader-beta.d.ts +24 -13
- package/dist/container-loader-public.d.ts +24 -13
- package/dist/container-loader-untrimmed.d.ts +3 -3
- package/dist/container.d.ts +1 -1
- package/dist/{container.cjs → container.js} +16 -16
- package/dist/container.js.map +1 -0
- package/dist/{containerContext.cjs → containerContext.js} +1 -1
- package/dist/containerContext.js.map +1 -0
- package/dist/{containerStorageAdapter.cjs → containerStorageAdapter.js} +3 -3
- package/dist/containerStorageAdapter.js.map +1 -0
- package/dist/{contracts.cjs → contracts.js} +1 -1
- package/dist/contracts.js.map +1 -0
- package/dist/{debugLogger.cjs → debugLogger.js} +1 -1
- package/dist/debugLogger.js.map +1 -0
- package/dist/{deltaManager.cjs → deltaManager.js} +3 -3
- package/dist/deltaManager.js.map +1 -0
- package/dist/{deltaQueue.cjs → deltaQueue.js} +1 -1
- package/dist/deltaQueue.js.map +1 -0
- package/dist/{disposal.cjs → disposal.js} +1 -1
- package/dist/disposal.js.map +1 -0
- package/dist/{error.cjs → error.js} +1 -1
- package/dist/error.js.map +1 -0
- package/dist/{index.cjs → index.js} +6 -6
- package/dist/index.js.map +1 -0
- package/dist/{loader.cjs → loader.js} +5 -5
- package/dist/loader.js.map +1 -0
- package/dist/location-redirection-utilities/{index.cjs → index.js} +2 -2
- package/dist/location-redirection-utilities/index.js.map +1 -0
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts +1 -1
- package/dist/location-redirection-utilities/{resolveWithLocationRedirection.cjs → resolveWithLocationRedirection.js} +2 -2
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.js.map +1 -0
- package/dist/{noopHeuristic.cjs → noopHeuristic.js} +1 -1
- package/dist/noopHeuristic.js.map +1 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/{packageVersion.cjs → packageVersion.js} +2 -2
- package/dist/packageVersion.js.map +1 -0
- package/dist/{protocol.cjs → protocol.js} +1 -1
- package/dist/protocol.js.map +1 -0
- package/dist/{protocolTreeDocumentStorageService.cjs → protocolTreeDocumentStorageService.js} +1 -1
- package/dist/protocolTreeDocumentStorageService.js.map +1 -0
- package/dist/{quorum.cjs → quorum.js} +1 -1
- package/dist/quorum.js.map +1 -0
- package/dist/{retriableDocumentStorageService.cjs → retriableDocumentStorageService.js} +1 -1
- package/dist/retriableDocumentStorageService.js.map +1 -0
- package/dist/{utils.cjs → utils.js} +1 -1
- package/dist/utils.js.map +1 -0
- package/lib/{audience.d.ts → audience.d.mts} +1 -1
- package/lib/audience.d.mts.map +1 -0
- package/lib/{catchUpMonitor.d.ts → catchUpMonitor.d.mts} +1 -1
- package/lib/catchUpMonitor.d.mts.map +1 -0
- package/lib/{connectionManager.d.ts → connectionManager.d.mts} +1 -1
- package/lib/connectionManager.d.mts.map +1 -0
- package/lib/{connectionState.d.ts → connectionState.d.mts} +2 -2
- package/lib/connectionState.d.mts.map +1 -0
- package/lib/connectionState.mjs +1 -1
- package/lib/connectionState.mjs.map +1 -1
- package/lib/{connectionStateHandler.d.ts → connectionStateHandler.d.mts} +1 -1
- package/lib/connectionStateHandler.d.mts.map +1 -0
- package/lib/{container-loader-alpha.d.ts → container-loader-alpha.d.mts} +52 -5
- package/lib/{container-loader-public.d.ts → container-loader-beta.d.mts} +24 -13
- package/lib/{container-loader-beta.d.ts → container-loader-public.d.mts} +24 -13
- package/lib/{container-loader-untrimmed.d.ts → container-loader-untrimmed.d.mts} +3 -3
- package/lib/{container.d.ts → container.d.mts} +2 -2
- package/lib/container.d.mts.map +1 -0
- package/lib/container.mjs +1 -1
- package/lib/container.mjs.map +1 -1
- package/lib/{containerContext.d.ts → containerContext.d.mts} +1 -1
- package/lib/containerContext.d.mts.map +1 -0
- package/lib/{containerStorageAdapter.d.ts → containerStorageAdapter.d.mts} +1 -1
- package/lib/containerStorageAdapter.d.mts.map +1 -0
- package/lib/{contracts.d.ts → contracts.d.mts} +1 -1
- package/lib/contracts.d.mts.map +1 -0
- package/lib/{debugLogger.d.ts → debugLogger.d.mts} +1 -1
- package/lib/debugLogger.d.mts.map +1 -0
- package/lib/{deltaManager.d.ts → deltaManager.d.mts} +1 -1
- package/lib/deltaManager.d.mts.map +1 -0
- package/lib/{deltaQueue.d.ts → deltaQueue.d.mts} +1 -1
- package/lib/deltaQueue.d.mts.map +1 -0
- package/lib/{disposal.d.ts → disposal.d.mts} +1 -1
- package/lib/disposal.d.mts.map +1 -0
- package/lib/{error.d.ts → error.d.mts} +1 -1
- package/lib/error.d.mts.map +1 -0
- package/lib/{index.d.ts → index.d.mts} +1 -1
- package/lib/index.d.mts.map +1 -0
- package/lib/{loader.d.ts → loader.d.mts} +1 -1
- package/lib/loader.d.mts.map +1 -0
- package/lib/location-redirection-utilities/{index.d.ts → index.d.mts} +1 -1
- package/lib/location-redirection-utilities/index.d.mts.map +1 -0
- package/lib/location-redirection-utilities/{resolveWithLocationRedirection.d.ts → resolveWithLocationRedirection.d.mts} +2 -2
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.mts.map +1 -0
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.mjs +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.mjs.map +1 -1
- package/lib/{noopHeuristic.d.ts → noopHeuristic.d.mts} +1 -1
- package/lib/noopHeuristic.d.mts.map +1 -0
- package/lib/{packageVersion.d.ts → packageVersion.d.mts} +2 -2
- package/lib/packageVersion.d.mts.map +1 -0
- package/lib/packageVersion.mjs +1 -1
- package/lib/packageVersion.mjs.map +1 -1
- package/lib/{protocol.d.ts → protocol.d.mts} +1 -1
- package/lib/protocol.d.mts.map +1 -0
- package/lib/{protocolTreeDocumentStorageService.d.ts → protocolTreeDocumentStorageService.d.mts} +1 -1
- package/lib/protocolTreeDocumentStorageService.d.mts.map +1 -0
- package/lib/{quorum.d.ts → quorum.d.mts} +1 -1
- package/lib/quorum.d.mts.map +1 -0
- package/lib/{retriableDocumentStorageService.d.ts → retriableDocumentStorageService.d.mts} +1 -1
- package/lib/retriableDocumentStorageService.d.mts.map +1 -0
- package/lib/{utils.d.ts → utils.d.mts} +1 -1
- package/lib/utils.d.mts.map +1 -0
- package/package.json +129 -38
- package/src/connectionState.ts +1 -1
- package/src/container.ts +1 -1
- package/src/location-redirection-utilities/resolveWithLocationRedirection.ts +1 -1
- package/src/packageVersion.ts +1 -1
- package/dist/audience.cjs.map +0 -1
- package/dist/catchUpMonitor.cjs.map +0 -1
- package/dist/connectionManager.cjs.map +0 -1
- package/dist/connectionState.cjs.map +0 -1
- package/dist/connectionStateHandler.cjs.map +0 -1
- package/dist/container.cjs.map +0 -1
- package/dist/containerContext.cjs.map +0 -1
- package/dist/containerStorageAdapter.cjs.map +0 -1
- package/dist/contracts.cjs.map +0 -1
- package/dist/debugLogger.cjs.map +0 -1
- package/dist/deltaManager.cjs.map +0 -1
- package/dist/deltaQueue.cjs.map +0 -1
- package/dist/disposal.cjs.map +0 -1
- package/dist/error.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/loader.cjs.map +0 -1
- package/dist/location-redirection-utilities/index.cjs.map +0 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.cjs.map +0 -1
- package/dist/noopHeuristic.cjs.map +0 -1
- package/dist/packageVersion.cjs.map +0 -1
- package/dist/protocol.cjs.map +0 -1
- package/dist/protocolTreeDocumentStorageService.cjs.map +0 -1
- package/dist/quorum.cjs.map +0 -1
- package/dist/retriableDocumentStorageService.cjs.map +0 -1
- package/dist/utils.cjs.map +0 -1
- package/lib/audience.d.ts.map +0 -1
- package/lib/catchUpMonitor.d.ts.map +0 -1
- package/lib/connectionManager.d.ts.map +0 -1
- package/lib/connectionState.d.ts.map +0 -1
- package/lib/connectionStateHandler.d.ts.map +0 -1
- package/lib/container.d.ts.map +0 -1
- package/lib/containerContext.d.ts.map +0 -1
- package/lib/containerStorageAdapter.d.ts.map +0 -1
- package/lib/contracts.d.ts.map +0 -1
- package/lib/debugLogger.d.ts.map +0 -1
- package/lib/deltaManager.d.ts.map +0 -1
- package/lib/deltaQueue.d.ts.map +0 -1
- package/lib/disposal.d.ts.map +0 -1
- package/lib/error.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/loader.d.ts.map +0 -1
- package/lib/location-redirection-utilities/index.d.ts.map +0 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +0 -1
- package/lib/noopHeuristic.d.ts.map +0 -1
- package/lib/packageVersion.d.ts.map +0 -1
- package/lib/protocol.d.ts.map +0 -1
- package/lib/protocolTreeDocumentStorageService.d.ts.map +0 -1
- package/lib/quorum.d.ts.map +0 -1
- package/lib/retriableDocumentStorageService.d.ts.map +0 -1
- package/lib/utils.d.ts.map +0 -1
- package/tsc-multi.test.json +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocolTreeDocumentStorageService.js","sourceRoot":"","sources":["../src/protocolTreeDocumentStorageService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAMH;;;GAGG;A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soft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDisposable } from \"@fluidframework/core-interfaces\";\nimport { IDocumentStorageService, ISummaryContext } from \"@fluidframework/driver-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\n\n/**\n * A storage service wrapper whose sole job is to intercept calls to uploadSummaryWithContext and ensure they include\n * the protocol summary, using the provided callback to add it if necessary.\n */\nexport class ProtocolTreeStorageService implements IDocumentStorageService, IDisposable {\n\tconstructor(\n\t\tprivate readonly internalStorageService: IDocumentStorageService & IDisposable,\n\t\tprivate readonly addProtocolSummaryIfMissing: (summaryTree: ISummaryTree) => ISummaryTree,\n\t) {}\n\tpublic get policies() {\n\t\treturn this.internalStorageService.policies;\n\t}\n\tpublic get repositoryUrl() {\n\t\treturn this.internalStorageService.repositoryUrl;\n\t}\n\tpublic get disposed() {\n\t\treturn this.internalStorageService.disposed;\n\t}\n\n\tgetSnapshotTree = this.internalStorageService.getSnapshotTree.bind(this.internalStorageService);\n\tgetVersions = this.internalStorageService.getVersions.bind(this.internalStorageService);\n\tcreateBlob = this.internalStorageService.createBlob.bind(this.internalStorageService);\n\treadBlob = this.internalStorageService.readBlob.bind(this.internalStorageService);\n\tdownloadSummary = this.internalStorageService.downloadSummary.bind(this.internalStorageService);\n\tdispose = this.internalStorageService.dispose.bind(this.internalStorageService);\n\n\tasync uploadSummaryWithContext(\n\t\tsummary: ISummaryTree,\n\t\tcontext: ISummaryContext,\n\t): Promise<string> {\n\t\treturn this.internalStorageService.uploadSummaryWithContext(\n\t\t\tthis.addProtocolSummaryIfMissing(summary),\n\t\t\tcontext,\n\t\t);\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quorum.js","sourceRoot":"","sources":["../src/quorum.ts"],"names":[],"mappings":";;;AAOA,SAAgB,+BAA+B,CAC9C,MAAyB;IAEzB,kEAAkE;IAClE,MAAM,qBAAqB,GAAuB;QACjD,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,MAAM;QACb,sBAAsB,EAAE,CAAC;QACzB,oBAAoB,EAAE,CAAC;QACvB,cAAc,EAAE,CAAC;KACjB,CAAC;IACF,OAAO,CAAC,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC;AAC1C,CAAC;AAZD,0EAYC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { IFluidCodeDetails } from \"@fluidframework/core-interfaces\";\nimport { ICommittedProposal } from \"@fluidframework/protocol-definitions\";\n\nexport function initQuorumValuesFromCodeDetails(\n\tsource: IFluidCodeDetails,\n): [string, ICommittedProposal][] {\n\t// Seed the base quorum to be an empty list with a code quorum set\n\tconst committedCodeProposal: ICommittedProposal = {\n\t\tkey: \"code\",\n\t\tvalue: source,\n\t\tapprovalSequenceNumber: 0,\n\t\tcommitSequenceNumber: 0,\n\t\tsequenceNumber: 0,\n\t};\n\treturn [[\"code\", committedCodeProposal]];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retriableDocumentStorageService.js","sourceRoot":"","sources":["../src/retriableDocumentStorageService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2DAAoD;AAepD,qEAAoF;AACpF,+DAA4D;AAE5D,MAAa,+BAA+B;IAG3C,YACkB,uBAAyD,EACzD,MAA2B;QAD3B,4BAAuB,GAAvB,uBAAuB,CAAkC;QACzD,WAAM,GAAN,MAAM,CAAqB;QAJrC,cAAS,GAAG,KAAK,CAAC;QAMzB,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC7F,CAAC;IAED,IAAW,QAAQ;QAClB,IAAI,IAAI,CAAC,sBAAsB,EAAE;YAChC,OAAO,I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AAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAC9E,oBAAoB,CACpB,CAAC;IACH,CAAC;IAEO,oBAAoB,CAAC,QAAgB,EAAE,KAAc;QAC5D,IAAI,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAC7B;gBACC,SAAS,EAAE,GAAG,QAAQ,yBAAyB;gBAC/C,aAAa,EAAE,QAAQ,EAAE,gDAAgD;aACzE,EACD,KAAK,CACL,CAAC;YACF,4DAA4D;YAC5D,MAAM,IAAI,8BAAY,CAAC,2CAA2C,EAAE;gBACnE,QAAQ,EAAE,KAAK;aACf,CAAC,CAAC;SACH;QACD,OAAO;IACR,CAAC;IAEO,KAAK,CAAC,YAAY,CAAI,GAAqB,EAAE,QAAgB;QACpE,OAAO,IAAA,2BAAY,EAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;YAC/C,OAAO,EAAE,CAAC,UAAkB,EAAE,KAAc,EAAE,EAAE,CAC/C,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC;SAC3C,CAAC,CAAC;IACJ,CAAC;CACD;AAvID,0EAuIC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils\";\nimport {\n\tFetchSource,\n\tIDocumentStorageService,\n\tIDocumentStorageServicePolicies,\n\tISummaryContext,\n} from \"@fluidframework/driver-definitions\";\nimport {\n\tICreateBlobResponse,\n\tISnapshotTree,\n\tISummaryHandle,\n\tISummaryTree,\n\tIVersion,\n} from \"@fluidframework/protocol-definitions\";\nimport { IDisposable } from \"@fluidframework/core-interfaces\";\nimport { GenericError, ITelemetryLoggerExt } from \"@fluidframework/telemetry-utils\";\nimport { runWithRetry } from \"@fluidframework/driver-utils\";\n\nexport class RetriableDocumentStorageService implements IDocumentStorageService, IDisposable {\n\tprivate _disposed = false;\n\tprivate internalStorageService: IDocumentStorageService | undefined;\n\tconstructor(\n\t\tprivate readonly internalStorageServiceP: Promise<IDocumentStorageService>,\n\t\tprivate readonly logger: ITelemetryLoggerExt,\n\t) {\n\t\tthis.internalStorageServiceP.then((s) => (this.internalStorageService = s)).catch(() => {});\n\t}\n\n\tpublic get policies(): IDocumentStorageServicePolicies | undefined {\n\t\tif (this.internalStorageService) {\n\t\t\treturn this.internalStorageService.policies;\n\t\t}\n\t\tthrow new Error(\"storage service not yet instantiated\");\n\t}\n\tpublic get disposed() {\n\t\treturn this._disposed;\n\t}\n\tpublic dispose() {\n\t\tthis._disposed = true;\n\t}\n\n\tpublic get repositoryUrl(): string {\n\t\tif (this.internalStorageService) {\n\t\t\treturn this.internalStorageService.repositoryUrl;\n\t\t}\n\t\tthrow new Error(\"storage service not yet instantiated\");\n\t}\n\n\tpublic async getSnapshotTree(\n\t\tversion?: IVersion,\n\t\tscenarioName?: string,\n\t): Promise<ISnapshotTree | null> {\n\t\treturn this.runWithRetry(\n\t\t\tasync () =>\n\t\t\t\tthis.internalStorageServiceP.then(async (s) =>\n\t\t\t\t\ts.getSnapshotTree(version, scenarioName),\n\t\t\t\t),\n\t\t\t\"storage_getSnapshotTree\",\n\t\t);\n\t}\n\n\tpublic async readBlob(id: string): Promise<ArrayBufferLike> {\n\t\treturn this.runWithRetry(\n\t\t\tasync () => this.internalStorageServiceP.then(async (s) => s.readBlob(id)),\n\t\t\t\"storage_readBlob\",\n\t\t);\n\t}\n\n\tpublic async getVersions(\n\t\tversionId: string | null,\n\t\tcount: number,\n\t\tscenarioName?: string,\n\t\tfetchSource?: FetchSource,\n\t): Promise<IVersion[]> {\n\t\treturn this.runWithRetry(\n\t\t\tasync () =>\n\t\t\t\tthis.internalStorageServiceP.then(async (s) =>\n\t\t\t\t\ts.getVersions(versionId, count, scenarioName, fetchSource),\n\t\t\t\t),\n\t\t\t\"storage_getVersions\",\n\t\t);\n\t}\n\n\tpublic async uploadSummaryWithContext(\n\t\tsummary: ISummaryTree,\n\t\tcontext: ISummaryContext,\n\t): Promise<string> {\n\t\t// Not using retry loop here. Couple reasons:\n\t\t// 1. If client lost connectivity, then retry loop will result in uploading stale summary\n\t\t// by stale summarizer after connectivity comes back. It will cause failures for this client and for\n\t\t// real (new) summarizer. This problem in particular should be solved in future by supplying abort handle\n\t\t// on all APIs and caller (ContainerRuntime.submitSummary) aborting call on loss of connectivity\n\t\t// 2. Similar, if we get 429 with retryAfter = 10 minutes, it's likely not the right call to retry summary\n\t\t// upload in 10 minutes - it's better to keep processing ops and retry later. Though caller needs to take\n\t\t// retryAfter into account!\n\t\t// But retry loop is required for creation flow (Container.attach)\n\t\tassert(\n\t\t\t(context.referenceSequenceNumber === 0) === (context.ackHandle === undefined),\n\t\t\t0x251 /* \"creation summary has to have seq=0 && handle === undefined\" */,\n\t\t);\n\t\tif (context.referenceSequenceNumber !== 0) {\n\t\t\treturn this.internalStorageServiceP.then(async (s) =>\n\t\t\t\ts.uploadSummaryWithContext(summary, context),\n\t\t\t);\n\t\t}\n\n\t\t// Creation flow with attachment blobs - need to do retries!\n\t\treturn this.runWithRetry(\n\t\t\tasync () =>\n\t\t\t\tthis.internalStorageServiceP.then(async (s) =>\n\t\t\t\t\ts.uploadSummaryWithContext(summary, context),\n\t\t\t\t),\n\t\t\t\"storage_uploadSummaryWithContext\",\n\t\t);\n\t}\n\n\tpublic async downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree> {\n\t\treturn this.runWithRetry(\n\t\t\tasync () => this.internalStorageServiceP.then(async (s) => s.downloadSummary(handle)),\n\t\t\t\"storage_downloadSummary\",\n\t\t);\n\t}\n\n\tpublic async createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse> {\n\t\treturn this.runWithRetry(\n\t\t\tasync () => this.internalStorageServiceP.then(async (s) => s.createBlob(file)),\n\t\t\t\"storage_createBlob\",\n\t\t);\n\t}\n\n\tprivate checkStorageDisposed(callName: string, error: unknown) {\n\t\tif (this._disposed) {\n\t\t\tthis.logger.sendTelemetryEvent(\n\t\t\t\t{\n\t\t\t\t\teventName: `${callName}_abortedStorageDisposed`,\n\t\t\t\t\tfetchCallName: callName, // fetchCallName matches logs in runWithRetry.ts\n\t\t\t\t},\n\t\t\t\terror,\n\t\t\t);\n\t\t\t// pre-0.58 error message: storageServiceDisposedCannotRetry\n\t\t\tthrow new GenericError(\"Storage Service is disposed. Cannot retry\", {\n\t\t\t\tcanRetry: false,\n\t\t\t});\n\t\t}\n\t\treturn;\n\t}\n\n\tprivate async runWithRetry<T>(api: () => Promise<T>, callName: string): Promise<T> {\n\t\treturn runWithRetry(api, callName, this.logger, {\n\t\t\tonRetry: (_delayInMs: number, error: unknown) =>\n\t\t\t\tthis.checkStorageDisposed(callName, error),\n\t\t});\n\t}\n}\n"]}
|
|
@@ -139,4 +139,4 @@ function isDeltaStreamConnectionForbiddenError(error) {
|
|
|
139
139
|
error?.errorType === driver_definitions_1.DriverErrorTypes.deltaStreamConnectionForbidden);
|
|
140
140
|
}
|
|
141
141
|
exports.isDeltaStreamConnectionForbiddenError = isDeltaStreamConnectionForbiddenError;
|
|
142
|
-
//# sourceMappingURL=utils.
|
|
142
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAA4B;AAC5B,+BAAkC;AAClC,+DAAuF;AACvF,2DAAqE;AACrE,+EAAgG;AAChG,qEAA+D;AAC/D,+DAIsC;AACtC,2EAAsE;AAoCtE;;;;;;;;GAQG;AACH,SAAgB,6BAA6B,CAAC,GAAW;IACxD,MAAM,MAAM,GAAG,IAAA,WAAK,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAChC,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE;QACxC,MAAM,IAAI,8BAAY,CAAC,0BAA0B,CAAC,CAAC;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W,CAAC,IAAI;QACtB,IAAI,EAAE,EAAE,GAAG,cAAc,CAAC,IAAI,EAAE;KAChC,CAAC;IAEF,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,mBAAmB,CAAC;IACxD,MAAM,4BAA4B,GACjC,gDAAgD,CAAC,eAAe,CAAC,CAAC;IACnE,OAAO,4BAA4B,CAAC;AACrC,CAAC;AAdD,gGAcC;AAED,+GAA+G;AAC/G,0CAA0C;AACnC,MAAM,sCAAsC,GAAG,CACrD,yBAAuC,EACP,EAAE;IAClC,IAAA,mBAAM,EACL,IAAA,8CAA+B,EAAC,yBAAyB,CAAC,EAC1D,KAAK,CAAC,wDAAwD,CAC9D,CAAC;IACF,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACxE,MAAM,cAAc,GAAG,yBAAyB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9D,MAAM,4BAA4B,GAAG,0CAA0C,CAC9E,mBAAmB,EACnB,cAAc,CACd,CAAC;IACF,OAAO,4BAA4B,CAAC;AACrC,CAAC,CAAC;AAdW,QAAA,sCAAsC,0CAcjD;AAEF,SAAgB,uBAAuB,CAAC,QAAuB;IAC9D,OAAO,WAAW,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC/E,CAAC;AAFD,0DAEC;AAED,SAAgB,qCAAqC,CACpD,KAAU;IAEV,OAAO,CACN,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,KAAK,EAAE,SAAS,KAAK,qCAAgB,CAAC,8BAA8B,CACpE,CAAC;AACH,CAAC;AARD,sFAQC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { parse } from \"url\";\nimport { v4 as uuid } from \"uuid\";\nimport { stringToBuffer, Uint8ArrayToArrayBuffer } from \"@fluid-internal/client-utils\";\nimport { assert, unreachableCase } from \"@fluidframework/core-utils\";\nimport { ISummaryTree, ISnapshotTree, SummaryType } from \"@fluidframework/protocol-definitions\";\nimport { LoggingError } from \"@fluidframework/telemetry-utils\";\nimport {\n\tCombinedAppAndProtocolSummary,\n\tDeltaStreamConnectionForbiddenError,\n\tisCombinedAppAndProtocolSummary,\n} from \"@fluidframework/driver-utils\";\nimport { DriverErrorTypes } from \"@fluidframework/driver-definitions\";\n\n// This is used when we rehydrate a container from the snapshot. Here we put the blob contents\n// in separate property: blobContents.\nexport interface ISnapshotTreeWithBlobContents extends ISnapshotTree {\n\tblobsContents: { [path: string]: ArrayBufferLike };\n\ttrees: { [path: string]: ISnapshotTreeWithBlobContents };\n}\n\n/**\n * Interface to represent the parsed parts of IResolvedUrl.url to help\n * in getting info about different parts of the url.\n * May not be compatible or relevant for any Url Resolver\n * @internal\n */\nexport interface IParsedUrl {\n\t/**\n\t * It is combination of tenantid/docId part of the url.\n\t */\n\tid: string;\n\t/**\n\t * It is the deep link path in the url.\n\t */\n\tpath: string;\n\t/**\n\t * Query string part of the url.\n\t */\n\tquery: string;\n\t/**\n\t * Null means do not use snapshots, undefined means load latest snapshot\n\t * otherwise it's version ID passed to IDocumentStorageService.getVersions() to figure out what snapshot to use.\n\t * If needed, can add undefined which is treated by Container.load() as load latest snapshot.\n\t */\n\tversion: string | null | undefined;\n}\n\n/**\n * Utility api to parse the IResolvedUrl.url into specific parts like querystring, path to get\n * deep link info etc.\n * Warning - This function may not be compatible with any Url Resolver's resolved url. It works\n * with urls of type: protocol://<string>/.../..?<querystring>\n * @param url - This is the IResolvedUrl.url part of the resolved url.\n * @returns The IParsedUrl representing the input URL, or undefined if the format was not supported\n * @internal\n */\nexport function tryParseCompatibleResolvedUrl(url: string): IParsedUrl | undefined {\n\tconst parsed = parse(url, true);\n\tif (typeof parsed.pathname !== \"string\") {\n\t\tthrow new LoggingError(\"Failed to parse pathname\");\n\t}\n\tconst query = parsed.search ?? \"\";\n\tconst regex = /^\\/([^/]*\\/[^/]*)(\\/?.*)$/;\n\tconst match = regex.exec(parsed.pathname);\n\treturn match?.length === 3\n\t\t? { id: match[1], path: match[2], query, version: parsed.query.version as string }\n\t\t: undefined;\n}\n\n/**\n * Combine the app summary and protocol summary in 1 tree.\n * @param appSummary - Summary of the app.\n * @param protocolSummary - Summary of the protocol.\n * @internal\n */\nexport function combineAppAndProtocolSummary(\n\tappSummary: ISummaryTree,\n\tprotocolSummary: ISummaryTree,\n): CombinedAppAndProtocolSummary {\n\tassert(\n\t\t!isCombinedAppAndProtocolSummary(appSummary),\n\t\t0x5a8 /* app summary is already a combined tree! */,\n\t);\n\tassert(\n\t\t!isCombinedAppAndProtocolSummary(protocolSummary),\n\t\t0x5a9 /* protocol summary is already a combined tree! */,\n\t);\n\tconst createNewSummary: CombinedAppAndProtocolSummary = {\n\t\ttype: SummaryType.Tree,\n\t\ttree: {\n\t\t\t\".protocol\": protocolSummary,\n\t\t\t\".app\": appSummary,\n\t\t},\n\t};\n\treturn createNewSummary;\n}\n\n/**\n * Converts summary tree (for upload) to snapshot tree (for download).\n * Summary tree blobs contain contents, but snapshot tree blobs normally\n * contain IDs pointing to storage. This will create 2 blob entries in the\n * snapshot tree for each blob in the summary tree. One will be the regular\n * path pointing to a uniquely generated ID. Then there will be another\n * entry with the path as that uniquely generated ID, and value as the\n * blob contents as a base-64 string.\n * @param summary - summary to convert\n */\nfunction convertSummaryToSnapshotWithEmbeddedBlobContents(\n\tsummary: ISummaryTree,\n): ISnapshotTreeWithBlobContents {\n\tconst treeNode: ISnapshotTreeWithBlobContents = {\n\t\tblobs: {},\n\t\tblobsContents: {},\n\t\ttrees: {},\n\t\tid: uuid(),\n\t\tunreferenced: summary.unreferenced,\n\t};\n\tconst keys = Object.keys(summary.tree);\n\tfor (const key of keys) {\n\t\tconst summaryObject = summary.tree[key];\n\n\t\tswitch (summaryObject.type) {\n\t\t\tcase SummaryType.Tree: {\n\t\t\t\ttreeNode.trees[key] =\n\t\t\t\t\tconvertSummaryToSnapshotWithEmbeddedBlobContents(summaryObject);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase SummaryType.Attachment:\n\t\t\t\ttreeNode.blobs[key] = summaryObject.id;\n\t\t\t\tbreak;\n\t\t\tcase SummaryType.Blob: {\n\t\t\t\tconst blobId = uuid();\n\t\t\t\ttreeNode.blobs[key] = blobId;\n\t\t\t\tconst contentBuffer =\n\t\t\t\t\ttypeof summaryObject.content === \"string\"\n\t\t\t\t\t\t? stringToBuffer(summaryObject.content, \"utf8\")\n\t\t\t\t\t\t: Uint8ArrayToArrayBuffer(summaryObject.content);\n\t\t\t\ttreeNode.blobsContents[blobId] = contentBuffer;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase SummaryType.Handle:\n\t\t\t\tthrow new LoggingError(\n\t\t\t\t\t\"No handles should be there in summary in detached container!!\",\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tdefault: {\n\t\t\t\tunreachableCase(summaryObject, `Unknown tree type ${(summaryObject as any).type}`);\n\t\t\t}\n\t\t}\n\t}\n\treturn treeNode;\n}\n\n/**\n * Combine and convert protocol and app summary tree to format which is readable by container while rehydrating.\n * @param protocolSummaryTree - Protocol Summary Tree\n * @param appSummaryTree - App Summary Tree\n */\nexport function convertProtocolAndAppSummaryToSnapshotTree(\n\tprotocolSummaryTree: ISummaryTree,\n\tappSummaryTree: ISummaryTree,\n): ISnapshotTreeWithBlobContents {\n\t// Shallow copy is fine, since we are doing a deep clone below.\n\tconst combinedSummary: ISummaryTree = {\n\t\ttype: SummaryType.Tree,\n\t\ttree: { ...appSummaryTree.tree },\n\t};\n\n\tcombinedSummary.tree[\".protocol\"] = protocolSummaryTree;\n\tconst snapshotTreeWithBlobContents =\n\t\tconvertSummaryToSnapshotWithEmbeddedBlobContents(combinedSummary);\n\treturn snapshotTreeWithBlobContents;\n}\n\n// This function converts the snapshot taken in detached container(by serialize api) to snapshotTree with which\n// a detached container can be rehydrated.\nexport const getSnapshotTreeFromSerializedContainer = (\n\tdetachedContainerSnapshot: ISummaryTree,\n): ISnapshotTreeWithBlobContents => {\n\tassert(\n\t\tisCombinedAppAndProtocolSummary(detachedContainerSnapshot),\n\t\t0x1e0 /* \"Protocol and App summary trees should be present\" */,\n\t);\n\tconst protocolSummaryTree = detachedContainerSnapshot.tree[\".protocol\"];\n\tconst appSummaryTree = detachedContainerSnapshot.tree[\".app\"];\n\tconst snapshotTreeWithBlobContents = convertProtocolAndAppSummaryToSnapshotTree(\n\t\tprotocolSummaryTree,\n\t\tappSummaryTree,\n\t);\n\treturn snapshotTreeWithBlobContents;\n};\n\nexport function getProtocolSnapshotTree(snapshot: ISnapshotTree): ISnapshotTree {\n\treturn \".protocol\" in snapshot.trees ? snapshot.trees[\".protocol\"] : snapshot;\n}\n\nexport function isDeltaStreamConnectionForbiddenError(\n\terror: any,\n): error is DeltaStreamConnectionForbiddenError {\n\treturn (\n\t\ttypeof error === \"object\" &&\n\t\terror !== null &&\n\t\terror?.errorType === DriverErrorTypes.deltaStreamConnectionForbidden\n\t);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audience.d.mts","sourceRoot":"","sources":["../src/audience.ts"],"names":[],"mappings":";OAIO,EAAE,YAAY,EAAE,MAAM,QAAQ;OAE9B,EAAE,cAAc,EAAE,MAAM,uCAAuC;OAC/D,EAAE,OAAO,EAAE,MAAM,sCAAsC;AAE9D;;GAEG;AACH,qBAAa,QAAS,SAAQ,YAAa,YAAW,cAAc;IACnE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8B;;IAQ/C,EAAE,CACR,KAAK,EAAE,WAAW,GAAG,cAAc,EACnC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,GACnD,IAAI;IAKP;;OAEG;IACI,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAenD;;;OAGG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAW9C;;OAEG;IACI,UAAU,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAIzC;;OAEG;IACI,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;CAGvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catchUpMonitor.d.mts","sourceRoot":"","sources":["../src/catchUpMonitor.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,WAAW,EAAE,MAAM,iCAAiC;OAEtD,EAAE,aAAa,EAAE,MAAM,uCAAuC;AAGrE,oCAAoC;AACpC,KAAK,gBAAgB,GAAG,MAAM,IAAI,CAAC;AAEnC,mGAAmG;AACnG,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC;AAE1C;;;GAGG;AACH,qBAAa,cAAe,YAAW,eAAe;IAepD,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAf1B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAkB;IAElC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAKxB;IAEF;;OAEG;gBAEe,YAAY,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,EACrC,QAAQ,EAAE,gBAAgB;IAerC,QAAQ,EAAE,OAAO,CAAS;IAC1B,OAAO;CAQd"}
|
|
@@ -148,4 +148,4 @@ export declare class ConnectionManager implements IConnectionManager {
|
|
|
148
148
|
private readonly disconnectHandlerInternal;
|
|
149
149
|
private readonly errorHandler;
|
|
150
150
|
}
|
|
151
|
-
//# sourceMappingURL=connectionManager.d.
|
|
151
|
+
//# sourceMappingURL=connectionManager.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectionManager.d.mts","sourceRoot":"","sources":["../src/connectionManager.ts"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WAAW;IA6MzB;;;;OAIG;IACH,OAAO,CAAC,cAAc;IActB;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;IAwCjC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAcxB;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IAwJpC;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;;;;;OAMG;YACW,SAAS;IA8DhB,oBAAoB,CAC1B,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,GACrD,gBAAgB,GAAG,SAAS;IAuCxB,YAAY,CAAC,OAAO,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,MAAM;IAQlD,YAAY,CAAC,QAAQ,EAAE,gBAAgB,EAAE;IA+BzC,0BAA0B,CAAC,OAAO,EAAE,yBAAyB;IAgDpE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAGxB;IAEF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAG5B;IAGF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAkB1B;IAGF,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAIxC;IAEF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAE3B;CACF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @
|
|
6
|
+
* @public
|
|
7
7
|
*/
|
|
8
8
|
export declare enum ConnectionState {
|
|
9
9
|
/**
|
|
@@ -26,4 +26,4 @@ export declare enum ConnectionState {
|
|
|
26
26
|
*/
|
|
27
27
|
Connected = 2
|
|
28
28
|
}
|
|
29
|
-
//# sourceMappingURL=connectionState.d.
|
|
29
|
+
//# sourceMappingURL=connectionState.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectionState.d.mts","sourceRoot":"","sources":["../src/connectionState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,oBAAY,eAAe;IAC1B;;;;OAIG;IACH,YAAY,IAAI;IAEhB;;;OAGG;IACH,sBAAsB,IAAI;IAE1B;;OAEG;IACH,UAAU,IAAI;IAEd;;OAEG;IACH,SAAS,IAAI;CACb"}
|
package/lib/connectionState.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectionState.mjs","sourceRoot":"","sources":["../src/connectionState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,eAuBX;AAvBD,WAAY,eAAe;IAC1B;;;;OAIG;IACH,qEAAgB,CAAA;IAEhB;;;OAGG;IACH,yFAA0B,CAAA;IAE1B;;OAEG;IACH,iEAAc,CAAA;IAEd;;OAEG;IACH,+DAAa,CAAA;AACd,CAAC,EAvBW,eAAe,KAAf,eAAe,QAuB1B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @
|
|
1
|
+
{"version":3,"file":"connectionState.mjs","sourceRoot":"","sources":["../src/connectionState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,eAuBX;AAvBD,WAAY,eAAe;IAC1B;;;;OAIG;IACH,qEAAgB,CAAA;IAEhB;;;OAGG;IACH,yFAA0B,CAAA;IAE1B;;OAEG;IACH,iEAAc,CAAA;IAEd;;OAEG;IACH,+DAAa,CAAA;AACd,CAAC,EAvBW,eAAe,KAAf,eAAe,QAuB1B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @public\n */\nexport enum ConnectionState {\n\t/**\n\t * The container is not connected to the ordering service\n\t * Note - When in this state the container may be about to reconnect,\n\t * or may remain disconnected until explicitly told to connect.\n\t */\n\tDisconnected = 0,\n\n\t/**\n\t * The container is disconnected but actively trying to establish a new connection\n\t * PLEASE NOTE that this numerical value falls out of the order you may expect for this state\n\t */\n\tEstablishingConnection = 3,\n\n\t/**\n\t * The container has an inbound connection only, and is catching up to the latest known state from the service.\n\t */\n\tCatchingUp = 1,\n\n\t/**\n\t * The container is fully connected and syncing\n\t */\n\tConnected = 2,\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectionStateHandler.d.mts","sourceRoot":"","sources":["../src/connectionStateHandler.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,iCAAiC;OAEvF,EAAE,aAAa,EAAE,MAAM,uCAAuC;OAC9D,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,sCAAsC;OACzE,EACN,mBAAmB,EAGnB,MAAM,iCAAiC;OACjC,EAAE,eAAe,EAAE,MAAM,oCAAoC;OAE7D,EAAE,eAAe,EAAE;OACnB,EAAE,0BAA0B,EAAE,4BAA4B,EAAE;OAC5D,EAAE,gBAAgB,EAAE;AAU3B,kGAAkG;AAClG,MAAM,WAAW,6BAA6B;IAC7C,MAAM,EAAE,mBAAmB,CAAC;IAC5B,mEAAmE;IACnE,sBAAsB,EAAE,CACvB,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,eAAe,EACzB,MAAM,CAAC,EAAE,4BAA4B,KACjC,IAAI,CAAC;IACV,4EAA4E;IAC5E,qBAAqB,EAAE,MAAM,OAAO,CAAC;IACrC,mHAAmH;IACnH,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,sGAAsG;IACtG,kBAAkB,EAAE,CACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,sBAAsB,EAChC,OAAO,CAAC,EAAE,oBAAoB,KAC1B,IAAI,CAAC;IACV,6IAA6I;IAC7I,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC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,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM;CAGrC"}
|
|
@@ -20,7 +20,30 @@ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
|
20
20
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
21
21
|
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare enum ConnectionState {
|
|
27
|
+
/**
|
|
28
|
+
* The container is not connected to the ordering service
|
|
29
|
+
* Note - When in this state the container may be about to reconnect,
|
|
30
|
+
* or may remain disconnected until explicitly told to connect.
|
|
31
|
+
*/
|
|
32
|
+
Disconnected = 0,
|
|
33
|
+
/**
|
|
34
|
+
* The container is disconnected but actively trying to establish a new connection
|
|
35
|
+
* PLEASE NOTE that this numerical value falls out of the order you may expect for this state
|
|
36
|
+
*/
|
|
37
|
+
EstablishingConnection = 3,
|
|
38
|
+
/**
|
|
39
|
+
* The container has an inbound connection only, and is catching up to the latest known state from the service.
|
|
40
|
+
*/
|
|
41
|
+
CatchingUp = 1,
|
|
42
|
+
/**
|
|
43
|
+
* The container is fully connected and syncing
|
|
44
|
+
*/
|
|
45
|
+
Connected = 2
|
|
46
|
+
}
|
|
24
47
|
|
|
25
48
|
/**
|
|
26
49
|
* @deprecated ICodeDetailsLoader interface is moved to {@link @fluidframework/container-definition#ICodeDetailsLoader}
|
|
@@ -177,8 +200,6 @@ export declare interface ILoaderServices {
|
|
|
177
200
|
readonly protocolHandlerBuilder?: ProtocolHandlerBuilder;
|
|
178
201
|
}
|
|
179
202
|
|
|
180
|
-
/* Excluded from this release type: ILocationRedirectionError */
|
|
181
|
-
|
|
182
203
|
/* Excluded from this release type: IParsedUrl */
|
|
183
204
|
|
|
184
205
|
/**
|
|
@@ -218,10 +239,36 @@ export declare class Loader implements IHostLoader {
|
|
|
218
239
|
*/
|
|
219
240
|
export declare type ProtocolHandlerBuilder = (attributes: IDocumentAttributes, snapshot: IQuorumSnapshot, sendProposal: (key: string, value: any) => number) => IProtocolHandler;
|
|
220
241
|
|
|
221
|
-
|
|
242
|
+
/**
|
|
243
|
+
* Handles location redirection while fulfilling the loader request.
|
|
244
|
+
* @param api - Callback in which user can wrap the loader.resolve or loader.request call.
|
|
245
|
+
* @param request - request to be resolved.
|
|
246
|
+
* @param urlResolver - resolver used to resolve the url.
|
|
247
|
+
* @param logger - logger to send events.
|
|
248
|
+
* @returns Response from the API call.
|
|
249
|
+
* @alpha
|
|
250
|
+
*/
|
|
251
|
+
export declare function resolveWithLocationRedirectionHandling<T>(api: (request: IRequest) => Promise<T>, request: IRequest, urlResolver: IUrlResolver, logger?: ITelemetryBaseLogger): Promise<T>;
|
|
222
252
|
|
|
223
253
|
/* Excluded from this release type: tryParseCompatibleResolvedUrl */
|
|
224
254
|
|
|
225
|
-
|
|
255
|
+
/**
|
|
256
|
+
* Waits until container connects to delta storage and gets up-to-date.
|
|
257
|
+
*
|
|
258
|
+
* Useful when resolving URIs and hitting 404, due to container being loaded from (stale) snapshot and not being
|
|
259
|
+
* up to date. Host may chose to wait in such case and retry resolving URI.
|
|
260
|
+
*
|
|
261
|
+
* Warning: Will wait infinitely for connection to establish if there is no connection.
|
|
262
|
+
* May result in deadlock if Container.disconnect() is called and never followed by a call to Container.connect().
|
|
263
|
+
*
|
|
264
|
+
* @returns `true`: container is up to date, it processed all the ops that were know at the time of first connection.
|
|
265
|
+
*
|
|
266
|
+
* `false`: storage does not provide indication of how far the client is. Container processed all the ops known to it,
|
|
267
|
+
* but it maybe still behind.
|
|
268
|
+
*
|
|
269
|
+
* @throws an error beginning with `"Container closed"` if the container is closed before it catches up.
|
|
270
|
+
* @alpha
|
|
271
|
+
*/
|
|
272
|
+
export declare function waitContainerToCatchUp(container: IContainer): Promise<boolean>;
|
|
226
273
|
|
|
227
274
|
export { }
|
|
@@ -20,16 +20,35 @@ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
|
20
20
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
21
21
|
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare enum ConnectionState {
|
|
27
|
+
/**
|
|
28
|
+
* The container is not connected to the ordering service
|
|
29
|
+
* Note - When in this state the container may be about to reconnect,
|
|
30
|
+
* or may remain disconnected until explicitly told to connect.
|
|
31
|
+
*/
|
|
32
|
+
Disconnected = 0,
|
|
33
|
+
/**
|
|
34
|
+
* The container is disconnected but actively trying to establish a new connection
|
|
35
|
+
* PLEASE NOTE that this numerical value falls out of the order you may expect for this state
|
|
36
|
+
*/
|
|
37
|
+
EstablishingConnection = 3,
|
|
38
|
+
/**
|
|
39
|
+
* The container has an inbound connection only, and is catching up to the latest known state from the service.
|
|
40
|
+
*/
|
|
41
|
+
CatchingUp = 1,
|
|
42
|
+
/**
|
|
43
|
+
* The container is fully connected and syncing
|
|
44
|
+
*/
|
|
45
|
+
Connected = 2
|
|
46
|
+
}
|
|
26
47
|
|
|
27
48
|
/* Excluded from this release type: IAudienceOwner */
|
|
28
49
|
|
|
29
50
|
/* Excluded from this release type: ICodeDetailsLoader */
|
|
30
51
|
|
|
31
|
-
/* Excluded from this release type: IConfigProviderBase */
|
|
32
|
-
|
|
33
52
|
/* Excluded from this release type: IContainer */
|
|
34
53
|
|
|
35
54
|
/* Excluded from this release type: IContainerExperimental */
|
|
@@ -50,8 +69,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
|
50
69
|
|
|
51
70
|
/* Excluded from this release type: ILoaderOptions */
|
|
52
71
|
|
|
53
|
-
/* Excluded from this release type: ILoaderOptions_2 */
|
|
54
|
-
|
|
55
72
|
/* Excluded from this release type: ILoaderProps */
|
|
56
73
|
|
|
57
74
|
/* Excluded from this release type: ILoaderServices */
|
|
@@ -64,14 +81,8 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
|
64
81
|
|
|
65
82
|
/* Excluded from this release type: IProvideFluidCodeDetailsComparer */
|
|
66
83
|
|
|
67
|
-
/* Excluded from this release type: IRequest */
|
|
68
|
-
|
|
69
84
|
/* Excluded from this release type: isLocationRedirectionError */
|
|
70
85
|
|
|
71
|
-
/* Excluded from this release type: ITelemetryBaseLogger */
|
|
72
|
-
|
|
73
|
-
/* Excluded from this release type: ITelemetryLoggerExt */
|
|
74
|
-
|
|
75
86
|
/* Excluded from this release type: IUrlResolver */
|
|
76
87
|
|
|
77
88
|
/* Excluded from this release type: Loader */
|
|
@@ -20,16 +20,35 @@ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
|
20
20
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
21
21
|
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare enum ConnectionState {
|
|
27
|
+
/**
|
|
28
|
+
* The container is not connected to the ordering service
|
|
29
|
+
* Note - When in this state the container may be about to reconnect,
|
|
30
|
+
* or may remain disconnected until explicitly told to connect.
|
|
31
|
+
*/
|
|
32
|
+
Disconnected = 0,
|
|
33
|
+
/**
|
|
34
|
+
* The container is disconnected but actively trying to establish a new connection
|
|
35
|
+
* PLEASE NOTE that this numerical value falls out of the order you may expect for this state
|
|
36
|
+
*/
|
|
37
|
+
EstablishingConnection = 3,
|
|
38
|
+
/**
|
|
39
|
+
* The container has an inbound connection only, and is catching up to the latest known state from the service.
|
|
40
|
+
*/
|
|
41
|
+
CatchingUp = 1,
|
|
42
|
+
/**
|
|
43
|
+
* The container is fully connected and syncing
|
|
44
|
+
*/
|
|
45
|
+
Connected = 2
|
|
46
|
+
}
|
|
26
47
|
|
|
27
48
|
/* Excluded from this release type: IAudienceOwner */
|
|
28
49
|
|
|
29
50
|
/* Excluded from this release type: ICodeDetailsLoader */
|
|
30
51
|
|
|
31
|
-
/* Excluded from this release type: IConfigProviderBase */
|
|
32
|
-
|
|
33
52
|
/* Excluded from this release type: IContainer */
|
|
34
53
|
|
|
35
54
|
/* Excluded from this release type: IContainerExperimental */
|
|
@@ -50,8 +69,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
|
50
69
|
|
|
51
70
|
/* Excluded from this release type: ILoaderOptions */
|
|
52
71
|
|
|
53
|
-
/* Excluded from this release type: ILoaderOptions_2 */
|
|
54
|
-
|
|
55
72
|
/* Excluded from this release type: ILoaderProps */
|
|
56
73
|
|
|
57
74
|
/* Excluded from this release type: ILoaderServices */
|
|
@@ -64,14 +81,8 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
|
64
81
|
|
|
65
82
|
/* Excluded from this release type: IProvideFluidCodeDetailsComparer */
|
|
66
83
|
|
|
67
|
-
/* Excluded from this release type: IRequest */
|
|
68
|
-
|
|
69
84
|
/* Excluded from this release type: isLocationRedirectionError */
|
|
70
85
|
|
|
71
|
-
/* Excluded from this release type: ITelemetryBaseLogger */
|
|
72
|
-
|
|
73
|
-
/* Excluded from this release type: ITelemetryLoggerExt */
|
|
74
|
-
|
|
75
86
|
/* Excluded from this release type: IUrlResolver */
|
|
76
87
|
|
|
77
88
|
/* Excluded from this release type: Loader */
|
|
@@ -21,7 +21,7 @@ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
|
21
21
|
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* @
|
|
24
|
+
* @public
|
|
25
25
|
*/
|
|
26
26
|
export declare enum ConnectionState {
|
|
27
27
|
/**
|
|
@@ -294,7 +294,7 @@ export declare type ProtocolHandlerBuilder = (attributes: IDocumentAttributes, s
|
|
|
294
294
|
* @param urlResolver - resolver used to resolve the url.
|
|
295
295
|
* @param logger - logger to send events.
|
|
296
296
|
* @returns Response from the API call.
|
|
297
|
-
* @
|
|
297
|
+
* @alpha
|
|
298
298
|
*/
|
|
299
299
|
export declare function resolveWithLocationRedirectionHandling<T>(api: (request: IRequest) => Promise<T>, request: IRequest, urlResolver: IUrlResolver, logger?: ITelemetryBaseLogger): Promise<T>;
|
|
300
300
|
|
|
@@ -324,7 +324,7 @@ export declare function tryParseCompatibleResolvedUrl(url: string): IParsedUrl |
|
|
|
324
324
|
* but it maybe still behind.
|
|
325
325
|
*
|
|
326
326
|
* @throws an error beginning with `"Container closed"` if the container is closed before it catches up.
|
|
327
|
-
* @
|
|
327
|
+
* @alpha
|
|
328
328
|
*/
|
|
329
329
|
export declare function waitContainerToCatchUp(container: IContainer): Promise<boolean>;
|
|
330
330
|
|
|
@@ -104,7 +104,7 @@ export interface IContainerCreateProps {
|
|
|
104
104
|
* but it maybe still behind.
|
|
105
105
|
*
|
|
106
106
|
* @throws an error beginning with `"Container closed"` if the container is closed before it catches up.
|
|
107
|
-
* @
|
|
107
|
+
* @alpha
|
|
108
108
|
*/
|
|
109
109
|
export declare function waitContainerToCatchUp(container: IContainer): Promise<boolean>;
|
|
110
110
|
/**
|
|
@@ -379,4 +379,4 @@ export interface IContainerExperimental extends IContainer {
|
|
|
379
379
|
*/
|
|
380
380
|
closeAndGetPendingLocalState?(stopBlobAttachingSignal?: AbortSignal): Promise<string>;
|
|
381
381
|
}
|
|
382
|
-
//# sourceMappingURL=container.d.
|
|
382
|
+
//# sourceMappingURL=container.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.mts","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAKI,EAEN,oBAAoB,EAEpB,QAAQ,EACR,WAAW,EAEX,MAAM,iCAAiC;OACjC,EACN,WAAW,EAEX,SAAS,EAET,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB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AC,MAAM,CAAC,WAAW;IAsC1B;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,kBAAkB;YAwEZ,2BAA2B;IAiBzC,OAAO,CAAC,iCAAiC;IAkEzC,OAAO,CAAC,wBAAwB;IAwBhC,OAAO,CAAC,sBAAsB;IAuB9B,+DAA+D;IAC/D,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,oBAAoB;IAmB5B,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,oBAAoB;IAkD5B,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,aAAa;IAUrB;;;;OAIG;YACW,iBAAiB;YAqBjB,kBAAkB;IAiFhC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAMxC;IAEF;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,wBAAwB;CA2BhC;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACzD;;;;;OAKG;IACH,oBAAoB,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzC;;;OAGG;IACH,4BAA4B,CAAC,CAAC,uBAAuB,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACtF"}
|
package/lib/container.mjs
CHANGED
|
@@ -44,7 +44,7 @@ const hasBlobsSummaryTree = ".hasAttachmentBlobs";
|
|
|
44
44
|
* but it maybe still behind.
|
|
45
45
|
*
|
|
46
46
|
* @throws an error beginning with `"Container closed"` if the container is closed before it catches up.
|
|
47
|
-
* @
|
|
47
|
+
* @alpha
|
|
48
48
|
*/
|
|
49
49
|
export async function waitContainerToCatchUp(container) {
|
|
50
50
|
// Make sure we stop waiting if container is closed.
|