@fluidframework/odsp-driver-definitions 2.0.0-dev-rc.3.0.0.254866 → 2.0.0-dev-rc.4.0.0.261659

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @fluidframework/odsp-driver-definitions
2
2
 
3
+ ## 2.0.0-rc.3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
8
+
9
+ Fluid Framework packages have been updated to use the [package.json "exports"
10
+ field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both
11
+ TypeScript types and implementation code.
12
+
13
+ This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
14
+
15
+ - `"moduleResolution": "Node16"` with `"module": "Node16"`
16
+ - `"moduleResolution": "Bundler"` with `"module": "ESNext"`
17
+
18
+ We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable
19
+ for use with modern versions of Node.js _and_ Bundlers.
20
+ [See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information
21
+ regarding the module and moduleResolution options.
22
+
23
+ **Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used
24
+ to distinguish stable APIs from those that are in development.**
25
+
3
26
  ## 2.0.0-rc.2.0.0
4
27
 
5
28
  ### Minor Changes
package/beta.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
10
+
11
+ export * from "./lib/beta.js";
package/dist/beta.d.ts CHANGED
@@ -7,7 +7,8 @@
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
8
  * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
9
  */
10
+
10
11
  export {
11
- // beta APIs
12
+ // @beta APIs
12
13
  TokenResponse
13
14
  } from "./index.js";
@@ -7,11 +7,12 @@
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
8
  * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
9
  */
10
+
10
11
  export {
11
- // beta APIs
12
+ // @beta APIs
12
13
  TokenResponse,
13
14
 
14
- // alpha APIs
15
+ // @alpha APIs
15
16
  CacheContentType,
16
17
  HostStoragePolicy,
17
18
  ICacheEntry,
package/dist/public.d.ts CHANGED
@@ -7,3 +7,6 @@
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
8
  * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
9
  */
10
+
11
+ export {}
12
+
package/internal.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
10
+
11
+ export * from "./lib/index.js";
package/legacy.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
10
+
11
+ export * from "./lib/legacy.js";
package/lib/beta.d.ts CHANGED
@@ -7,7 +7,8 @@
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
8
  * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
9
  */
10
+
10
11
  export {
11
- // beta APIs
12
+ // @beta APIs
12
13
  TokenResponse
13
14
  } from "./index.js";
@@ -7,11 +7,12 @@
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
8
  * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
9
  */
10
+
10
11
  export {
11
- // beta APIs
12
+ // @beta APIs
12
13
  TokenResponse,
13
14
 
14
- // alpha APIs
15
+ // @alpha APIs
15
16
  CacheContentType,
16
17
  HostStoragePolicy,
17
18
  ICacheEntry,
package/lib/public.d.ts CHANGED
@@ -7,3 +7,6 @@
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
8
  * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
9
  */
10
+
11
+ export {}
12
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/odsp-driver-definitions",
3
- "version": "2.0.0-dev-rc.3.0.0.254866",
3
+ "version": "2.0.0-dev-rc.4.0.0.261659",
4
4
  "description": "Socket storage implementation for SPO and ODC",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -33,13 +33,13 @@
33
33
  "default": "./dist/index.js"
34
34
  }
35
35
  },
36
- "./alpha": {
36
+ "./legacy": {
37
37
  "import": {
38
- "types": "./lib/alpha.d.ts",
38
+ "types": "./lib/legacy.d.ts",
39
39
  "default": "./lib/index.js"
40
40
  },
41
41
  "require": {
42
- "types": "./dist/alpha.d.ts",
42
+ "types": "./dist/legacy.d.ts",
43
43
  "default": "./dist/index.js"
44
44
  }
45
45
  },
@@ -54,19 +54,19 @@
54
54
  }
55
55
  }
56
56
  },
57
- "main": "dist/index.js",
58
- "types": "./dist/public.d.ts",
57
+ "main": "lib/index.js",
58
+ "types": "lib/public.d.ts",
59
59
  "dependencies": {
60
- "@fluidframework/driver-definitions": "2.0.0-dev-rc.3.0.0.254866"
60
+ "@fluidframework/driver-definitions": "2.0.0-dev-rc.4.0.0.261659"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@arethetypeswrong/cli": "^0.15.2",
64
64
  "@biomejs/biome": "^1.6.2",
65
- "@fluid-tools/build-cli": "^0.35.0",
65
+ "@fluid-tools/build-cli": "0.38.0-259537",
66
66
  "@fluidframework/build-common": "^2.0.3",
67
- "@fluidframework/build-tools": "^0.35.0",
67
+ "@fluidframework/build-tools": "0.38.0-259537",
68
68
  "@fluidframework/eslint-config-fluid": "^5.1.0",
69
- "@fluidframework/odsp-driver-definitions-previous": "npm:@fluidframework/odsp-driver-definitions@2.0.0-internal.8.0.0",
69
+ "@fluidframework/odsp-driver-definitions-previous": "npm:@fluidframework/odsp-driver-definitions@2.0.0-rc.3.0.0",
70
70
  "@fluidframework/protocol-definitions": "^3.2.0",
71
71
  "@microsoft/api-extractor": "^7.42.3",
72
72
  "copyfiles": "^2.4.1",
@@ -77,21 +77,12 @@
77
77
  "typescript": "~5.1.6"
78
78
  },
79
79
  "typeValidation": {
80
- "broken": {
81
- "RemovedEnumDeclaration_OdspErrorType": {
82
- "forwardCompat": false,
83
- "backCompat": false
84
- },
85
- "RemovedEnumDeclaration_ShareLinkTypes": {
86
- "backCompat": false,
87
- "forwardCompat": false
88
- }
89
- }
80
+ "broken": {}
90
81
  },
91
82
  "scripts": {
92
83
  "api": "fluid-build . --task api",
93
- "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
94
- "api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
84
+ "api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
85
+ "api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
95
86
  "build": "fluid-build . --task build",
96
87
  "build:commonjs": "fluid-build . --task commonjs",
97
88
  "build:compile": "fluid-build . --task compile",
@@ -100,11 +91,11 @@
100
91
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
101
92
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
102
93
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
103
- "check:are-the-types-wrong": "attw --pack . --entrypoints .",
94
+ "check:are-the-types-wrong": "attw --pack .",
104
95
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
105
96
  "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
106
97
  "ci:build:docs": "api-extractor run",
107
- "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
98
+ "clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
108
99
  "eslint": "eslint --format stylish src",
109
100
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
110
101
  "format": "fluid-build --task format .",
@@ -112,7 +103,7 @@
112
103
  "lint": "fluid-build . --task lint",
113
104
  "lint:fix": "fluid-build . --task eslint:fix --task format",
114
105
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
115
- "typetests:gen": "fluid-type-test-generator",
106
+ "typetests:gen": "flub generate typetests --dir . -v --publicFallback",
116
107
  "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
117
108
  }
118
109
  }