@fluidframework/runtime-definitions 2.0.0-internal.8.0.1 → 2.0.0-rc.1.0.1

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/runtime-definitions",
3
- "version": "2.0.0-internal.8.0.1",
3
+ "version": "2.0.0-rc.1.0.1",
4
4
  "description": "Fluid Runtime definitions",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -11,22 +11,45 @@
11
11
  "license": "MIT",
12
12
  "author": "Microsoft and contributors",
13
13
  "sideEffects": false,
14
+ "type": "commonjs",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
+ },
20
+ "./alpha": {
21
+ "types": "./dist/runtime-definitions-alpha.d.ts",
22
+ "default": "./dist/index.js"
23
+ },
24
+ "./beta": {
25
+ "types": "./dist/runtime-definitions-beta.d.ts",
26
+ "default": "./dist/index.js"
27
+ },
28
+ "./internal": {
29
+ "types": "./dist/index.d.ts",
30
+ "default": "./dist/index.js"
31
+ },
32
+ "./public": {
33
+ "types": "./dist/runtime-definitions-public.d.ts",
34
+ "default": "./dist/index.js"
35
+ }
36
+ },
14
37
  "main": "dist/index.js",
15
38
  "types": "dist/index.d.ts",
16
39
  "dependencies": {
17
- "@fluidframework/container-definitions": ">=2.0.0-internal.8.0.1 <2.0.0-internal.8.1.0",
18
- "@fluidframework/core-interfaces": ">=2.0.0-internal.8.0.1 <2.0.0-internal.8.1.0",
19
- "@fluidframework/driver-definitions": ">=2.0.0-internal.8.0.1 <2.0.0-internal.8.1.0",
20
- "@fluidframework/id-compressor": ">=2.0.0-internal.8.0.1 <2.0.0-internal.8.1.0",
21
- "@fluidframework/protocol-definitions": "^3.0.0"
40
+ "@fluidframework/container-definitions": ">=2.0.0-rc.1.0.1 <2.0.0-rc.1.1.0",
41
+ "@fluidframework/core-interfaces": ">=2.0.0-rc.1.0.1 <2.0.0-rc.1.1.0",
42
+ "@fluidframework/driver-definitions": ">=2.0.0-rc.1.0.1 <2.0.0-rc.1.1.0",
43
+ "@fluidframework/id-compressor": ">=2.0.0-rc.1.0.1 <2.0.0-rc.1.1.0",
44
+ "@fluidframework/protocol-definitions": "^3.1.0"
22
45
  },
23
46
  "devDependencies": {
24
47
  "@arethetypeswrong/cli": "^0.13.3",
25
- "@fluid-tools/build-cli": "^0.28.0",
48
+ "@fluid-tools/build-cli": "^0.29.0",
26
49
  "@fluidframework/build-common": "^2.0.3",
27
- "@fluidframework/build-tools": "^0.28.0",
28
- "@fluidframework/eslint-config-fluid": "^3.1.0",
29
- "@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.7.2.0",
50
+ "@fluidframework/build-tools": "^0.29.0",
51
+ "@fluidframework/eslint-config-fluid": "^3.2.0",
52
+ "@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.8.0.0",
30
53
  "@microsoft/api-extractor": "^7.38.3",
31
54
  "copyfiles": "^2.4.1",
32
55
  "eslint": "~8.50.0",
@@ -40,8 +63,7 @@
40
63
  "build:docs": {
41
64
  "dependsOn": [
42
65
  "...",
43
- "api-extractor:commonjs",
44
- "api-extractor:esnext"
66
+ "api-extractor:commonjs"
45
67
  ],
46
68
  "script": false
47
69
  }
@@ -49,51 +71,22 @@
49
71
  },
50
72
  "typeValidation": {
51
73
  "broken": {
52
- "TypeAliasDeclaration_IdCreationRangeWithStashedState": {
53
- "forwardCompat": false,
54
- "backCompat": false
55
- },
56
- "RemovedTypeAliasDeclaration_IdCreationRangeWithStashedState": {
57
- "forwardCompat": false,
58
- "backCompat": false
59
- },
60
- "InterfaceDeclaration_IdCreationRange": {
74
+ "InterfaceDeclaration_IIdCompressorCore": {
61
75
  "forwardCompat": false
62
76
  },
63
- "VariableDeclaration_initialClusterCapacity": {
64
- "backCompat": false,
77
+ "ClassDeclaration_IdCompressor": {
65
78
  "forwardCompat": false
66
- },
67
- "RemovedVariableDeclaration_initialClusterCapacity": {
68
- "forwardCompat": false,
69
- "backCompat": false
70
- },
71
- "InterfaceDeclaration_IContainerRuntimeBase": {
72
- "backCompat": false
73
- },
74
- "InterfaceDeclaration_IFluidDataStoreContext": {
75
- "backCompat": false
76
- },
77
- "InterfaceDeclaration_IFluidDataStoreContextDetached": {
78
- "backCompat": false
79
- },
80
- "InterfaceDeclaration_IDataStore": {
81
- "backCompat": false
82
- },
83
- "InterfaceDeclaration_IFluidDataStoreChannel": {
84
- "backCompat": false
85
79
  }
86
80
  }
87
81
  },
88
82
  "scripts": {
89
83
  "api": "fluid-build . --task api",
90
84
  "api-extractor:commonjs": "api-extractor run --local",
91
- "api-extractor:esnext": "copyfiles -u 1 \"dist/**/*-@(alpha|beta|public|untrimmed).d.ts\" lib",
92
85
  "build": "fluid-build . --task build",
93
86
  "build:compile": "fluid-build . --task compile",
94
87
  "build:docs": "fluid-build . --task api",
95
88
  "build:test": "tsc --project ./src/test/tsconfig.json",
96
- "check:are-the-types-wrong": "attw --pack",
89
+ "check:are-the-types-wrong": "attw --pack . --entrypoints .",
97
90
  "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
98
91
  "ci:build:docs": "api-extractor run",
99
92
  "clean": "rimraf --glob dist \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
@@ -481,6 +481,9 @@ export interface IFluidDataStoreContext
481
481
  getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
482
482
 
483
483
  /**
484
+ * @deprecated There is no replacement for this, its functionality is no longer needed at this layer.
485
+ * It will be removed in a future release, sometime after 2.0.0-internal.8.0.0
486
+ *
484
487
  * Called when a new outbound reference is added to another node. This is used by garbage collection to identify
485
488
  * all references added in the system.
486
489
  * @param srcHandle - The handle of the node that added the reference.
@@ -31,7 +31,7 @@ export const gcDeletedBlobKey = "__deletedNodes";
31
31
  /**
32
32
  * Garbage collection data returned by nodes in a Container.
33
33
  * Used for running GC in the Container.
34
- * @alpha
34
+ * @public
35
35
  */
36
36
  export interface IGarbageCollectionData {
37
37
  /**
package/src/protocol.ts CHANGED
@@ -7,7 +7,7 @@ import { ISignalMessage, ITree } from "@fluidframework/protocol-definitions";
7
7
 
8
8
  /**
9
9
  * An envelope wraps the contents with the intended target
10
- * @internal
10
+ * @alpha
11
11
  */
12
12
  export interface IEnvelope {
13
13
  /**
@@ -46,7 +46,7 @@ export interface ISignalEnvelope {
46
46
 
47
47
  /**
48
48
  * Represents ISignalMessage with its type.
49
- * @alpha
49
+ * @public
50
50
  */
51
51
  export interface IInboundSignalMessage extends ISignalMessage {
52
52
  type: string;
@@ -55,7 +55,7 @@ export interface IInboundSignalMessage extends ISignalMessage {
55
55
  /**
56
56
  * Message send by client attaching local data structure.
57
57
  * Contains snapshot of data structure which is the current state of this data structure.
58
- * @internal
58
+ * @alpha
59
59
  */
60
60
  export interface IAttachMessage {
61
61
  /**
@@ -79,7 +79,7 @@ export interface IAttachMessage {
79
79
  * but it should not be used when creating a new attach op.
80
80
  * Older versions of attach messages could have null snapshots,
81
81
  * so this gives correct typings for writing backward compatible code.
82
- * @internal
82
+ * @alpha
83
83
  */
84
84
  export type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
85
85
  snapshot: IAttachMessage["snapshot"] | null;
package/src/summary.ts CHANGED
@@ -15,7 +15,7 @@ import { IGarbageCollectionData, IGarbageCollectionDetailsBase } from "./garbage
15
15
 
16
16
  /**
17
17
  * Contains the aggregation data from a Tree/Subtree.
18
- * @alpha
18
+ * @public
19
19
  */
20
20
  export interface ISummaryStats {
21
21
  treeNodeCount: number;
@@ -31,7 +31,7 @@ export interface ISummaryStats {
31
31
  * each of its DDS.
32
32
  * Any component that implements IChannelContext, IFluidDataStoreChannel or extends SharedObject
33
33
  * will be taking part of the summarization process.
34
- * @alpha
34
+ * @public
35
35
  */
36
36
  export interface ISummaryTreeWithStats {
37
37
  /**
@@ -81,7 +81,7 @@ export interface ISummarizeInternalResult extends ISummarizeResult {
81
81
  /**
82
82
  * @experimental - Can be deleted/changed at any time
83
83
  * Contains the necessary information to allow DDSes to do incremental summaries
84
- * @alpha
84
+ * @public
85
85
  */
86
86
  export interface IExperimentalIncrementalSummaryContext {
87
87
  /**
@@ -330,7 +330,7 @@ export const channelsTreeName = ".channels";
330
330
  /**
331
331
  * Contains telemetry data relevant to summarization workflows.
332
332
  * This object is expected to be modified directly by various summarize methods.
333
- * @alpha
333
+ * @public
334
334
  */
335
335
  export interface ITelemetryContext {
336
336
  /**
package/tsconfig.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
- "extends": "@fluidframework/build-common/ts-common-config.json",
2
+ "extends": [
3
+ "../../../common/build/build-common/tsconfig.base.json",
4
+ "../../../common/build/build-common/tsconfig.esm-only.json",
5
+ ],
6
+ "include": ["src/**/*"],
3
7
  "exclude": ["src/test/**/*"],
4
8
  "compilerOptions": {
5
9
  "rootDir": "./src",
6
10
  "outDir": "./dist",
7
- "composite": true,
8
11
  },
9
- "include": ["src/**/*"],
10
12
  }