@fluidframework/request-handler 2.0.0-dev-rc.3.0.0.254866 → 2.0.0-dev-rc.5.0.0.263932

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,32 @@
1
1
  # @fluidframework/request-handler
2
2
 
3
+ ## 2.0.0-rc.4.0.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-rc.3.0.0
8
+
9
+ ### Major Changes
10
+
11
+ - Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
12
+
13
+ Fluid Framework packages have been updated to use the [package.json "exports"
14
+ field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both
15
+ TypeScript types and implementation code.
16
+
17
+ This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
18
+
19
+ - `"moduleResolution": "Node16"` with `"module": "Node16"`
20
+ - `"moduleResolution": "Bundler"` with `"module": "ESNext"`
21
+
22
+ We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable
23
+ for use with modern versions of Node.js _and_ Bundlers.
24
+ [See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information
25
+ regarding the module and moduleResolution options.
26
+
27
+ **Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used
28
+ to distinguish stable APIs from those that are in development.**
29
+
3
30
  ## 2.0.0-rc.2.0.0
4
31
 
5
32
  Dependency updates only.
@@ -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
- // alpha APIs
12
+ // @alpha APIs
12
13
  RuntimeRequestHandler
13
14
  } from "./index.js";
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
+
@@ -7,3 +7,5 @@
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 * from "./lib/index.js";
@@ -7,3 +7,5 @@
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 * from "./lib/legacy.js";
@@ -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
- // alpha APIs
12
+ // @alpha APIs
12
13
  RuntimeRequestHandler
13
14
  } from "./index.js";
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
+
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.42.3"
8
+ "packageVersion": "7.43.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/request-handler",
3
- "version": "2.0.0-dev-rc.3.0.0.254866",
3
+ "version": "2.0.0-dev-rc.5.0.0.263932",
4
4
  "description": "A simple request handling library for Fluid Framework",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -23,13 +23,13 @@
23
23
  "default": "./dist/index.js"
24
24
  }
25
25
  },
26
- "./alpha": {
26
+ "./legacy": {
27
27
  "import": {
28
- "types": "./lib/alpha.d.ts",
28
+ "types": "./lib/legacy.d.ts",
29
29
  "default": "./lib/index.js"
30
30
  },
31
31
  "require": {
32
- "types": "./dist/alpha.d.ts",
32
+ "types": "./dist/legacy.d.ts",
33
33
  "default": "./dist/index.js"
34
34
  }
35
35
  },
@@ -44,8 +44,8 @@
44
44
  }
45
45
  }
46
46
  },
47
- "main": "dist/index.js",
48
- "types": "./dist/public.d.ts",
47
+ "main": "lib/index.js",
48
+ "types": "lib/public.d.ts",
49
49
  "c8": {
50
50
  "all": true,
51
51
  "cache-dir": "nyc/.cache",
@@ -67,22 +67,22 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.3.0.0.254866",
71
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254866",
72
- "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254866",
73
- "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.254866",
74
- "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.254866"
70
+ "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.5.0.0.263932",
71
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.5.0.0.263932",
72
+ "@fluidframework/core-utils": "2.0.0-dev-rc.5.0.0.263932",
73
+ "@fluidframework/runtime-definitions": "2.0.0-dev-rc.5.0.0.263932",
74
+ "@fluidframework/runtime-utils": "2.0.0-dev-rc.5.0.0.263932"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@arethetypeswrong/cli": "^0.15.2",
78
78
  "@biomejs/biome": "^1.6.2",
79
- "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254866",
80
- "@fluid-tools/build-cli": "^0.35.0",
79
+ "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.5.0.0.263932",
80
+ "@fluid-tools/build-cli": "^0.38.0",
81
81
  "@fluidframework/build-common": "^2.0.3",
82
- "@fluidframework/build-tools": "^0.35.0",
82
+ "@fluidframework/build-tools": "^0.38.0",
83
83
  "@fluidframework/eslint-config-fluid": "^5.1.0",
84
- "@fluidframework/request-handler-previous": "npm:@fluidframework/request-handler@2.0.0-internal.8.0.0",
85
- "@microsoft/api-extractor": "^7.42.3",
84
+ "@fluidframework/request-handler-previous": "npm:@fluidframework/request-handler@2.0.0-rc.3.0.0",
85
+ "@microsoft/api-extractor": "^7.43.1",
86
86
  "@types/diff": "^3.5.1",
87
87
  "@types/mocha": "^9.1.1",
88
88
  "@types/node": "^18.19.0",
@@ -104,8 +104,8 @@
104
104
  },
105
105
  "scripts": {
106
106
  "api": "fluid-build . --task api",
107
- "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
108
- "api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
107
+ "api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
108
+ "api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
109
109
  "build": "fluid-build . --task build",
110
110
  "build:commonjs": "fluid-build . --task commonjs",
111
111
  "build:compile": "fluid-build . --task compile",
@@ -114,11 +114,11 @@
114
114
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
115
115
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
116
116
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
117
- "check:are-the-types-wrong": "attw --pack . --entrypoints .",
117
+ "check:are-the-types-wrong": "attw --pack .",
118
118
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
119
119
  "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
120
120
  "ci:build:docs": "api-extractor run",
121
- "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
121
+ "clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
122
122
  "eslint": "eslint --format stylish src",
123
123
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
124
124
  "format": "fluid-build --task format .",
@@ -132,7 +132,7 @@
132
132
  "test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit",
133
133
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
134
134
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
135
- "typetests:gen": "fluid-type-test-generator",
135
+ "typetests:gen": "flub generate typetests --dir . -v --publicFallback",
136
136
  "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
137
137
  }
138
138
  }