@fluidframework/sequence
Advanced tools
Comparing version 2.1.0-276985 to 2.1.0-281041
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"extends": "../../../common/build/build-common/api-extractor-base.esm.current.json" | ||
"extends": "../../../common/build/build-common/api-extractor-model.esm.json" | ||
} |
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-base.esm.legacy.json" | ||
"extends": "<projectFolder>/../../../common/build/build-common/api-extractor-report.esm.legacy.json" | ||
} |
@@ -7,30 +7,2 @@ ## Beta API Report File for "@fluidframework/sequence" | ||
export { BaseSegment } | ||
export { ISegment } | ||
export { LocalReferencePosition } | ||
export { MapLike } | ||
export { Marker } | ||
export { MergeTreeDeltaType } | ||
export { PropertySet } | ||
export { ReferencePosition } | ||
export { ReferenceType } | ||
export { reservedMarkerIdKey } | ||
export { reservedRangeLabelsKey } | ||
export { reservedTileLabelsKey } | ||
export { TextSegment } | ||
export { TrackingGroup } | ||
``` |
@@ -492,4 +492,2 @@ ## Alpha API Report File for "@fluidframework/sequence" | ||
// (No @packageDocumentation comment for this package) | ||
``` |
@@ -7,30 +7,2 @@ ## Public API Report File for "@fluidframework/sequence" | ||
export { BaseSegment } | ||
export { ISegment } | ||
export { LocalReferencePosition } | ||
export { MapLike } | ||
export { Marker } | ||
export { MergeTreeDeltaType } | ||
export { PropertySet } | ||
export { ReferencePosition } | ||
export { ReferenceType } | ||
export { reservedMarkerIdKey } | ||
export { reservedRangeLabelsKey } | ||
export { reservedTileLabelsKey } | ||
export { TextSegment } | ||
export { TrackingGroup } | ||
``` |
@@ -397,2 +397,4 @@ "use strict"; | ||
return { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
value: this.results[this.index++], | ||
@@ -399,0 +401,0 @@ done: false, |
@@ -8,5 +8,18 @@ /*! | ||
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
* Generated by "flub generate entrypoints" in @fluidframework/build-tools. | ||
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli. | ||
*/ | ||
/** | ||
* Supports distributed data structures which are list-like. | ||
* | ||
* This library's main export is {@link SharedString}, a DDS for storing and simultaneously editing a sequence of | ||
* text. | ||
* | ||
* See the package's README for a high-level introduction to `SharedString`'s feature set. | ||
* @remarks Note that SharedString is a sequence DDS but it has additional specialized features and behaviors for | ||
* working with text. | ||
* | ||
* @packageDocumentation | ||
*/ | ||
export { | ||
@@ -13,0 +26,0 @@ // @legacy APIs |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/sequence"; | ||
export declare const pkgVersion = "2.1.0-276985"; | ||
export declare const pkgVersion = "2.1.0-281041"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/sequence"; | ||
exports.pkgVersion = "2.1.0-276985"; | ||
exports.pkgVersion = "2.1.0-281041"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -8,6 +8,17 @@ /*! | ||
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
* Generated by "flub generate entrypoints" in @fluidframework/build-tools. | ||
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli. | ||
*/ | ||
export {} | ||
/** | ||
* Supports distributed data structures which are list-like. | ||
* | ||
* This library's main export is {@link SharedString}, a DDS for storing and simultaneously editing a sequence of | ||
* text. | ||
* | ||
* See the package's README for a high-level introduction to `SharedString`'s feature set. | ||
* @remarks Note that SharedString is a sequence DDS but it has additional specialized features and behaviors for | ||
* working with text. | ||
* | ||
* @packageDocumentation | ||
*/export {} | ||
@@ -174,2 +174,4 @@ "use strict"; | ||
revertibleRefs, | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
mergeTreeRevertible: removeRevertibles[0], | ||
@@ -185,2 +187,4 @@ }; | ||
if (endIntervalIndex !== -1) { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
endOffset = endIntervals[endIntervalIndex].offset; | ||
@@ -350,2 +354,4 @@ endIntervals.splice(endIntervalIndex, 1); | ||
getKey(item) { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
return item.ranges[0].segment.ordinal; | ||
@@ -352,0 +358,0 @@ } |
@@ -427,2 +427,4 @@ "use strict"; | ||
if (this.messagesSinceMSNChange.length > 20 && | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
this.messagesSinceMSNChange[20].sequenceNumber < message.minimumSequenceNumber) { | ||
@@ -436,2 +438,4 @@ this.processMinSequenceNumberChanged(message.minimumSequenceNumber); | ||
for (; index < this.messagesSinceMSNChange.length; index++) { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
if (this.messagesSinceMSNChange[index].sequenceNumber > minSeq) { | ||
@@ -438,0 +442,0 @@ break; |
@@ -46,4 +46,10 @@ "use strict"; | ||
}); | ||
this.pFirst = new Lazy(() => this.sortedRanges.value.items[0]); | ||
this.pLast = new Lazy(() => this.sortedRanges.value.items[this.sortedRanges.value.size - 1]); | ||
this.pFirst = new Lazy( | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
() => this.sortedRanges.value.items[0]); | ||
this.pLast = new Lazy( | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
() => this.sortedRanges.value.items[this.sortedRanges.value.size - 1]); | ||
} | ||
@@ -50,0 +56,0 @@ /** |
@@ -8,5 +8,5 @@ /*! | ||
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
* Generated by "flub generate entrypoints" in @fluidframework/build-tools. | ||
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli. | ||
*/ | ||
export * from "./lib/index.js"; |
@@ -8,5 +8,5 @@ /*! | ||
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
* Generated by "flub generate entrypoints" in @fluidframework/build-tools. | ||
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli. | ||
*/ | ||
export * from "./lib/legacy.js"; |
@@ -384,2 +384,4 @@ /*! | ||
return { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
value: this.results[this.index++], | ||
@@ -386,0 +388,0 @@ done: false, |
@@ -8,5 +8,18 @@ /*! | ||
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
* Generated by "flub generate entrypoints" in @fluidframework/build-tools. | ||
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli. | ||
*/ | ||
/** | ||
* Supports distributed data structures which are list-like. | ||
* | ||
* This library's main export is {@link SharedString}, a DDS for storing and simultaneously editing a sequence of | ||
* text. | ||
* | ||
* See the package's README for a high-level introduction to `SharedString`'s feature set. | ||
* @remarks Note that SharedString is a sequence DDS but it has additional specialized features and behaviors for | ||
* working with text. | ||
* | ||
* @packageDocumentation | ||
*/ | ||
export { | ||
@@ -13,0 +26,0 @@ // @legacy APIs |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/sequence"; | ||
export declare const pkgVersion = "2.1.0-276985"; | ||
export declare const pkgVersion = "2.1.0-281041"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/sequence"; | ||
export const pkgVersion = "2.1.0-276985"; | ||
export const pkgVersion = "2.1.0-281041"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -8,6 +8,17 @@ /*! | ||
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
* Generated by "flub generate entrypoints" in @fluidframework/build-tools. | ||
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli. | ||
*/ | ||
export {} | ||
/** | ||
* Supports distributed data structures which are list-like. | ||
* | ||
* This library's main export is {@link SharedString}, a DDS for storing and simultaneously editing a sequence of | ||
* text. | ||
* | ||
* See the package's README for a high-level introduction to `SharedString`'s feature set. | ||
* @remarks Note that SharedString is a sequence DDS but it has additional specialized features and behaviors for | ||
* working with text. | ||
* | ||
* @packageDocumentation | ||
*/export {} | ||
@@ -168,2 +168,4 @@ /*! | ||
revertibleRefs, | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
mergeTreeRevertible: removeRevertibles[0], | ||
@@ -179,2 +181,4 @@ }; | ||
if (endIntervalIndex !== -1) { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
endOffset = endIntervals[endIntervalIndex].offset; | ||
@@ -342,2 +346,4 @@ endIntervals.splice(endIntervalIndex, 1); | ||
getKey(item) { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
return item.ranges[0].segment.ordinal; | ||
@@ -344,0 +350,0 @@ } |
@@ -425,2 +425,4 @@ /*! | ||
if (this.messagesSinceMSNChange.length > 20 && | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
this.messagesSinceMSNChange[20].sequenceNumber < message.minimumSequenceNumber) { | ||
@@ -434,2 +436,4 @@ this.processMinSequenceNumberChanged(message.minimumSequenceNumber); | ||
for (; index < this.messagesSinceMSNChange.length; index++) { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
if (this.messagesSinceMSNChange[index].sequenceNumber > minSeq) { | ||
@@ -436,0 +440,0 @@ break; |
@@ -44,4 +44,10 @@ /*! | ||
}); | ||
this.pFirst = new Lazy(() => this.sortedRanges.value.items[0]); | ||
this.pLast = new Lazy(() => this.sortedRanges.value.items[this.sortedRanges.value.size - 1]); | ||
this.pFirst = new Lazy( | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
() => this.sortedRanges.value.items[0]); | ||
this.pLast = new Lazy( | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
() => this.sortedRanges.value.items[this.sortedRanges.value.size - 1]); | ||
} | ||
@@ -48,0 +54,0 @@ /** |
{ | ||
"name": "@fluidframework/sequence", | ||
"version": "2.1.0-276985", | ||
"version": "2.1.0-281041", | ||
"description": "Distributed sequence", | ||
@@ -26,22 +26,2 @@ "homepage": "https://fluidframework.com", | ||
}, | ||
"./beta": { | ||
"import": { | ||
"types": "./lib/beta.d.ts", | ||
"default": "./lib/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/beta.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"./internal/test/intervalCollection": { | ||
"import": { | ||
"types": "./lib/intervalCollection.d.ts", | ||
"default": "./lib/intervalCollection.js" | ||
}, | ||
"require": { | ||
"types": "./dist/intervalCollection.d.ts", | ||
"default": "./dist/intervalCollection.js" | ||
} | ||
}, | ||
"./legacy": { | ||
@@ -66,2 +46,12 @@ "import": { | ||
} | ||
}, | ||
"./internal/test/intervalCollection": { | ||
"import": { | ||
"types": "./lib/intervalCollection.d.ts", | ||
"default": "./lib/intervalCollection.js" | ||
}, | ||
"require": { | ||
"types": "./dist/intervalCollection.d.ts", | ||
"default": "./dist/intervalCollection.js" | ||
} | ||
} | ||
@@ -92,12 +82,12 @@ }, | ||
"dependencies": { | ||
"@fluid-internal/client-utils": "2.1.0-276985", | ||
"@fluidframework/core-interfaces": "2.1.0-276985", | ||
"@fluidframework/core-utils": "2.1.0-276985", | ||
"@fluidframework/datastore-definitions": "2.1.0-276985", | ||
"@fluidframework/driver-definitions": "2.1.0-276985", | ||
"@fluidframework/merge-tree": "2.1.0-276985", | ||
"@fluidframework/runtime-definitions": "2.1.0-276985", | ||
"@fluidframework/runtime-utils": "2.1.0-276985", | ||
"@fluidframework/shared-object-base": "2.1.0-276985", | ||
"@fluidframework/telemetry-utils": "2.1.0-276985", | ||
"@fluid-internal/client-utils": "2.1.0-281041", | ||
"@fluidframework/core-interfaces": "2.1.0-281041", | ||
"@fluidframework/core-utils": "2.1.0-281041", | ||
"@fluidframework/datastore-definitions": "2.1.0-281041", | ||
"@fluidframework/driver-definitions": "2.1.0-281041", | ||
"@fluidframework/merge-tree": "2.1.0-281041", | ||
"@fluidframework/runtime-definitions": "2.1.0-281041", | ||
"@fluidframework/runtime-utils": "2.1.0-281041", | ||
"@fluidframework/shared-object-base": "2.1.0-281041", | ||
"@fluidframework/telemetry-utils": "2.1.0-281041", | ||
"double-ended-queue": "^2.1.0-0", | ||
@@ -108,14 +98,14 @@ "uuid": "^9.0.0" | ||
"@arethetypeswrong/cli": "^0.15.2", | ||
"@biomejs/biome": "^1.7.3", | ||
"@fluid-internal/mocha-test-setup": "2.1.0-276985", | ||
"@fluid-private/stochastic-test-utils": "2.1.0-276985", | ||
"@fluid-private/test-dds-utils": "2.1.0-276985", | ||
"@biomejs/biome": "~1.8.3", | ||
"@fluid-internal/mocha-test-setup": "2.1.0-281041", | ||
"@fluid-private/stochastic-test-utils": "2.1.0-281041", | ||
"@fluid-private/test-dds-utils": "2.1.0-281041", | ||
"@fluid-tools/benchmark": "^0.48.0", | ||
"@fluid-tools/build-cli": "^0.39.0", | ||
"@fluid-tools/build-cli": "^0.40.0", | ||
"@fluidframework/build-common": "^2.0.3", | ||
"@fluidframework/build-tools": "^0.39.0", | ||
"@fluidframework/container-definitions": "2.1.0-276985", | ||
"@fluidframework/build-tools": "^0.40.0", | ||
"@fluidframework/container-definitions": "2.1.0-281041", | ||
"@fluidframework/eslint-config-fluid": "^5.3.0", | ||
"@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.0.0-rc.5.0.0", | ||
"@fluidframework/test-runtime-utils": "2.1.0-276985", | ||
"@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.0.0", | ||
"@fluidframework/test-runtime-utils": "2.1.0-281041", | ||
"@microsoft/api-extractor": "^7.45.1", | ||
@@ -155,2 +145,5 @@ "@types/diff": "^3.5.1", | ||
"backCompat": false | ||
}, | ||
"VariableDeclaration_SharedString": { | ||
"forwardCompat": false | ||
} | ||
@@ -164,7 +157,8 @@ } | ||
"build": "fluid-build . --task build", | ||
"build:api-reports": "concurrently \"npm:build:api-reports:*\"", | ||
"build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", | ||
"build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", | ||
"build:commonjs": "fluid-build . --task commonjs", | ||
"build:compile": "fluid-build . --task compile", | ||
"build:docs": "concurrently \"npm:build:docs:*\"", | ||
"build:docs:current": "api-extractor run --local", | ||
"build:docs:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", | ||
"build:docs": "api-extractor run --local", | ||
"build:esnext": "tsc --project ./tsconfig.json", | ||
@@ -176,9 +170,7 @@ "build:genver": "gen-version", | ||
"check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test/intervalCollection", | ||
"check:biome": "biome check . --formatter-enabled=true", | ||
"check:biome": "biome check .", | ||
"check:exports": "concurrently \"npm:check:exports:*\"", | ||
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", | ||
"check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", | ||
"check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", | ||
"check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", | ||
"check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", | ||
"check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", | ||
@@ -188,5 +180,6 @@ "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", | ||
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore", | ||
"ci:build:docs": "concurrently \"npm:ci:build:docs:*\"", | ||
"ci:build:docs:current": "api-extractor run", | ||
"ci:build:docs:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", | ||
"ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", | ||
"ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", | ||
"ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", | ||
"ci:build:docs": "api-extractor run", | ||
"clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", | ||
@@ -196,3 +189,3 @@ "eslint": "eslint --format stylish src", | ||
"format": "npm run format:biome", | ||
"format:biome": "biome check . --formatter-enabled=true --apply", | ||
"format:biome": "biome check . --write", | ||
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore", | ||
@@ -199,0 +192,0 @@ "lint": "fluid-build . --task lint", |
114
README.md
# @fluidframework/sequence | ||
<!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) --> | ||
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_HEADER) --> | ||
@@ -16,2 +16,19 @@ <!-- prettier-ignore-start --> | ||
## Installation | ||
To get started, install the package by running the following command: | ||
```bash | ||
npm i @fluidframework/sequence | ||
``` | ||
## Importing from this package | ||
This package leverages [package.json exports](https://nodejs.org/api/packages.html#exports) to separate its APIs by support level. | ||
For more information on the related support guarantees, see [API Support Levels](https://fluidframework.com/docs/build/releases-and-apitags/#api-support-levels). | ||
To access the `public` ([SemVer](https://semver.org/)) APIs, import via `@fluidframework/sequence` like normal. | ||
To access the `legacy` APIs, import via `@fluidframework/sequence/legacy`. | ||
<!-- prettier-ignore-end --> | ||
@@ -600,3 +617,2 @@ | ||
- [webflow](https://github.com/microsoft/FluidFramework/tree/main/examples/data-objects/webflow) | ||
- [flowView](https://github.com/microsoft/FluidFramework/blob/main/examples/data-objects/shared-text/src/client-ui-lib/controls/flowView.ts) | ||
@@ -614,3 +630,97 @@ - Integrations with Open Source Rich Text Editors | ||
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_FOOTER) --> | ||
<!-- prettier-ignore-start --> | ||
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. --> | ||
## API Documentation | ||
API documentation for **@fluidframework/sequence** is available at <https://fluidframework.com/docs/apis/sequence>. | ||
## Minimum Client Requirements | ||
These are the platform requirements for the current version of Fluid Framework Client Packages. | ||
These requirements err on the side of being too strict since within a major version they can be relaxed over time, but not made stricter. | ||
For Long Term Support (LTS) versions this can require supporting these platforms for several years. | ||
It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug. | ||
If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request. | ||
When making such a request please include if the configuration already works (and thus the request is just that it becomes officially supported), or if changes are required to get it working. | ||
### Supported Runtimes | ||
- NodeJs ^20.10.0 except that we will drop support for it [when NodeJs 20 loses its upstream support on 2026-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS (22) at least 1 year before 20 is end-of-life. This same policy applies to NodeJS 22 when it is end of life (2027-04-30). | ||
- Modern browsers supporting the es2022 standard library: in response to asks we can add explicit support for using babel to polyfill to target specific standards or runtimes (meaning we can avoid/remove use of things that don't polyfill robustly, but otherwise target modern standards). | ||
### Supported Tools | ||
- TypeScript 5.4: | ||
- All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported. | ||
- [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required. | ||
- [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported. | ||
- `exactOptionalPropertyTypes` is currently not fully supported. | ||
If used, narrowing members of Fluid Framework types types using `in`, `Reflect.has`, `Object.hasOwn` or `Object.prototype.hasOwnProperty` should be avoided as they may incorrectly exclude `undefined` from the possible values in some cases. | ||
- [webpack](https://webpack.js.org/) 5 | ||
- We are not intending to be prescriptive about what bundler to use. | ||
Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test. | ||
### Module Resolution | ||
[`Node16`, `NodeNext`, or `Bundler`](https://www.typescriptlang.org/tsconfig#moduleResolution) resolution should be used with TypeScript compilerOptions to follow the [Node.js v12+ ESM Resolution and Loading algorithm](https://nodejs.github.io/nodejs.dev/en/api/v20/esm/#resolution-and-loading-algorithm). | ||
Node10 resolution is not supported as it does not support Fluid Framework's API structuring pattern that is used to distinguish stable APIs from those that are in development. | ||
### Module Formats | ||
- ES Modules: | ||
ES Modules are the preferred way to consume our client packages (including in NodeJs) and consuming our client packages from ES Modules is fully supported. | ||
- CommonJs: | ||
Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below. | ||
This is done to accommodate some workflows without good ES Module support. | ||
If you have a workflow you would like included in this list, file an issue. | ||
Once this list of workflows motivating CommonJS support is empty, we may drop support for CommonJS one year after notice of the change is posted here. | ||
- Testing with Jest (which lacks [stable ESM support](https://jestjs.io/docs/ecmascript-modules) due to [unstable APIs in NodeJs](https://github.com/nodejs/node/issues/37648)) | ||
## Contribution Guidelines | ||
There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid. | ||
- Participate in Q&A in our [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions). | ||
- [Submit bugs](https://github.com/microsoft/FluidFramework/issues) and help us verify fixes as they are checked in. | ||
- Review the [source code changes](https://github.com/microsoft/FluidFramework/pulls). | ||
- [Contribute bug fixes](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md). | ||
Detailed instructions for working in the repo can be found in the [Wiki](https://github.com/microsoft/FluidFramework/wiki). | ||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). | ||
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. | ||
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services. | ||
Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks). | ||
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. | ||
## Help | ||
Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/). | ||
Still not finding what you're looking for? Please [file an issue](https://github.com/microsoft/FluidFramework/wiki/Submitting-Bugs-and-Feature-Requests). | ||
Thank you! | ||
## Trademark | ||
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services. | ||
Use of these trademarks or logos must follow Microsoft's [Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). | ||
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. | ||
<!-- prettier-ignore-end --> | ||
<!-- AUTO-GENERATED-CONTENT:END --> | ||
<!-- Links --> | ||
[sharedmap]: https://fluidframework.com/docs/data-structures/map/ | ||
[sharedstring]: https://github.com/microsoft/FluidFramework/blob/main/packages/dds/sequence/src/sharedString.ts |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/sequence"; | ||
export const pkgVersion = "2.1.0-276985"; | ||
export const pkgVersion = "2.1.0-281041"; |
@@ -326,3 +326,5 @@ /*! | ||
revertibleRefs, | ||
mergeTreeRevertible: removeRevertibles[0], | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
mergeTreeRevertible: removeRevertibles[0]!, | ||
}; | ||
@@ -338,3 +340,5 @@ | ||
if (endIntervalIndex !== -1) { | ||
endOffset = endIntervals[endIntervalIndex].offset; | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
endOffset = endIntervals[endIntervalIndex]!.offset; | ||
endIntervals.splice(endIntervalIndex, 1); | ||
@@ -589,3 +593,5 @@ } | ||
protected getKey(item: RangeInfo): string { | ||
return item.ranges[0].segment.ordinal; | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
return item.ranges[0]!.segment.ordinal; | ||
} | ||
@@ -592,0 +598,0 @@ } |
@@ -944,3 +944,5 @@ /*! | ||
this.messagesSinceMSNChange.length > 20 && | ||
this.messagesSinceMSNChange[20].sequenceNumber < message.minimumSequenceNumber | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
this.messagesSinceMSNChange[20]!.sequenceNumber < message.minimumSequenceNumber | ||
) { | ||
@@ -955,3 +957,5 @@ this.processMinSequenceNumberChanged(message.minimumSequenceNumber); | ||
for (; index < this.messagesSinceMSNChange.length; index++) { | ||
if (this.messagesSinceMSNChange[index].sequenceNumber > minSeq) { | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
if (this.messagesSinceMSNChange[index]!.sequenceNumber > minSeq) { | ||
break; | ||
@@ -958,0 +962,0 @@ } |
@@ -70,7 +70,11 @@ /*! | ||
this.pFirst = new Lazy<ISequenceDeltaRange<TOperation>>( | ||
() => this.sortedRanges.value.items[0], | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
() => this.sortedRanges.value.items[0]!, | ||
); | ||
this.pLast = new Lazy<ISequenceDeltaRange<TOperation>>( | ||
() => this.sortedRanges.value.items[this.sortedRanges.value.size - 1], | ||
// TODO Non null asserting, why is this not null? | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
() => this.sortedRanges.value.items[this.sortedRanges.value.size - 1]!, | ||
); | ||
@@ -77,0 +81,0 @@ } |
@@ -9,5 +9,4 @@ { | ||
"noImplicitAny": true, | ||
"noUncheckedIndexedAccess": false, | ||
"exactOptionalPropertyTypes": false, | ||
}, | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1838992
21422
724
284
+ Added@fluid-internal/client-utils@2.1.0-281041(transitive)
+ Added@fluidframework/container-definitions@2.1.0-281041(transitive)
+ Added@fluidframework/container-runtime@2.1.0-281041(transitive)
+ Added@fluidframework/container-runtime-definitions@2.1.0-281041(transitive)
+ Added@fluidframework/core-interfaces@2.1.0-281041(transitive)
+ Added@fluidframework/core-utils@2.1.0-281041(transitive)
+ Added@fluidframework/datastore@2.1.0-281041(transitive)
+ Added@fluidframework/datastore-definitions@2.1.0-281041(transitive)
+ Added@fluidframework/driver-definitions@2.1.0-281041(transitive)
+ Added@fluidframework/driver-utils@2.1.0-281041(transitive)
+ Added@fluidframework/id-compressor@2.1.0-281041(transitive)
+ Added@fluidframework/merge-tree@2.1.0-281041(transitive)
+ Added@fluidframework/runtime-definitions@2.1.0-281041(transitive)
+ Added@fluidframework/runtime-utils@2.1.0-281041(transitive)
+ Added@fluidframework/shared-object-base@2.1.0-281041(transitive)
+ Added@fluidframework/telemetry-utils@2.1.0-281041(transitive)
- Removed@fluid-internal/client-utils@2.1.0-276985(transitive)
- Removed@fluidframework/container-definitions@2.1.0-276985(transitive)
- Removed@fluidframework/container-runtime@2.1.0-276985(transitive)
- Removed@fluidframework/container-runtime-definitions@2.1.0-276985(transitive)
- Removed@fluidframework/core-interfaces@2.1.0-276985(transitive)
- Removed@fluidframework/core-utils@2.1.0-276985(transitive)
- Removed@fluidframework/datastore@2.1.0-276985(transitive)
- Removed@fluidframework/datastore-definitions@2.1.0-276985(transitive)
- Removed@fluidframework/driver-definitions@2.1.0-276985(transitive)
- Removed@fluidframework/driver-utils@2.1.0-276985(transitive)
- Removed@fluidframework/id-compressor@2.1.0-276985(transitive)
- Removed@fluidframework/merge-tree@2.1.0-276985(transitive)
- Removed@fluidframework/runtime-definitions@2.1.0-276985(transitive)
- Removed@fluidframework/runtime-utils@2.1.0-276985(transitive)
- Removed@fluidframework/shared-object-base@2.1.0-276985(transitive)
- Removed@fluidframework/telemetry-utils@2.1.0-276985(transitive)