@fluid-experimental/attributor
Advanced tools
Comparing version 2.13.0 to 2.20.0
# @fluid-experimental/attributor | ||
## 2.20.0 | ||
### Minor Changes | ||
- The ContainerRuntime class has been removed ([#23341](https://github.com/microsoft/FluidFramework/pull/23341)) [61ba06aa98](https://github.com/microsoft/FluidFramework/commit/61ba06aa9881c30ffeeedcaaede9c5a1a0c81abd) | ||
The `ContainerRuntime` class was [deprecated in version 2.12.0](https://github.com/microsoft/FluidFramework/releases/tag/client_v2.12.0#user-content-the-containerruntime-class-is-now-deprecated-23331) and has been removed. | ||
Use `IContainerRuntime` to replace type usages and use the free function `loadContainerRuntime` to replace usages of the static method `ContainerRuntime.loadRuntime`. | ||
See the [deprecation | ||
announcement](https://github.com/microsoft/FluidFramework/releases/tag/client_v2.12.0#user-content-the-containerruntime-class-is-now-deprecated-23331) | ||
for more details about how to update existing code. | ||
## 2.13.0 | ||
@@ -4,0 +17,0 @@ |
@@ -8,3 +8,2 @@ "use strict"; | ||
exports.mixinAttributor = exports.getRuntimeAttributor = void 0; | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
const internal_1 = require("@fluidframework/container-runtime/internal"); | ||
@@ -35,9 +34,5 @@ const internal_2 = require("@fluidframework/core-utils/internal"); | ||
*/ | ||
const mixinAttributor = ( | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
Base = internal_1.ContainerRuntime) => class ContainerRuntimeWithAttributor extends Base { | ||
const mixinAttributor = (Base = internal_1.ContainerRuntime) => class ContainerRuntimeWithAttributor extends Base { | ||
static async loadRuntime(params) { | ||
const { context, registryEntries, existing, requestHandler, provideEntryPoint, runtimeOptions, containerScope, | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
containerRuntimeCtor = ContainerRuntimeWithAttributor, } = params; | ||
const { context, registryEntries, existing, requestHandler, provideEntryPoint, runtimeOptions, containerScope, containerRuntimeCtor = ContainerRuntimeWithAttributor, } = params; | ||
const mc = (0, internal_3.loggerToMonitoringContext)(context.taggedLogger); | ||
@@ -44,0 +39,0 @@ const factory = new runtimeAttributorDataStoreFactory_js_1.RuntimeAttributorFactory(); |
{ | ||
"type": "commonjs" | ||
"type": "commonjs", | ||
"sideEffects": false | ||
} |
@@ -5,3 +5,2 @@ /*! | ||
*/ | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
import { ContainerRuntime } from "@fluidframework/container-runtime/internal"; | ||
@@ -31,9 +30,5 @@ import { assert } from "@fluidframework/core-utils/internal"; | ||
*/ | ||
export const mixinAttributor = ( | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
Base = ContainerRuntime) => class ContainerRuntimeWithAttributor extends Base { | ||
export const mixinAttributor = (Base = ContainerRuntime) => class ContainerRuntimeWithAttributor extends Base { | ||
static async loadRuntime(params) { | ||
const { context, registryEntries, existing, requestHandler, provideEntryPoint, runtimeOptions, containerScope, | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
containerRuntimeCtor = ContainerRuntimeWithAttributor, } = params; | ||
const { context, registryEntries, existing, requestHandler, provideEntryPoint, runtimeOptions, containerScope, containerRuntimeCtor = ContainerRuntimeWithAttributor, } = params; | ||
const mc = loggerToMonitoringContext(context.taggedLogger); | ||
@@ -40,0 +35,0 @@ const factory = new RuntimeAttributorFactory(); |
{ | ||
"name": "@fluid-experimental/attributor", | ||
"version": "2.13.0", | ||
"version": "2.20.0", | ||
"description": "Operation attributor", | ||
@@ -52,14 +52,14 @@ "homepage": "https://fluidframework.com", | ||
"dependencies": { | ||
"@fluid-internal/client-utils": "~2.13.0", | ||
"@fluidframework/container-definitions": "~2.13.0", | ||
"@fluidframework/container-runtime": "~2.13.0", | ||
"@fluidframework/container-runtime-definitions": "~2.13.0", | ||
"@fluidframework/core-interfaces": "~2.13.0", | ||
"@fluidframework/core-utils": "~2.13.0", | ||
"@fluidframework/datastore": "~2.13.0", | ||
"@fluidframework/datastore-definitions": "~2.13.0", | ||
"@fluidframework/driver-definitions": "~2.13.0", | ||
"@fluidframework/runtime-definitions": "~2.13.0", | ||
"@fluidframework/runtime-utils": "~2.13.0", | ||
"@fluidframework/telemetry-utils": "~2.13.0", | ||
"@fluid-internal/client-utils": "~2.20.0", | ||
"@fluidframework/container-definitions": "~2.20.0", | ||
"@fluidframework/container-runtime": "~2.20.0", | ||
"@fluidframework/container-runtime-definitions": "~2.20.0", | ||
"@fluidframework/core-interfaces": "~2.20.0", | ||
"@fluidframework/core-utils": "~2.20.0", | ||
"@fluidframework/datastore": "~2.20.0", | ||
"@fluidframework/datastore-definitions": "~2.20.0", | ||
"@fluidframework/driver-definitions": "~2.20.0", | ||
"@fluidframework/runtime-definitions": "~2.20.0", | ||
"@fluidframework/runtime-utils": "~2.20.0", | ||
"@fluidframework/telemetry-utils": "~2.20.0", | ||
"lz4js": "^0.2.0" | ||
@@ -70,4 +70,4 @@ }, | ||
"@biomejs/biome": "~1.9.3", | ||
"@fluid-internal/mocha-test-setup": "~2.13.0", | ||
"@fluid-private/stochastic-test-utils": "~2.13.0", | ||
"@fluid-internal/mocha-test-setup": "~2.20.0", | ||
"@fluid-private/stochastic-test-utils": "~2.20.0", | ||
"@fluid-tools/build-cli": "^0.51.0", | ||
@@ -77,5 +77,5 @@ "@fluidframework/build-common": "^2.0.3", | ||
"@fluidframework/eslint-config-fluid": "^5.6.0", | ||
"@fluidframework/merge-tree": "~2.13.0", | ||
"@fluidframework/sequence": "~2.13.0", | ||
"@fluidframework/test-runtime-utils": "~2.13.0", | ||
"@fluidframework/merge-tree": "~2.20.0", | ||
"@fluidframework/sequence": "~2.20.0", | ||
"@fluidframework/test-runtime-utils": "~2.20.0", | ||
"@microsoft/api-extractor": "7.47.8", | ||
@@ -82,0 +82,0 @@ "@types/mocha": "^10.0.10", |
@@ -7,3 +7,2 @@ /*! | ||
import { type IContainerContext } from "@fluidframework/container-definitions/internal"; | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
import { ContainerRuntime } from "@fluidframework/container-runtime/internal"; | ||
@@ -57,5 +56,3 @@ import type { IContainerRuntimeOptions } from "@fluidframework/container-runtime/internal"; | ||
export const mixinAttributor = ( | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
Base: typeof ContainerRuntime = ContainerRuntime, | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
): typeof ContainerRuntime => | ||
@@ -69,3 +66,2 @@ class ContainerRuntimeWithAttributor extends Base { | ||
containerScope?: FluidObject; | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
containerRuntimeCtor?: typeof ContainerRuntime; | ||
@@ -77,3 +73,2 @@ /** | ||
provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>; | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
}): Promise<ContainerRuntime> { | ||
@@ -88,3 +83,2 @@ const { | ||
containerScope, | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
containerRuntimeCtor = ContainerRuntimeWithAttributor as unknown as typeof ContainerRuntime, | ||
@@ -137,3 +131,2 @@ } = params; | ||
} | ||
// eslint-disable-next-line import/no-deprecated -- ContainerRuntime class to be moved to internal scope | ||
} as unknown as typeof ContainerRuntime; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
266264
2946
+ Added@fluid-internal/client-utils@2.20.0(transitive)
+ Added@fluidframework/container-definitions@2.20.0(transitive)
+ Added@fluidframework/container-runtime@2.20.0(transitive)
+ Added@fluidframework/container-runtime-definitions@2.20.0(transitive)
+ Added@fluidframework/core-interfaces@2.20.0(transitive)
+ Added@fluidframework/core-utils@2.20.0(transitive)
+ Added@fluidframework/datastore@2.20.0(transitive)
+ Added@fluidframework/datastore-definitions@2.20.0(transitive)
+ Added@fluidframework/driver-definitions@2.20.0(transitive)
+ Added@fluidframework/driver-utils@2.20.0(transitive)
+ Added@fluidframework/id-compressor@2.20.0(transitive)
+ Added@fluidframework/runtime-definitions@2.20.0(transitive)
+ Added@fluidframework/runtime-utils@2.20.0(transitive)
+ Added@fluidframework/telemetry-utils@2.20.0(transitive)
- Removed@fluid-internal/client-utils@2.13.0(transitive)
- Removed@fluidframework/container-definitions@2.13.0(transitive)
- Removed@fluidframework/container-runtime@2.13.0(transitive)
- Removed@fluidframework/container-runtime-definitions@2.13.0(transitive)
- Removed@fluidframework/core-interfaces@2.13.0(transitive)
- Removed@fluidframework/core-utils@2.13.0(transitive)
- Removed@fluidframework/datastore@2.13.0(transitive)
- Removed@fluidframework/datastore-definitions@2.13.0(transitive)
- Removed@fluidframework/driver-definitions@2.13.0(transitive)
- Removed@fluidframework/driver-utils@2.13.0(transitive)
- Removed@fluidframework/id-compressor@2.13.0(transitive)
- Removed@fluidframework/runtime-definitions@2.13.0(transitive)
- Removed@fluidframework/runtime-utils@2.13.0(transitive)
- Removed@fluidframework/telemetry-utils@2.13.0(transitive)
Updated@fluidframework/container-runtime-definitions@~2.20.0