@fluidframework/cell 2.0.0-internal.7.3.0 → 2.0.0-internal.8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/cell",
3
- "version": "2.0.0-internal.7.3.0",
3
+ "version": "2.0.0-internal.8.0.0",
4
4
  "description": "Distributed data structure for a single value",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -11,18 +11,6 @@
11
11
  "license": "MIT",
12
12
  "author": "Microsoft and contributors",
13
13
  "sideEffects": false,
14
- "exports": {
15
- ".": {
16
- "import": {
17
- "types": "./lib/index.d.ts",
18
- "default": "./lib/index.mjs"
19
- },
20
- "require": {
21
- "types": "./dist/index.d.ts",
22
- "default": "./dist/index.cjs"
23
- }
24
- }
25
- },
26
14
  "main": "dist/index.cjs",
27
15
  "module": "lib/index.mjs",
28
16
  "types": "dist/index.d.ts",
@@ -47,26 +35,27 @@
47
35
  "temp-directory": "nyc/.nyc_output"
48
36
  },
49
37
  "dependencies": {
50
- "@fluidframework/core-interfaces": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
51
- "@fluidframework/core-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
52
- "@fluidframework/datastore-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
53
- "@fluidframework/driver-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
38
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
39
+ "@fluidframework/core-utils": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
40
+ "@fluidframework/datastore-definitions": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
41
+ "@fluidframework/driver-utils": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
54
42
  "@fluidframework/protocol-definitions": "^3.0.0",
55
- "@fluidframework/runtime-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
56
- "@fluidframework/shared-object-base": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0"
43
+ "@fluidframework/runtime-definitions": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
44
+ "@fluidframework/shared-object-base": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0"
57
45
  },
58
46
  "devDependencies": {
59
- "@fluid-private/test-dds-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
47
+ "@arethetypeswrong/cli": "^0.13.3",
48
+ "@fluid-private/test-dds-utils": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
60
49
  "@fluid-tools/build-cli": "^0.28.0",
61
50
  "@fluidframework/build-common": "^2.0.3",
62
51
  "@fluidframework/build-tools": "^0.28.0",
63
52
  "@fluidframework/cell-previous": "npm:@fluidframework/cell@2.0.0-internal.7.2.0",
64
53
  "@fluidframework/eslint-config-fluid": "^3.1.0",
65
- "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
66
- "@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
54
+ "@fluidframework/mocha-test-setup": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
55
+ "@fluidframework/test-runtime-utils": ">=2.0.0-internal.8.0.0 <2.0.0-internal.8.1.0",
67
56
  "@microsoft/api-extractor": "^7.38.3",
68
57
  "@types/mocha": "^9.1.1",
69
- "@types/node": "^16.18.38",
58
+ "@types/node": "^18.19.0",
70
59
  "c8": "^7.7.1",
71
60
  "copyfiles": "^2.4.1",
72
61
  "cross-env": "^7.0.3",
@@ -106,15 +95,17 @@
106
95
  "build:esnext": "tsc-multi --config ../../../common/build/build-common/tsc-multi.esm.json",
107
96
  "build:genver": "gen-version",
108
97
  "build:test": "tsc-multi --config ./tsc-multi.test.json",
98
+ "check:are-the-types-wrong": "attw --pack",
99
+ "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
109
100
  "ci:build:docs": "api-extractor run",
110
101
  "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
111
102
  "eslint": "eslint --format stylish src",
112
103
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
113
104
  "format": "npm run prettier:fix",
114
- "lint": "npm run prettier && npm run eslint",
105
+ "lint": "npm run prettier && npm run check:release-tags && npm run eslint",
115
106
  "lint:fix": "npm run prettier:fix && npm run eslint:fix",
116
- "prettier": "prettier --check . --ignore-path ../../../.prettierignore",
117
- "prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
107
+ "prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
108
+ "prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
118
109
  "test": "npm run test:mocha",
119
110
  "test:coverage": "c8 npm test",
120
111
  "test:mocha": "mocha --ignore \"dist/test/types/*\" --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup",
package/src/cell.ts CHANGED
@@ -60,8 +60,7 @@ const snapshotFileName = "header";
60
60
 
61
61
  /**
62
62
  * {@inheritDoc ISharedCell}
63
- *
64
- * @public
63
+ * @internal
65
64
  */
66
65
  // TODO: use `unknown` instead (breaking change).
67
66
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -187,7 +186,6 @@ export class SharedCell<T = any>
187
186
 
188
187
  /**
189
188
  * {@inheritDoc ISharedCell.getAttribution}
190
- * @alpha
191
189
  */
192
190
  public getAttribution(): AttributionKey | undefined {
193
191
  return this.attribution;
@@ -345,8 +343,6 @@ export class SharedCell<T = any>
345
343
 
346
344
  /**
347
345
  * {@inheritDoc @fluidframework/shared-object-base#SharedObjectCore.applyStashedOp}
348
- *
349
- * @internal
350
346
  */
351
347
  protected applyStashedOp(content: unknown): unknown {
352
348
  const cellContent = content as ICellOperation;
package/src/interfaces.ts CHANGED
@@ -9,8 +9,7 @@ import { type AttributionKey } from "@fluidframework/runtime-definitions";
9
9
 
10
10
  /**
11
11
  * Events emitted by {@link ISharedCell}.
12
- *
13
- * @public
12
+ * @internal
14
13
  */
15
14
  export interface ISharedCellEvents<T> extends ISharedObjectEvents {
16
15
  /**
@@ -75,8 +74,7 @@ export interface ISharedCellEvents<T> extends ISharedObjectEvents {
75
74
  * `SharedCell` is an `EventEmitter`, and will emit events when other clients make modifications. You should
76
75
  * register for these events and respond appropriately as the data is modified. `valueChanged` will be emitted
77
76
  * in response to a `set`, and `delete` will be emitted in response to a `delete`.
78
- *
79
- * @public
77
+ * @internal
80
78
  */
81
79
  // TODO: use `unknown` instead (breaking change).
82
80
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -108,7 +106,6 @@ export interface ISharedCell<T = any> extends ISharedObject<ISharedCellEvents<T>
108
106
  delete(): void;
109
107
 
110
108
  /**
111
- * @alpha
112
109
  * @returns the AttributionKey associated with the cell's most recent change.
113
110
  */
114
111
  getAttribution(): AttributionKey | undefined;
@@ -133,8 +130,7 @@ export interface ICellLocalOpMetadata<T = any> {
133
130
 
134
131
  /**
135
132
  * Options related to attribution
136
- *
137
- * @alpha
133
+ * @internal
138
134
  */
139
135
  export interface ICellOptions {
140
136
  attribution?: ICellAttributionOptions;
@@ -145,8 +141,7 @@ export interface ICellOptions {
145
141
  * (i.e. who creeated the content and when it was created)
146
142
  *
147
143
  * default: false
148
- *
149
- * @alpha
144
+ * @internal
150
145
  */
151
146
  export interface ICellAttributionOptions {
152
147
  track?: boolean;
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/cell";
9
- export const pkgVersion = "2.0.0-internal.7.3.0";
9
+ export const pkgVersion = "2.0.0-internal.8.0.0";