@fluidframework/aqueduct 2.0.0-internal.7.4.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.
Files changed (83) hide show
  1. package/dist/aqueduct-alpha.d.ts +4 -35
  2. package/dist/aqueduct-beta.d.ts +0 -26
  3. package/dist/aqueduct-public.d.ts +0 -26
  4. package/dist/aqueduct-untrimmed.d.ts +4 -98
  5. package/dist/container-runtime-factories/baseContainerRuntimeFactory.cjs.map +1 -1
  6. package/dist/container-runtime-factories/baseContainerRuntimeFactory.d.ts +1 -1
  7. package/dist/container-runtime-factories/baseContainerRuntimeFactory.d.ts.map +1 -1
  8. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.cjs +13 -4
  9. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.cjs.map +1 -1
  10. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts +1 -1
  11. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -1
  12. package/dist/data-object-factories/index.cjs.map +1 -1
  13. package/dist/data-object-factories/index.d.ts +1 -1
  14. package/dist/data-object-factories/index.d.ts.map +1 -1
  15. package/dist/data-object-factories/pureDataObjectFactory.cjs.map +1 -1
  16. package/dist/data-object-factories/pureDataObjectFactory.d.ts +1 -10
  17. package/dist/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
  18. package/dist/data-objects/pureDataObject.cjs +0 -7
  19. package/dist/data-objects/pureDataObject.cjs.map +1 -1
  20. package/dist/data-objects/pureDataObject.d.ts +2 -6
  21. package/dist/data-objects/pureDataObject.d.ts.map +1 -1
  22. package/dist/index.cjs +1 -9
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.ts +1 -3
  25. package/dist/index.d.ts.map +1 -1
  26. package/lib/aqueduct-alpha.d.ts +4 -35
  27. package/lib/aqueduct-beta.d.ts +0 -26
  28. package/lib/aqueduct-public.d.ts +0 -26
  29. package/lib/aqueduct-untrimmed.d.ts +4 -98
  30. package/lib/container-runtime-factories/baseContainerRuntimeFactory.d.ts +1 -1
  31. package/lib/container-runtime-factories/baseContainerRuntimeFactory.d.ts.map +1 -1
  32. package/lib/container-runtime-factories/baseContainerRuntimeFactory.mjs.map +1 -1
  33. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts +1 -1
  34. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -1
  35. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.mjs +13 -3
  36. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.mjs.map +1 -1
  37. package/lib/data-object-factories/index.d.ts +1 -1
  38. package/lib/data-object-factories/index.d.ts.map +1 -1
  39. package/lib/data-object-factories/index.mjs.map +1 -1
  40. package/lib/data-object-factories/pureDataObjectFactory.d.ts +1 -10
  41. package/lib/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
  42. package/lib/data-object-factories/pureDataObjectFactory.mjs.map +1 -1
  43. package/lib/data-objects/pureDataObject.d.ts +2 -6
  44. package/lib/data-objects/pureDataObject.d.ts.map +1 -1
  45. package/lib/data-objects/pureDataObject.mjs +0 -7
  46. package/lib/data-objects/pureDataObject.mjs.map +1 -1
  47. package/lib/index.d.ts +1 -3
  48. package/lib/index.d.ts.map +1 -1
  49. package/lib/index.mjs +1 -3
  50. package/lib/index.mjs.map +1 -1
  51. package/package.json +55 -17
  52. package/dist/request-handlers/index.cjs +0 -12
  53. package/dist/request-handlers/index.cjs.map +0 -1
  54. package/dist/request-handlers/index.d.ts +0 -6
  55. package/dist/request-handlers/index.d.ts.map +0 -1
  56. package/dist/request-handlers/requestHandlers.cjs +0 -93
  57. package/dist/request-handlers/requestHandlers.cjs.map +0 -1
  58. package/dist/request-handlers/requestHandlers.d.ts +0 -46
  59. package/dist/request-handlers/requestHandlers.d.ts.map +0 -1
  60. package/dist/utils/containerInteractions.cjs +0 -76
  61. package/dist/utils/containerInteractions.cjs.map +0 -1
  62. package/dist/utils/containerInteractions.d.ts +0 -42
  63. package/dist/utils/containerInteractions.d.ts.map +0 -1
  64. package/dist/utils/index.cjs +0 -12
  65. package/dist/utils/index.cjs.map +0 -1
  66. package/dist/utils/index.d.ts +0 -6
  67. package/dist/utils/index.d.ts.map +0 -1
  68. package/lib/request-handlers/index.d.ts +0 -6
  69. package/lib/request-handlers/index.d.ts.map +0 -1
  70. package/lib/request-handlers/index.mjs +0 -6
  71. package/lib/request-handlers/index.mjs.map +0 -1
  72. package/lib/request-handlers/requestHandlers.d.ts +0 -46
  73. package/lib/request-handlers/requestHandlers.d.ts.map +0 -1
  74. package/lib/request-handlers/requestHandlers.mjs +0 -86
  75. package/lib/request-handlers/requestHandlers.mjs.map +0 -1
  76. package/lib/utils/containerInteractions.d.ts +0 -38
  77. package/lib/utils/containerInteractions.d.ts.map +0 -1
  78. package/lib/utils/containerInteractions.mjs +0 -70
  79. package/lib/utils/containerInteractions.mjs.map +0 -1
  80. package/lib/utils/index.d.ts +0 -6
  81. package/lib/utils/index.d.ts.map +0 -1
  82. package/lib/utils/index.mjs +0 -6
  83. package/lib/utils/index.mjs.map +0 -1
@@ -19,7 +19,6 @@ import { FluidDataStoreRuntime } from '@fluidframework/datastore';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
20
  import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainer } from '@fluidframework/container-definitions';
23
22
  import { IContainerContext } from '@fluidframework/container-definitions';
24
23
  import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
25
24
  import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
@@ -33,8 +32,6 @@ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
33
32
  import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
33
  import { IFluidHandle } from '@fluidframework/core-interfaces';
35
34
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
36
- import type { IFluidMountableViewClass } from '@fluidframework/view-interfaces';
37
- import { IFluidRouter } from '@fluidframework/core-interfaces';
38
35
  import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
39
36
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
40
37
  import { IRequest } from '@fluidframework/core-interfaces';
@@ -42,7 +39,6 @@ import { IResponse } from '@fluidframework/core-interfaces';
42
39
  import { ISharedDirectory } from '@fluidframework/map';
43
40
  import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
44
41
  import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
45
- import { RequestParser } from '@fluidframework/runtime-utils';
46
42
  import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
47
43
  import { RuntimeRequestHandler } from '@fluidframework/request-handler';
48
44
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
@@ -72,7 +68,7 @@ export declare class BaseContainerRuntimeFactory extends RuntimeFactoryHelper im
72
68
  constructor(props: {
73
69
  registryEntries: NamedFluidDataStoreRegistryEntries;
74
70
  dependencyContainer?: IFluidDependencySynthesizer;
75
- /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
71
+ /** @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
76
72
  requestHandlers?: RuntimeRequestHandler[];
77
73
  runtimeOptions?: IContainerRuntimeOptions;
78
74
  provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;
@@ -117,7 +113,7 @@ export declare class ContainerRuntimeFactoryWithDefaultDataStore extends BaseCon
117
113
  defaultFactory: IFluidDataStoreFactory;
118
114
  registryEntries: NamedFluidDataStoreRegistryEntries;
119
115
  dependencyContainer?: IFluidDependencySynthesizer;
120
- /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
116
+ /** @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
121
117
  requestHandlers?: RuntimeRequestHandler[];
122
118
  runtimeOptions?: IContainerRuntimeOptions;
123
119
  provideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;
@@ -191,16 +187,6 @@ export declare interface DataObjectTypes {
191
187
  Events?: IEvent;
192
188
  }
193
189
 
194
- /* Excluded from this release type: defaultFluidObjectRequestHandler */
195
-
196
- /* Excluded from this release type: defaultRouteRequestHandler */
197
-
198
- /* Excluded from this release type: getDefaultObjectFromContainer */
199
-
200
- /* Excluded from this release type: getObjectFromContainer */
201
-
202
- /* Excluded from this release type: getObjectWithIdFromContainer */
203
-
204
190
  /**
205
191
  * @alpha
206
192
  */
@@ -211,19 +197,6 @@ export declare interface IDataObjectProps<I extends DataObjectTypes = DataObject
211
197
  readonly initProps?: I["InitialState"];
212
198
  }
213
199
 
214
- /* Excluded from this release type: IFluidMountableViewClass */
215
-
216
- /**
217
- * Useful interface in places where it's useful to do type erasure for PureDataObject generic
218
- * @deprecated Will be removed in future major release. Please remove all usage of it.
219
- * @alpha
220
- */
221
- export declare interface IRootDataObjectFactory extends IFluidDataStoreFactory {
222
- createRootInstance(rootDataStoreId: string, runtime: IContainerRuntime): Promise<IFluidRouter>;
223
- }
224
-
225
- /* Excluded from this release type: mountableViewRequestHandler */
226
-
227
200
  /**
228
201
  * This is a bare-bones base class that does basic setup and enables for factory on an initialize call.
229
202
  * You probably don't want to inherit from this data store directly unless
@@ -232,7 +205,7 @@ export declare interface IRootDataObjectFactory extends IFluidDataStoreFactory {
232
205
  * @typeParam I - The optional input types used to strongly type the data object
233
206
  * @alpha
234
207
  */
235
- export declare abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes> extends TypedEventEmitter<I["Events"] & IEvent> implements IFluidLoadable, IFluidRouter, IProvideFluidHandle {
208
+ export declare abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes> extends TypedEventEmitter<I["Events"] & IEvent> implements IFluidLoadable, IProvideFluidHandle {
236
209
  /**
237
210
  * This is your FluidDataStoreRuntime object
238
211
  */
@@ -252,10 +225,6 @@ export declare abstract class PureDataObject<I extends DataObjectTypes = DataObj
252
225
  protected initProps?: I["InitialState"];
253
226
  protected initializeP: Promise<void> | undefined;
254
227
  get id(): string;
255
- /**
256
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
257
- */
258
- get IFluidRouter(): this;
259
228
  get IFluidLoadable(): this;
260
229
  get IFluidHandle(): IFluidHandle<this>;
261
230
  /**
@@ -321,7 +290,7 @@ export declare abstract class PureDataObject<I extends DataObjectTypes = DataObj
321
290
  * @typeParam I - The input types for the DataObject
322
291
  * @alpha
323
292
  */
324
- export declare class PureDataObjectFactory<TObj extends PureDataObject<I>, I extends DataObjectTypes = DataObjectTypes> implements IFluidDataStoreFactory, Partial<IProvideFluidDataStoreRegistry>, IRootDataObjectFactory {
293
+ export declare class PureDataObjectFactory<TObj extends PureDataObject<I>, I extends DataObjectTypes = DataObjectTypes> implements IFluidDataStoreFactory, Partial<IProvideFluidDataStoreRegistry> {
325
294
  readonly type: string;
326
295
  private readonly ctor;
327
296
  private readonly optionalProviders;
@@ -19,7 +19,6 @@ import { FluidDataStoreRuntime } from '@fluidframework/datastore';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
20
  import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainer } from '@fluidframework/container-definitions';
23
22
  import { IContainerContext } from '@fluidframework/container-definitions';
24
23
  import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
25
24
  import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
@@ -33,8 +32,6 @@ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
33
32
  import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
33
  import { IFluidHandle } from '@fluidframework/core-interfaces';
35
34
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
36
- import type { IFluidMountableViewClass } from '@fluidframework/view-interfaces';
37
- import { IFluidRouter } from '@fluidframework/core-interfaces';
38
35
  import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
39
36
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
40
37
  import { IRequest } from '@fluidframework/core-interfaces';
@@ -42,7 +39,6 @@ import { IResponse } from '@fluidframework/core-interfaces';
42
39
  import { ISharedDirectory } from '@fluidframework/map';
43
40
  import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
44
41
  import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
45
- import { RequestParser } from '@fluidframework/runtime-utils';
46
42
  import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
47
43
  import { RuntimeRequestHandler } from '@fluidframework/request-handler';
48
44
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
@@ -61,26 +57,14 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
61
57
 
62
58
  /* Excluded from this release type: DataObjectTypes */
63
59
 
64
- /* Excluded from this release type: defaultFluidObjectRequestHandler */
65
-
66
- /* Excluded from this release type: defaultRouteRequestHandler */
67
-
68
60
  /* Excluded from this release type: FluidDataStoreRuntime */
69
61
 
70
62
  /* Excluded from this release type: FluidObject */
71
63
 
72
64
  /* Excluded from this release type: FluidObjectSymbolProvider */
73
65
 
74
- /* Excluded from this release type: getDefaultObjectFromContainer */
75
-
76
- /* Excluded from this release type: getObjectFromContainer */
77
-
78
- /* Excluded from this release type: getObjectWithIdFromContainer */
79
-
80
66
  /* Excluded from this release type: IChannelFactory */
81
67
 
82
- /* Excluded from this release type: IContainer */
83
-
84
68
  /* Excluded from this release type: IContainerContext */
85
69
 
86
70
  /* Excluded from this release type: IContainerRuntime */
@@ -109,10 +93,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
109
93
 
110
94
  /* Excluded from this release type: IFluidLoadable */
111
95
 
112
- /* Excluded from this release type: IFluidMountableViewClass */
113
-
114
- /* Excluded from this release type: IFluidRouter */
115
-
116
96
  /* Excluded from this release type: IProvideFluidDataStoreRegistry */
117
97
 
118
98
  /* Excluded from this release type: IProvideFluidHandle */
@@ -121,12 +101,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
121
101
 
122
102
  /* Excluded from this release type: IResponse */
123
103
 
124
- /* Excluded from this release type: IRootDataObjectFactory */
125
-
126
104
  /* Excluded from this release type: ISharedDirectory */
127
105
 
128
- /* Excluded from this release type: mountableViewRequestHandler */
129
-
130
106
  /* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
131
107
 
132
108
  /* Excluded from this release type: NamedFluidDataStoreRegistryEntry */
@@ -135,8 +111,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
135
111
 
136
112
  /* Excluded from this release type: PureDataObjectFactory */
137
113
 
138
- /* Excluded from this release type: RequestParser */
139
-
140
114
  /* Excluded from this release type: RuntimeFactoryHelper */
141
115
 
142
116
  /* Excluded from this release type: RuntimeRequestHandler */
@@ -19,7 +19,6 @@ import { FluidDataStoreRuntime } from '@fluidframework/datastore';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
20
  import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainer } from '@fluidframework/container-definitions';
23
22
  import { IContainerContext } from '@fluidframework/container-definitions';
24
23
  import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
25
24
  import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
@@ -33,8 +32,6 @@ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
33
32
  import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
33
  import { IFluidHandle } from '@fluidframework/core-interfaces';
35
34
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
36
- import type { IFluidMountableViewClass } from '@fluidframework/view-interfaces';
37
- import { IFluidRouter } from '@fluidframework/core-interfaces';
38
35
  import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
39
36
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
40
37
  import { IRequest } from '@fluidframework/core-interfaces';
@@ -42,7 +39,6 @@ import { IResponse } from '@fluidframework/core-interfaces';
42
39
  import { ISharedDirectory } from '@fluidframework/map';
43
40
  import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
44
41
  import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
45
- import { RequestParser } from '@fluidframework/runtime-utils';
46
42
  import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
47
43
  import { RuntimeRequestHandler } from '@fluidframework/request-handler';
48
44
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
@@ -61,26 +57,14 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
61
57
 
62
58
  /* Excluded from this release type: DataObjectTypes */
63
59
 
64
- /* Excluded from this release type: defaultFluidObjectRequestHandler */
65
-
66
- /* Excluded from this release type: defaultRouteRequestHandler */
67
-
68
60
  /* Excluded from this release type: FluidDataStoreRuntime */
69
61
 
70
62
  /* Excluded from this release type: FluidObject */
71
63
 
72
64
  /* Excluded from this release type: FluidObjectSymbolProvider */
73
65
 
74
- /* Excluded from this release type: getDefaultObjectFromContainer */
75
-
76
- /* Excluded from this release type: getObjectFromContainer */
77
-
78
- /* Excluded from this release type: getObjectWithIdFromContainer */
79
-
80
66
  /* Excluded from this release type: IChannelFactory */
81
67
 
82
- /* Excluded from this release type: IContainer */
83
-
84
68
  /* Excluded from this release type: IContainerContext */
85
69
 
86
70
  /* Excluded from this release type: IContainerRuntime */
@@ -109,10 +93,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
109
93
 
110
94
  /* Excluded from this release type: IFluidLoadable */
111
95
 
112
- /* Excluded from this release type: IFluidMountableViewClass */
113
-
114
- /* Excluded from this release type: IFluidRouter */
115
-
116
96
  /* Excluded from this release type: IProvideFluidDataStoreRegistry */
117
97
 
118
98
  /* Excluded from this release type: IProvideFluidHandle */
@@ -121,12 +101,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
121
101
 
122
102
  /* Excluded from this release type: IResponse */
123
103
 
124
- /* Excluded from this release type: IRootDataObjectFactory */
125
-
126
104
  /* Excluded from this release type: ISharedDirectory */
127
105
 
128
- /* Excluded from this release type: mountableViewRequestHandler */
129
-
130
106
  /* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
131
107
 
132
108
  /* Excluded from this release type: NamedFluidDataStoreRegistryEntry */
@@ -135,8 +111,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
135
111
 
136
112
  /* Excluded from this release type: PureDataObjectFactory */
137
113
 
138
- /* Excluded from this release type: RequestParser */
139
-
140
114
  /* Excluded from this release type: RuntimeFactoryHelper */
141
115
 
142
116
  /* Excluded from this release type: RuntimeRequestHandler */
@@ -19,7 +19,6 @@ import { FluidDataStoreRuntime } from '@fluidframework/datastore';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
20
  import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainer } from '@fluidframework/container-definitions';
23
22
  import { IContainerContext } from '@fluidframework/container-definitions';
24
23
  import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
25
24
  import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
@@ -33,8 +32,6 @@ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
33
32
  import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
33
  import { IFluidHandle } from '@fluidframework/core-interfaces';
35
34
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
36
- import type { IFluidMountableViewClass } from '@fluidframework/view-interfaces';
37
- import { IFluidRouter } from '@fluidframework/core-interfaces';
38
35
  import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
39
36
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
40
37
  import { IRequest } from '@fluidframework/core-interfaces';
@@ -42,7 +39,6 @@ import { IResponse } from '@fluidframework/core-interfaces';
42
39
  import { ISharedDirectory } from '@fluidframework/map';
43
40
  import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
44
41
  import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
45
- import { RequestParser } from '@fluidframework/runtime-utils';
46
42
  import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
47
43
  import { RuntimeRequestHandler } from '@fluidframework/request-handler';
48
44
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
@@ -72,7 +68,7 @@ export declare class BaseContainerRuntimeFactory extends RuntimeFactoryHelper im
72
68
  constructor(props: {
73
69
  registryEntries: NamedFluidDataStoreRegistryEntries;
74
70
  dependencyContainer?: IFluidDependencySynthesizer;
75
- /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
71
+ /** @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
76
72
  requestHandlers?: RuntimeRequestHandler[];
77
73
  runtimeOptions?: IContainerRuntimeOptions;
78
74
  provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;
@@ -117,7 +113,7 @@ export declare class ContainerRuntimeFactoryWithDefaultDataStore extends BaseCon
117
113
  defaultFactory: IFluidDataStoreFactory;
118
114
  registryEntries: NamedFluidDataStoreRegistryEntries;
119
115
  dependencyContainer?: IFluidDependencySynthesizer;
120
- /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
116
+ /** @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
121
117
  requestHandlers?: RuntimeRequestHandler[];
122
118
  runtimeOptions?: IContainerRuntimeOptions;
123
119
  provideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;
@@ -191,68 +187,6 @@ export declare interface DataObjectTypes {
191
187
  Events?: IEvent;
192
188
  }
193
189
 
194
- /**
195
- * Default request handler for a Fluid object that returns the object itself if:
196
- *
197
- * 1. the request url is empty
198
- *
199
- * 2. the request url is "/"
200
- *
201
- * 3. the request url starts with "/" and is followed by a query param, such as /?key=value
202
- *
203
- * Returns a 404 error for any other url.
204
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
205
- * @internal
206
- */
207
- export declare function defaultFluidObjectRequestHandler(fluidObject: FluidObject, request: IRequest): IResponse;
208
-
209
- /**
210
- * Pipe through container request into internal request.
211
- * If request is empty and default url is provided, redirect request to such default url.
212
- * @param defaultRootId - optional default root data store ID to pass request in case request is empty.
213
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
214
- * @internal
215
- */
216
- export declare const defaultRouteRequestHandler: (defaultRootId: string) => (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
217
-
218
- /**
219
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
220
- * Helper function for getting the default Fluid Object from a Container. This function only works for
221
- * Containers that support "/" request.
222
- *
223
- * @typeParam T - Defines the type you expect to be returned.
224
- *
225
- * @param container - Container you're attempting to get the object from
226
- * @internal
227
- */
228
- export declare function getDefaultObjectFromContainer<T = FluidObject>(container: IContainer): Promise<T>;
229
-
230
- /**
231
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
232
- * Helper function for getting a Fluid Object from a Container given a path/url. This function only works for
233
- * Containers that support getting FluidObjects via request.
234
- *
235
- * @typeParam T - Defines the type you expect to be returned.
236
- *
237
- * @param path - Unique path/url of the FluidObject
238
- * @param container - Container you're attempting to get the object from
239
- * @internal
240
- */
241
- export declare function getObjectFromContainer<T = FluidObject>(path: string, container: IContainer): Promise<T>;
242
-
243
- /**
244
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
245
- * Helper function for getting as Fluid Object from a Container given a Unique Id. This function only works for
246
- * Containers that support getting FluidObjects via request.
247
- *
248
- * @typeParam T - Defines the type you expect to be returned.
249
- *
250
- * @param id - Unique id of the FluidObject
251
- * @param container - Container you're attempting to get the object from
252
- * @internal
253
- */
254
- export declare function getObjectWithIdFromContainer<T = FluidObject>(id: string, container: IContainer): Promise<T>;
255
-
256
190
  /**
257
191
  * @alpha
258
192
  */
@@ -263,30 +197,6 @@ export declare interface IDataObjectProps<I extends DataObjectTypes = DataObject
263
197
  readonly initProps?: I["InitialState"];
264
198
  }
265
199
 
266
- /**
267
- * Useful interface in places where it's useful to do type erasure for PureDataObject generic
268
- * @deprecated Will be removed in future major release. Please remove all usage of it.
269
- * @alpha
270
- */
271
- export declare interface IRootDataObjectFactory extends IFluidDataStoreFactory {
272
- createRootInstance(rootDataStoreId: string, runtime: IContainerRuntime): Promise<IFluidRouter>;
273
- }
274
-
275
- /**
276
- * A mountable view is only required if the view needs to be mounted across a bundle boundary. Mounting across
277
- * bundle boundaries breaks some frameworks, so the mountable view is used to ensure the mounting is done within
278
- * the same bundle as the view. For example, React hooks don't work if mounted across bundles since there will
279
- * be two React instances, breaking the Rules of Hooks. When cross-bundle mounting isn't required, the mountable
280
- * view isn't necessary.
281
- *
282
- * When a request is received with a mountableView: true header, this request handler will reissue the request
283
- * without the header, and respond with a mountable view of the given class using the response.
284
- * @param MountableViewClass - The type of mountable view to use when responding
285
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
286
- * @internal
287
- */
288
- export declare const mountableViewRequestHandler: (MountableViewClass: IFluidMountableViewClass, handlers: RuntimeRequestHandler[]) => (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse>;
289
-
290
200
  /**
291
201
  * This is a bare-bones base class that does basic setup and enables for factory on an initialize call.
292
202
  * You probably don't want to inherit from this data store directly unless
@@ -295,7 +205,7 @@ export declare const mountableViewRequestHandler: (MountableViewClass: IFluidMou
295
205
  * @typeParam I - The optional input types used to strongly type the data object
296
206
  * @alpha
297
207
  */
298
- export declare abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes> extends TypedEventEmitter<I["Events"] & IEvent> implements IFluidLoadable, IFluidRouter, IProvideFluidHandle {
208
+ export declare abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes> extends TypedEventEmitter<I["Events"] & IEvent> implements IFluidLoadable, IProvideFluidHandle {
299
209
  /**
300
210
  * This is your FluidDataStoreRuntime object
301
211
  */
@@ -315,10 +225,6 @@ export declare abstract class PureDataObject<I extends DataObjectTypes = DataObj
315
225
  protected initProps?: I["InitialState"];
316
226
  protected initializeP: Promise<void> | undefined;
317
227
  get id(): string;
318
- /**
319
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
320
- */
321
- get IFluidRouter(): this;
322
228
  get IFluidLoadable(): this;
323
229
  get IFluidHandle(): IFluidHandle<this>;
324
230
  /**
@@ -384,7 +290,7 @@ export declare abstract class PureDataObject<I extends DataObjectTypes = DataObj
384
290
  * @typeParam I - The input types for the DataObject
385
291
  * @alpha
386
292
  */
387
- export declare class PureDataObjectFactory<TObj extends PureDataObject<I>, I extends DataObjectTypes = DataObjectTypes> implements IFluidDataStoreFactory, Partial<IProvideFluidDataStoreRegistry>, IRootDataObjectFactory {
293
+ export declare class PureDataObjectFactory<TObj extends PureDataObject<I>, I extends DataObjectTypes = DataObjectTypes> implements IFluidDataStoreFactory, Partial<IProvideFluidDataStoreRegistry> {
388
294
  readonly type: string;
389
295
  private readonly ctor;
390
296
  private readonly optionalProviders;
@@ -1 +1 @@
1
- {"version":3,"file":"baseContainerRuntimeFactory.cjs","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yEAI2C;AAE3C,gDAAgD;AAChD,qEAAoG;AAMpG,2DAIoC;AACpC,iEAAqE;AAGrE;;;;;GAKG;AACH,MAAa,2BACZ,SAAQ,oCAAoB;IAG5B,IAAW,uBAAuB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IASD;;;;;;;OAOG;IACH,YAAY,KAOX;QACA,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,0CAAsB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAClE,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAAyB;QAC1D,MAAM,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,uBAAuB,CAAC,OAAyB;QAC7D,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,aAAa,CACzB,OAA0B,EAC1B,QAAiB;QAEjB,MAAM,KAAK,GAAgD,OAAO,CAAC,KAAK,CAAC;QACzE,IAAI,IAAI,CAAC,mBAAmB,EAAE;YAC7B,MAAM,EAAE,GAAG,IAAI,gCAAmB,CACjC,IAAI,CAAC,mBAAmB,EACxB,KAAK,CAAC,2BAA2B,CACjC,CAAC;YACF,KAAK,CAAC,2BAA2B,GAAG,EAAE,CAAC;SACvC;QAED,OAAO,oCAAgB,CAAC,WAAW,CAAC;YACnC,OAAO;YACP,QAAQ;YACR,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,cAAc,EAAE,KAAK;YACrB,gDAAgD;YAChD,cAAc,EAAE,IAAA,4CAA0B,EAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACnE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B,IAAG,CAAC;IAE7E;;;;OAIG;IACO,KAAK,CAAC,uBAAuB,CAAC,OAA0B,IAAG,CAAC;CACtE;AAxFD,kEAwFC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IContainerContext } from \"@fluidframework/container-definitions\";\nimport {\n\tIContainerRuntimeOptions,\n\tFluidDataStoreRegistry,\n\tContainerRuntime,\n} from \"@fluidframework/container-runtime\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\n// eslint-disable-next-line import/no-deprecated\nimport { RuntimeRequestHandler, buildRuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport {\n\tIFluidDataStoreRegistry,\n\tIProvideFluidDataStoreRegistry,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport {\n\tDependencyContainer,\n\tIFluidDependencySynthesizer,\n\tIProvideFluidDependencySynthesizer,\n} from \"@fluidframework/synthesize\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\nimport { FluidObject } from \"@fluidframework/core-interfaces\";\n\n/**\n * BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,\n * request handlers, runtimeOptions, and entryPoint initialization function.\n * It can be subclassed to implement a first-time initialization procedure for the containers it creates.\n * @alpha\n */\nexport class BaseContainerRuntimeFactory\n\textends RuntimeFactoryHelper\n\timplements IProvideFluidDataStoreRegistry\n{\n\tpublic get IFluidDataStoreRegistry() {\n\t\treturn this.registry;\n\t}\n\tprivate readonly registry: IFluidDataStoreRegistry;\n\n\tprivate readonly registryEntries: NamedFluidDataStoreRegistryEntries;\n\tprivate readonly dependencyContainer?: IFluidDependencySynthesizer;\n\tprivate readonly runtimeOptions?: IContainerRuntimeOptions;\n\tprivate readonly requestHandlers: RuntimeRequestHandler[];\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\t/**\n\t * @param registryEntries - The data store registry for containers produced\n\t * @param dependencyContainer - deprecated, will be removed in a future release\n\t * @param requestHandlers - Request handlers for containers produced\n\t * @param runtimeOptions - The runtime options passed to the ContainerRuntime when instantiating it\n\t * @param provideEntryPoint - Function that will initialize the entryPoint of the ContainerRuntime instances\n\t * created with this factory\n\t */\n\tconstructor(props: {\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t\tdependencyContainer?: IFluidDependencySynthesizer;\n\t\t/** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md */\n\t\trequestHandlers?: RuntimeRequestHandler[];\n\t\truntimeOptions?: IContainerRuntimeOptions;\n\t\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\t}) {\n\t\tsuper();\n\n\t\tthis.registryEntries = props.registryEntries;\n\t\tthis.dependencyContainer = props.dependencyContainer;\n\t\tthis.runtimeOptions = props.runtimeOptions;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tthis.requestHandlers = props.requestHandlers ?? [];\n\t\tthis.registry = new FluidDataStoreRegistry(this.registryEntries);\n\t}\n\n\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerInitializingFirstTime(runtime);\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<ContainerRuntime> {\n\t\tconst scope: Partial<IProvideFluidDependencySynthesizer> = context.scope;\n\t\tif (this.dependencyContainer) {\n\t\t\tconst dc = new DependencyContainer<FluidObject>(\n\t\t\t\tthis.dependencyContainer,\n\t\t\t\tscope.IFluidDependencySynthesizer,\n\t\t\t);\n\t\t\tscope.IFluidDependencySynthesizer = dc;\n\t\t}\n\n\t\treturn ContainerRuntime.loadRuntime({\n\t\t\tcontext,\n\t\t\texisting,\n\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\tregistryEntries: this.registryEntries,\n\t\t\tcontainerScope: scope,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandler: buildRuntimeRequestHandler(...this.requestHandlers),\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\t}\n\n\t/**\n\t * Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container\n\t * is created. This likely includes creating any initial data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime) {}\n\n\t/**\n\t * Subclasses may override containerHasInitialized to perform any steps after the container has initialized.\n\t * This likely includes loading any data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerHasInitialized(runtime: IContainerRuntime) {}\n}\n"]}
1
+ {"version":3,"file":"baseContainerRuntimeFactory.cjs","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yEAI2C;AAE3C,gDAAgD;AAChD,qEAAoG;AAMpG,2DAIoC;AACpC,iEAAqE;AAGrE;;;;;GAKG;AACH,MAAa,2BACZ,SAAQ,oCAAoB;IAG5B,IAAW,uBAAuB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IASD;;;;;;;OAOG;IACH,YAAY,KAOX;QACA,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,0CAAsB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAClE,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAAyB;QAC1D,MAAM,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,uBAAuB,CAAC,OAAyB;QAC7D,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,aAAa,CACzB,OAA0B,EAC1B,QAAiB;QAEjB,MAAM,KAAK,GAAgD,OAAO,CAAC,KAAK,CAAC;QACzE,IAAI,IAAI,CAAC,mBAAmB,EAAE;YAC7B,MAAM,EAAE,GAAG,IAAI,gCAAmB,CACjC,IAAI,CAAC,mBAAmB,EACxB,KAAK,CAAC,2BAA2B,CACjC,CAAC;YACF,KAAK,CAAC,2BAA2B,GAAG,EAAE,CAAC;SACvC;QAED,OAAO,oCAAgB,CAAC,WAAW,CAAC;YACnC,OAAO;YACP,QAAQ;YACR,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,cAAc,EAAE,KAAK;YACrB,gDAAgD;YAChD,cAAc,EAAE,IAAA,4CAA0B,EAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACnE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B,IAAG,CAAC;IAE7E;;;;OAIG;IACO,KAAK,CAAC,uBAAuB,CAAC,OAA0B,IAAG,CAAC;CACtE;AAxFD,kEAwFC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IContainerContext } from \"@fluidframework/container-definitions\";\nimport {\n\tIContainerRuntimeOptions,\n\tFluidDataStoreRegistry,\n\tContainerRuntime,\n} from \"@fluidframework/container-runtime\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\n// eslint-disable-next-line import/no-deprecated\nimport { RuntimeRequestHandler, buildRuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport {\n\tIFluidDataStoreRegistry,\n\tIProvideFluidDataStoreRegistry,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport {\n\tDependencyContainer,\n\tIFluidDependencySynthesizer,\n\tIProvideFluidDependencySynthesizer,\n} from \"@fluidframework/synthesize\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\nimport { FluidObject } from \"@fluidframework/core-interfaces\";\n\n/**\n * BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,\n * request handlers, runtimeOptions, and entryPoint initialization function.\n * It can be subclassed to implement a first-time initialization procedure for the containers it creates.\n * @alpha\n */\nexport class BaseContainerRuntimeFactory\n\textends RuntimeFactoryHelper\n\timplements IProvideFluidDataStoreRegistry\n{\n\tpublic get IFluidDataStoreRegistry() {\n\t\treturn this.registry;\n\t}\n\tprivate readonly registry: IFluidDataStoreRegistry;\n\n\tprivate readonly registryEntries: NamedFluidDataStoreRegistryEntries;\n\tprivate readonly dependencyContainer?: IFluidDependencySynthesizer;\n\tprivate readonly runtimeOptions?: IContainerRuntimeOptions;\n\tprivate readonly requestHandlers: RuntimeRequestHandler[];\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\t/**\n\t * @param registryEntries - The data store registry for containers produced\n\t * @param dependencyContainer - deprecated, will be removed in a future release\n\t * @param requestHandlers - Request handlers for containers produced\n\t * @param runtimeOptions - The runtime options passed to the ContainerRuntime when instantiating it\n\t * @param provideEntryPoint - Function that will initialize the entryPoint of the ContainerRuntime instances\n\t * created with this factory\n\t */\n\tconstructor(props: {\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t\tdependencyContainer?: IFluidDependencySynthesizer;\n\t\t/** @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md */\n\t\trequestHandlers?: RuntimeRequestHandler[];\n\t\truntimeOptions?: IContainerRuntimeOptions;\n\t\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\t}) {\n\t\tsuper();\n\n\t\tthis.registryEntries = props.registryEntries;\n\t\tthis.dependencyContainer = props.dependencyContainer;\n\t\tthis.runtimeOptions = props.runtimeOptions;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tthis.requestHandlers = props.requestHandlers ?? [];\n\t\tthis.registry = new FluidDataStoreRegistry(this.registryEntries);\n\t}\n\n\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerInitializingFirstTime(runtime);\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<ContainerRuntime> {\n\t\tconst scope: Partial<IProvideFluidDependencySynthesizer> = context.scope;\n\t\tif (this.dependencyContainer) {\n\t\t\tconst dc = new DependencyContainer<FluidObject>(\n\t\t\t\tthis.dependencyContainer,\n\t\t\t\tscope.IFluidDependencySynthesizer,\n\t\t\t);\n\t\t\tscope.IFluidDependencySynthesizer = dc;\n\t\t}\n\n\t\treturn ContainerRuntime.loadRuntime({\n\t\t\tcontext,\n\t\t\texisting,\n\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\tregistryEntries: this.registryEntries,\n\t\t\tcontainerScope: scope,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandler: buildRuntimeRequestHandler(...this.requestHandlers),\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\t}\n\n\t/**\n\t * Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container\n\t * is created. This likely includes creating any initial data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime) {}\n\n\t/**\n\t * Subclasses may override containerHasInitialized to perform any steps after the container has initialized.\n\t * This likely includes loading any data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerHasInitialized(runtime: IContainerRuntime) {}\n}\n"]}
@@ -35,7 +35,7 @@ export declare class BaseContainerRuntimeFactory extends RuntimeFactoryHelper im
35
35
  constructor(props: {
36
36
  registryEntries: NamedFluidDataStoreRegistryEntries;
37
37
  dependencyContainer?: IFluidDependencySynthesizer;
38
- /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
38
+ /** @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
39
39
  requestHandlers?: RuntimeRequestHandler[];
40
40
  runtimeOptions?: IContainerRuntimeOptions;
41
41
  provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;
@@ -1 +1 @@
1
- {"version":3,"file":"baseContainerRuntimeFactory.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EACN,wBAAwB,EAExB,gBAAgB,EAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAAE,qBAAqB,EAA8B,MAAM,iCAAiC,CAAC;AACpG,OAAO,EACN,uBAAuB,EACvB,8BAA8B,EAC9B,kCAAkC,EAClC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEN,2BAA2B,EAE3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D;;;;;GAKG;AACH,qBAAa,2BACZ,SAAQ,oBACR,YAAW,8BAA8B;IAEzC,IAAW,uBAAuB,4BAEjC;IACD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0B;IAEnD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAqC;IACrE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAA8B;IACnE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAA2B;IAC3D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA0B;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuD;IAEzF;;;;;;;OAOG;gBACS,KAAK,EAAE;QAClB,eAAe,EAAE,kCAAkC,CAAC;QACpD,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;QAClD,4JAA4J;QAC5J,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;QAC1C,cAAc,CAAC,EAAE,wBAAwB,CAAC;QAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;KACxE;IAWY,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,aAAa,CACzB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,OAAO,GACf,OAAO,CAAC,gBAAgB,CAAC;IAsB5B;;;;OAIG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB;IAEzE;;;;OAIG;cACa,uBAAuB,CAAC,OAAO,EAAE,iBAAiB;CAClE"}
1
+ {"version":3,"file":"baseContainerRuntimeFactory.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EACN,wBAAwB,EAExB,gBAAgB,EAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAAE,qBAAqB,EAA8B,MAAM,iCAAiC,CAAC;AACpG,OAAO,EACN,uBAAuB,EACvB,8BAA8B,EAC9B,kCAAkC,EAClC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEN,2BAA2B,EAE3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D;;;;;GAKG;AACH,qBAAa,2BACZ,SAAQ,oBACR,YAAW,8BAA8B;IAEzC,IAAW,uBAAuB,4BAEjC;IACD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0B;IAEnD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAqC;IACrE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAA8B;IACnE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAA2B;IAC3D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA0B;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuD;IAEzF;;;;;;;OAOG;gBACS,KAAK,EAAE;QAClB,eAAe,EAAE,kCAAkC,CAAC;QACpD,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;QAClD,sLAAsL;QACtL,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;QAC1C,cAAc,CAAC,EAAE,wBAAwB,CAAC;QAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;KACxE;IAWY,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,aAAa,CACzB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,OAAO,GACf,OAAO,CAAC,gBAAgB,CAAC;IAsB5B;;;;OAIG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB;IAEzE;;;;OAIG;cACa,uBAAuB,CAAC,OAAO,EAAE,iBAAiB;CAClE"}
@@ -5,8 +5,7 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ContainerRuntimeFactoryWithDefaultDataStore = void 0;
8
- // eslint-disable-next-line import/no-deprecated
9
- const request_handlers_1 = require("../request-handlers/index.cjs");
8
+ const runtime_utils_1 = require("@fluidframework/runtime-utils");
10
9
  const baseContainerRuntimeFactory_1 = require("./baseContainerRuntimeFactory.cjs");
11
10
  const defaultDataStoreId = "default";
12
11
  const getDefaultFluidObject = async (runtime) => {
@@ -36,10 +35,20 @@ class ContainerRuntimeFactoryWithDefaultDataStore extends baseContainerRuntimeFa
36
35
  constructor(props) {
37
36
  const requestHandlers = props.requestHandlers ?? [];
38
37
  const provideEntryPoint = props.provideEntryPoint ?? getDefaultFluidObject;
38
+ const getDefaultObject = async (request, runtime) => {
39
+ const parser = runtime_utils_1.RequestParser.create(request);
40
+ if (parser.pathParts.length === 0) {
41
+ // This cast is safe as ContainerRuntime.loadRuntime is called in the base class
42
+ return runtime.resolveHandle({
43
+ url: `/${defaultDataStoreId}${parser.query}`,
44
+ headers: request.headers,
45
+ });
46
+ }
47
+ return undefined; // continue search
48
+ };
39
49
  super({
40
50
  ...props,
41
- // eslint-disable-next-line import/no-deprecated
42
- requestHandlers: [(0, request_handlers_1.defaultRouteRequestHandler)(defaultDataStoreId), ...requestHandlers],
51
+ requestHandlers: [getDefaultObject, ...requestHandlers],
43
52
  provideEntryPoint,
44
53
  });
45
54
  this.defaultFactory = props.defaultFactory;
@@ -1 +1 @@
1
- {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.cjs","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAWH,gDAAgD;AAChD,oEAAiE;AACjE,mFAA4E;AAE5E,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAErC,MAAM,qBAAqB,GAAG,KAAK,EAAE,OAA0B,EAAE,EAAE;IAClE,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,6BAA6B,CAAC,SAAS,CAAC,CAAC;IAC1E,IAAI,UAAU,KAAK,SAAS,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KAChD;IACD,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAa,2CAA4C,SAAQ,yDAA2B;IAK3F;;;;;;;;OAQG;IACH,YAAY,KAQX;QACA,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACpD,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,IAAI,qBAAqB,CAAC;QAE3E,KAAK,CAAC;YACL,GAAG,KAAK;YACR,gDAAgD;YAChD,eAAe,EAAE,CAAC,IAAA,6CAA0B,EAAC,kBAAkB,CAAC,EAAE,GAAG,eAAe,CAAC;YACrF,iBAAiB;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B;QACxE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACjD,CAAC;;AA1CF,kGA2CC;AA1CuB,8DAAkB,GAAG,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IContainerRuntimeOptions } from \"@fluidframework/container-runtime\";\nimport {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { IFluidDependencySynthesizer } from \"@fluidframework/synthesize\";\nimport { RuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport { FluidObject } from \"@fluidframework/core-interfaces\";\n// eslint-disable-next-line import/no-deprecated\nimport { defaultRouteRequestHandler } from \"../request-handlers\";\nimport { BaseContainerRuntimeFactory } from \"./baseContainerRuntimeFactory\";\n\nconst defaultDataStoreId = \"default\";\n\nconst getDefaultFluidObject = async (runtime: IContainerRuntime) => {\n\tconst entryPoint = await runtime.getAliasedDataStoreEntryPoint(\"default\");\n\tif (entryPoint === undefined) {\n\t\tthrow new Error(\"default dataStore must exist\");\n\t}\n\treturn entryPoint.get();\n};\n\n/**\n * A ContainerRuntimeFactory that initializes Containers with a single default data store, which can be requested from\n * the container with an empty URL.\n *\n * This factory should be exposed as fluidExport off the entry point to your module.\n * @alpha\n */\nexport class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {\n\tpublic static readonly defaultDataStoreId = defaultDataStoreId;\n\n\tprotected readonly defaultFactory: IFluidDataStoreFactory;\n\n\t/**\n\t * Constructor\n\t * @param defaultFactory -\n\t * @param registryEntries -\n\t * @param dependencyContainer - deprecated, will be removed in a future release\n\t * @param requestHandlers -\n\t * @param runtimeOptions -\n\t * @param provideEntryPoint -\n\t */\n\tconstructor(props: {\n\t\tdefaultFactory: IFluidDataStoreFactory;\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t\tdependencyContainer?: IFluidDependencySynthesizer;\n\t\t/** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md */\n\t\trequestHandlers?: RuntimeRequestHandler[];\n\t\truntimeOptions?: IContainerRuntimeOptions;\n\t\tprovideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\t}) {\n\t\tconst requestHandlers = props.requestHandlers ?? [];\n\t\tconst provideEntryPoint = props.provideEntryPoint ?? getDefaultFluidObject;\n\n\t\tsuper({\n\t\t\t...props,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandlers: [defaultRouteRequestHandler(defaultDataStoreId), ...requestHandlers],\n\t\t\tprovideEntryPoint,\n\t\t});\n\n\t\tthis.defaultFactory = props.defaultFactory;\n\t}\n\n\t/**\n\t * {@inheritDoc BaseContainerRuntimeFactory.containerInitializingFirstTime}\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime) {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultFactory.type);\n\t\tawait dataStore.trySetAlias(defaultDataStoreId);\n\t}\n}\n"]}
1
+ {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.cjs","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAWH,iEAA8D;AAC9D,mFAA4E;AAE5E,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAErC,MAAM,qBAAqB,GAAG,KAAK,EAAE,OAA0B,EAAE,EAAE;IAClE,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,6BAA6B,CAAC,SAAS,CAAC,CAAC;IAC1E,IAAI,UAAU,KAAK,SAAS,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KAChD;IACD,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAa,2CAA4C,SAAQ,yDAA2B;IAK3F;;;;;;;;OAQG;IACH,YAAY,KAQX;QACA,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACpD,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,IAAI,qBAAqB,CAAC;QAE3E,MAAM,gBAAgB,GAAG,KAAK,EAAE,OAAiB,EAAE,OAA0B,EAAE,EAAE;YAChF,MAAM,MAAM,GAAG,6BAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAClC,gFAAgF;gBAChF,OAAQ,OAA4B,CAAC,aAAa,CAAC;oBAClD,GAAG,EAAE,IAAI,kBAAkB,GAAG,MAAM,CAAC,KAAK,EAAE;oBAC5C,OAAO,EAAE,OAAO,CAAC,OAAO;iBACxB,CAAC,CAAC;aACH;YACD,OAAO,SAAS,CAAC,CAAC,kBAAkB;QACrC,CAAC,CAAC;QAEF,KAAK,CAAC;YACL,GAAG,KAAK;YACR,eAAe,EAAE,CAAC,gBAAgB,EAAE,GAAG,eAAe,CAAC;YACvD,iBAAiB;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B;QACxE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACjD,CAAC;;AArDF,kGAsDC;AArDuB,8DAAkB,GAAG,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ContainerRuntime, IContainerRuntimeOptions } from \"@fluidframework/container-runtime\";\nimport {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { IFluidDependencySynthesizer } from \"@fluidframework/synthesize\";\nimport { RuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport { FluidObject, IRequest } from \"@fluidframework/core-interfaces\";\nimport { RequestParser } from \"@fluidframework/runtime-utils\";\nimport { BaseContainerRuntimeFactory } from \"./baseContainerRuntimeFactory\";\n\nconst defaultDataStoreId = \"default\";\n\nconst getDefaultFluidObject = async (runtime: IContainerRuntime) => {\n\tconst entryPoint = await runtime.getAliasedDataStoreEntryPoint(\"default\");\n\tif (entryPoint === undefined) {\n\t\tthrow new Error(\"default dataStore must exist\");\n\t}\n\treturn entryPoint.get();\n};\n\n/**\n * A ContainerRuntimeFactory that initializes Containers with a single default data store, which can be requested from\n * the container with an empty URL.\n *\n * This factory should be exposed as fluidExport off the entry point to your module.\n * @alpha\n */\nexport class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {\n\tpublic static readonly defaultDataStoreId = defaultDataStoreId;\n\n\tprotected readonly defaultFactory: IFluidDataStoreFactory;\n\n\t/**\n\t * Constructor\n\t * @param defaultFactory -\n\t * @param registryEntries -\n\t * @param dependencyContainer - deprecated, will be removed in a future release\n\t * @param requestHandlers -\n\t * @param runtimeOptions -\n\t * @param provideEntryPoint -\n\t */\n\tconstructor(props: {\n\t\tdefaultFactory: IFluidDataStoreFactory;\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t\tdependencyContainer?: IFluidDependencySynthesizer;\n\t\t/** @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md */\n\t\trequestHandlers?: RuntimeRequestHandler[];\n\t\truntimeOptions?: IContainerRuntimeOptions;\n\t\tprovideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\t}) {\n\t\tconst requestHandlers = props.requestHandlers ?? [];\n\t\tconst provideEntryPoint = props.provideEntryPoint ?? getDefaultFluidObject;\n\n\t\tconst getDefaultObject = async (request: IRequest, runtime: IContainerRuntime) => {\n\t\t\tconst parser = RequestParser.create(request);\n\t\t\tif (parser.pathParts.length === 0) {\n\t\t\t\t// This cast is safe as ContainerRuntime.loadRuntime is called in the base class\n\t\t\t\treturn (runtime as ContainerRuntime).resolveHandle({\n\t\t\t\t\turl: `/${defaultDataStoreId}${parser.query}`,\n\t\t\t\t\theaders: request.headers,\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn undefined; // continue search\n\t\t};\n\n\t\tsuper({\n\t\t\t...props,\n\t\t\trequestHandlers: [getDefaultObject, ...requestHandlers],\n\t\t\tprovideEntryPoint,\n\t\t});\n\n\t\tthis.defaultFactory = props.defaultFactory;\n\t}\n\n\t/**\n\t * {@inheritDoc BaseContainerRuntimeFactory.containerInitializingFirstTime}\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime) {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultFactory.type);\n\t\tawait dataStore.trySetAlias(defaultDataStoreId);\n\t}\n}\n"]}
@@ -32,7 +32,7 @@ export declare class ContainerRuntimeFactoryWithDefaultDataStore extends BaseCon
32
32
  defaultFactory: IFluidDataStoreFactory;
33
33
  registryEntries: NamedFluidDataStoreRegistryEntries;
34
34
  dependencyContainer?: IFluidDependencySynthesizer;
35
- /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
35
+ /** @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
36
36
  requestHandlers?: RuntimeRequestHandler[];
37
37
  runtimeOptions?: IContainerRuntimeOptions;
38
38
  provideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;
@@ -1 +1 @@
1
- {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EACN,sBAAsB,EACtB,kCAAkC,EAClC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAY5E;;;;;;GAMG;AACH,qBAAa,2CAA4C,SAAQ,2BAA2B;IAC3F,gBAAuB,kBAAkB,aAAsB;IAE/D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;IAE1D;;;;;;;;OAQG;gBACS,KAAK,EAAE;QAClB,cAAc,EAAE,sBAAsB,CAAC;QACvC,eAAe,EAAE,kCAAkC,CAAC;QACpD,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;QAClD,4JAA4J;QAC5J,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;QAC1C,cAAc,CAAC,EAAE,wBAAwB,CAAC;QAC1C,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;KACzE;IAcD;;OAEG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB;CAIzE"}
1
+ {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAoB,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EACN,sBAAsB,EACtB,kCAAkC,EAClC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAY,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAY5E;;;;;;GAMG;AACH,qBAAa,2CAA4C,SAAQ,2BAA2B;IAC3F,gBAAuB,kBAAkB,aAAsB;IAE/D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;IAE1D;;;;;;;;OAQG;gBACS,KAAK,EAAE;QAClB,cAAc,EAAE,sBAAsB,CAAC;QACvC,eAAe,EAAE,kCAAkC,CAAC;QACpD,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;QAClD,sLAAsL;QACtL,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;QAC1C,cAAc,CAAC,EAAE,wBAAwB,CAAC;QAC1C,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;KACzE;IAyBD;;OAEG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB;CAIzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/data-object-factories/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6DAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,qEAAwF;AAAvD,8HAAA,qBAAqB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { DataObjectFactory } from \"./dataObjectFactory\";\nexport { IRootDataObjectFactory, PureDataObjectFactory } from \"./pureDataObjectFactory\";\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/data-object-factories/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6DAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,qEAAgE;AAAvD,8HAAA,qBAAqB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { DataObjectFactory } from \"./dataObjectFactory\";\nexport { PureDataObjectFactory } from \"./pureDataObjectFactory\";\n"]}
@@ -3,5 +3,5 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  export { DataObjectFactory } from "./dataObjectFactory";
6
- export { IRootDataObjectFactory, PureDataObjectFactory } from "./pureDataObjectFactory";
6
+ export { PureDataObjectFactory } from "./pureDataObjectFactory";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-object-factories/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-object-factories/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}