diff --git a/.changeset/heavy-bugs-thank.md b/.changeset/heavy-bugs-thank.md new file mode 100644 index 000000000000..dd476534b9a9 --- /dev/null +++ b/.changeset/heavy-bugs-thank.md @@ -0,0 +1,26 @@ +--- +"@fluidframework/container-definitions": minor +"@fluidframework/runtime-definitions": minor +"__section": breaking +--- +Deprecated properties have been removed from IRuntimeStorageService and IContainerStorageService + +The following deprecated properties have been removed from `IRuntimeStorageService`: + +- `createBlob` +- `dispose` +- `disposed` +- `downloadSummary` +- `getSnapshot` +- `getSnapshotTree` +- `getVersions` +- `policies` +- `uploadSummaryWithContext` + +The following deprecated properties have been removed from `IContainerStorageService`: + +- `dispose` +- `disposed` +- `downloadSummary` + +Please see [this Github issue](https://github.com/microsoft/FluidFramework/issues/25069) for more details. diff --git a/packages/common/container-definitions/api-report/container-definitions.legacy.beta.api.md b/packages/common/container-definitions/api-report/container-definitions.legacy.beta.api.md index 8930a85f63d5..25ce479df09a 100644 --- a/packages/common/container-definitions/api-report/container-definitions.legacy.beta.api.md +++ b/packages/common/container-definitions/api-report/container-definitions.legacy.beta.api.md @@ -209,12 +209,6 @@ export type IContainerPolicies = { // @beta @legacy export interface IContainerStorageService { createBlob(file: ArrayBufferLike): Promise; - // @deprecated - dispose?(error?: Error): void; - // @deprecated - readonly disposed?: boolean; - // @deprecated - downloadSummary(handle: ISummaryHandle): Promise; getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions): Promise; getSnapshotTree(version?: IVersion, scenarioName?: string): Promise; getVersions(versionId: string | null, count: number, scenarioName?: string, fetchSource?: FetchSource): Promise; diff --git a/packages/common/container-definitions/package.json b/packages/common/container-definitions/package.json index da9dc190d499..1d9868123f38 100644 --- a/packages/common/container-definitions/package.json +++ b/packages/common/container-definitions/package.json @@ -110,7 +110,14 @@ "typescript": "~5.4.5" }, "typeValidation": { - "broken": {}, + "broken": { + "Interface_IContainerContext": { + "backCompat": false + }, + "Interface_IContainerStorageService": { + "backCompat": false + } + }, "entrypoint": "legacy" } } diff --git a/packages/common/container-definitions/src/runtime.ts b/packages/common/container-definitions/src/runtime.ts index fdf27e7eae2d..238a97320387 100644 --- a/packages/common/container-definitions/src/runtime.ts +++ b/packages/common/container-definitions/src/runtime.ts @@ -26,7 +26,6 @@ import type { ISnapshotFetchOptions, FetchSource, IDocumentStorageServicePolicies, - ISummaryHandle, } from "@fluidframework/driver-definitions/internal"; import type { IAudience } from "./audience.js"; @@ -143,25 +142,6 @@ export interface IBatchMessage { * @legacy @beta */ export interface IContainerStorageService { - /** - * Whether or not the object has been disposed. - * If true, the object should be considered invalid, and its other state should be disregarded. - * - * @deprecated This API is deprecated and will be removed in a future release. No replacement is planned as - * it is unused in the Runtime layer. - */ - readonly disposed?: boolean; - - /** - * Dispose of the object and its resources. - * @param error - Optional error indicating the reason for the disposal, if the object was - * disposed as the result of an error. - * - * @deprecated This API is deprecated and will be removed in a future release. No replacement is planned as - * it is unused in the Runtime layer. - */ - dispose?(error?: Error): void; - /** * Policies implemented/instructed by driver. * @@ -230,15 +210,6 @@ export interface IContainerStorageService { * Returns the uploaded summary handle. */ uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise; - - /** - * Retrieves the commit that matches the packfile handle. If the packfile has already been committed and the - * server has deleted it this call may result in a broken promise. - * - * @deprecated This API is deprecated and will be removed in a future release. No replacement is planned as - * it is unused in the Runtime and below layers. - */ - downloadSummary(handle: ISummaryHandle): Promise; } /** diff --git a/packages/common/container-definitions/src/test/types/validateContainerDefinitionsPrevious.generated.ts b/packages/common/container-definitions/src/test/types/validateContainerDefinitionsPrevious.generated.ts index c70852f2d416..ad1fcf963900 100644 --- a/packages/common/container-definitions/src/test/types/validateContainerDefinitionsPrevious.generated.ts +++ b/packages/common/container-definitions/src/test/types/validateContainerDefinitionsPrevious.generated.ts @@ -211,6 +211,7 @@ declare type old_as_current_for_Interface_IContainerContext = requireAssignableT * typeValidation.broken: * "Interface_IContainerContext": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IContainerContext = requireAssignableTo, TypeOnly> /* @@ -265,6 +266,7 @@ declare type old_as_current_for_Interface_IContainerStorageService = requireAssi * typeValidation.broken: * "Interface_IContainerStorageService": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IContainerStorageService = requireAssignableTo, TypeOnly> /* diff --git a/packages/framework/aqueduct/package.json b/packages/framework/aqueduct/package.json index a29cbc7b6e92..922d34286c01 100644 --- a/packages/framework/aqueduct/package.json +++ b/packages/framework/aqueduct/package.json @@ -154,7 +154,11 @@ "typescript": "~5.4.5" }, "typeValidation": { - "broken": {}, + "broken": { + "Interface_IDataObjectProps": { + "backCompat": false + } + }, "entrypoint": "legacy" } } diff --git a/packages/framework/aqueduct/src/test/types/validateAqueductPrevious.generated.ts b/packages/framework/aqueduct/src/test/types/validateAqueductPrevious.generated.ts index 5871220938e4..5483e3cea0ed 100644 --- a/packages/framework/aqueduct/src/test/types/validateAqueductPrevious.generated.ts +++ b/packages/framework/aqueduct/src/test/types/validateAqueductPrevious.generated.ts @@ -319,4 +319,5 @@ declare type old_as_current_for_Interface_IDataObjectProps = requireAssignableTo * typeValidation.broken: * "Interface_IDataObjectProps": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IDataObjectProps = requireAssignableTo, TypeOnly> diff --git a/packages/loader/container-loader/src/containerStorageAdapter.ts b/packages/loader/container-loader/src/containerStorageAdapter.ts index 74e2547dcef4..9e4262eb43d4 100644 --- a/packages/loader/container-loader/src/containerStorageAdapter.ts +++ b/packages/loader/container-loader/src/containerStorageAdapter.ts @@ -10,7 +10,7 @@ import type { } from "@fluidframework/container-definitions/internal"; import type { IDisposable } from "@fluidframework/core-interfaces"; import { assert } from "@fluidframework/core-utils/internal"; -import type { ISummaryHandle, ISummaryTree } from "@fluidframework/driver-definitions"; +import type { ISummaryTree } from "@fluidframework/driver-definitions"; import type { FetchSource, IDocumentService, @@ -247,16 +247,6 @@ export class ContainerStorageAdapter public async createBlob(file: ArrayBufferLike): Promise { return this._storageService.createBlob(file); } - - /** - * {@link IRuntimeStorageService.downloadSummary}. - * - * @deprecated This API is deprecated and will be removed in a future release. No replacement is planned as - * it is unused in the Runtime and below layers. - */ - public async downloadSummary(handle: ISummaryHandle): Promise { - return this._storageService.downloadSummary(handle); - } } /** diff --git a/packages/runtime/container-runtime-definitions/package.json b/packages/runtime/container-runtime-definitions/package.json index 7ccf1a2abd0e..9e8afa8e84fe 100644 --- a/packages/runtime/container-runtime-definitions/package.json +++ b/packages/runtime/container-runtime-definitions/package.json @@ -101,7 +101,14 @@ "typescript": "~5.4.5" }, "typeValidation": { - "broken": {}, + "broken": { + "Interface_IContainerRuntime": { + "backCompat": false + }, + "Interface_IContainerRuntimeWithResolveHandle_Deprecated": { + "backCompat": false + } + }, "entrypoint": "legacy" } } diff --git a/packages/runtime/container-runtime-definitions/src/test/types/validateContainerRuntimeDefinitionsPrevious.generated.ts b/packages/runtime/container-runtime-definitions/src/test/types/validateContainerRuntimeDefinitionsPrevious.generated.ts index 13f5bcb7b763..679fc62b0a35 100644 --- a/packages/runtime/container-runtime-definitions/src/test/types/validateContainerRuntimeDefinitionsPrevious.generated.ts +++ b/packages/runtime/container-runtime-definitions/src/test/types/validateContainerRuntimeDefinitionsPrevious.generated.ts @@ -22,6 +22,7 @@ declare type MakeUnusedImportErrorsGoAway = TypeOnly | MinimalType | Fu * typeValidation.broken: * "Interface_IContainerRuntime": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IContainerRuntime = requireAssignableTo, TypeOnly> /* @@ -49,6 +50,7 @@ declare type old_as_current_for_Interface_IContainerRuntimeWithResolveHandle_Dep * typeValidation.broken: * "Interface_IContainerRuntimeWithResolveHandle_Deprecated": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IContainerRuntimeWithResolveHandle_Deprecated = requireAssignableTo, TypeOnly> /* diff --git a/packages/runtime/container-runtime/package.json b/packages/runtime/container-runtime/package.json index f06857552b10..381367d6173f 100644 --- a/packages/runtime/container-runtime/package.json +++ b/packages/runtime/container-runtime/package.json @@ -219,6 +219,9 @@ }, "typeValidation": { "broken": { + "Interface_LoadContainerRuntimeParams": { + "backCompat": false + }, "TypeAlias_MinimumVersionForCollab": { "backCompat": false, "forwardCompat": false diff --git a/packages/runtime/container-runtime/src/storageServiceWithAttachBlobs.ts b/packages/runtime/container-runtime/src/storageServiceWithAttachBlobs.ts index a485028885cc..1986fb8e20ff 100644 --- a/packages/runtime/container-runtime/src/storageServiceWithAttachBlobs.ts +++ b/packages/runtime/container-runtime/src/storageServiceWithAttachBlobs.ts @@ -3,20 +3,7 @@ * Licensed under the MIT License. */ -import type { - FetchSource, - ICreateBlobResponse, - IDocumentStorageServicePolicies, - ISnapshot, - ISnapshotFetchOptions, - ISnapshotTree, - ISummaryContext, - ISummaryHandle, - ISummaryTree, - IVersion, -} from "@fluidframework/driver-definitions/internal"; import type { IRuntimeStorageService } from "@fluidframework/runtime-definitions/internal"; -import { UsageError } from "@fluidframework/telemetry-utils/internal"; /** * IRuntimeStorageService proxy which intercepts requests if they can be satisfied by the blobs received in the @@ -28,14 +15,6 @@ export class StorageServiceWithAttachBlobs implements IRuntimeStorageService { private readonly attachBlobs: Map, ) {} - /** - * {@link IRuntimeStorageService.policies}. - * @deprecated This will be removed in a future release. The DataStore layer does not need this. - */ - public get policies(): IDocumentStorageServicePolicies | undefined { - return this.internalStorageService.policies; - } - public async readBlob(id: string): Promise { const blob = this.attachBlobs.get(id); if (blob !== undefined) { @@ -46,75 +25,4 @@ export class StorageServiceWithAttachBlobs implements IRuntimeStorageService { // IRuntimeStorageService to cache appropriately, no need to double-cache. return this.internalStorageService.readBlob(id); } - - /** - * {@link IRuntimeStorageService.getSnapshotTree}. - * @deprecated This will be removed in a future release. The DataStore layer does not need this. - */ - public async getSnapshotTree( - version?: IVersion, - scenarioName?: string, - // eslint-disable-next-line @rushstack/no-new-null - ): Promise { - return this.internalStorageService.getSnapshotTree(version, scenarioName); - } - - /** - * {@link IRuntimeStorageService.getSnapshot}. - * @deprecated This will be removed in a future release. The DataStore layer does not need this. - */ - public async getSnapshot(snapshotFetchOptions?: ISnapshotFetchOptions): Promise { - if (this.internalStorageService.getSnapshot !== undefined) { - return this.internalStorageService.getSnapshot(snapshotFetchOptions); - } - throw new UsageError( - "getSnapshot api should exist on internal storage in documentStorageServiceProxy class", - ); - } - - /** - * {@link IRuntimeStorageService.getVersions}. - * @deprecated This will be removed in a future release. The DataStore layer does not need this. - */ - public async getVersions( - // eslint-disable-next-line @rushstack/no-new-null - versionId: string | null, - count: number, - scenarioName?: string, - fetchSource?: FetchSource, - ): Promise { - return this.internalStorageService.getVersions( - versionId, - count, - scenarioName, - fetchSource, - ); - } - - /** - * {@link IRuntimeStorageService.uploadSummaryWithContext}. - * @deprecated This will be removed in a future release. The DataStore layer does not need this. - */ - public async uploadSummaryWithContext( - summary: ISummaryTree, - context: ISummaryContext, - ): Promise { - return this.internalStorageService.uploadSummaryWithContext(summary, context); - } - - /** - * {@link IRuntimeStorageService.createBlob}. - * @deprecated This will be removed in a future release. The DataStore layer does not need this. - */ - public async createBlob(file: ArrayBufferLike): Promise { - return this.internalStorageService.createBlob(file); - } - - /** - * {@link IRuntimeStorageService.downloadSummary}. - * @deprecated This will be removed in a future release. The DataStore layer does not need this. - */ - public async downloadSummary(handle: ISummaryHandle): Promise { - return this.internalStorageService.downloadSummary(handle); - } } diff --git a/packages/runtime/container-runtime/src/test/types/validateContainerRuntimePrevious.generated.ts b/packages/runtime/container-runtime/src/test/types/validateContainerRuntimePrevious.generated.ts index aba1e099c738..40b3f09a11b9 100644 --- a/packages/runtime/container-runtime/src/test/types/validateContainerRuntimePrevious.generated.ts +++ b/packages/runtime/container-runtime/src/test/types/validateContainerRuntimePrevious.generated.ts @@ -697,6 +697,7 @@ declare type old_as_current_for_Interface_LoadContainerRuntimeParams = requireAs * typeValidation.broken: * "Interface_LoadContainerRuntimeParams": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_LoadContainerRuntimeParams = requireAssignableTo, TypeOnly> /* diff --git a/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.alpha.api.md b/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.alpha.api.md index 70869315eb85..662f01cfa35d 100644 --- a/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.alpha.api.md +++ b/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.alpha.api.md @@ -309,25 +309,7 @@ export interface IRuntimeMessagesContent { // @beta @legacy export interface IRuntimeStorageService { - // @deprecated (undocumented) - createBlob(file: ArrayBufferLike): Promise; - // @deprecated - dispose?(error?: Error): void; - // @deprecated - readonly disposed?: boolean; - // @deprecated (undocumented) - downloadSummary(handle: ISummaryHandle): Promise; - // @deprecated (undocumented) - getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions): Promise; - // @deprecated (undocumented) - getSnapshotTree(version?: IVersion, scenarioName?: string): Promise; - // @deprecated (undocumented) - getVersions(versionId: string | null, count: number, scenarioName?: string, fetchSource?: FetchSource): Promise; - // @deprecated (undocumented) - readonly policies?: IDocumentStorageServicePolicies | undefined; readBlob(id: string): Promise; - // @deprecated (undocumented) - uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise; } // @beta @legacy diff --git a/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.beta.api.md b/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.beta.api.md index e6825e857073..4b163d30f6da 100644 --- a/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.beta.api.md +++ b/packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.beta.api.md @@ -300,25 +300,7 @@ export interface IRuntimeMessagesContent { // @beta @legacy export interface IRuntimeStorageService { - // @deprecated (undocumented) - createBlob(file: ArrayBufferLike): Promise; - // @deprecated - dispose?(error?: Error): void; - // @deprecated - readonly disposed?: boolean; - // @deprecated (undocumented) - downloadSummary(handle: ISummaryHandle): Promise; - // @deprecated (undocumented) - getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions): Promise; - // @deprecated (undocumented) - getSnapshotTree(version?: IVersion, scenarioName?: string): Promise; - // @deprecated (undocumented) - getVersions(versionId: string | null, count: number, scenarioName?: string, fetchSource?: FetchSource): Promise; - // @deprecated (undocumented) - readonly policies?: IDocumentStorageServicePolicies | undefined; readBlob(id: string): Promise; - // @deprecated (undocumented) - uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise; } // @beta @legacy diff --git a/packages/runtime/runtime-definitions/package.json b/packages/runtime/runtime-definitions/package.json index 12f1418db6f2..f53b32d79464 100644 --- a/packages/runtime/runtime-definitions/package.json +++ b/packages/runtime/runtime-definitions/package.json @@ -119,7 +119,20 @@ "typescript": "~5.4.5" }, "typeValidation": { - "broken": {}, + "broken": { + "Interface_IFluidDataStoreContext": { + "backCompat": false + }, + "Interface_IFluidDataStoreContextDetached": { + "backCompat": false + }, + "Interface_IFluidParentContext": { + "backCompat": false + }, + "Interface_IRuntimeStorageService": { + "backCompat": false + } + }, "entrypoint": "legacy" } } diff --git a/packages/runtime/runtime-definitions/src/protocol.ts b/packages/runtime/runtime-definitions/src/protocol.ts index 05dbf4176f3f..101ac78289fd 100644 --- a/packages/runtime/runtime-definitions/src/protocol.ts +++ b/packages/runtime/runtime-definitions/src/protocol.ts @@ -8,16 +8,6 @@ import type { ITree, ISignalMessage, ISequencedDocumentMessage, - IDocumentStorageServicePolicies, - IVersion, - ISnapshotTree, - ISnapshotFetchOptions, - ISnapshot, - FetchSource, - ICreateBlobResponse, - ISummaryTree, - ISummaryHandle, - ISummaryContext, } from "@fluidframework/driver-definitions/internal"; /** @@ -142,73 +132,4 @@ export interface IRuntimeStorageService { * Reads the object with the given ID, returns content in arrayBufferLike */ readBlob(id: string): Promise; - - /** - * Whether or not the object has been disposed. - * If true, the object should be considered invalid, and its other state should be disregarded. - * - * @deprecated This API is deprecated and will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - readonly disposed?: boolean; - - /** - * Dispose of the object and its resources. - * @param error - Optional error indicating the reason for the disposal, if the object was - * disposed as the result of an error. - * - * @deprecated This API is deprecated and will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - dispose?(error?: Error): void; - - /** - * @deprecated This will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - readonly policies?: IDocumentStorageServicePolicies | undefined; - - /** - * @deprecated This will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - // eslint-disable-next-line @rushstack/no-new-null - getSnapshotTree(version?: IVersion, scenarioName?: string): Promise; - - /** - * @deprecated This will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions): Promise; - - /** - * @deprecated This will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - getVersions( - // TODO: use `undefined` instead. - // eslint-disable-next-line @rushstack/no-new-null - versionId: string | null, - count: number, - scenarioName?: string, - fetchSource?: FetchSource, - ): Promise; - - /** - * @deprecated This will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - createBlob(file: ArrayBufferLike): Promise; - - /** - * @deprecated This will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise; - - /** - * @deprecated This will be removed in a future release. No replacement is planned as - * it is unused in the DataStore layer. - */ - downloadSummary(handle: ISummaryHandle): Promise; } diff --git a/packages/runtime/runtime-definitions/src/test/types/validateRuntimeDefinitionsPrevious.generated.ts b/packages/runtime/runtime-definitions/src/test/types/validateRuntimeDefinitionsPrevious.generated.ts index b4d0161a7566..ed50eb7205da 100644 --- a/packages/runtime/runtime-definitions/src/test/types/validateRuntimeDefinitionsPrevious.generated.ts +++ b/packages/runtime/runtime-definitions/src/test/types/validateRuntimeDefinitionsPrevious.generated.ts @@ -229,6 +229,7 @@ declare type old_as_current_for_Interface_IFluidDataStoreContext = requireAssign * typeValidation.broken: * "Interface_IFluidDataStoreContext": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IFluidDataStoreContext = requireAssignableTo, TypeOnly> /* @@ -247,6 +248,7 @@ declare type old_as_current_for_Interface_IFluidDataStoreContextDetached = requi * typeValidation.broken: * "Interface_IFluidDataStoreContextDetached": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IFluidDataStoreContextDetached = requireAssignableTo, TypeOnly> /* @@ -319,6 +321,7 @@ declare type old_as_current_for_Interface_IFluidParentContext = requireAssignabl * typeValidation.broken: * "Interface_IFluidParentContext": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IFluidParentContext = requireAssignableTo, TypeOnly> /* @@ -445,6 +448,7 @@ declare type old_as_current_for_Interface_IRuntimeStorageService = requireAssign * typeValidation.broken: * "Interface_IRuntimeStorageService": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IRuntimeStorageService = requireAssignableTo, TypeOnly> /* diff --git a/packages/runtime/test-runtime-utils/package.json b/packages/runtime/test-runtime-utils/package.json index 80ed9a668179..d759dcb882d7 100644 --- a/packages/runtime/test-runtime-utils/package.json +++ b/packages/runtime/test-runtime-utils/package.json @@ -154,6 +154,12 @@ }, "typeValidation": { "broken": { + "Class_MockFluidDataStoreContext": { + "backCompat": false + }, + "ClassStatics_MockFluidDataStoreContext": { + "backCompat": false + }, "Class_MockObjectStorageService": { "forwardCompat": false }, diff --git a/packages/runtime/test-runtime-utils/src/test/types/validateTestRuntimeUtilsPrevious.generated.ts b/packages/runtime/test-runtime-utils/src/test/types/validateTestRuntimeUtilsPrevious.generated.ts index 3d2e08bbb7e1..715c13f0b019 100644 --- a/packages/runtime/test-runtime-utils/src/test/types/validateTestRuntimeUtilsPrevious.generated.ts +++ b/packages/runtime/test-runtime-utils/src/test/types/validateTestRuntimeUtilsPrevious.generated.ts @@ -175,6 +175,7 @@ declare type old_as_current_for_Class_MockFluidDataStoreContext = requireAssigna * typeValidation.broken: * "Class_MockFluidDataStoreContext": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Class_MockFluidDataStoreContext = requireAssignableTo, TypeOnly> /* @@ -366,6 +367,7 @@ declare type current_as_old_for_ClassStatics_MockDeltaQueue = requireAssignableT * typeValidation.broken: * "ClassStatics_MockFluidDataStoreContext": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_ClassStatics_MockFluidDataStoreContext = requireAssignableTo, TypeOnly> /* diff --git a/packages/test/test-utils/package.json b/packages/test/test-utils/package.json index e527e5b493c5..aea25994fd4c 100644 --- a/packages/test/test-utils/package.json +++ b/packages/test/test-utils/package.json @@ -162,7 +162,14 @@ "typescript": "~5.4.5" }, "typeValidation": { - "broken": {}, + "broken": { + "Interface_IProvideTestFluidObject": { + "backCompat": false + }, + "Interface_ITestFluidObject": { + "backCompat": false + } + }, "entrypoint": "legacy" } } diff --git a/packages/test/test-utils/src/test/types/validateTestUtilsPrevious.generated.ts b/packages/test/test-utils/src/test/types/validateTestUtilsPrevious.generated.ts index 23bb8b2365d0..d14180f98964 100644 --- a/packages/test/test-utils/src/test/types/validateTestUtilsPrevious.generated.ts +++ b/packages/test/test-utils/src/test/types/validateTestUtilsPrevious.generated.ts @@ -85,6 +85,7 @@ declare type old_as_current_for_Interface_IProvideTestFluidObject = requireAssig * typeValidation.broken: * "Interface_IProvideTestFluidObject": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_IProvideTestFluidObject = requireAssignableTo, TypeOnly> /* @@ -103,4 +104,5 @@ declare type old_as_current_for_Interface_ITestFluidObject = requireAssignableTo * typeValidation.broken: * "Interface_ITestFluidObject": {"backCompat": false} */ +// @ts-expect-error compatibility expected to be broken declare type current_as_old_for_Interface_ITestFluidObject = requireAssignableTo, TypeOnly>