@fluidframework/container-definitions
Advanced tools
Comparing version 2.0.0-rc.2.0.2 to 2.0.0-rc.3.0.0
@@ -15,15 +15,16 @@ ## API Report File for "@fluidframework/container-definitions" | ||
import type { IDocumentMessage } from '@fluidframework/protocol-definitions'; | ||
import type { IDocumentStorageService } from '@fluidframework/driver-definitions'; | ||
import { IErrorBase } from '@fluidframework/core-interfaces'; | ||
import type { IDocumentStorageService } from '@fluidframework/driver-definitions/internal'; | ||
import { IErrorBase } from '@fluidframework/core-interfaces/internal'; | ||
import type { IErrorBase as IErrorBase_2 } from '@fluidframework/core-interfaces'; | ||
import type { IErrorEvent } from '@fluidframework/core-interfaces'; | ||
import type { IEvent } from '@fluidframework/core-interfaces'; | ||
import type { IEventProvider } from '@fluidframework/core-interfaces'; | ||
import { IGenericError } from '@fluidframework/core-interfaces'; | ||
import { IGenericError } from '@fluidframework/core-interfaces/internal'; | ||
import type { IQuorumClients } from '@fluidframework/protocol-definitions'; | ||
import type { IRequest } from '@fluidframework/core-interfaces'; | ||
import type { IResolvedUrl } from '@fluidframework/driver-definitions'; | ||
import type { IResolvedUrl } from '@fluidframework/driver-definitions/internal'; | ||
import type { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions'; | ||
import type { ISequencedProposal } from '@fluidframework/protocol-definitions'; | ||
import type { ISignalMessage } from '@fluidframework/protocol-definitions'; | ||
import type { ISnapshot } from '@fluidframework/driver-definitions'; | ||
import type { ISnapshot } from '@fluidframework/driver-definitions/internal'; | ||
import type { ISnapshotTree } from '@fluidframework/protocol-definitions'; | ||
@@ -33,5 +34,5 @@ import type { ISummaryContent } from '@fluidframework/protocol-definitions'; | ||
import type { ITelemetryBaseLogger } from '@fluidframework/core-interfaces'; | ||
import { IThrottlingWarning } from '@fluidframework/core-interfaces'; | ||
import { IThrottlingWarning } from '@fluidframework/core-interfaces/internal'; | ||
import type { ITokenClaims } from '@fluidframework/protocol-definitions'; | ||
import { IUsageError } from '@fluidframework/core-interfaces'; | ||
import { IUsageError } from '@fluidframework/core-interfaces/internal'; | ||
import type { IVersion } from '@fluidframework/protocol-definitions'; | ||
@@ -72,3 +73,3 @@ import type { MessageType } from '@fluidframework/protocol-definitions'; | ||
// @alpha | ||
export interface ContainerWarning extends IErrorBase { | ||
export interface ContainerWarning extends IErrorBase_2 { | ||
logged?: boolean; | ||
@@ -97,3 +98,3 @@ } | ||
// (undocumented) | ||
metadata: Record<string, unknown> | undefined; | ||
metadata?: Record<string, unknown>; | ||
// (undocumented) | ||
@@ -170,4 +171,2 @@ referenceSequenceNumber?: number; | ||
getLoadedFromVersion(): IVersion | undefined; | ||
// @deprecated (undocumented) | ||
getSpecifiedCodeDetails?(): IFluidCodeDetails | undefined; | ||
// @deprecated | ||
@@ -191,3 +190,3 @@ readonly id: string; | ||
// (undocumented) | ||
readonly submitSignalFn: (contents: any, targetClientId?: string) => void; | ||
readonly submitSignalFn: (contents: unknown, targetClientId?: string) => void; | ||
// (undocumented) | ||
@@ -230,3 +229,3 @@ readonly submitSummaryFn: (summaryOp: ISummaryContent, referenceSequenceNumber?: number) => number; | ||
// @public | ||
export type ICriticalContainerError = IErrorBase; | ||
export type ICriticalContainerError = IErrorBase_2; | ||
@@ -268,3 +267,3 @@ // @public @sealed | ||
reason: string; | ||
error?: IErrorBase; | ||
error?: IErrorBase_2; | ||
}) => void): any; | ||
@@ -271,0 +270,0 @@ } |
# @fluidframework/container-definitions | ||
## 2.0.0-rc.3.0.0 | ||
### Major Changes | ||
- container-definitions: IContainerContext.getSpecifiedCodeDetails() removed [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae) | ||
IContainerContext.getSpecifiedCodeDetails() was deprecated in 0.42 and has now been removed. | ||
- Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae) | ||
Fluid Framework packages have been updated to use the [package.json "exports" | ||
field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both | ||
TypeScript types and implementation code. | ||
This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json: | ||
- `"moduleResolution": "Node16"` with `"module": "Node16"` | ||
- `"moduleResolution": "Bundler"` with `"module": "ESNext"` | ||
We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable | ||
for use with modern versions of Node.js _and_ Bundlers. | ||
[See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information | ||
regarding the module and moduleResolution options. | ||
**Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used | ||
to distinguish stable APIs from those that are in development.** | ||
## 2.0.0-rc.2.0.0 | ||
@@ -4,0 +31,0 @@ |
@@ -5,4 +5,4 @@ /*! | ||
*/ | ||
import type { IClient } from "@fluidframework/protocol-definitions"; | ||
import type { EventEmitter } from "events_pkg"; | ||
import type { IClient } from "@fluidframework/protocol-definitions"; | ||
/** | ||
@@ -9,0 +9,0 @@ * Manages the state and the members for {@link IAudience} |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import type { IDisposable, IEventProvider, IEvent, IErrorEvent, IErrorBase } from "@fluidframework/core-interfaces"; | ||
import type { IDisposable, IErrorBase, IErrorEvent, IEvent, IEventProvider } from "@fluidframework/core-interfaces"; | ||
import type { IAnyDriverError } from "@fluidframework/driver-definitions"; | ||
@@ -8,0 +8,0 @@ import type { IClientConfiguration, IClientDetails, IDocumentMessage, ISequencedDocumentMessage, ISignalMessage, ITokenClaims } from "@fluidframework/protocol-definitions"; |
@@ -8,3 +8,3 @@ "use strict"; | ||
exports.ContainerErrorType = exports.ContainerErrorTypes = void 0; | ||
const core_interfaces_1 = require("@fluidframework/core-interfaces"); | ||
const internal_1 = require("@fluidframework/core-interfaces/internal"); | ||
/** | ||
@@ -15,3 +15,3 @@ * Different error types the ClientSession may report out to the Host. | ||
exports.ContainerErrorTypes = { | ||
...core_interfaces_1.FluidErrorTypes, | ||
...internal_1.FluidErrorTypes, | ||
/** | ||
@@ -18,0 +18,0 @@ * Error indicating an client session has expired. Currently this only happens when GC is allowed on a document and |
@@ -39,3 +39,3 @@ /*! | ||
*/ | ||
IUsageError, } from "@fluidframework/core-interfaces"; | ||
IUsageError, } from "@fluidframework/core-interfaces/internal"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,11 +5,11 @@ /*! | ||
*/ | ||
import type { IRequest, FluidObject, IEvent, IEventProvider } from "@fluidframework/core-interfaces"; | ||
import type { FluidObject, IEvent, IEventProvider, IRequest } from "@fluidframework/core-interfaces"; | ||
import type { IResolvedUrl } from "@fluidframework/driver-definitions/internal"; | ||
import type { IClient, IClientDetails, IDocumentMessage, IQuorumClients, ISequencedDocumentMessage, ISequencedProposal, ISnapshotTree } from "@fluidframework/protocol-definitions"; | ||
import type { IResolvedUrl } from "@fluidframework/driver-definitions"; | ||
import type { IAudience } from "./audience.js"; | ||
import type { IDeltaManager, ReadOnlyInfo } from "./deltas.js"; | ||
import type { ICriticalContainerError, ContainerWarning } from "./error.js"; | ||
import type { ContainerWarning, ICriticalContainerError } from "./error.js"; | ||
import type { IFluidModule } from "./fluidModule.js"; | ||
import type { IFluidCodeDetails, IFluidPackage, IProvideFluidCodeDetailsComparer } from "./fluidPackage.js"; | ||
import type { AttachState } from "./runtime.js"; | ||
import type { IFluidCodeDetails, IFluidPackage, IProvideFluidCodeDetailsComparer } from "./fluidPackage.js"; | ||
/** | ||
@@ -16,0 +16,0 @@ * Encapsulates a module entry point with corresponding code details. |
@@ -5,5 +5,5 @@ /*! | ||
*/ | ||
import type { ITelemetryBaseLogger, IDisposable, FluidObject } from "@fluidframework/core-interfaces"; | ||
import type { IDocumentStorageService, ISnapshot } from "@fluidframework/driver-definitions"; | ||
import type { IClientDetails, ISequencedDocumentMessage, ISnapshotTree, MessageType, ISummaryTree, IVersion, IDocumentMessage, IQuorumClients, ISummaryContent } from "@fluidframework/protocol-definitions"; | ||
import type { FluidObject, IDisposable, ITelemetryBaseLogger } from "@fluidframework/core-interfaces"; | ||
import type { IDocumentStorageService, ISnapshot } from "@fluidframework/driver-definitions/internal"; | ||
import type { IClientDetails, IDocumentMessage, IQuorumClients, ISequencedDocumentMessage, ISnapshotTree, ISummaryContent, ISummaryTree, IVersion, MessageType } from "@fluidframework/protocol-definitions"; | ||
import type { IAudience } from "./audience.js"; | ||
@@ -13,3 +13,2 @@ import type { IDeltaManager } from "./deltas.js"; | ||
import type { ILoader } from "./loader.js"; | ||
import type { IFluidCodeDetails } from "./fluidPackage.js"; | ||
/** | ||
@@ -90,3 +89,3 @@ * The attachment state of some Fluid data (e.g. a container or data store), denoting whether it is uploaded to the | ||
contents?: string; | ||
metadata: Record<string, unknown> | undefined; | ||
metadata?: Record<string, unknown>; | ||
compression?: string; | ||
@@ -99,2 +98,5 @@ referenceSequenceNumber?: number; | ||
* if you intend them to be consumed/called from the runtime layer. | ||
* | ||
* TODO: once `@alpha` tag is removed, `unknown` should be removed from submitSignalFn | ||
* @see {@link https://dev.azure.com/fluidframework/internal/_workitems/edit/7462} | ||
* @alpha | ||
@@ -124,3 +126,3 @@ */ | ||
readonly submitSummaryFn: (summaryOp: ISummaryContent, referenceSequenceNumber?: number) => number; | ||
readonly submitSignalFn: (contents: any, targetClientId?: string) => void; | ||
readonly submitSignalFn: (contents: unknown, targetClientId?: string) => void; | ||
readonly disposeFn?: (error?: ICriticalContainerError) => void; | ||
@@ -130,10 +132,2 @@ readonly closeFn: (error?: ICriticalContainerError) => void; | ||
readonly quorum: IQuorumClients; | ||
/** | ||
* @deprecated This method is provided as a migration tool for customers currently reading the code details | ||
* from within the Container by directly accessing the Quorum proposals. The code details should not be accessed | ||
* from within the Container as this requires coupling between the container contents and the code loader. | ||
* Direct access to Quorum proposals will be removed in an upcoming release, and in a further future release this | ||
* migration tool will be removed. | ||
*/ | ||
getSpecifiedCodeDetails?(): IFluidCodeDetails | undefined; | ||
readonly audience: IAudience | undefined; | ||
@@ -140,0 +134,0 @@ readonly loader: ILoader; |
@@ -5,4 +5,4 @@ /*! | ||
*/ | ||
import type { IClient } from "@fluidframework/protocol-definitions"; | ||
import type { EventEmitter } from "events_pkg"; | ||
import type { IClient } from "@fluidframework/protocol-definitions"; | ||
/** | ||
@@ -9,0 +9,0 @@ * Manages the state and the members for {@link IAudience} |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import type { IDisposable, IEventProvider, IEvent, IErrorEvent, IErrorBase } from "@fluidframework/core-interfaces"; | ||
import type { IDisposable, IErrorBase, IErrorEvent, IEvent, IEventProvider } from "@fluidframework/core-interfaces"; | ||
import type { IAnyDriverError } from "@fluidframework/driver-definitions"; | ||
@@ -8,0 +8,0 @@ import type { IClientConfiguration, IClientDetails, IDocumentMessage, ISequencedDocumentMessage, ISignalMessage, ITokenClaims } from "@fluidframework/protocol-definitions"; |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import { FluidErrorTypes } from "@fluidframework/core-interfaces"; | ||
import { FluidErrorTypes } from "@fluidframework/core-interfaces/internal"; | ||
/** | ||
@@ -8,0 +8,0 @@ * Different error types the ClientSession may report out to the Host. |
@@ -39,3 +39,3 @@ /*! | ||
*/ | ||
IUsageError, } from "@fluidframework/core-interfaces"; | ||
IUsageError, } from "@fluidframework/core-interfaces/internal"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,11 +5,11 @@ /*! | ||
*/ | ||
import type { IRequest, FluidObject, IEvent, IEventProvider } from "@fluidframework/core-interfaces"; | ||
import type { FluidObject, IEvent, IEventProvider, IRequest } from "@fluidframework/core-interfaces"; | ||
import type { IResolvedUrl } from "@fluidframework/driver-definitions/internal"; | ||
import type { IClient, IClientDetails, IDocumentMessage, IQuorumClients, ISequencedDocumentMessage, ISequencedProposal, ISnapshotTree } from "@fluidframework/protocol-definitions"; | ||
import type { IResolvedUrl } from "@fluidframework/driver-definitions"; | ||
import type { IAudience } from "./audience.js"; | ||
import type { IDeltaManager, ReadOnlyInfo } from "./deltas.js"; | ||
import type { ICriticalContainerError, ContainerWarning } from "./error.js"; | ||
import type { ContainerWarning, ICriticalContainerError } from "./error.js"; | ||
import type { IFluidModule } from "./fluidModule.js"; | ||
import type { IFluidCodeDetails, IFluidPackage, IProvideFluidCodeDetailsComparer } from "./fluidPackage.js"; | ||
import type { AttachState } from "./runtime.js"; | ||
import type { IFluidCodeDetails, IFluidPackage, IProvideFluidCodeDetailsComparer } from "./fluidPackage.js"; | ||
/** | ||
@@ -16,0 +16,0 @@ * Encapsulates a module entry point with corresponding code details. |
@@ -5,5 +5,5 @@ /*! | ||
*/ | ||
import type { ITelemetryBaseLogger, IDisposable, FluidObject } from "@fluidframework/core-interfaces"; | ||
import type { IDocumentStorageService, ISnapshot } from "@fluidframework/driver-definitions"; | ||
import type { IClientDetails, ISequencedDocumentMessage, ISnapshotTree, MessageType, ISummaryTree, IVersion, IDocumentMessage, IQuorumClients, ISummaryContent } from "@fluidframework/protocol-definitions"; | ||
import type { FluidObject, IDisposable, ITelemetryBaseLogger } from "@fluidframework/core-interfaces"; | ||
import type { IDocumentStorageService, ISnapshot } from "@fluidframework/driver-definitions/internal"; | ||
import type { IClientDetails, IDocumentMessage, IQuorumClients, ISequencedDocumentMessage, ISnapshotTree, ISummaryContent, ISummaryTree, IVersion, MessageType } from "@fluidframework/protocol-definitions"; | ||
import type { IAudience } from "./audience.js"; | ||
@@ -13,3 +13,2 @@ import type { IDeltaManager } from "./deltas.js"; | ||
import type { ILoader } from "./loader.js"; | ||
import type { IFluidCodeDetails } from "./fluidPackage.js"; | ||
/** | ||
@@ -90,3 +89,3 @@ * The attachment state of some Fluid data (e.g. a container or data store), denoting whether it is uploaded to the | ||
contents?: string; | ||
metadata: Record<string, unknown> | undefined; | ||
metadata?: Record<string, unknown>; | ||
compression?: string; | ||
@@ -99,2 +98,5 @@ referenceSequenceNumber?: number; | ||
* if you intend them to be consumed/called from the runtime layer. | ||
* | ||
* TODO: once `@alpha` tag is removed, `unknown` should be removed from submitSignalFn | ||
* @see {@link https://dev.azure.com/fluidframework/internal/_workitems/edit/7462} | ||
* @alpha | ||
@@ -124,3 +126,3 @@ */ | ||
readonly submitSummaryFn: (summaryOp: ISummaryContent, referenceSequenceNumber?: number) => number; | ||
readonly submitSignalFn: (contents: any, targetClientId?: string) => void; | ||
readonly submitSignalFn: (contents: unknown, targetClientId?: string) => void; | ||
readonly disposeFn?: (error?: ICriticalContainerError) => void; | ||
@@ -130,10 +132,2 @@ readonly closeFn: (error?: ICriticalContainerError) => void; | ||
readonly quorum: IQuorumClients; | ||
/** | ||
* @deprecated This method is provided as a migration tool for customers currently reading the code details | ||
* from within the Container by directly accessing the Quorum proposals. The code details should not be accessed | ||
* from within the Container as this requires coupling between the container contents and the code loader. | ||
* Direct access to Quorum proposals will be removed in an upcoming release, and in a further future release this | ||
* migration tool will be removed. | ||
*/ | ||
getSpecifiedCodeDetails?(): IFluidCodeDetails | undefined; | ||
readonly audience: IAudience | undefined; | ||
@@ -140,0 +134,0 @@ readonly loader: ILoader; |
{ | ||
"name": "@fluidframework/container-definitions", | ||
"version": "2.0.0-rc.2.0.2", | ||
"version": "2.0.0-rc.3.0.0", | ||
"description": "Fluid container definitions", | ||
@@ -18,30 +18,20 @@ "homepage": "https://fluidframework.com", | ||
"import": { | ||
"types": "./lib/index.d.ts", | ||
"types": "./lib/public.d.ts", | ||
"default": "./lib/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/index.d.ts", | ||
"types": "./dist/public.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"./public": { | ||
"./legacy": { | ||
"import": { | ||
"types": "./lib/container-definitions-public.d.ts", | ||
"types": "./lib/legacy.d.ts", | ||
"default": "./lib/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/container-definitions-public.d.ts", | ||
"types": "./dist/legacy.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"./alpha": { | ||
"import": { | ||
"types": "./lib/container-definitions-alpha.d.ts", | ||
"default": "./lib/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/container-definitions-alpha.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"./internal": { | ||
@@ -58,7 +48,7 @@ "import": { | ||
}, | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "lib/index.js", | ||
"types": "lib/public.d.ts", | ||
"dependencies": { | ||
"@fluidframework/core-interfaces": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0", | ||
"@fluidframework/driver-definitions": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0", | ||
"@fluidframework/core-interfaces": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0", | ||
"@fluidframework/driver-definitions": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0", | ||
"@fluidframework/protocol-definitions": "^3.2.0", | ||
@@ -68,8 +58,9 @@ "@types/events_pkg": "npm:@types/events@^3.0.0" | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.13.3", | ||
"@fluid-tools/build-cli": "^0.34.0", | ||
"@arethetypeswrong/cli": "^0.15.2", | ||
"@biomejs/biome": "^1.6.2", | ||
"@fluid-tools/build-cli": "^0.37.0", | ||
"@fluidframework/build-common": "^2.0.3", | ||
"@fluidframework/build-tools": "^0.34.0", | ||
"@fluidframework/build-tools": "^0.37.0", | ||
"@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@2.0.0-internal.8.0.0", | ||
"@fluidframework/eslint-config-fluid": "^4.0.0", | ||
"@fluidframework/eslint-config-fluid": "^5.1.0", | ||
"@microsoft/api-extractor": "^7.42.3", | ||
@@ -83,14 +74,2 @@ "copyfiles": "^2.4.1", | ||
}, | ||
"fluidBuild": { | ||
"tasks": { | ||
"build:docs": { | ||
"dependsOn": [ | ||
"...", | ||
"api-extractor:commonjs", | ||
"api-extractor:esnext" | ||
], | ||
"script": false | ||
} | ||
} | ||
}, | ||
"typeValidation": { | ||
@@ -111,2 +90,5 @@ "broken": { | ||
"backCompat": false | ||
}, | ||
"InterfaceDeclaration_IBatchMessage": { | ||
"backCompat": false | ||
} | ||
@@ -117,11 +99,14 @@ } | ||
"api": "fluid-build . --task api", | ||
"api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json", | ||
"api-extractor:esnext": "api-extractor run --local", | ||
"api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist", | ||
"api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat", | ||
"build": "fluid-build . --task build", | ||
"build:commonjs": "fluid-build . --task commonjs", | ||
"build:compile": "fluid-build . --task compile", | ||
"build:docs": "fluid-build . --task api", | ||
"build:docs": "api-extractor run --local", | ||
"build:esnext": "tsc --project ./tsconfig.json", | ||
"build:test": "tsc --project ./src/test/types/tsconfig.json", | ||
"check:are-the-types-wrong": "attw --pack . --entrypoints .", | ||
"build:test": "npm run build:test:esm && npm run build:test:cjs", | ||
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", | ||
"build:test:esm": "tsc --project ./src/test/tsconfig.json", | ||
"check:are-the-types-wrong": "attw --pack .", | ||
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore", | ||
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json", | ||
@@ -132,12 +117,11 @@ "ci:build": "npm run build:compile", | ||
"ci:test:coverage": "echo No test for this package", | ||
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", | ||
"clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", | ||
"eslint": "eslint --format stylish src", | ||
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", | ||
"format": "npm run prettier:fix", | ||
"lint": "npm run prettier && npm run check:release-tags && npm run eslint", | ||
"lint:fix": "npm run prettier:fix && npm run eslint:fix", | ||
"prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore", | ||
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore", | ||
"format": "fluid-build --task format .", | ||
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore", | ||
"lint": "fluid-build . --task lint", | ||
"lint:fix": "fluid-build . --task eslint:fix --task format", | ||
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", | ||
"tsc:watch": "tsc --watch", | ||
"tsc:watch": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist && fluid-tsc commonjs --watch", | ||
"typetests:gen": "fluid-type-test-generator", | ||
@@ -144,0 +128,0 @@ "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" |
@@ -6,4 +6,4 @@ /*! | ||
import type { IClient } from "@fluidframework/protocol-definitions"; | ||
import type { EventEmitter } from "events_pkg"; | ||
import type { IClient } from "@fluidframework/protocol-definitions"; | ||
@@ -10,0 +10,0 @@ /** |
@@ -8,6 +8,6 @@ /*! | ||
IDisposable, | ||
IErrorBase, | ||
IErrorEvent, | ||
IEvent, | ||
IEventProvider, | ||
IEvent, | ||
IErrorEvent, | ||
IErrorBase, | ||
} from "@fluidframework/core-interfaces"; | ||
@@ -14,0 +14,0 @@ import type { IAnyDriverError } from "@fluidframework/driver-definitions"; |
@@ -7,3 +7,3 @@ /*! | ||
import type { IErrorBase } from "@fluidframework/core-interfaces"; | ||
import { FluidErrorTypes } from "@fluidframework/core-interfaces"; | ||
import { FluidErrorTypes } from "@fluidframework/core-interfaces/internal"; | ||
@@ -10,0 +10,0 @@ /** |
@@ -7,2 +7,3 @@ /*! | ||
import type { FluidObject } from "@fluidframework/core-interfaces"; | ||
import type { IProvideFluidCodeDetailsComparer } from "./fluidPackage.js"; | ||
@@ -9,0 +10,0 @@ import type { IRuntimeFactory } from "./runtime.js"; |
@@ -78,2 +78,2 @@ /*! | ||
IUsageError, | ||
} from "@fluidframework/core-interfaces"; | ||
} from "@fluidframework/core-interfaces/internal"; |
@@ -7,7 +7,8 @@ /*! | ||
import type { | ||
IRequest, | ||
FluidObject, | ||
IEvent, | ||
IEventProvider, | ||
IRequest, | ||
} from "@fluidframework/core-interfaces"; | ||
import type { IResolvedUrl } from "@fluidframework/driver-definitions/internal"; | ||
import type { | ||
@@ -22,8 +23,7 @@ IClient, | ||
} from "@fluidframework/protocol-definitions"; | ||
import type { IResolvedUrl } from "@fluidframework/driver-definitions"; | ||
import type { IAudience } from "./audience.js"; | ||
import type { IDeltaManager, ReadOnlyInfo } from "./deltas.js"; | ||
import type { ICriticalContainerError, ContainerWarning } from "./error.js"; | ||
import type { ContainerWarning, ICriticalContainerError } from "./error.js"; | ||
import type { IFluidModule } from "./fluidModule.js"; | ||
import type { AttachState } from "./runtime.js"; | ||
import type { | ||
@@ -34,2 +34,3 @@ IFluidCodeDetails, | ||
} from "./fluidPackage.js"; | ||
import type { AttachState } from "./runtime.js"; | ||
@@ -36,0 +37,0 @@ /** |
@@ -7,19 +7,22 @@ /*! | ||
import type { | ||
FluidObject, | ||
IDisposable, | ||
ITelemetryBaseLogger, | ||
IDisposable, | ||
FluidObject, | ||
} from "@fluidframework/core-interfaces"; | ||
import type { IDocumentStorageService, ISnapshot } from "@fluidframework/driver-definitions"; | ||
import type { | ||
IDocumentStorageService, | ||
ISnapshot, | ||
} from "@fluidframework/driver-definitions/internal"; | ||
import type { | ||
IClientDetails, | ||
IDocumentMessage, | ||
IQuorumClients, | ||
ISequencedDocumentMessage, | ||
ISnapshotTree, | ||
MessageType, | ||
ISummaryContent, | ||
ISummaryTree, | ||
IVersion, | ||
IDocumentMessage, | ||
IQuorumClients, | ||
ISummaryContent, | ||
MessageType, | ||
} from "@fluidframework/protocol-definitions"; | ||
import type { IAudience } from "./audience.js"; | ||
@@ -29,3 +32,2 @@ import type { IDeltaManager } from "./deltas.js"; | ||
import type { ILoader } from "./loader.js"; | ||
import type { IFluidCodeDetails } from "./fluidPackage.js"; | ||
@@ -120,3 +122,3 @@ /** | ||
contents?: string; | ||
metadata: Record<string, unknown> | undefined; | ||
metadata?: Record<string, unknown>; | ||
compression?: string; | ||
@@ -130,2 +132,5 @@ referenceSequenceNumber?: number; | ||
* if you intend them to be consumed/called from the runtime layer. | ||
* | ||
* TODO: once `@alpha` tag is removed, `unknown` should be removed from submitSignalFn | ||
* @see {@link https://dev.azure.com/fluidframework/internal/_workitems/edit/7462} | ||
* @alpha | ||
@@ -160,5 +165,3 @@ */ | ||
) => number; | ||
// TODO: use `unknown` instead (API breaking) | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
readonly submitSignalFn: (contents: any, targetClientId?: string) => void; | ||
readonly submitSignalFn: (contents: unknown, targetClientId?: string) => void; | ||
readonly disposeFn?: (error?: ICriticalContainerError) => void; | ||
@@ -168,10 +171,2 @@ readonly closeFn: (error?: ICriticalContainerError) => void; | ||
readonly quorum: IQuorumClients; | ||
/** | ||
* @deprecated This method is provided as a migration tool for customers currently reading the code details | ||
* from within the Container by directly accessing the Quorum proposals. The code details should not be accessed | ||
* from within the Container as this requires coupling between the container contents and the code loader. | ||
* Direct access to Quorum proposals will be removed in an upcoming release, and in a further future release this | ||
* migration tool will be removed. | ||
*/ | ||
getSpecifiedCodeDetails?(): IFluidCodeDetails | undefined; | ||
readonly audience: IAudience | undefined; | ||
@@ -178,0 +173,0 @@ readonly loader: ILoader; |
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
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
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
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
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
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
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
427087
14
100
5283
+ Added@fluidframework/core-interfaces@2.0.0-rc.3.0.11(transitive)
+ Added@fluidframework/driver-definitions@2.0.0-rc.3.0.11(transitive)
- Removed@fluidframework/core-interfaces@2.0.0-rc.2.0.9(transitive)
- Removed@fluidframework/driver-definitions@2.0.0-rc.2.0.9(transitive)
Updated@fluidframework/core-interfaces@>=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0
Updated@fluidframework/driver-definitions@>=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0