@fluidframework/tool-utils 2.0.0-dev-rc.3.0.0.254674 → 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/tool-utils
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
  Dependency updates only.
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/tool-utils";
8
- export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.254674";
8
+ export declare const pkgVersion = "2.0.0-dev-rc.4.0.0.261659";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/tool-utils";
11
- exports.pkgVersion = "2.0.0-dev-rc.3.0.0.254674";
11
+ exports.pkgVersion = "2.0.0-dev-rc.4.0.0.261659";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/tool-utils\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.254674\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/tool-utils\";\nexport const pkgVersion = \"2.0.0-dev-rc.4.0.0.261659\";\n"]}
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";
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/tool-utils";
8
- export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.254674";
8
+ export declare const pkgVersion = "2.0.0-dev-rc.4.0.0.261659";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/tool-utils";
8
- export const pkgVersion = "2.0.0-dev-rc.3.0.0.254674";
8
+ export const pkgVersion = "2.0.0-dev-rc.4.0.0.261659";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,4BAA4B,CAAC;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/tool-utils\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.254674\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,4BAA4B,CAAC;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/tool-utils\";\nexport const pkgVersion = \"2.0.0-dev-rc.4.0.0.261659\";\n"]}
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/tool-utils",
3
- "version": "2.0.0-dev-rc.3.0.0.254674",
3
+ "version": "2.0.0-dev-rc.4.0.0.261659",
4
4
  "description": "Common utilities for Fluid tools",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -34,8 +34,8 @@
34
34
  }
35
35
  }
36
36
  },
37
- "main": "dist/index.js",
38
- "types": "./dist/public.d.ts",
37
+ "main": "lib/index.js",
38
+ "types": "lib/public.d.ts",
39
39
  "c8": {
40
40
  "all": true,
41
41
  "cache-dir": "nyc/.cache",
@@ -57,9 +57,9 @@
57
57
  "temp-directory": "nyc/.nyc_output"
58
58
  },
59
59
  "dependencies": {
60
- "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254674",
61
- "@fluidframework/driver-utils": "2.0.0-dev-rc.3.0.0.254674",
62
- "@fluidframework/odsp-doclib-utils": "2.0.0-dev-rc.3.0.0.254674",
60
+ "@fluidframework/core-utils": "2.0.0-dev-rc.4.0.0.261659",
61
+ "@fluidframework/driver-utils": "2.0.0-dev-rc.4.0.0.261659",
62
+ "@fluidframework/odsp-doclib-utils": "2.0.0-dev-rc.4.0.0.261659",
63
63
  "@fluidframework/protocol-definitions": "^3.2.0",
64
64
  "async-mutex": "^0.3.1",
65
65
  "debug": "^4.3.4",
@@ -69,12 +69,12 @@
69
69
  "devDependencies": {
70
70
  "@arethetypeswrong/cli": "^0.15.2",
71
71
  "@biomejs/biome": "^1.6.2",
72
- "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254674",
73
- "@fluid-tools/build-cli": "^0.35.0",
72
+ "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.4.0.0.261659",
73
+ "@fluid-tools/build-cli": "0.38.0-259537",
74
74
  "@fluidframework/build-common": "^2.0.3",
75
- "@fluidframework/build-tools": "^0.35.0",
75
+ "@fluidframework/build-tools": "0.38.0-259537",
76
76
  "@fluidframework/eslint-config-fluid": "^5.1.0",
77
- "@fluidframework/tool-utils-previous": "npm:@fluidframework/tool-utils@2.0.0-internal.8.0.0",
77
+ "@fluidframework/tool-utils-previous": "npm:@fluidframework/tool-utils@2.0.0-rc.3.0.0",
78
78
  "@microsoft/api-extractor": "^7.42.3",
79
79
  "@types/debug": "^4.1.5",
80
80
  "@types/mocha": "^9.1.1",
@@ -96,8 +96,8 @@
96
96
  },
97
97
  "scripts": {
98
98
  "api": "fluid-build . --task api",
99
- "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
100
- "api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
99
+ "api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
100
+ "api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
101
101
  "build": "fluid-build . --task build",
102
102
  "build:commonjs": "fluid-build . --task commonjs",
103
103
  "build:compile": "fluid-build . --task compile",
@@ -107,11 +107,11 @@
107
107
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
108
108
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
109
109
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
110
- "check:are-the-types-wrong": "attw --pack . --entrypoints .",
110
+ "check:are-the-types-wrong": "attw --pack .",
111
111
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
112
112
  "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
113
113
  "ci:build:docs": "api-extractor run",
114
- "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
114
+ "clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
115
115
  "eslint": "eslint --format stylish src",
116
116
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
117
117
  "format": "fluid-build --task format .",
@@ -125,7 +125,7 @@
125
125
  "test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit",
126
126
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
127
127
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
128
- "typetests:gen": "fluid-type-test-generator",
128
+ "typetests:gen": "flub generate typetests --dir . -v --publicFallback",
129
129
  "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
130
130
  }
131
131
  }
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/tool-utils";
9
- export const pkgVersion = "2.0.0-dev-rc.3.0.0.254674";
9
+ export const pkgVersion = "2.0.0-dev-rc.4.0.0.261659";
package/dist/beta.d.ts DELETED
@@ -1,9 +0,0 @@
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
- */
package/lib/alpha.d.ts DELETED
@@ -1,9 +0,0 @@
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
- */
package/lib/beta.d.ts DELETED
@@ -1,9 +0,0 @@
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
- */