@fluid-experimental/oldest-client-observer 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
|
# @fluid-experimental/oldest-client-observer
|
|
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.
|
|
@@ -7,8 +7,9 @@
|
|
|
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
|
IOldestClientObservable,
|
|
13
14
|
IOldestClientObservableEvents,
|
|
14
15
|
IOldestClientObserver,
|
package/dist/public.d.ts
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
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
|
IOldestClientObservable,
|
|
13
14
|
IOldestClientObservableEvents,
|
|
14
15
|
IOldestClientObserver,
|
package/lib/public.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/oldest-client-observer",
|
|
3
|
-
"version": "2.0.0-dev-rc.
|
|
3
|
+
"version": "2.0.0-dev-rc.4.0.0.261659",
|
|
4
4
|
"description": "Data object to determine if the local client is the oldest amongst connected clients",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"default": "./dist/index.js"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
"./
|
|
26
|
+
"./legacy": {
|
|
27
27
|
"import": {
|
|
28
|
-
"types": "./lib/
|
|
28
|
+
"types": "./lib/legacy.d.ts",
|
|
29
29
|
"default": "./lib/index.js"
|
|
30
30
|
},
|
|
31
31
|
"require": {
|
|
32
|
-
"types": "./dist/
|
|
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": "
|
|
48
|
-
"types": "
|
|
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,19 +67,19 @@
|
|
|
67
67
|
"temp-directory": "nyc/.nyc_output"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@fluid-internal/client-utils": "2.0.0-dev-rc.
|
|
71
|
-
"@fluidframework/container-definitions": "2.0.0-dev-rc.
|
|
72
|
-
"@fluidframework/core-interfaces": "2.0.0-dev-rc.
|
|
73
|
-
"@fluidframework/core-utils": "2.0.0-dev-rc.
|
|
70
|
+
"@fluid-internal/client-utils": "2.0.0-dev-rc.4.0.0.261659",
|
|
71
|
+
"@fluidframework/container-definitions": "2.0.0-dev-rc.4.0.0.261659",
|
|
72
|
+
"@fluidframework/core-interfaces": "2.0.0-dev-rc.4.0.0.261659",
|
|
73
|
+
"@fluidframework/core-utils": "2.0.0-dev-rc.4.0.0.261659",
|
|
74
74
|
"@fluidframework/protocol-definitions": "^3.2.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
78
78
|
"@biomejs/biome": "^1.6.2",
|
|
79
|
-
"@fluid-private/test-dds-utils": "2.0.0-dev-rc.
|
|
80
|
-
"@fluid-tools/build-cli": "
|
|
79
|
+
"@fluid-private/test-dds-utils": "2.0.0-dev-rc.4.0.0.261659",
|
|
80
|
+
"@fluid-tools/build-cli": "0.38.0-259537",
|
|
81
81
|
"@fluidframework/build-common": "^2.0.3",
|
|
82
|
-
"@fluidframework/build-tools": "
|
|
82
|
+
"@fluidframework/build-tools": "0.38.0-259537",
|
|
83
83
|
"@fluidframework/eslint-config-fluid": "^5.1.0",
|
|
84
84
|
"@microsoft/api-extractor": "^7.42.3",
|
|
85
85
|
"@types/node": "^18.19.0",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"fluidBuild": {
|
|
94
94
|
"tasks": {
|
|
95
95
|
"tsc": [
|
|
96
|
-
"...",
|
|
97
96
|
"typetests:gen"
|
|
98
97
|
]
|
|
99
98
|
}
|
|
@@ -104,18 +103,18 @@
|
|
|
104
103
|
},
|
|
105
104
|
"scripts": {
|
|
106
105
|
"api": "fluid-build . --task api",
|
|
107
|
-
"api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
|
|
108
|
-
"api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
|
|
106
|
+
"api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
|
|
107
|
+
"api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
|
|
109
108
|
"build": "fluid-build . --task build",
|
|
110
109
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
111
110
|
"build:compile": "fluid-build . --task compile",
|
|
112
111
|
"build:docs": "api-extractor run --local",
|
|
113
112
|
"build:esnext": "tsc --project ./tsconfig.json",
|
|
114
|
-
"check:are-the-types-wrong": "attw --pack .
|
|
113
|
+
"check:are-the-types-wrong": "attw --pack .",
|
|
115
114
|
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
116
115
|
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
117
116
|
"ci:build:docs": "api-extractor run",
|
|
118
|
-
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
|
117
|
+
"clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
|
119
118
|
"eslint": "eslint --format stylish src",
|
|
120
119
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
121
120
|
"format": "fluid-build --task format .",
|
|
@@ -123,7 +122,7 @@
|
|
|
123
122
|
"lint": "fluid-build . --task lint",
|
|
124
123
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
125
124
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
126
|
-
"typetests:gen": "
|
|
125
|
+
"typetests:gen": "flub generate typetests --dir . -v --publicFallback",
|
|
127
126
|
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
128
127
|
}
|
|
129
128
|
}
|