Move deprecated DDSs from dds/sequence to new packages (#11066)

## Description

This change moves deprecated DDSs, namely `SharedNumberSequence`, `SharedObjectSequence`, and `SparseMatrix`, out of `@fluidframework/sequence` to a new package, `@fluid-experimental/sequence-deprecated`.

## Breaking changes

This change will require users of the aforementioned DDSs to import them from the new package.
This commit is contained in:
alex-pardes 2022-08-05 10:18:36 -07:00 коммит произвёл GitHub
Родитель 6c172f93bc
Коммит 5c709c29cc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
42 изменённых файлов: 901 добавлений и 874 удалений

Просмотреть файл

@ -50,6 +50,7 @@ bindToContext and related types](#remove-ifluiddatastorechannelbindtocontext-and
- [`getTextAndMarkers` changed to be a free function](#gettextandmarkers-changed-to-be-a-free-function)
- [OldestClientObserver moved to @fluid-experimental/oldest-client-observer](#oldestclientobserver-moved-to-@fluid-experimental/oldest-client-observer)
- [Creating root datastores using `IContainerRuntime.CreateRootDataStore` and `IContainerRuntimeBase._createDataStoreWithProps` is no longer supported](#Creating-root-datastores-using-IContainerRuntimeCreateRootDataStore-and-IContainerRuntimeBase_createDataStoreWithProps-is-no-longer-supported)
- [Remove deprecated data structures from `@fluidframework/sequence`](#remove-deprecated-data-structures-from-fluidframeworksequence)
### Update to React 17
The following packages use React and thus were impacted:
@ -160,13 +161,15 @@ The `setFlushMode` has been removed from `IContainerRuntimeBase`. FlushMode is n
To improve bundle size, it will be converted to a free function so that this logic is tree-shakeable.
The corresponding method on `IMergeTreeTexHelper` will also be removed.
### OldestClientObserver moved to @fluid-experimental/oldest-client-observer
The `OldestClientObserver` class and its associated interfaces have been removed from @fluid-experimental/task-manager and moved to the new package @fluid-experimental/oldest-client-observer. Please migrate all imports to @fluid-experimental/oldest-client-observer.
### Creating root datastores using `IContainerRuntime.CreateRootDataStore` and `IContainerRuntimeBase._createDataStoreWithProps` is no longer supported
The `IContainerRuntime.CreateRootDataStore` method has been removed. Please use aliasing instead. See [IContainerRuntime.createRootDataStore is deprecated](#icontainerruntimecreaterootdatastore-is-deprecated). The `isRoot` parameter from `IContainerRuntimeBase._createDataStoreWithProps` has also been removed. Additionally, the feature gate which would switch to using aliasing behind the aforementioned deleted APIs, `Fluid.ContainerRuntime.UseDataStoreAliasing` will no longer be observed by the runtime. As aliasing is the default behavior for creating such datastores, the `useDataStoreAliasing` property from `IContainerRuntimeOptions` has been removed.
### Remove deprecated data structures from `@fluidframework/sequence`
`SharedNumberSequence`, `SharedObjectSequence`, and `SharedMatrix` have been removed from `@fluidframework/sequence`. They are currently still available in `@fluid-experimental/sequence-deprecated.
# 1.2.0
## 1.2.0 Upcoming changes

Просмотреть файл

@ -0,0 +1,193 @@
## API Report File for "@fluid-experimental/sequence-deprecated"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { BaseSegment } from '@fluidframework/merge-tree';
import { IChannelAttributes } from '@fluidframework/datastore-definitions';
import { IChannelFactory } from '@fluidframework/datastore-definitions';
import { IChannelServices } from '@fluidframework/datastore-definitions';
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
import { IFluidHandle } from '@fluidframework/core-interfaces';
import { IJSONSegment } from '@fluidframework/merge-tree';
import { ISegment } from '@fluidframework/merge-tree';
import { ISharedObject } from '@fluidframework/shared-object-base';
import { Jsonable } from '@fluidframework/datastore-definitions';
import { PropertySet } from '@fluidframework/merge-tree';
import { Serializable } from '@fluidframework/datastore-definitions';
import { SharedSegmentSequence } from '@fluidframework/sequence';
import { SharedSequence } from '@fluidframework/sequence';
import { SubSequence } from '@fluidframework/sequence';
// @public @deprecated (undocumented)
export type MatrixSegment = RunSegment | PaddingSegment;
// @public @deprecated (undocumented)
export const maxCellPosition: number;
// @public @deprecated (undocumented)
export const maxCol = 2097152;
// @public @deprecated (undocumented)
export const maxCols: number;
// @public @deprecated (undocumented)
export const maxRow = 4294967295;
// @public @deprecated (undocumented)
export const maxRows: number;
// @public @deprecated
export class PaddingSegment extends BaseSegment {
constructor(size: number);
// (undocumented)
append(segment: ISegment): void;
// (undocumented)
canAppend(segment: ISegment): boolean;
// (undocumented)
clone(start?: number, end?: number): PaddingSegment;
// (undocumented)
protected createSplitSegmentAt(pos: number): PaddingSegment;
// (undocumented)
static fromJSONObject(spec: any): PaddingSegment | undefined;
// (undocumented)
static is(segment: ISegment): segment is PaddingSegment;
// (undocumented)
removeRange(start: number, end: number): boolean;
// (undocumented)
toJSONObject(): {
pad: number;
props: PropertySet | undefined;
};
// (undocumented)
toString(): string;
// (undocumented)
readonly type = "PaddingSegment";
// (undocumented)
static readonly typeString = "PaddingSegment";
}
// @public @deprecated (undocumented)
export function positionToRowCol(position: number): {
row: number;
col: number;
};
// @public @deprecated (undocumented)
export const rowColToPosition: (row: number, col: number) => number;
// @public @deprecated (undocumented)
export class RunSegment extends SubSequence<SparseMatrixItem> {
constructor(items: SparseMatrixItem[]);
// (undocumented)
append(segment: ISegment): this;
// (undocumented)
clone(start?: number, end?: number): RunSegment;
// (undocumented)
protected createSplitSegmentAt(pos: number): RunSegment | undefined;
// (undocumented)
static fromJSONObject(spec: any): RunSegment | undefined;
// (undocumented)
getTag(pos: number): any;
// (undocumented)
static is(segment: ISegment): segment is RunSegment;
// (undocumented)
items: SparseMatrixItem[];
// (undocumented)
removeRange(start: number, end: number): boolean;
// (undocumented)
setTag(pos: number, tag: any): void;
// (undocumented)
readonly type = "RunSegment";
// (undocumented)
static readonly typeString = "RunSegment";
}
// @public @deprecated
export class SharedNumberSequence extends SharedSequence<number> {
// @deprecated
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
// @deprecated
static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
// Warning: (ae-forgotten-export) The symbol "SharedNumberSequenceFactory" needs to be exported by the entry point index.d.ts
//
// @deprecated
static getFactory(): SharedNumberSequenceFactory;
// @deprecated (undocumented)
getRange(start: number, end?: number): number[];
// (undocumented)
id: string;
}
// @public @deprecated
export class SharedObjectSequence<T> extends SharedSequence<T> {
// @deprecated
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
// @deprecated
static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
// Warning: (ae-forgotten-export) The symbol "SharedObjectSequenceFactory" needs to be exported by the entry point index.d.ts
//
// @deprecated
static getFactory(): SharedObjectSequenceFactory;
// @deprecated (undocumented)
getRange(start: number, end?: number): Serializable<T>[];
// (undocumented)
id: string;
}
// @public @deprecated (undocumented)
export class SparseMatrix extends SharedSegmentSequence<MatrixSegment> {
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
// (undocumented)
annotatePosition(row: number, col: number, props: PropertySet): void;
static create(runtime: IFluidDataStoreRuntime, id?: string): SparseMatrix;
static getFactory(): IChannelFactory;
// (undocumented)
getItem(row: number, col: number): Jsonable<string | number | boolean | IFluidHandle> | undefined;
// (undocumented)
getPositionProperties(row: number, col: number): PropertySet | undefined;
// (undocumented)
getTag(row: number, col: number): any;
// (undocumented)
id: string;
// (undocumented)
insertCols(col: number, numCols: number): void;
// (undocumented)
insertRows(row: number, numRows: number): void;
// (undocumented)
get numRows(): number;
// (undocumented)
removeCols(col: number, numCols: number): void;
// (undocumented)
removeRows(row: number, numRows: number): void;
// (undocumented)
setItems(row: number, col: number, values: SparseMatrixItem[], props?: PropertySet): void;
// (undocumented)
setTag(row: number, col: number, tag: any): void;
}
// @public @deprecated (undocumented)
export class SparseMatrixFactory implements IChannelFactory {
// (undocumented)
static Attributes: IChannelAttributes;
// (undocumented)
get attributes(): IChannelAttributes;
// (undocumented)
create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
// (undocumented)
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
// (undocumented)
static segmentFromSpec(spec: IJSONSegment): ISegment;
// (undocumented)
static Type: string;
// (undocumented)
get type(): string;
}
// @public @deprecated (undocumented)
export type SparseMatrixItem = Serializable;
// (No @packageDocumentation comment for this package)
```

Просмотреть файл

@ -15,7 +15,6 @@ import { ICombiningOp } from '@fluidframework/merge-tree';
import { IEvent } from '@fluidframework/common-definitions';
import { IEventThisPlaceHolder } from '@fluidframework/common-definitions';
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
import { IFluidHandle } from '@fluidframework/core-interfaces';
import { IFluidSerializer } from '@fluidframework/shared-object-base';
import { IJSONSegment } from '@fluidframework/merge-tree';
import { IMergeTreeDeltaCallbackArgs } from '@fluidframework/merge-tree';
@ -29,11 +28,9 @@ import { IRelativePosition } from '@fluidframework/merge-tree';
import { ISegment } from '@fluidframework/merge-tree';
import { ISegmentAction } from '@fluidframework/merge-tree';
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
import { ISharedObject } from '@fluidframework/shared-object-base';
import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
import { ITelemetryContext } from '@fluidframework/runtime-definitions';
import { Jsonable } from '@fluidframework/datastore-definitions';
import { LocalReferencePosition } from '@fluidframework/merge-tree';
import { Marker } from '@fluidframework/merge-tree';
import { MergeTreeDeltaOperationType } from '@fluidframework/merge-tree';
@ -300,90 +297,6 @@ export interface IValueOpEmitter {
emit(opName: string, previousValue: any, params: any, localOpMetadata: IMapMessageLocalMetadata): void;
}
// @public @deprecated (undocumented)
export type MatrixSegment = RunSegment | PaddingSegment;
// @public @deprecated (undocumented)
export const maxCellPosition: number;
// @public @deprecated (undocumented)
export const maxCol = 2097152;
// @public @deprecated (undocumented)
export const maxCols: number;
// @public @deprecated (undocumented)
export const maxRow = 4294967295;
// @public @deprecated (undocumented)
export const maxRows: number;
// @public @deprecated
export class PaddingSegment extends BaseSegment {
constructor(size: number);
// (undocumented)
append(segment: ISegment): void;
// (undocumented)
canAppend(segment: ISegment): boolean;
// (undocumented)
clone(start?: number, end?: number): PaddingSegment;
// (undocumented)
protected createSplitSegmentAt(pos: number): PaddingSegment;
// (undocumented)
static fromJSONObject(spec: any): PaddingSegment | undefined;
// (undocumented)
static is(segment: ISegment): segment is PaddingSegment;
// (undocumented)
removeRange(start: number, end: number): boolean;
// (undocumented)
toJSONObject(): {
pad: number;
props: PropertySet | undefined;
};
// (undocumented)
toString(): string;
// (undocumented)
readonly type = "PaddingSegment";
// (undocumented)
static readonly typeString = "PaddingSegment";
}
// @public @deprecated (undocumented)
export function positionToRowCol(position: number): {
row: number;
col: number;
};
// @public @deprecated (undocumented)
export const rowColToPosition: (row: number, col: number) => number;
// @public @deprecated (undocumented)
export class RunSegment extends SubSequence<SparseMatrixItem> {
constructor(items: SparseMatrixItem[]);
// (undocumented)
append(segment: ISegment): this;
// (undocumented)
clone(start?: number, end?: number): RunSegment;
// (undocumented)
protected createSplitSegmentAt(pos: number): RunSegment | undefined;
// (undocumented)
static fromJSONObject(spec: any): RunSegment | undefined;
// (undocumented)
getTag(pos: number): any;
// (undocumented)
static is(segment: ISegment): segment is RunSegment;
// (undocumented)
items: SparseMatrixItem[];
// (undocumented)
removeRange(start: number, end: number): boolean;
// (undocumented)
setTag(pos: number, tag: any): void;
// (undocumented)
readonly type = "RunSegment";
// (undocumented)
static readonly typeString = "RunSegment";
}
// @public
export class SequenceDeltaEvent extends SequenceEvent<MergeTreeDeltaOperationType> {
constructor(opArgs: IMergeTreeDeltaOpArgs, deltaArgs: IMergeTreeDeltaCallbackArgs, mergeTreeClient: Client);
@ -498,70 +411,6 @@ export class SharedIntervalCollectionFactory implements IChannelFactory {
get type(): string;
}
// @public @deprecated
export class SharedNumberSequence extends SharedSequence<number> {
// @deprecated
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
// @deprecated
static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
// @deprecated
static getFactory(): SharedNumberSequenceFactory;
// @deprecated (undocumented)
getRange(start: number, end?: number): number[];
// (undocumented)
id: string;
}
// @public @deprecated (undocumented)
export class SharedNumberSequenceFactory implements IChannelFactory {
// @deprecated (undocumented)
static readonly Attributes: IChannelAttributes;
// @deprecated (undocumented)
get attributes(): IChannelAttributes;
// @deprecated (undocumented)
create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
// @deprecated (undocumented)
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
// @deprecated (undocumented)
static segmentFromSpec(segSpec: IJSONSegment): SubSequence<number>;
// @deprecated (undocumented)
static Type: string;
// @deprecated (undocumented)
get type(): string;
}
// @public @deprecated
export class SharedObjectSequence<T> extends SharedSequence<T> {
// @deprecated
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
// @deprecated
static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
// @deprecated
static getFactory(): SharedObjectSequenceFactory;
// @deprecated (undocumented)
getRange(start: number, end?: number): Serializable<T>[];
// (undocumented)
id: string;
}
// @public @deprecated (undocumented)
export class SharedObjectSequenceFactory implements IChannelFactory {
// @deprecated (undocumented)
static readonly Attributes: IChannelAttributes;
// @deprecated (undocumented)
get attributes(): IChannelAttributes;
// @deprecated (undocumented)
create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
// @deprecated (undocumented)
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
// @deprecated (undocumented)
static segmentFromSpec(segSpec: IJSONSegment): SubSequence<object>;
// @deprecated (undocumented)
static Type: string;
// @deprecated (undocumented)
get type(): string;
}
// @public (undocumented)
export abstract class SharedSegmentSequence<T extends ISegment> extends SharedObject<ISharedSegmentSequenceEvents> implements ISharedIntervalCollection<SequenceInterval> {
constructor(dataStoreRuntime: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes, segmentFromSpec: (spec: IJSONSegment) => ISegment);
@ -706,58 +555,6 @@ export class SharedStringFactory implements IChannelFactory {
// @public (undocumented)
export type SharedStringSegment = TextSegment | Marker;
// @public @deprecated (undocumented)
export class SparseMatrix extends SharedSegmentSequence<MatrixSegment> {
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
// (undocumented)
annotatePosition(row: number, col: number, props: PropertySet): void;
static create(runtime: IFluidDataStoreRuntime, id?: string): SparseMatrix;
static getFactory(): IChannelFactory;
// (undocumented)
getItem(row: number, col: number): Jsonable<string | number | boolean | IFluidHandle> | undefined;
// (undocumented)
getPositionProperties(row: number, col: number): PropertySet | undefined;
// (undocumented)
getTag(row: number, col: number): any;
// (undocumented)
id: string;
// (undocumented)
insertCols(col: number, numCols: number): void;
// (undocumented)
insertRows(row: number, numRows: number): void;
// (undocumented)
get numRows(): number;
// (undocumented)
removeCols(col: number, numCols: number): void;
// (undocumented)
removeRows(row: number, numRows: number): void;
// (undocumented)
setItems(row: number, col: number, values: SparseMatrixItem[], props?: PropertySet): void;
// (undocumented)
setTag(row: number, col: number, tag: any): void;
}
// @public @deprecated (undocumented)
export class SparseMatrixFactory implements IChannelFactory {
// (undocumented)
static Attributes: IChannelAttributes;
// (undocumented)
get attributes(): IChannelAttributes;
// (undocumented)
create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
// (undocumented)
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
// (undocumented)
static segmentFromSpec(spec: IJSONSegment): ISegment;
// (undocumented)
static Type: string;
// (undocumented)
get type(): string;
}
// @public @deprecated (undocumented)
export type SparseMatrixItem = Serializable;
// @public (undocumented)
export class SubSequence<T> extends BaseSegment {
constructor(items: Serializable<T>[]);

Просмотреть файл

@ -52,6 +52,7 @@
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluid-experimental/sequence-deprecated": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/aqueduct": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/common-definitions": "^0.20.1",
"@fluidframework/common-utils": "^0.32.1",

Просмотреть файл

@ -9,13 +9,15 @@ import { IFluidHandle } from "@fluidframework/core-interfaces";
import { ICombiningOp, ReferencePosition, PropertySet } from "@fluidframework/merge-tree";
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
import {
positionToRowCol,
rowColToPosition,
SharedNumberSequence,
SparseMatrix,
IntervalType,
SequenceDeltaEvent,
} from "@fluidframework/sequence";
import {
positionToRowCol,
rowColToPosition,
SparseMatrix,
SharedNumberSequence,
} from "@fluid-experimental/sequence-deprecated";
import { CellRange } from "./cellrange";
import { TableDocumentType } from "./componentTypes";
import { ConfigKey } from "./configKey";

Просмотреть файл

@ -0,0 +1,7 @@
[*]
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
[package.json]
indent_size = 2

Просмотреть файл

@ -0,0 +1,17 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
"extends": [
require.resolve("@fluidframework/eslint-config-fluid")
],
"parserOptions": {
"project": ["./tsconfig.json", "./src/test/tsconfig.json"]
},
"rules": {
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/strict-boolean-expressions": "off"
}
}

52
experimental/dds/sequence-deprecated/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,52 @@
# Compiled TypeScript and CSS
dist
lib
# Babel
public/scripts/es5
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
.cache-loader
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
# Typings
typings
# Debug log from npm
npm-debug.log
# Code coverage
nyc
.nyc_output/
# Chart dependencies
**/charts/*.tgz
# Generated modules
intel_modules/
temp_modules/

Просмотреть файл

@ -0,0 +1,6 @@
nyc
*.log
**/*.tsbuildinfo
src/test
dist/test
**/_api-extractor-temp/**

14
experimental/dds/sequence-deprecated/.vscode/launch.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [{
"name": "Sequence Test",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/../../../node_modules/mocha/bin/_mocha",
"args": ["dist/test", "--no-timeouts", "--exit"],
"cwd": "${workspaceRoot}",
}]
}

Просмотреть файл

@ -0,0 +1,21 @@
Copyright (c) Microsoft Corporation and contributors. All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Просмотреть файл

@ -0,0 +1,3 @@
# @fluid-experimental/sequence-deprecated
This package contains deprecated DDSs which were formerly part of **fluidframework/sequence**.

Просмотреть файл

@ -0,0 +1,12 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"extends": "@fluidframework/build-common/api-extractor-common-report.json",
"messages": {
"extractorMessageReporting": {
"ae-internal-missing-underscore": {
"logLevel": "none",
"addToApiReportFile": false
}
}
}
}

Просмотреть файл

@ -0,0 +1,92 @@
{
"name": "@fluid-experimental/sequence-deprecated",
"version": "2.0.0-internal.1.0.0",
"description": "Deprecated distributed sequences",
"homepage": "https://fluidframework.com",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/FluidFramework.git",
"directory": "experimental/dds/sequence-deprecated"
},
"license": "MIT",
"author": "Microsoft and contributors",
"sideEffects": false,
"main": "dist/index.js",
"module": "lib/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "npm run build:genver && concurrently npm:build:compile npm:lint && npm run build:docs",
"build:commonjs": "npm run tsc && npm run typetests:gen && npm run build:test",
"build:compile": "concurrently npm:build:commonjs npm:build:esnext",
"build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
"build:esnext": "tsc --project ./tsconfig.esnext.json",
"build:full": "npm run build",
"build:full:compile": "npm run build:compile",
"build:genver": "gen-version",
"build:test": "tsc --project ./src/test/tsconfig.json",
"ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
"clean": "rimraf dist lib *.tsbuildinfo *.build.log",
"eslint": "eslint --format stylish src",
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
"lint": "npm run eslint",
"lint:fix": "npm run eslint:fix",
"test": "npm run test:mocha",
"test:coverage": "nyc npm test -- --reporter xunit --reporter-option output=nyc/junit-report.xml",
"test:mocha": "mocha --recursive dist/test/**/*.spec.js -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
"tsc": "tsc",
"tsfmt": "tsfmt --verify",
"tsfmt:fix": "tsfmt --replace",
"typetests:gen": "fluid-type-validator -g -d ."
},
"nyc": {
"all": true,
"cache-dir": "nyc/.cache",
"exclude": [
"src/test/**/*.ts",
"dist/test/**/*.js"
],
"exclude-after-remap": false,
"include": [
"src/**/*.ts",
"dist/**/*.js"
],
"report-dir": "nyc/report",
"reporter": [
"cobertura",
"html",
"text"
],
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluidframework/core-interfaces": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/datastore-definitions": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/merge-tree": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/sequence": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/shared-object-base": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0"
},
"devDependencies": {
"@fluid-internal/test-dds-utils": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.3.0-0",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@microsoft/api-extractor": "^7.22.2",
"@rushstack/eslint-config": "^2.5.1",
"@types/diff": "^3.5.1",
"@types/mocha": "^9.1.1",
"@types/node": "^14.18.0",
"concurrently": "^6.2.0",
"copyfiles": "^2.1.0",
"cross-env": "^7.0.2",
"diff": "^3.5.0",
"eslint": "~8.6.0",
"mocha": "^10.0.0",
"nyc": "^15.0.0",
"rimraf": "^2.6.2",
"typescript": "~4.5.5",
"typescript-formatter": "7.1.0"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
export * from "./sharedNumberSequence";
export * from "./sharedObjectSequence";
export * from "./sparsematrix";

Просмотреть файл

@ -0,0 +1,9 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
*/
export const pkgName = "@fluid-experimental/sequence-deprecated";
export const pkgVersion = "2.0.0-internal.1.0.0";

Просмотреть файл

@ -0,0 +1,181 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import {
IChannelAttributes,
IFluidDataStoreRuntime,
IChannelServices,
IChannelFactory,
} from "@fluidframework/datastore-definitions";
import {
IJSONSegment,
} from "@fluidframework/merge-tree";
import { ISharedObject } from "@fluidframework/shared-object-base";
import { IJSONRunSegment, SubSequence } from "@fluidframework/sequence";
import { pkgVersion } from "./packageVersion";
import { SharedNumberSequence } from "./sharedNumberSequence";
import { SharedObjectSequence } from "./sharedObjectSequence";
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
export class SharedObjectSequenceFactory implements IChannelFactory {
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static Type = "https://graph.microsoft.com/types/mergeTree/object-sequence";
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static readonly Attributes: IChannelAttributes = {
type: SharedObjectSequenceFactory.Type,
snapshotFormatVersion: "0.1",
packageVersion: pkgVersion,
};
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static segmentFromSpec(segSpec: IJSONSegment): SubSequence<object> {
const runSegment = segSpec as IJSONRunSegment<object>;
if (runSegment.items) {
const seg = new SubSequence<object>(runSegment.items);
if (runSegment.props) {
seg.addProperties(runSegment.props);
}
return seg;
}
throw new Error(`Unrecognized IJSONObject`);
}
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get type() {
return SharedObjectSequenceFactory.Type;
}
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get attributes() {
return SharedObjectSequenceFactory.Attributes;
}
/**
* {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
*
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public async load(
runtime: IFluidDataStoreRuntime,
id: string,
services: IChannelServices,
attributes: IChannelAttributes): Promise<ISharedObject> {
const sharedSeq = new SharedObjectSequence<object>(runtime, id, attributes);
await sharedSeq.load(services);
return sharedSeq;
}
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public create(document: IFluidDataStoreRuntime, id: string): ISharedObject {
const sharedString = new SharedObjectSequence(document, id, this.attributes);
sharedString.initializeLocal();
return sharedString;
}
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
export class SharedNumberSequenceFactory implements IChannelFactory {
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static Type = "https://graph.microsoft.com/types/mergeTree/number-sequence";
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static readonly Attributes: IChannelAttributes = {
type: SharedNumberSequenceFactory.Type,
snapshotFormatVersion: "0.1",
packageVersion: pkgVersion,
};
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static segmentFromSpec(segSpec: IJSONSegment): SubSequence<number> {
const runSegment = segSpec as IJSONRunSegment<number>;
if (runSegment.items) {
const seg = new SubSequence<number>(runSegment.items);
if (runSegment.props) {
seg.addProperties(runSegment.props);
}
return seg;
}
throw new Error(`Unrecognized IJSONObject`);
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get type() {
return SharedNumberSequenceFactory.Type;
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get attributes() {
return SharedNumberSequenceFactory.Attributes;
}
/**
* {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
*
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public async load(
runtime: IFluidDataStoreRuntime,
id: string,
services: IChannelServices,
attributes: IChannelAttributes): Promise<ISharedObject> {
const sharedSeq = new SharedNumberSequence(runtime, id, attributes);
await sharedSeq.load(services);
return sharedSeq;
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public create(document: IFluidDataStoreRuntime, id: string): ISharedObject {
const sharedString = new SharedNumberSequence(document, id, this.attributes);
sharedString.initializeLocal();
return sharedString;
}
}

Просмотреть файл

@ -4,8 +4,8 @@
*/
import { IFluidDataStoreRuntime, IChannelAttributes } from "@fluidframework/datastore-definitions";
import { SharedSequence } from "@fluidframework/sequence";
import { SharedNumberSequenceFactory } from "./sequenceFactory";
import { SharedSequence } from "./sharedSequence";
/**
* The SharedNumberSequence holds a sequence of numbers. Each number will be stored

Просмотреть файл

@ -4,8 +4,8 @@
*/
import { IFluidDataStoreRuntime, IChannelAttributes, Serializable } from "@fluidframework/datastore-definitions";
import { SharedSequence } from "@fluidframework/sequence";
import { SharedObjectSequenceFactory } from "./sequenceFactory";
import { SharedSequence } from "./sharedSequence";
/**
* The SharedObjectSequence holds a sequence of serializable objects. Each object will be stored

Просмотреть файл

@ -21,9 +21,9 @@ import {
Serializable,
Jsonable,
} from "@fluidframework/datastore-definitions";
import { SharedSegmentSequence, SubSequence } from "@fluidframework/sequence";
import { ISharedObject } from "@fluidframework/shared-object-base";
import { pkgVersion } from "./packageVersion";
import { SharedSegmentSequence, SubSequence } from "./";
/**
* An empty segment that occupies 'cachedLength' positions. SparseMatrix uses PaddingSegment

Просмотреть файл

@ -0,0 +1,21 @@
{
"extends": "@fluidframework/build-common/ts-common-config.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "../../dist/test",
"types": [
"mocha"
],
"declaration": false,
"declarationMap": false,
"skipLibCheck": true
},
"include": [
"./**/*"
],
"references": [
{
"path": "../.."
}
]
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"module": "esnext"
},
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"extends": "@fluidframework/build-common/ts-common-config.json",
"exclude": [
"src/test/**/*"
],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"composite": true
},
"include": [
"src/**/*"
]
}

Просмотреть файл

@ -107,6 +107,74 @@
"typeValidation": {
"version": "2.0.0",
"broken": {
"RemovedClassDeclaration_SharedNumberSequence": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedNumberSequenceFactory": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedObjectSequence": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedObjectSequenceFactory": {
"backCompat": false,
"forwardCompat": false
},
"RemovedTypeAliasDeclaration_MatrixSegment": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxCellPosition": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxCol": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxCols": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxRow": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxRows": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_PaddingSegment": {
"backCompat": false,
"forwardCompat": false
},
"RemovedFunctionDeclaration_positionToRowCol": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_rowColToPosition": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_RunSegment": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SparseMatrix": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SparseMatrixFactory": {
"backCompat": false,
"forwardCompat": false
},
"RemovedTypeAliasDeclaration_SparseMatrixItem": {
"backCompat": false,
"forwardCompat": false
},
"ClassDeclaration_IntervalCollection": {
"backCompat": false
},

Просмотреть файл

@ -39,8 +39,5 @@ export * from "./sequence";
export * from "./sequenceFactory";
export * from "./sequenceDeltaEvent";
export * from "./sharedSequence";
export * from "./sharedObjectSequence";
export * from "./sharedNumberSequence";
export * from "./sparsematrix";
export * from "./sharedIntervalCollection";
export { IInterval, IntervalConflictResolver } from "./intervalTree";

Просмотреть файл

@ -50,13 +50,13 @@ import {
import { IEventThisPlaceHolder } from "@fluidframework/common-definitions";
import { ISummaryTreeWithStats, ITelemetryContext } from "@fluidframework/runtime-definitions";
import { DefaultMap } from "./defaultMap";
import { IMapMessageLocalMetadata, IValueChanged } from "./defaultMapInterfaces";
import {
IntervalCollection,
SequenceInterval,
SequenceIntervalCollectionValueType,
} from "./intervalCollection";
import { DefaultMap } from "./defaultMap";
import { IMapMessageLocalMetadata, IValueChanged } from "./defaultMapInterfaces";
import { SequenceDeltaEvent, SequenceMaintenanceEvent } from "./sequenceDeltaEvent";
import { ISharedIntervalCollection } from "./sharedIntervalCollection";

Просмотреть файл

@ -10,15 +10,10 @@ import {
IChannelFactory,
} from "@fluidframework/datastore-definitions";
import {
IJSONSegment,
Marker,
TextSegment,
} from "@fluidframework/merge-tree";
import { ISharedObject } from "@fluidframework/shared-object-base";
import { pkgVersion } from "./packageVersion";
import { SharedNumberSequence } from "./sharedNumberSequence";
import { SharedObjectSequence } from "./sharedObjectSequence";
import { IJSONRunSegment, SubSequence } from "./sharedSequence";
import { SharedString, SharedStringSegment } from "./sharedString";
export class SharedStringFactory implements IChannelFactory {
@ -69,165 +64,3 @@ export class SharedStringFactory implements IChannelFactory {
return sharedString;
}
}
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
export class SharedObjectSequenceFactory implements IChannelFactory {
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static Type = "https://graph.microsoft.com/types/mergeTree/object-sequence";
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static readonly Attributes: IChannelAttributes = {
type: SharedObjectSequenceFactory.Type,
snapshotFormatVersion: "0.1",
packageVersion: pkgVersion,
};
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static segmentFromSpec(segSpec: IJSONSegment): SubSequence<object> {
const runSegment = segSpec as IJSONRunSegment<object>;
if (runSegment.items) {
const seg = new SubSequence<object>(runSegment.items);
if (runSegment.props) {
seg.addProperties(runSegment.props);
}
return seg;
}
throw new Error(`Unrecognized IJSONObject`);
}
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get type() {
return SharedObjectSequenceFactory.Type;
}
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get attributes() {
return SharedObjectSequenceFactory.Attributes;
}
/**
* {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
*
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public async load(
runtime: IFluidDataStoreRuntime,
id: string,
services: IChannelServices,
attributes: IChannelAttributes): Promise<ISharedObject> {
const sharedSeq = new SharedObjectSequence<object>(runtime, id, attributes);
await sharedSeq.load(services);
return sharedSeq;
}
/**
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public create(document: IFluidDataStoreRuntime, id: string): ISharedObject {
const sharedString = new SharedObjectSequence(document, id, this.attributes);
sharedString.initializeLocal();
return sharedString;
}
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
export class SharedNumberSequenceFactory implements IChannelFactory {
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static Type = "https://graph.microsoft.com/types/mergeTree/number-sequence";
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static readonly Attributes: IChannelAttributes = {
type: SharedNumberSequenceFactory.Type,
snapshotFormatVersion: "0.1",
packageVersion: pkgVersion,
};
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public static segmentFromSpec(segSpec: IJSONSegment): SubSequence<number> {
const runSegment = segSpec as IJSONRunSegment<number>;
if (runSegment.items) {
const seg = new SubSequence<number>(runSegment.items);
if (runSegment.props) {
seg.addProperties(runSegment.props);
}
return seg;
}
throw new Error(`Unrecognized IJSONObject`);
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get type() {
return SharedNumberSequenceFactory.Type;
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public get attributes() {
return SharedNumberSequenceFactory.Attributes;
}
/**
* {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
*
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public async load(
runtime: IFluidDataStoreRuntime,
id: string,
services: IChannelServices,
attributes: IChannelAttributes): Promise<ISharedObject> {
const sharedSeq = new SharedNumberSequence(runtime, id, attributes);
await sharedSeq.load(services);
return sharedSeq;
}
/**
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
*/
public create(document: IFluidDataStoreRuntime, id: string): ISharedObject {
const sharedString = new SharedNumberSequence(document, id, this.attributes);
sharedString.initializeLocal();
return sharedString;
}
}

Просмотреть файл

@ -451,242 +451,122 @@ use_old_InterfaceDeclaration_IValueOpEmitter(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_MatrixSegment": {"forwardCompat": false}
* "RemovedTypeAliasDeclaration_MatrixSegment": {"forwardCompat": false}
*/
declare function get_old_TypeAliasDeclaration_MatrixSegment():
TypeOnly<old.MatrixSegment>;
declare function use_current_TypeAliasDeclaration_MatrixSegment(
use: TypeOnly<current.MatrixSegment>);
use_current_TypeAliasDeclaration_MatrixSegment(
get_old_TypeAliasDeclaration_MatrixSegment());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_MatrixSegment": {"backCompat": false}
* "RemovedTypeAliasDeclaration_MatrixSegment": {"backCompat": false}
*/
declare function get_current_TypeAliasDeclaration_MatrixSegment():
TypeOnly<current.MatrixSegment>;
declare function use_old_TypeAliasDeclaration_MatrixSegment(
use: TypeOnly<old.MatrixSegment>);
use_old_TypeAliasDeclaration_MatrixSegment(
get_current_TypeAliasDeclaration_MatrixSegment());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCellPosition": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxCellPosition": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxCellPosition():
TypeOnly<typeof old.maxCellPosition>;
declare function use_current_VariableDeclaration_maxCellPosition(
use: TypeOnly<typeof current.maxCellPosition>);
use_current_VariableDeclaration_maxCellPosition(
get_old_VariableDeclaration_maxCellPosition());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCellPosition": {"backCompat": false}
* "RemovedVariableDeclaration_maxCellPosition": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxCellPosition():
TypeOnly<typeof current.maxCellPosition>;
declare function use_old_VariableDeclaration_maxCellPosition(
use: TypeOnly<typeof old.maxCellPosition>);
use_old_VariableDeclaration_maxCellPosition(
get_current_VariableDeclaration_maxCellPosition());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCol": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxCol": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxCol():
TypeOnly<typeof old.maxCol>;
declare function use_current_VariableDeclaration_maxCol(
use: TypeOnly<typeof current.maxCol>);
use_current_VariableDeclaration_maxCol(
get_old_VariableDeclaration_maxCol());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCol": {"backCompat": false}
* "RemovedVariableDeclaration_maxCol": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxCol():
TypeOnly<typeof current.maxCol>;
declare function use_old_VariableDeclaration_maxCol(
use: TypeOnly<typeof old.maxCol>);
use_old_VariableDeclaration_maxCol(
get_current_VariableDeclaration_maxCol());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCols": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxCols": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxCols():
TypeOnly<typeof old.maxCols>;
declare function use_current_VariableDeclaration_maxCols(
use: TypeOnly<typeof current.maxCols>);
use_current_VariableDeclaration_maxCols(
get_old_VariableDeclaration_maxCols());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCols": {"backCompat": false}
* "RemovedVariableDeclaration_maxCols": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxCols():
TypeOnly<typeof current.maxCols>;
declare function use_old_VariableDeclaration_maxCols(
use: TypeOnly<typeof old.maxCols>);
use_old_VariableDeclaration_maxCols(
get_current_VariableDeclaration_maxCols());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRow": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxRow": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxRow():
TypeOnly<typeof old.maxRow>;
declare function use_current_VariableDeclaration_maxRow(
use: TypeOnly<typeof current.maxRow>);
use_current_VariableDeclaration_maxRow(
get_old_VariableDeclaration_maxRow());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRow": {"backCompat": false}
* "RemovedVariableDeclaration_maxRow": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxRow():
TypeOnly<typeof current.maxRow>;
declare function use_old_VariableDeclaration_maxRow(
use: TypeOnly<typeof old.maxRow>);
use_old_VariableDeclaration_maxRow(
get_current_VariableDeclaration_maxRow());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRows": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxRows": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxRows():
TypeOnly<typeof old.maxRows>;
declare function use_current_VariableDeclaration_maxRows(
use: TypeOnly<typeof current.maxRows>);
use_current_VariableDeclaration_maxRows(
get_old_VariableDeclaration_maxRows());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRows": {"backCompat": false}
* "RemovedVariableDeclaration_maxRows": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxRows():
TypeOnly<typeof current.maxRows>;
declare function use_old_VariableDeclaration_maxRows(
use: TypeOnly<typeof old.maxRows>);
use_old_VariableDeclaration_maxRows(
get_current_VariableDeclaration_maxRows());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_PaddingSegment": {"forwardCompat": false}
* "RemovedClassDeclaration_PaddingSegment": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_PaddingSegment():
TypeOnly<old.PaddingSegment>;
declare function use_current_ClassDeclaration_PaddingSegment(
use: TypeOnly<current.PaddingSegment>);
use_current_ClassDeclaration_PaddingSegment(
get_old_ClassDeclaration_PaddingSegment());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_PaddingSegment": {"backCompat": false}
* "RemovedClassDeclaration_PaddingSegment": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_PaddingSegment():
TypeOnly<current.PaddingSegment>;
declare function use_old_ClassDeclaration_PaddingSegment(
use: TypeOnly<old.PaddingSegment>);
use_old_ClassDeclaration_PaddingSegment(
get_current_ClassDeclaration_PaddingSegment());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "FunctionDeclaration_positionToRowCol": {"forwardCompat": false}
* "RemovedFunctionDeclaration_positionToRowCol": {"forwardCompat": false}
*/
declare function get_old_FunctionDeclaration_positionToRowCol():
TypeOnly<typeof old.positionToRowCol>;
declare function use_current_FunctionDeclaration_positionToRowCol(
use: TypeOnly<typeof current.positionToRowCol>);
use_current_FunctionDeclaration_positionToRowCol(
get_old_FunctionDeclaration_positionToRowCol());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "FunctionDeclaration_positionToRowCol": {"backCompat": false}
* "RemovedFunctionDeclaration_positionToRowCol": {"backCompat": false}
*/
declare function get_current_FunctionDeclaration_positionToRowCol():
TypeOnly<typeof current.positionToRowCol>;
declare function use_old_FunctionDeclaration_positionToRowCol(
use: TypeOnly<typeof old.positionToRowCol>);
use_old_FunctionDeclaration_positionToRowCol(
get_current_FunctionDeclaration_positionToRowCol());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_rowColToPosition": {"forwardCompat": false}
* "RemovedVariableDeclaration_rowColToPosition": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_rowColToPosition():
TypeOnly<typeof old.rowColToPosition>;
declare function use_current_VariableDeclaration_rowColToPosition(
use: TypeOnly<typeof current.rowColToPosition>);
use_current_VariableDeclaration_rowColToPosition(
get_old_VariableDeclaration_rowColToPosition());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_rowColToPosition": {"backCompat": false}
* "RemovedVariableDeclaration_rowColToPosition": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_rowColToPosition():
TypeOnly<typeof current.rowColToPosition>;
declare function use_old_VariableDeclaration_rowColToPosition(
use: TypeOnly<typeof old.rowColToPosition>);
use_old_VariableDeclaration_rowColToPosition(
get_current_VariableDeclaration_rowColToPosition());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_RunSegment": {"forwardCompat": false}
* "RemovedClassDeclaration_RunSegment": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_RunSegment():
TypeOnly<old.RunSegment>;
declare function use_current_ClassDeclaration_RunSegment(
use: TypeOnly<current.RunSegment>);
use_current_ClassDeclaration_RunSegment(
get_old_ClassDeclaration_RunSegment());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_RunSegment": {"backCompat": false}
* "RemovedClassDeclaration_RunSegment": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_RunSegment():
TypeOnly<current.RunSegment>;
declare function use_old_ClassDeclaration_RunSegment(
use: TypeOnly<old.RunSegment>);
use_old_ClassDeclaration_RunSegment(
get_current_ClassDeclaration_RunSegment());
/*
* Validate forward compat by using old type in place of current type
@ -839,100 +719,50 @@ use_old_ClassDeclaration_SharedIntervalCollectionFactory(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequence": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedNumberSequence": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedNumberSequence():
TypeOnly<old.SharedNumberSequence>;
declare function use_current_ClassDeclaration_SharedNumberSequence(
use: TypeOnly<current.SharedNumberSequence>);
use_current_ClassDeclaration_SharedNumberSequence(
get_old_ClassDeclaration_SharedNumberSequence());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequence": {"backCompat": false}
* "RemovedClassDeclaration_SharedNumberSequence": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedNumberSequence():
TypeOnly<current.SharedNumberSequence>;
declare function use_old_ClassDeclaration_SharedNumberSequence(
use: TypeOnly<old.SharedNumberSequence>);
use_old_ClassDeclaration_SharedNumberSequence(
// @ts-expect-error compatibility expected to be broken
get_current_ClassDeclaration_SharedNumberSequence());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequenceFactory": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedNumberSequenceFactory": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedNumberSequenceFactory():
TypeOnly<old.SharedNumberSequenceFactory>;
declare function use_current_ClassDeclaration_SharedNumberSequenceFactory(
use: TypeOnly<current.SharedNumberSequenceFactory>);
use_current_ClassDeclaration_SharedNumberSequenceFactory(
get_old_ClassDeclaration_SharedNumberSequenceFactory());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequenceFactory": {"backCompat": false}
* "RemovedClassDeclaration_SharedNumberSequenceFactory": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedNumberSequenceFactory():
TypeOnly<current.SharedNumberSequenceFactory>;
declare function use_old_ClassDeclaration_SharedNumberSequenceFactory(
use: TypeOnly<old.SharedNumberSequenceFactory>);
use_old_ClassDeclaration_SharedNumberSequenceFactory(
get_current_ClassDeclaration_SharedNumberSequenceFactory());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequence": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedObjectSequence": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedObjectSequence():
TypeOnly<old.SharedObjectSequence<any>>;
declare function use_current_ClassDeclaration_SharedObjectSequence(
use: TypeOnly<current.SharedObjectSequence<any>>);
use_current_ClassDeclaration_SharedObjectSequence(
get_old_ClassDeclaration_SharedObjectSequence());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequence": {"backCompat": false}
* "RemovedClassDeclaration_SharedObjectSequence": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedObjectSequence():
TypeOnly<current.SharedObjectSequence<any>>;
declare function use_old_ClassDeclaration_SharedObjectSequence(
use: TypeOnly<old.SharedObjectSequence<any>>);
use_old_ClassDeclaration_SharedObjectSequence(
// @ts-expect-error compatibility expected to be broken
get_current_ClassDeclaration_SharedObjectSequence());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequenceFactory": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedObjectSequenceFactory": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedObjectSequenceFactory():
TypeOnly<old.SharedObjectSequenceFactory>;
declare function use_current_ClassDeclaration_SharedObjectSequenceFactory(
use: TypeOnly<current.SharedObjectSequenceFactory>);
use_current_ClassDeclaration_SharedObjectSequenceFactory(
get_old_ClassDeclaration_SharedObjectSequenceFactory());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequenceFactory": {"backCompat": false}
* "RemovedClassDeclaration_SharedObjectSequenceFactory": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedObjectSequenceFactory():
TypeOnly<current.SharedObjectSequenceFactory>;
declare function use_old_ClassDeclaration_SharedObjectSequenceFactory(
use: TypeOnly<old.SharedObjectSequenceFactory>);
use_old_ClassDeclaration_SharedObjectSequenceFactory(
get_current_ClassDeclaration_SharedObjectSequenceFactory());
/*
* Validate forward compat by using old type in place of current type
@ -1061,75 +891,38 @@ use_old_TypeAliasDeclaration_SharedStringSegment(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrix": {"forwardCompat": false}
* "RemovedClassDeclaration_SparseMatrix": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SparseMatrix():
TypeOnly<old.SparseMatrix>;
declare function use_current_ClassDeclaration_SparseMatrix(
use: TypeOnly<current.SparseMatrix>);
use_current_ClassDeclaration_SparseMatrix(
get_old_ClassDeclaration_SparseMatrix());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrix": {"backCompat": false}
* "RemovedClassDeclaration_SparseMatrix": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SparseMatrix():
TypeOnly<current.SparseMatrix>;
declare function use_old_ClassDeclaration_SparseMatrix(
use: TypeOnly<old.SparseMatrix>);
use_old_ClassDeclaration_SparseMatrix(
// @ts-expect-error compatibility expected to be broken
get_current_ClassDeclaration_SparseMatrix());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrixFactory": {"forwardCompat": false}
* "RemovedClassDeclaration_SparseMatrixFactory": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SparseMatrixFactory():
TypeOnly<old.SparseMatrixFactory>;
declare function use_current_ClassDeclaration_SparseMatrixFactory(
use: TypeOnly<current.SparseMatrixFactory>);
use_current_ClassDeclaration_SparseMatrixFactory(
get_old_ClassDeclaration_SparseMatrixFactory());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrixFactory": {"backCompat": false}
* "RemovedClassDeclaration_SparseMatrixFactory": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SparseMatrixFactory():
TypeOnly<current.SparseMatrixFactory>;
declare function use_old_ClassDeclaration_SparseMatrixFactory(
use: TypeOnly<old.SparseMatrixFactory>);
use_old_ClassDeclaration_SparseMatrixFactory(
get_current_ClassDeclaration_SparseMatrixFactory());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_SparseMatrixItem": {"forwardCompat": false}
* "RemovedTypeAliasDeclaration_SparseMatrixItem": {"forwardCompat": false}
*/
declare function get_old_TypeAliasDeclaration_SparseMatrixItem():
TypeOnly<old.SparseMatrixItem>;
declare function use_current_TypeAliasDeclaration_SparseMatrixItem(
use: TypeOnly<current.SparseMatrixItem>);
use_current_TypeAliasDeclaration_SparseMatrixItem(
get_old_TypeAliasDeclaration_SparseMatrixItem());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_SparseMatrixItem": {"backCompat": false}
* "RemovedTypeAliasDeclaration_SparseMatrixItem": {"backCompat": false}
*/
declare function get_current_TypeAliasDeclaration_SparseMatrixItem():
TypeOnly<current.SparseMatrixItem>;
declare function use_old_TypeAliasDeclaration_SparseMatrixItem(
use: TypeOnly<old.SparseMatrixItem>);
use_old_TypeAliasDeclaration_SparseMatrixItem(
get_current_TypeAliasDeclaration_SparseMatrixItem());
/*
* Validate forward compat by using old type in place of current type

Просмотреть файл

@ -96,13 +96,86 @@
"TypeAliasDeclaration_SharedStringSegment": {
"backCompat": false
},
"ClassDeclaration_SparseMatrix": {
"backCompat": false
"RemovedTypeAliasDeclaration_MatrixSegment": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxCellPosition": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxCol": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxCols": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxRow": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_maxRows": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_PaddingSegment": {
"backCompat": false,
"forwardCompat": false
},
"RemovedFunctionDeclaration_positionToRowCol": {
"backCompat": false,
"forwardCompat": false
},
"RemovedVariableDeclaration_rowColToPosition": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_RunSegment": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SparseMatrix": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SparseMatrixFactory": {
"backCompat": false,
"forwardCompat": false
},
"RemovedTypeAliasDeclaration_SparseMatrixItem": {
"backCompat": false,
"forwardCompat": false
},
"RemovedEnumDeclaration_ConnectionState": {
"forwardCompat": false,
"backCompat": false
},
"RemovedClassDeclaration_SharedIntervalCollection": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedIntervalCollectionFactory": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedNumberSequence": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedNumberSequenceFactory": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedObjectSequence": {
"backCompat": false,
"forwardCompat": false
},
"RemovedClassDeclaration_SharedObjectSequenceFactory": {
"backCompat": false,
"forwardCompat": false
},
"EnumDeclaration_ConnectionState": {
"forwardCompat": false
},

Просмотреть файл

@ -1436,194 +1436,98 @@ use_old_ClassDeclaration_MapFactory(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_MatrixSegment": {"forwardCompat": false}
* "RemovedTypeAliasDeclaration_MatrixSegment": {"forwardCompat": false}
*/
declare function get_old_TypeAliasDeclaration_MatrixSegment():
TypeOnly<old.MatrixSegment>;
declare function use_current_TypeAliasDeclaration_MatrixSegment(
use: TypeOnly<current.MatrixSegment>);
use_current_TypeAliasDeclaration_MatrixSegment(
get_old_TypeAliasDeclaration_MatrixSegment());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_MatrixSegment": {"backCompat": false}
* "RemovedTypeAliasDeclaration_MatrixSegment": {"backCompat": false}
*/
declare function get_current_TypeAliasDeclaration_MatrixSegment():
TypeOnly<current.MatrixSegment>;
declare function use_old_TypeAliasDeclaration_MatrixSegment(
use: TypeOnly<old.MatrixSegment>);
use_old_TypeAliasDeclaration_MatrixSegment(
get_current_TypeAliasDeclaration_MatrixSegment());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCellPosition": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxCellPosition": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxCellPosition():
TypeOnly<typeof old.maxCellPosition>;
declare function use_current_VariableDeclaration_maxCellPosition(
use: TypeOnly<typeof current.maxCellPosition>);
use_current_VariableDeclaration_maxCellPosition(
get_old_VariableDeclaration_maxCellPosition());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCellPosition": {"backCompat": false}
* "RemovedVariableDeclaration_maxCellPosition": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxCellPosition():
TypeOnly<typeof current.maxCellPosition>;
declare function use_old_VariableDeclaration_maxCellPosition(
use: TypeOnly<typeof old.maxCellPosition>);
use_old_VariableDeclaration_maxCellPosition(
get_current_VariableDeclaration_maxCellPosition());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCol": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxCol": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxCol():
TypeOnly<typeof old.maxCol>;
declare function use_current_VariableDeclaration_maxCol(
use: TypeOnly<typeof current.maxCol>);
use_current_VariableDeclaration_maxCol(
get_old_VariableDeclaration_maxCol());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCol": {"backCompat": false}
* "RemovedVariableDeclaration_maxCol": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxCol():
TypeOnly<typeof current.maxCol>;
declare function use_old_VariableDeclaration_maxCol(
use: TypeOnly<typeof old.maxCol>);
use_old_VariableDeclaration_maxCol(
get_current_VariableDeclaration_maxCol());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCols": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxCols": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxCols():
TypeOnly<typeof old.maxCols>;
declare function use_current_VariableDeclaration_maxCols(
use: TypeOnly<typeof current.maxCols>);
use_current_VariableDeclaration_maxCols(
get_old_VariableDeclaration_maxCols());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxCols": {"backCompat": false}
* "RemovedVariableDeclaration_maxCols": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxCols():
TypeOnly<typeof current.maxCols>;
declare function use_old_VariableDeclaration_maxCols(
use: TypeOnly<typeof old.maxCols>);
use_old_VariableDeclaration_maxCols(
get_current_VariableDeclaration_maxCols());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRow": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxRow": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxRow():
TypeOnly<typeof old.maxRow>;
declare function use_current_VariableDeclaration_maxRow(
use: TypeOnly<typeof current.maxRow>);
use_current_VariableDeclaration_maxRow(
get_old_VariableDeclaration_maxRow());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRow": {"backCompat": false}
* "RemovedVariableDeclaration_maxRow": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxRow():
TypeOnly<typeof current.maxRow>;
declare function use_old_VariableDeclaration_maxRow(
use: TypeOnly<typeof old.maxRow>);
use_old_VariableDeclaration_maxRow(
get_current_VariableDeclaration_maxRow());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRows": {"forwardCompat": false}
* "RemovedVariableDeclaration_maxRows": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_maxRows():
TypeOnly<typeof old.maxRows>;
declare function use_current_VariableDeclaration_maxRows(
use: TypeOnly<typeof current.maxRows>);
use_current_VariableDeclaration_maxRows(
get_old_VariableDeclaration_maxRows());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_maxRows": {"backCompat": false}
* "RemovedVariableDeclaration_maxRows": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_maxRows():
TypeOnly<typeof current.maxRows>;
declare function use_old_VariableDeclaration_maxRows(
use: TypeOnly<typeof old.maxRows>);
use_old_VariableDeclaration_maxRows(
get_current_VariableDeclaration_maxRows());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_PaddingSegment": {"forwardCompat": false}
* "RemovedClassDeclaration_PaddingSegment": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_PaddingSegment():
TypeOnly<old.PaddingSegment>;
declare function use_current_ClassDeclaration_PaddingSegment(
use: TypeOnly<current.PaddingSegment>);
use_current_ClassDeclaration_PaddingSegment(
get_old_ClassDeclaration_PaddingSegment());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_PaddingSegment": {"backCompat": false}
* "RemovedClassDeclaration_PaddingSegment": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_PaddingSegment():
TypeOnly<current.PaddingSegment>;
declare function use_old_ClassDeclaration_PaddingSegment(
use: TypeOnly<old.PaddingSegment>);
use_old_ClassDeclaration_PaddingSegment(
get_current_ClassDeclaration_PaddingSegment());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "FunctionDeclaration_positionToRowCol": {"forwardCompat": false}
* "RemovedFunctionDeclaration_positionToRowCol": {"forwardCompat": false}
*/
declare function get_old_FunctionDeclaration_positionToRowCol():
TypeOnly<typeof old.positionToRowCol>;
declare function use_current_FunctionDeclaration_positionToRowCol(
use: TypeOnly<typeof current.positionToRowCol>);
use_current_FunctionDeclaration_positionToRowCol(
get_old_FunctionDeclaration_positionToRowCol());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "FunctionDeclaration_positionToRowCol": {"backCompat": false}
* "RemovedFunctionDeclaration_positionToRowCol": {"backCompat": false}
*/
declare function get_current_FunctionDeclaration_positionToRowCol():
TypeOnly<typeof current.positionToRowCol>;
declare function use_old_FunctionDeclaration_positionToRowCol(
use: TypeOnly<typeof old.positionToRowCol>);
use_old_FunctionDeclaration_positionToRowCol(
get_current_FunctionDeclaration_positionToRowCol());
/*
* Validate forward compat by using old type in place of current type
@ -1676,50 +1580,26 @@ use_old_InterfaceDeclaration_RootDataObjectProps(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_rowColToPosition": {"forwardCompat": false}
* "RemovedVariableDeclaration_rowColToPosition": {"forwardCompat": false}
*/
declare function get_old_VariableDeclaration_rowColToPosition():
TypeOnly<typeof old.rowColToPosition>;
declare function use_current_VariableDeclaration_rowColToPosition(
use: TypeOnly<typeof current.rowColToPosition>);
use_current_VariableDeclaration_rowColToPosition(
get_old_VariableDeclaration_rowColToPosition());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "VariableDeclaration_rowColToPosition": {"backCompat": false}
* "RemovedVariableDeclaration_rowColToPosition": {"backCompat": false}
*/
declare function get_current_VariableDeclaration_rowColToPosition():
TypeOnly<typeof current.rowColToPosition>;
declare function use_old_VariableDeclaration_rowColToPosition(
use: TypeOnly<typeof old.rowColToPosition>);
use_old_VariableDeclaration_rowColToPosition(
get_current_VariableDeclaration_rowColToPosition());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_RunSegment": {"forwardCompat": false}
* "RemovedClassDeclaration_RunSegment": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_RunSegment():
TypeOnly<old.RunSegment>;
declare function use_current_ClassDeclaration_RunSegment(
use: TypeOnly<current.RunSegment>);
use_current_ClassDeclaration_RunSegment(
get_old_ClassDeclaration_RunSegment());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_RunSegment": {"backCompat": false}
* "RemovedClassDeclaration_RunSegment": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_RunSegment():
TypeOnly<current.RunSegment>;
declare function use_old_ClassDeclaration_RunSegment(
use: TypeOnly<old.RunSegment>);
use_old_ClassDeclaration_RunSegment(
get_current_ClassDeclaration_RunSegment());
/*
* Validate forward compat by using old type in place of current type
@ -1944,51 +1824,26 @@ use_old_ClassDeclaration_SharedMap(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequence": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedNumberSequence": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedNumberSequence():
TypeOnly<old.SharedNumberSequence>;
declare function use_current_ClassDeclaration_SharedNumberSequence(
use: TypeOnly<current.SharedNumberSequence>);
use_current_ClassDeclaration_SharedNumberSequence(
get_old_ClassDeclaration_SharedNumberSequence());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequence": {"backCompat": false}
* "RemovedClassDeclaration_SharedNumberSequence": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedNumberSequence():
TypeOnly<current.SharedNumberSequence>;
declare function use_old_ClassDeclaration_SharedNumberSequence(
use: TypeOnly<old.SharedNumberSequence>);
use_old_ClassDeclaration_SharedNumberSequence(
// @ts-expect-error compatibility expected to be broken
get_current_ClassDeclaration_SharedNumberSequence());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequenceFactory": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedNumberSequenceFactory": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedNumberSequenceFactory():
TypeOnly<old.SharedNumberSequenceFactory>;
declare function use_current_ClassDeclaration_SharedNumberSequenceFactory(
use: TypeOnly<current.SharedNumberSequenceFactory>);
use_current_ClassDeclaration_SharedNumberSequenceFactory(
get_old_ClassDeclaration_SharedNumberSequenceFactory());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedNumberSequenceFactory": {"backCompat": false}
* "RemovedClassDeclaration_SharedNumberSequenceFactory": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedNumberSequenceFactory():
TypeOnly<current.SharedNumberSequenceFactory>;
declare function use_old_ClassDeclaration_SharedNumberSequenceFactory(
use: TypeOnly<old.SharedNumberSequenceFactory>);
use_old_ClassDeclaration_SharedNumberSequenceFactory(
get_current_ClassDeclaration_SharedNumberSequenceFactory());
/*
* Validate forward compat by using old type in place of current type
@ -2017,51 +1872,26 @@ use_old_TypeAliasDeclaration_SharedObjectClass(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequence": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedObjectSequence": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedObjectSequence():
TypeOnly<old.SharedObjectSequence<any>>;
declare function use_current_ClassDeclaration_SharedObjectSequence(
use: TypeOnly<current.SharedObjectSequence<any>>);
use_current_ClassDeclaration_SharedObjectSequence(
get_old_ClassDeclaration_SharedObjectSequence());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequence": {"backCompat": false}
* "RemovedClassDeclaration_SharedObjectSequence": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedObjectSequence():
TypeOnly<current.SharedObjectSequence<any>>;
declare function use_old_ClassDeclaration_SharedObjectSequence(
use: TypeOnly<old.SharedObjectSequence<any>>);
use_old_ClassDeclaration_SharedObjectSequence(
// @ts-expect-error compatibility expected to be broken
get_current_ClassDeclaration_SharedObjectSequence());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequenceFactory": {"forwardCompat": false}
* "RemovedClassDeclaration_SharedObjectSequenceFactory": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SharedObjectSequenceFactory():
TypeOnly<old.SharedObjectSequenceFactory>;
declare function use_current_ClassDeclaration_SharedObjectSequenceFactory(
use: TypeOnly<current.SharedObjectSequenceFactory>);
use_current_ClassDeclaration_SharedObjectSequenceFactory(
get_old_ClassDeclaration_SharedObjectSequenceFactory());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SharedObjectSequenceFactory": {"backCompat": false}
* "RemovedClassDeclaration_SharedObjectSequenceFactory": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SharedObjectSequenceFactory():
TypeOnly<current.SharedObjectSequenceFactory>;
declare function use_old_ClassDeclaration_SharedObjectSequenceFactory(
use: TypeOnly<old.SharedObjectSequenceFactory>);
use_old_ClassDeclaration_SharedObjectSequenceFactory(
get_current_ClassDeclaration_SharedObjectSequenceFactory());
/*
* Validate forward compat by using old type in place of current type
@ -2190,75 +2020,38 @@ use_old_TypeAliasDeclaration_SharedStringSegment(
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrix": {"forwardCompat": false}
* "RemovedClassDeclaration_SparseMatrix": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SparseMatrix():
TypeOnly<old.SparseMatrix>;
declare function use_current_ClassDeclaration_SparseMatrix(
use: TypeOnly<current.SparseMatrix>);
use_current_ClassDeclaration_SparseMatrix(
get_old_ClassDeclaration_SparseMatrix());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrix": {"backCompat": false}
* "RemovedClassDeclaration_SparseMatrix": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SparseMatrix():
TypeOnly<current.SparseMatrix>;
declare function use_old_ClassDeclaration_SparseMatrix(
use: TypeOnly<old.SparseMatrix>);
use_old_ClassDeclaration_SparseMatrix(
// @ts-expect-error compatibility expected to be broken
get_current_ClassDeclaration_SparseMatrix());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrixFactory": {"forwardCompat": false}
* "RemovedClassDeclaration_SparseMatrixFactory": {"forwardCompat": false}
*/
declare function get_old_ClassDeclaration_SparseMatrixFactory():
TypeOnly<old.SparseMatrixFactory>;
declare function use_current_ClassDeclaration_SparseMatrixFactory(
use: TypeOnly<current.SparseMatrixFactory>);
use_current_ClassDeclaration_SparseMatrixFactory(
get_old_ClassDeclaration_SparseMatrixFactory());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "ClassDeclaration_SparseMatrixFactory": {"backCompat": false}
* "RemovedClassDeclaration_SparseMatrixFactory": {"backCompat": false}
*/
declare function get_current_ClassDeclaration_SparseMatrixFactory():
TypeOnly<current.SparseMatrixFactory>;
declare function use_old_ClassDeclaration_SparseMatrixFactory(
use: TypeOnly<old.SparseMatrixFactory>);
use_old_ClassDeclaration_SparseMatrixFactory(
get_current_ClassDeclaration_SparseMatrixFactory());
/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_SparseMatrixItem": {"forwardCompat": false}
* "RemovedTypeAliasDeclaration_SparseMatrixItem": {"forwardCompat": false}
*/
declare function get_old_TypeAliasDeclaration_SparseMatrixItem():
TypeOnly<old.SparseMatrixItem>;
declare function use_current_TypeAliasDeclaration_SparseMatrixItem(
use: TypeOnly<current.SparseMatrixItem>);
use_current_TypeAliasDeclaration_SparseMatrixItem(
get_old_TypeAliasDeclaration_SparseMatrixItem());
/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "TypeAliasDeclaration_SparseMatrixItem": {"backCompat": false}
* "RemovedTypeAliasDeclaration_SparseMatrixItem": {"backCompat": false}
*/
declare function get_current_TypeAliasDeclaration_SparseMatrixItem():
TypeOnly<current.SparseMatrixItem>;
declare function use_old_TypeAliasDeclaration_SparseMatrixItem(
use: TypeOnly<old.SparseMatrixItem>);
use_old_TypeAliasDeclaration_SparseMatrixItem(
get_current_TypeAliasDeclaration_SparseMatrixItem());
/*
* Validate forward compat by using old type in place of current type

Просмотреть файл

@ -57,6 +57,7 @@
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluid-experimental/sequence-deprecated": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluid-internal/replay-tool": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/cell": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/common-utils": "^0.32.1",

Просмотреть файл

@ -20,7 +20,7 @@ import {
} from "@fluidframework/local-driver";
import { IFluidCodeDetails } from "@fluidframework/container-definitions";
import { SharedMap, SharedDirectory } from "@fluidframework/map";
import { SharedString, SparseMatrix } from "@fluidframework/sequence";
import { SharedString } from "@fluidframework/sequence";
import { SharedCell } from "@fluidframework/cell";
import { Ink } from "@fluidframework/ink";
import { SharedMatrix } from "@fluidframework/matrix";
@ -28,6 +28,7 @@ import { SharedCounter } from "@fluidframework/counter";
import { ConsensusRegisterCollection } from "@fluidframework/register-collection";
import { ConsensusQueue, ConsensusOrderedCollection } from "@fluidframework/ordered-collection";
import { LocalDeltaConnectionServer } from "@fluidframework/server-local-server";
import { SparseMatrix } from "@fluid-experimental/sequence-deprecated";
describe(`Container Serialization Backwards Compatibility`, () => {
const loaderContainerTracker = new LoaderContainerTracker();

Просмотреть файл

@ -66,6 +66,7 @@
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluid-experimental/sequence-deprecated": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/agent-scheduler": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/aqueduct": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/cell": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",

Просмотреть файл

@ -21,7 +21,7 @@ import { SharedMap, SharedDirectory } from "@fluidframework/map";
import { IDocumentAttributes, ISummaryTree, SummaryType } from "@fluidframework/protocol-definitions";
import { IContainerRuntimeBase } from "@fluidframework/runtime-definitions";
import { ConsensusRegisterCollection } from "@fluidframework/register-collection";
import { IntervalType, SequenceInterval, SharedString, SparseMatrix } from "@fluidframework/sequence";
import { IntervalType, SequenceInterval, SharedString } from "@fluidframework/sequence";
import { SharedCell } from "@fluidframework/cell";
import { Ink } from "@fluidframework/ink";
import { SharedMatrix } from "@fluidframework/matrix";
@ -34,6 +34,7 @@ import {
getSnapshotTreeFromSerializedContainer,
// eslint-disable-next-line import/no-internal-modules
} from "@fluidframework/container-loader/dist/utils";
import { SparseMatrix } from "@fluid-experimental/sequence-deprecated";
const detachedContainerRefSeqNumber = 0;

Просмотреть файл

@ -21,7 +21,7 @@ import {
} from "@fluidframework/test-utils";
import { SharedMap, SharedDirectory } from "@fluidframework/map";
import { Deferred, TelemetryNullLogger } from "@fluidframework/common-utils";
import { SharedString, SparseMatrix } from "@fluidframework/sequence";
import { SharedString } from "@fluidframework/sequence";
import { Ink, IColor } from "@fluidframework/ink";
import { SharedMatrix } from "@fluidframework/matrix";
import { ConsensusRegisterCollection } from "@fluidframework/register-collection";
@ -34,6 +34,7 @@ import { ContainerMessageType } from "@fluidframework/container-runtime";
import { requestFluidObject } from "@fluidframework/runtime-utils";
import { describeFullCompat, describeNoCompat, itExpects } from "@fluidframework/test-version-utils";
import { IDocumentServiceFactory, IFluidResolvedUrl } from "@fluidframework/driver-definitions";
import { SparseMatrix } from "@fluid-experimental/sequence-deprecated";
const detachedContainerRefSeqNumber = 0;

Просмотреть файл

@ -53,6 +53,7 @@
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluid-experimental/sequence-deprecated": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/aqueduct": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/cell": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/common-definitions": "^0.20.1",

Просмотреть файл

@ -20,11 +20,12 @@ import { SharedDirectory, SharedMap } from "@fluidframework/map";
import { SharedMatrix } from "@fluidframework/matrix";
import { ConsensusQueue } from "@fluidframework/ordered-collection";
import { ConsensusRegisterCollection } from "@fluidframework/register-collection";
import { SharedString, SparseMatrix } from "@fluidframework/sequence";
import { SharedString } from "@fluidframework/sequence";
import { TestFluidObjectFactory } from "@fluidframework/test-utils";
// ContainerRuntime and Data Runtime API
import { ContainerRuntimeFactoryWithDefaultDataStore, DataObject, DataObjectFactory } from "@fluidframework/aqueduct";
import { SparseMatrix } from "@fluid-experimental/sequence-deprecated";
import * as semver from "semver";
import { pkgVersion } from "./packageVersion";

Просмотреть файл

@ -34,6 +34,7 @@
"tsfmt:fix": "tsfmt --replace"
},
"dependencies": {
"@fluid-experimental/sequence-deprecated": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/cell": ">=2.0.0-internal.1.0.0 <2.0.0-internal.2.0.0",
"@fluidframework/common-definitions": "^0.20.1",
"@fluidframework/common-utils": "^0.32.1",

Просмотреть файл

@ -29,12 +29,14 @@ import {
import { create404Response, RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
import {
SharedIntervalCollection,
SharedNumberSequence,
SharedObjectSequence,
SharedString,
SparseMatrix,
} from "@fluidframework/sequence";
import { SharedSummaryBlock } from "@fluidframework/shared-summary-block";
import {
SharedNumberSequence,
SharedObjectSequence,
SparseMatrix,
} from "@fluid-experimental/sequence-deprecated";
import { UnknownChannelFactory } from "./unknownChannel";
async function runtimeRequestHandler(request: IRequest, runtime: IContainerRuntime) {