2.4.0 • Published 29 days ago

@fluidframework/datastore-definitions v2.4.0

Weekly downloads
3,607
License
MIT
Repository
github
Last release
29 days ago

@fluidframework/datastore-definitions

Interface IFluidDataStoreRuntime specifies the data store developer API.

Using Fluid Framework libraries

When taking a dependency on a Fluid Framework library's public APIs, we recommend using a ^ (caret) version range, such as ^1.3.4. While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries, library consumers should always prefer ^.

If using any of Fluid Framework's unstable APIs (for example, its beta APIs), we recommend using a more constrained version range, such as ~.

Installation

To get started, install the package by running the following command:

npm i @fluidframework/datastore-definitions

Importing from this package

This package leverages package.json exports to separate its APIs by support level. For more information on the related support guarantees, see API Support Levels.

To access the public (SemVer) APIs, import via @fluidframework/datastore-definitions like normal.

To access the legacy APIs, import via @fluidframework/datastore-definitions/legacy.

API Documentation

API documentation for @fluidframework/datastore-definitions is available at https://fluidframework.com/docs/apis/datastore-definitions.

Capabilities exposed on IFluidDataStoreRuntime

TODO: The full set of functionality is under review

  • DDS creation and management APIs
  • Container info and states (connection state, documentId, quorum, audience, etc.)
  • Loader
  • Op/Signal submission
  • Snapshotting
  • DeltaManager
  • Blob Management API.

Signals

Signals provide a transient data channel for data (any serializable payload) that doesn't need to be persisted in the op stream. Use signals where possible to avoid storing unnecessary ops, e.g. to transmit presence status during a collaborative session.

Signals are not persisted, ordered, or guaranteed. If a client is behind, the op state can be behind the signal state. For this reason people usually stick the currentSeq on the signal, so other clients can wait to process if they are behind.

You can send a signal via the container or data store runtime. The container will emit the signal event on all signals, but a data store will emit the signal event only on signals emitted on that data store runtime.

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, 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 options are supported.
    • strictNullChecks is required.
    • Configuration options deprecated in 5.0 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 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 resolution should be used with TypeScript compilerOptions to follow the Node.js v12+ 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.

Contribution Guidelines

There are many ways to contribute to Fluid.

Detailed instructions for working in the repo can be found in the Wiki.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact 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. 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.

Still not finding what you're looking for? Please file an issue.

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.

Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.

nuven-code-editor@everything-registry/sub-chunk-331object-random-testobject-likes-testobject-host-testobject-game-test@cephopod/canvas@dstanesc/shared-tree-map@fluidframework/runtime-utils@fluidframework/sequence@fluidframework/matrix@fluidframework/merge-tree@fluidframework/shared-summary-block@fluidframework/task-manager@fluidframework/register-collection@fluidframework/ordered-collection@fluidframework/react@fluidframework/ink@fluidframework/map@fluidframework/shared-object-base@fluidframework/test-end-to-end-tests@fluidframework/test-runtime-utils@fluidframework/data-object-base@fluidframework/datastore@fluidframework/devtools-core@fluidframework/cell@fluidframework/aqueduct@fluidframework/attributor@fluidframework/azure-end-to-end-tests@fluidframework/fluid-static@fluidframework/counter@fluidframework/agent-scheduler@fluidframework/test-utils@fluidframework/test-version-utils@fluidframework/tree@fluid-experimental/data-objects@fluid-experimental/devtools-core@fluid-experimental/experimental-fluidframework@fluid-experimental/fluid-static@fluid-experimental/ink@fluid-experimental/tree@fluid-experimental/tree-demo@fluid-experimental/tree-react-api@fluid-experimental/tree2@fluid-experimental/xtree@fluid-experimental/ot@fluid-experimental/pact-map@fluid-experimental/partial-checkout@fluid-experimental/presence@fluid-experimental/react@fluid-experimental/sequence-deprecated@fluid-experimental/sharejs-json1@fluid-experimental/task-manager@fluid-experimental/property-dds@fluid-experimental/property-inspector@fluid-experimental/attributable-map@fluid-experimental/attributor@fluid-experimental/bubblebench-baseline@fluid-experimental/bubblebench-common@fluid-experimental/bubblebench-ot@fluid-experimental/bubblebench-sharedtree@fluid-experimental/data-object-base@kurtb/fluid-prosemirror@kurtb/shared-text@zalastax/nolb-_flu@tylerbu/fluid-array-data-object
2.5.0-302463

29 days ago

2.4.0

1 month ago

2.3.1

2 months ago

2.2.2

2 months ago

2.1.2

2 months ago

2.4.0-299374

1 month ago

2.4.0-297027

2 months ago

2.4.0-297385

2 months ago

2.0.0-rc.5.0.8

2 months ago

2.0.9

2 months ago

2.4.0-299707

1 month ago

2.0.8

2 months ago

2.4.0-294316

2 months ago

2.3.0

2 months ago

2.2.1

2 months ago

2.1.1

2 months ago

2.0.7

2 months ago

2.1.0-281041

4 months ago

2.2.0

3 months ago

2.1.0

4 months ago

2.3.0-288113

3 months ago

2.0.0-rc.3.0.11

5 months ago

2.0.0-rc.3.0.10

5 months ago

2.1.0-276985

5 months ago

2.0.0-rc.4.0.10

4 months ago

2.0.0-rc.5.0.0

5 months ago

2.0.0-rc.5.0.2

5 months ago

2.0.0-rc.5.0.1

5 months ago

2.0.0-rc.5.0.4

5 months ago

2.0.0-rc.5.0.3

5 months ago

2.0.0-rc.5.0.6

5 months ago

2.0.0-rc.5.0.5

5 months ago

2.0.0-rc.5.0.7

4 months ago

2.1.0-276326

5 months ago

2.0.0-rc.4.0.9

5 months ago

2.0.0-rc.4.0.8

5 months ago

2.0.0-rc.4.0.7

5 months ago

2.0.0-rc.4.0.6

5 months ago

2.0.0-rc.4.0.5

6 months ago

2.0.0-rc.4.0.4

6 months ago

2.0.0-rc.4.0.3

6 months ago

2.0.0-rc.4.0.2

6 months ago

2.1.0-274160

5 months ago

2.0.3

5 months ago

2.0.2

5 months ago

2.0.5

5 months ago

2.0.4

5 months ago

2.0.6

4 months ago

2.0.1

5 months ago

2.0.0

5 months ago

2.0.0-rc.3.0.8

5 months ago

2.0.0-rc.3.0.7

6 months ago

2.0.0-rc.3.0.9

5 months ago

2.0.0-rc.3.0.4

6 months ago

2.0.0-rc.3.0.6

6 months ago

2.0.0-rc.3.0.5

6 months ago

2.0.0-rc.2.0.9

5 months ago

2.0.0-rc.2.0.8

6 months ago

2.0.0-rc.4.0.1

6 months ago

2.0.0-rc.4.0.0

6 months ago

2.0.0-rc.2.0.7

7 months ago

2.0.0-rc.3.0.3

7 months ago

2.0.0-rc.2.0.6

7 months ago

2.0.0-rc.2.0.5

7 months ago

2.0.0-rc.1.0.9

7 months ago

2.0.0-rc.3.0.2

7 months ago

2.0.0-rc.2.0.4

7 months ago

2.0.0-rc.2.0.3

7 months ago

2.0.0-rc.3.0.1

7 months ago

2.0.0-rc.3.0.0

7 months ago

1.4.0

8 months ago

2.0.0-rc.2.0.2

8 months ago

2.0.0-rc.1.0.8

8 months ago

2.0.0-rc.1.0.7

8 months ago

2.0.0-rc.1.0.6

8 months ago

2.0.0-rc.2.0.1

8 months ago

2.0.0-rc.1.0.5

8 months ago

2.0.0-rc.2.0.0

8 months ago

2.0.0-rc.1.0.4

9 months ago

2.0.0-rc.1.0.3

9 months ago

2.0.0-rc.1.0.2

10 months ago

2.0.0-rc.1.0.1

11 months ago

2.0.0-rc.1.0.0

11 months ago

1.3.7

1 year ago

1.3.6

2 years ago

1.3.5-121405

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.2.8

2 years ago

1.4.0-121020

2 years ago

1.4.0-111997

2 years ago

1.3.3

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.4.0-115997

2 years ago

1.3.2-112998

2 years ago

1.4.0-108057

2 years ago

1.4.0-106438

2 years ago

1.3.0-97515

2 years ago

1.3.0-100520

2 years ago

1.2.7

2 years ago

0.59.4003

2 years ago

1.2.6-93452

2 years ago

1.2.6

2 years ago

0.59.2004

2 years ago

1.2.0-77818

2 years ago

1.2.3-83900

2 years ago

1.1.0-76254

2 years ago

1.2.0

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0-78837

2 years ago

1.2.3-84921

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.1.0-75972

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

0.59.4002

2 years ago

0.59.1001

3 years ago

0.59.3000-67119

3 years ago

0.59.4000-71130

2 years ago

0.59.4000-71128

2 years ago

0.59.2002

3 years ago

0.59.2003

2 years ago

0.59.3003

2 years ago

0.59.3001

2 years ago

0.59.3002

2 years ago

0.59.3000

3 years ago

1.0.0

2 years ago

0.59.4000

2 years ago

0.59.4001

2 years ago

0.59.3000-66610

3 years ago

0.59.2001

3 years ago

0.59.2000-63294

3 years ago

0.59.2000

3 years ago

0.59.1001-62246

3 years ago

0.59.1000-61898

3 years ago

0.59.1000

3 years ago

0.59.2000-61729

3 years ago

0.58.3000-61081

3 years ago

0.56.11

3 years ago

0.56.10

3 years ago

0.58.2000-58133

3 years ago

0.58.2000

3 years ago

0.58.2002

3 years ago

0.58.2001

3 years ago

0.58.1000

3 years ago

0.58.1001

3 years ago

0.55.4

3 years ago

0.55.2

3 years ago

0.55.3

3 years ago

0.55.0

3 years ago

0.55.1

3 years ago

0.57.0-51086

3 years ago

0.56.5

3 years ago

0.56.6

3 years ago

0.56.3

3 years ago

0.56.4

3 years ago

0.56.1

3 years ago

0.56.2

3 years ago

0.56.0

3 years ago

0.56.9

3 years ago

0.56.7

3 years ago

0.56.8

3 years ago

0.58.0-55561

3 years ago

0.54.3

3 years ago

0.54.1

3 years ago

0.56.0-49831

3 years ago

0.54.2

3 years ago

0.54.0

3 years ago

0.55.0-48551

3 years ago

0.58.0-55983

3 years ago

0.54.0-47413

3 years ago

0.57.2

3 years ago

0.57.0

3 years ago

0.57.1

3 years ago

0.53.0

3 years ago

0.53.0-46105

3 years ago

0.52.0-44610

3 years ago

0.51.2

3 years ago

0.51.3

3 years ago

0.51.0

3 years ago

0.51.1

3 years ago

0.51.0-43124

3 years ago

0.52.1

3 years ago

0.52.0

3 years ago

0.50.3

3 years ago

0.50.4

3 years ago

0.50.2

3 years ago

0.50.1

3 years ago

0.50.0

3 years ago

0.50.0-41540

3 years ago

0.49.1

3 years ago

0.49.2

3 years ago

0.49.0

3 years ago

0.50.0-41365

3 years ago

0.48.5

3 years ago

0.49.0-39313

3 years ago

0.48.4

3 years ago

0.48.3

3 years ago

0.49.0-39015

3 years ago

0.48.2

3 years ago

0.48.1

3 years ago

0.48.0

3 years ago

0.48.0-38142

3 years ago

0.48.0-38105

3 years ago

0.46.2

3 years ago

0.47.1

3 years ago

0.47.0-36699

3 years ago

0.47.0

3 years ago

0.47.0-36362

3 years ago

0.46.1

3 years ago

0.47.0-35912

3 years ago

0.47.0-35961

3 years ago

0.46.0-34784

3 years ago

0.46.0

3 years ago

0.45.4

3 years ago

0.45.3

3 years ago

0.45.2

3 years ago

0.45.1

3 years ago

0.45.0

3 years ago

0.45.0-32948

3 years ago

0.44.1

3 years ago

0.39.8

3 years ago

0.44.0

3 years ago

0.39.7

3 years ago

0.44.0-30858

3 years ago

0.42.4

3 years ago

0.43.1

3 years ago

0.43.0

3 years ago

0.42.2

3 years ago

0.42.3

3 years ago

0.42.1

3 years ago

0.39.6

3 years ago

0.39.5

3 years ago

0.42.0-28410

3 years ago

0.42.0

3 years ago

0.41.3

3 years ago

0.41.4

3 years ago

0.41.2

3 years ago

0.42.0-27644

3 years ago

0.40.3

3 years ago

0.42.0-27549

3 years ago

0.42.0-27677

3 years ago

0.42.0-27683

3 years ago

0.41.1

3 years ago

0.41.0-27154

3 years ago

0.40.2

3 years ago

0.40.0

3 years ago

0.40.1

3 years ago

0.41.0

3 years ago

0.39.4

3 years ago

0.41.0-25957

3 years ago

0.40.0-25719

4 years ago

0.40.0-25851

3 years ago

0.38.2

4 years ago

0.38.1

4 years ago

0.38.4

4 years ago

0.38.3

4 years ago

0.39.0-23272

4 years ago

0.39.1

4 years ago

0.39.0

4 years ago

0.39.3

4 years ago

0.39.2

4 years ago

0.39.0-23254

4 years ago

0.38.0

4 years ago

0.38.0-22040

4 years ago

0.38.0-22000

4 years ago

0.38.0-21934

4 years ago

0.37.3-21287

4 years ago

0.37.4

4 years ago

0.37.3

4 years ago

0.37.2

4 years ago

0.37.1

4 years ago

0.37.0

4 years ago

0.37.0-20517

4 years ago

0.37.0-20427

4 years ago

0.36.2-20364

4 years ago

0.35.7-20343

4 years ago

0.36.1

4 years ago

0.35.5

4 years ago

0.35.6

4 years ago

0.36.0-18883

4 years ago

0.36.0

4 years ago

0.35.4

4 years ago

0.33.5

4 years ago

0.34.3

4 years ago

0.35.3

4 years ago

0.34.2

4 years ago

0.33.4

4 years ago

0.35.2

4 years ago

0.35.1

4 years ago

0.35.0

4 years ago

0.35.0-16887

4 years ago

0.35.0-16170

4 years ago

0.34.1

4 years ago

0.34.0

4 years ago

0.34.0-14942

4 years ago

0.33.3

4 years ago

0.32.5

4 years ago

0.32.4

4 years ago

0.33.2

4 years ago

0.33.1

4 years ago

0.33.0-13708

4 years ago

0.33.0

4 years ago

0.32.3

4 years ago

0.31.2

4 years ago

0.32.2

4 years ago

0.32.1

4 years ago

0.32.0

4 years ago

0.31.1

4 years ago

0.31.0

4 years ago

0.30.4

4 years ago

0.30.3

4 years ago

0.30.2

4 years ago

0.30.1

4 years ago

0.30.0

4 years ago

0.29.4

4 years ago

0.29.3

4 years ago

0.28.9

4 years ago

0.29.2

4 years ago

0.29.1

4 years ago

0.28.8

4 years ago

0.29.0

4 years ago

0.27.15

4 years ago

0.28.7

4 years ago

0.27.14

4 years ago

0.28.6

4 years ago

0.27.13

4 years ago

0.28.5

4 years ago

0.27.12

4 years ago

0.28.4

4 years ago

0.28.3

4 years ago

0.27.11

4 years ago

0.28.2

4 years ago

0.28.1

4 years ago

0.27.10

4 years ago

0.28.0

4 years ago

0.27.9

4 years ago

0.26.10

4 years ago

0.27.8

4 years ago

0.27.7

4 years ago

0.26.9

4 years ago

0.27.6

4 years ago

0.26.8

4 years ago

0.27.5

4 years ago

0.26.7

4 years ago

0.27.4

4 years ago

0.26.6

4 years ago

0.27.3

4 years ago

0.26.5

4 years ago

0.26.4

4 years ago

0.27.2

4 years ago

0.27.1

4 years ago

0.26.3

4 years ago

0.26.2

4 years ago

0.27.0

4 years ago

0.26.1

4 years ago

0.26.0

4 years ago

0.26.0-3177

4 years ago