@fluidframework/container-loader 2.0.0-internal.7.4.0 → 2.0.0-internal.8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/api-report/container-loader.api.md +0 -10
  3. package/dist/container-loader-alpha.d.ts +0 -13
  4. package/dist/container-loader-beta.d.ts +0 -9
  5. package/dist/container-loader-public.d.ts +0 -9
  6. package/dist/container-loader-untrimmed.d.ts +0 -20
  7. package/dist/container.cjs +0 -13
  8. package/dist/container.cjs.map +1 -1
  9. package/dist/container.d.ts +2 -10
  10. package/dist/container.d.ts.map +1 -1
  11. package/dist/containerStorageAdapter.cjs +4 -2
  12. package/dist/containerStorageAdapter.cjs.map +1 -1
  13. package/dist/containerStorageAdapter.d.ts.map +1 -1
  14. package/dist/index.cjs +1 -2
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/loader.cjs +1 -66
  19. package/dist/loader.cjs.map +1 -1
  20. package/dist/loader.d.ts +1 -25
  21. package/dist/loader.d.ts.map +1 -1
  22. package/dist/packageVersion.cjs +1 -1
  23. package/dist/packageVersion.cjs.map +1 -1
  24. package/dist/packageVersion.d.ts +1 -1
  25. package/lib/container-loader-alpha.d.ts +0 -13
  26. package/lib/container-loader-beta.d.ts +0 -9
  27. package/lib/container-loader-public.d.ts +0 -9
  28. package/lib/container-loader-untrimmed.d.ts +0 -20
  29. package/lib/container.d.ts +2 -10
  30. package/lib/container.d.ts.map +1 -1
  31. package/lib/container.mjs +0 -13
  32. package/lib/container.mjs.map +1 -1
  33. package/lib/containerStorageAdapter.d.ts.map +1 -1
  34. package/lib/containerStorageAdapter.mjs +4 -2
  35. package/lib/containerStorageAdapter.mjs.map +1 -1
  36. package/lib/index.d.ts +1 -1
  37. package/lib/index.d.ts.map +1 -1
  38. package/lib/index.mjs +1 -1
  39. package/lib/index.mjs.map +1 -1
  40. package/lib/loader.d.ts +1 -25
  41. package/lib/loader.d.ts.map +1 -1
  42. package/lib/loader.mjs +0 -64
  43. package/lib/loader.mjs.map +1 -1
  44. package/lib/packageVersion.d.ts +1 -1
  45. package/lib/packageVersion.mjs +1 -1
  46. package/lib/packageVersion.mjs.map +1 -1
  47. package/package.json +22 -11
  48. package/src/container.ts +2 -25
  49. package/src/containerStorageAdapter.ts +4 -2
  50. package/src/index.ts +0 -1
  51. package/src/loader.ts +0 -84
  52. package/src/packageVersion.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @fluidframework/container-loader
2
2
 
3
+ ## 2.0.0-internal.8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - container-loader: Removed request(...) and IFluidRouter from ILoader and Loader [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
8
+
9
+ The `request(...)` method and `IFluidRouter` property have been removed from `ILoader` and `Loader`. Instead, after
10
+ calling `ILoader.resolve(...)`, call the `getEntryPoint()` method on the returned `IContainer`.
11
+
12
+ See
13
+ [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md)
14
+ for more details.
15
+
16
+ - container-definitions: Fix ISnapshotTreeWithBlobContents and mark internal [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
17
+
18
+ `ISnapshotTreeWithBlobContents` is an internal type that should not be used externally. Additionally, the type didn't
19
+ match the usage, specifically in runtime-utils where an `any` cast was used to work around undefined blobContents. The
20
+ type has been updated to reflect that blobContents can be undefined.
21
+
22
+ - container-loader: Removed requestResolvedObjectFromContainer [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
23
+
24
+ The helper function `requestResolvedObjectFromContainer` has been removed. Please remove all calls to it and instead use
25
+ the new `entryPoint` pattern. See
26
+ [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md)
27
+ for more details.
28
+
3
29
  ## 2.0.0-internal.7.4.0
4
30
 
5
31
  Dependency updates only.
@@ -14,7 +14,6 @@ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
14
14
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
15
15
  import { IFluidCodeDetails } from '@fluidframework/container-definitions';
16
16
  import { IFluidModule } from '@fluidframework/container-definitions';
17
- import { IFluidRouter } from '@fluidframework/core-interfaces';
18
17
  import { IHostLoader } from '@fluidframework/container-definitions';
19
18
  import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
20
19
  import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
@@ -22,8 +21,6 @@ import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol
22
21
  import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
23
22
  import { IQuorumSnapshot } from '@fluidframework/protocol-base';
24
23
  import { IRequest } from '@fluidframework/core-interfaces';
25
- import { IRequestHeader } from '@fluidframework/core-interfaces';
26
- import { IResponse } from '@fluidframework/core-interfaces';
27
24
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
28
25
  import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
29
26
  import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
@@ -118,15 +115,11 @@ export class Loader implements IHostLoader {
118
115
  canReconnect?: boolean;
119
116
  clientDetailsOverride?: IClientDetails;
120
117
  }): Promise<IContainer>;
121
- // @deprecated (undocumented)
122
- get IFluidRouter(): IFluidRouter;
123
118
  // (undocumented)
124
119
  rehydrateDetachedContainerFromSnapshot(snapshot: string, createDetachedProps?: {
125
120
  canReconnect?: boolean;
126
121
  clientDetailsOverride?: IClientDetails;
127
122
  }): Promise<IContainer>;
128
- // @deprecated (undocumented)
129
- request(request: IRequest): Promise<IResponse>;
130
123
  // (undocumented)
131
124
  resolve(request: IRequest, pendingLocalState?: string): Promise<IContainer>;
132
125
  // (undocumented)
@@ -136,9 +129,6 @@ export class Loader implements IHostLoader {
136
129
  // @alpha
137
130
  export type ProtocolHandlerBuilder = (attributes: IDocumentAttributes, snapshot: IQuorumSnapshot, sendProposal: (key: string, value: any) => number) => IProtocolHandler;
138
131
 
139
- // @internal @deprecated
140
- export function requestResolvedObjectFromContainer(container: IContainer, headers?: IRequestHeader): Promise<IResponse>;
141
-
142
132
  // @internal
143
133
  export function resolveWithLocationRedirectionHandling<T>(api: (request: IRequest) => Promise<T>, request: IRequest, urlResolver: IUrlResolver, logger?: ITelemetryBaseLogger): Promise<T>;
144
134
 
@@ -8,7 +8,6 @@ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
8
8
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
9
9
  import { IFluidCodeDetails } from '@fluidframework/container-definitions';
10
10
  import { IFluidModule } from '@fluidframework/container-definitions';
11
- import { IFluidRouter } from '@fluidframework/core-interfaces';
12
11
  import { IHostLoader } from '@fluidframework/container-definitions';
13
12
  import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
14
13
  import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
@@ -16,8 +15,6 @@ import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol
16
15
  import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
17
16
  import { IQuorumSnapshot } from '@fluidframework/protocol-base';
18
17
  import { IRequest } from '@fluidframework/core-interfaces';
19
- import { IRequestHeader } from '@fluidframework/core-interfaces';
20
- import { IResponse } from '@fluidframework/core-interfaces';
21
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
22
19
  import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
20
  import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
@@ -202,10 +199,6 @@ export declare class Loader implements IHostLoader {
202
199
  readonly services: ILoaderServices;
203
200
  private readonly mc;
204
201
  constructor(loaderProps: ILoaderProps);
205
- /**
206
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the Container's IFluidRouter/request.
207
- */
208
- get IFluidRouter(): IFluidRouter;
209
202
  createDetachedContainer(codeDetails: IFluidCodeDetails, createDetachedProps?: {
210
203
  canReconnect?: boolean;
211
204
  clientDetailsOverride?: IClientDetails;
@@ -215,10 +208,6 @@ export declare class Loader implements IHostLoader {
215
208
  clientDetailsOverride?: IClientDetails;
216
209
  }): Promise<IContainer>;
217
210
  resolve(request: IRequest, pendingLocalState?: string): Promise<IContainer>;
218
- /**
219
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the Container's IFluidRouter/request.
220
- */
221
- request(request: IRequest): Promise<IResponse>;
222
211
  private resolveCore;
223
212
  private loadContainer;
224
213
  }
@@ -229,8 +218,6 @@ export declare class Loader implements IHostLoader {
229
218
  */
230
219
  export declare type ProtocolHandlerBuilder = (attributes: IDocumentAttributes, snapshot: IQuorumSnapshot, sendProposal: (key: string, value: any) => number) => IProtocolHandler;
231
220
 
232
- /* Excluded from this release type: requestResolvedObjectFromContainer */
233
-
234
221
  /* Excluded from this release type: resolveWithLocationRedirectionHandling */
235
222
 
236
223
  /* Excluded from this release type: tryParseCompatibleResolvedUrl */
@@ -8,7 +8,6 @@ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
8
8
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
9
9
  import { IFluidCodeDetails } from '@fluidframework/container-definitions';
10
10
  import { IFluidModule } from '@fluidframework/container-definitions';
11
- import { IFluidRouter } from '@fluidframework/core-interfaces';
12
11
  import { IHostLoader } from '@fluidframework/container-definitions';
13
12
  import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
14
13
  import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
@@ -16,8 +15,6 @@ import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol
16
15
  import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
17
16
  import { IQuorumSnapshot } from '@fluidframework/protocol-base';
18
17
  import { IRequest } from '@fluidframework/core-interfaces';
19
- import { IRequestHeader } from '@fluidframework/core-interfaces';
20
- import { IResponse } from '@fluidframework/core-interfaces';
21
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
22
19
  import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
20
  import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
@@ -49,8 +46,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
49
46
 
50
47
  /* Excluded from this release type: IFluidModuleWithDetails */
51
48
 
52
- /* Excluded from this release type: IFluidRouter */
53
-
54
49
  /* Excluded from this release type: IHostLoader */
55
50
 
56
51
  /* Excluded from this release type: ILoaderOptions */
@@ -71,8 +66,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
71
66
 
72
67
  /* Excluded from this release type: IRequest */
73
68
 
74
- /* Excluded from this release type: IResponse */
75
-
76
69
  /* Excluded from this release type: isLocationRedirectionError */
77
70
 
78
71
  /* Excluded from this release type: ITelemetryBaseLogger */
@@ -85,8 +78,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
85
78
 
86
79
  /* Excluded from this release type: ProtocolHandlerBuilder */
87
80
 
88
- /* Excluded from this release type: requestResolvedObjectFromContainer */
89
-
90
81
  /* Excluded from this release type: resolveWithLocationRedirectionHandling */
91
82
 
92
83
  /* Excluded from this release type: tryParseCompatibleResolvedUrl */
@@ -8,7 +8,6 @@ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
8
8
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
9
9
  import { IFluidCodeDetails } from '@fluidframework/container-definitions';
10
10
  import { IFluidModule } from '@fluidframework/container-definitions';
11
- import { IFluidRouter } from '@fluidframework/core-interfaces';
12
11
  import { IHostLoader } from '@fluidframework/container-definitions';
13
12
  import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
14
13
  import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
@@ -16,8 +15,6 @@ import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol
16
15
  import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
17
16
  import { IQuorumSnapshot } from '@fluidframework/protocol-base';
18
17
  import { IRequest } from '@fluidframework/core-interfaces';
19
- import { IRequestHeader } from '@fluidframework/core-interfaces';
20
- import { IResponse } from '@fluidframework/core-interfaces';
21
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
22
19
  import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
20
  import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
@@ -49,8 +46,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
49
46
 
50
47
  /* Excluded from this release type: IFluidModuleWithDetails */
51
48
 
52
- /* Excluded from this release type: IFluidRouter */
53
-
54
49
  /* Excluded from this release type: IHostLoader */
55
50
 
56
51
  /* Excluded from this release type: ILoaderOptions */
@@ -71,8 +66,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
71
66
 
72
67
  /* Excluded from this release type: IRequest */
73
68
 
74
- /* Excluded from this release type: IResponse */
75
-
76
69
  /* Excluded from this release type: isLocationRedirectionError */
77
70
 
78
71
  /* Excluded from this release type: ITelemetryBaseLogger */
@@ -85,8 +78,6 @@ import { IUrlResolver } from '@fluidframework/driver-definitions';
85
78
 
86
79
  /* Excluded from this release type: ProtocolHandlerBuilder */
87
80
 
88
- /* Excluded from this release type: requestResolvedObjectFromContainer */
89
-
90
81
  /* Excluded from this release type: resolveWithLocationRedirectionHandling */
91
82
 
92
83
  /* Excluded from this release type: tryParseCompatibleResolvedUrl */
@@ -8,7 +8,6 @@ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
8
8
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
9
9
  import { IFluidCodeDetails } from '@fluidframework/container-definitions';
10
10
  import { IFluidModule } from '@fluidframework/container-definitions';
11
- import { IFluidRouter } from '@fluidframework/core-interfaces';
12
11
  import { IHostLoader } from '@fluidframework/container-definitions';
13
12
  import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
14
13
  import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
@@ -16,8 +15,6 @@ import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol
16
15
  import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
17
16
  import { IQuorumSnapshot } from '@fluidframework/protocol-base';
18
17
  import { IRequest } from '@fluidframework/core-interfaces';
19
- import { IRequestHeader } from '@fluidframework/core-interfaces';
20
- import { IResponse } from '@fluidframework/core-interfaces';
21
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
22
19
  import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
20
  import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
@@ -271,10 +268,6 @@ export declare class Loader implements IHostLoader {
271
268
  readonly services: ILoaderServices;
272
269
  private readonly mc;
273
270
  constructor(loaderProps: ILoaderProps);
274
- /**
275
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the Container's IFluidRouter/request.
276
- */
277
- get IFluidRouter(): IFluidRouter;
278
271
  createDetachedContainer(codeDetails: IFluidCodeDetails, createDetachedProps?: {
279
272
  canReconnect?: boolean;
280
273
  clientDetailsOverride?: IClientDetails;
@@ -284,10 +277,6 @@ export declare class Loader implements IHostLoader {
284
277
  clientDetailsOverride?: IClientDetails;
285
278
  }): Promise<IContainer>;
286
279
  resolve(request: IRequest, pendingLocalState?: string): Promise<IContainer>;
287
- /**
288
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the Container's IFluidRouter/request.
289
- */
290
- request(request: IRequest): Promise<IResponse>;
291
280
  private resolveCore;
292
281
  private loadContainer;
293
282
  }
@@ -298,15 +287,6 @@ export declare class Loader implements IHostLoader {
298
287
  */
299
288
  export declare type ProtocolHandlerBuilder = (attributes: IDocumentAttributes, snapshot: IQuorumSnapshot, sendProposal: (key: string, value: any) => number) => IProtocolHandler;
300
289
 
301
- /**
302
- * With an already-resolved container, we can request a component directly, without loading the container again
303
- * @param container - a resolved container
304
- * @returns component on the container
305
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
306
- * @internal
307
- */
308
- export declare function requestResolvedObjectFromContainer(container: IContainer, headers?: IRequestHeader): Promise<IResponse>;
309
-
310
290
  /**
311
291
  * Handles location redirection while fulfilling the loader request.
312
292
  * @param api - Callback in which user can wrap the loader.resolve or loader.request call.
@@ -223,13 +223,6 @@ class Container extends telemetry_utils_1.EventEmitterWithErrorHandling {
223
223
  get connectionMode() {
224
224
  return this._deltaManager.connectionManager.connectionMode;
225
225
  }
226
- /**
227
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
228
- */
229
- // eslint-disable-next-line import/no-deprecated
230
- get IFluidRouter() {
231
- return this;
232
- }
233
226
  get resolvedUrl() {
234
227
  /**
235
228
  * All attached containers will have a document service,
@@ -803,12 +796,6 @@ class Container extends telemetry_utils_1.EventEmitterWithErrorHandling {
803
796
  }
804
797
  }, { start: true, end: true, cancel: "generic" });
805
798
  }
806
- /**
807
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
808
- */
809
- async request(path) {
810
- return telemetry_utils_1.PerformanceEvent.timedExecAsync(this.mc.logger, { eventName: "Request" }, async () => this.runtime.request(path), { end: true, cancel: "error" });
811
- }
812
799
  setAutoReconnectInternal(mode, reason) {
813
800
  const currentMode = this._deltaManager.connectionManager.reconnectMode;
814
801
  if (currentMode === mode) {