@fluidframework/container-runtime 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 (50) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/api-report/container-runtime.api.md +0 -17
  3. package/dist/container-runtime-alpha.d.ts +3 -32
  4. package/dist/container-runtime-beta.d.ts +0 -8
  5. package/dist/container-runtime-public.d.ts +0 -8
  6. package/dist/container-runtime-untrimmed.d.ts +3 -47
  7. package/dist/containerRuntime.d.ts +6 -36
  8. package/dist/containerRuntime.d.ts.map +1 -1
  9. package/dist/containerRuntime.js +6 -64
  10. package/dist/containerRuntime.js.map +1 -1
  11. package/dist/dataStore.js +0 -12
  12. package/dist/dataStore.js.map +1 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -2
  16. package/dist/index.js.map +1 -1
  17. package/dist/packageVersion.d.ts +1 -1
  18. package/dist/packageVersion.js +1 -1
  19. package/dist/packageVersion.js.map +1 -1
  20. package/dist/summary/summarizer.d.ts +0 -12
  21. package/dist/summary/summarizer.d.ts.map +1 -1
  22. package/dist/summary/summarizer.js +0 -46
  23. package/dist/summary/summarizer.js.map +1 -1
  24. package/lib/container-runtime-alpha.d.ts +3 -32
  25. package/lib/container-runtime-beta.d.ts +0 -8
  26. package/lib/container-runtime-public.d.ts +0 -8
  27. package/lib/container-runtime-untrimmed.d.ts +3 -47
  28. package/lib/containerRuntime.d.ts +6 -36
  29. package/lib/containerRuntime.d.ts.map +1 -1
  30. package/lib/containerRuntime.js +5 -62
  31. package/lib/containerRuntime.js.map +1 -1
  32. package/lib/dataStore.js +0 -12
  33. package/lib/dataStore.js.map +1 -1
  34. package/lib/index.d.ts +1 -1
  35. package/lib/index.d.ts.map +1 -1
  36. package/lib/index.js +1 -1
  37. package/lib/index.js.map +1 -1
  38. package/lib/packageVersion.d.ts +1 -1
  39. package/lib/packageVersion.js +1 -1
  40. package/lib/packageVersion.js.map +1 -1
  41. package/lib/summary/summarizer.d.ts +0 -12
  42. package/lib/summary/summarizer.d.ts.map +1 -1
  43. package/lib/summary/summarizer.js +0 -46
  44. package/lib/summary/summarizer.js.map +1 -1
  45. package/package.json +20 -16
  46. package/src/containerRuntime.ts +7 -85
  47. package/src/dataStore.ts +1 -15
  48. package/src/index.ts +0 -1
  49. package/src/packageVersion.ts +1 -1
  50. package/src/summary/summarizer.ts +1 -50
package/src/dataStore.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  import { ITelemetryLoggerExt, TelemetryDataTag, UsageError } from "@fluidframework/telemetry-utils";
7
7
  import { assert, unreachableCase } from "@fluidframework/core-utils";
8
8
  import { AttachState } from "@fluidframework/container-definitions";
9
- import { FluidObject, IFluidHandle, IRequest, IResponse } from "@fluidframework/core-interfaces";
9
+ import { FluidObject, IFluidHandle } from "@fluidframework/core-interfaces";
10
10
  import {
11
11
  AliasResult,
12
12
  IDataStore,
@@ -160,13 +160,6 @@ class DataStore implements IDataStore {
160
160
  return "Success";
161
161
  }
162
162
 
163
- /**
164
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
165
- */
166
- public async request(request: IRequest): Promise<IResponse> {
167
- return this.fluidDataStoreChannel.request(request);
168
- }
169
-
170
163
  /**
171
164
  * {@inheritDoc @fluidframework/runtime-definitions#IDataStore.entryPoint}
172
165
  */
@@ -184,13 +177,6 @@ class DataStore implements IDataStore {
184
177
  this.pendingAliases = datastores.pendingAliases;
185
178
  }
186
179
 
187
- /**
188
- * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
189
- */
190
- public get IFluidRouter() {
191
- return this.fluidDataStoreChannel;
192
- }
193
-
194
180
  private async ackBasedPromise<T>(
195
181
  executor: (
196
182
  resolve: (value: T | PromiseLike<T>) => void,
package/src/index.ts CHANGED
@@ -23,7 +23,6 @@ export {
23
23
  DefaultSummaryConfiguration,
24
24
  ICompressionRuntimeOptions,
25
25
  CompressionAlgorithms,
26
- TEST_requestSummarizer,
27
26
  } from "./containerRuntime";
28
27
  export {
29
28
  ContainerMessageType,
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-runtime";
9
- export const pkgVersion = "2.0.0-internal.7.4.0";
9
+ export const pkgVersion = "2.0.0-internal.8.0.0";
@@ -13,13 +13,9 @@ import {
13
13
  UsageError,
14
14
  wrapErrorAndLog,
15
15
  } from "@fluidframework/telemetry-utils";
16
- import { ILoader, LoaderHeader } from "@fluidframework/container-definitions";
17
- import { DriverHeader } from "@fluidframework/driver-definitions";
18
- import { FluidObject, IFluidHandleContext, IRequest } from "@fluidframework/core-interfaces";
19
- import { responseToException } from "@fluidframework/runtime-utils";
16
+ import { IFluidHandleContext } from "@fluidframework/core-interfaces";
20
17
  import { ISummaryConfiguration } from "../containerRuntime";
21
18
  import { ICancellableSummarizerController } from "./runWhileConnectedCoordinator";
22
- import { summarizerClientType } from "./summarizerClientElection";
23
19
  import { SummaryCollection } from "./summaryCollection";
24
20
  import { RunningSummarizer } from "./runningSummarizer";
25
21
  import {
@@ -103,51 +99,6 @@ export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements
103
99
  this.logger = createChildLogger({ logger: this.runtime.logger, namespace: "Summarizer" });
104
100
  }
105
101
 
106
- /**
107
- * Creates a Summarizer and its underlying client.
108
- * Note that different implementations of ILoader will handle the URL differently.
109
- * ILoader provided by a ContainerRuntime is a RelativeLoader, which will treat URL's
110
- * starting with "/" as relative to the Container. The general ILoader
111
- * interface will expect an absolute URL and will not handle "/".
112
- * @param loader - the loader that resolves the request
113
- * @param url - the URL used to resolve the container
114
- * @deprecated Creating a summarizer is not a publicly supported API. Please remove all usage of this static method.
115
- */
116
- public static async create(loader: ILoader, url: string): Promise<ISummarizer> {
117
- const request: IRequest = {
118
- headers: {
119
- [LoaderHeader.cache]: false,
120
- [LoaderHeader.clientDetails]: {
121
- capabilities: { interactive: false },
122
- type: summarizerClientType,
123
- },
124
- [DriverHeader.summarizingClient]: true,
125
- [LoaderHeader.reconnect]: false,
126
- },
127
- url,
128
- };
129
-
130
- const resolvedContainer = await loader.resolve(request);
131
- let fluidObject: FluidObject<ISummarizer> | undefined;
132
-
133
- // Older containers may not have the "getEntryPoint" API
134
- // ! This check will need to stay until LTS of loader moves past 2.0.0-internal.7.0.0
135
- if (resolvedContainer.getEntryPoint !== undefined) {
136
- fluidObject = await resolvedContainer.getEntryPoint();
137
- } else {
138
- const response = await resolvedContainer.request({ url: "_summarizer" });
139
- if (response.status !== 200 || response.mimeType !== "fluid/object") {
140
- throw responseToException(response, request);
141
- }
142
- fluidObject = response.value;
143
- }
144
-
145
- if (fluidObject?.ISummarizer === undefined) {
146
- throw new UsageError("Fluid object does not implement ISummarizer");
147
- }
148
- return fluidObject.ISummarizer;
149
- }
150
-
151
102
  public async run(onBehalfOf: string): Promise<SummarizerStopReason> {
152
103
  try {
153
104
  return await this.runCore(onBehalfOf);