@fluidframework/core-interfaces 2.23.0 → 2.31.0
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/.eslintrc.cjs +19 -1
- package/CHANGELOG.md +162 -154
- package/api-extractor/api-extractor-lint-bundle.json +1 -1
- package/dist/exposedInternalUtilityTypes.d.ts +547 -0
- package/dist/exposedInternalUtilityTypes.d.ts.map +1 -0
- package/dist/exposedInternalUtilityTypes.js +11 -0
- package/dist/exposedInternalUtilityTypes.js.map +1 -0
- package/dist/exposedUtilityTypes.d.ts +10 -0
- package/dist/exposedUtilityTypes.d.ts.map +1 -0
- package/dist/exposedUtilityTypes.js +7 -0
- package/dist/exposedUtilityTypes.js.map +1 -0
- package/dist/internal.d.ts +34 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +23 -0
- package/dist/internal.js.map +1 -0
- package/dist/jsonDeserialized.d.ts +112 -0
- package/dist/jsonDeserialized.d.ts.map +1 -0
- package/dist/jsonDeserialized.js +7 -0
- package/dist/jsonDeserialized.js.map +1 -0
- package/dist/jsonSerializable.d.ts +126 -0
- package/dist/jsonSerializable.d.ts.map +1 -0
- package/dist/jsonSerializable.js +7 -0
- package/dist/jsonSerializable.js.map +1 -0
- package/dist/jsonSerializationErrors.d.ts +31 -0
- package/dist/jsonSerializationErrors.d.ts.map +1 -0
- package/dist/jsonSerializationErrors.js +7 -0
- package/dist/jsonSerializationErrors.js.map +1 -0
- package/dist/jsonType.d.ts +30 -0
- package/dist/jsonType.d.ts.map +1 -0
- package/dist/jsonType.js +7 -0
- package/dist/jsonType.js.map +1 -0
- package/dist/package.json +16 -1
- package/{prettier.config.cjs → internal/exposedUtilityTypes.d.ts} +1 -3
- package/internal.d.ts +1 -6
- package/lib/exposedInternalUtilityTypes.d.ts +547 -0
- package/lib/exposedInternalUtilityTypes.d.ts.map +1 -0
- package/lib/exposedInternalUtilityTypes.js +10 -0
- package/lib/exposedInternalUtilityTypes.js.map +1 -0
- package/lib/exposedUtilityTypes.d.ts +10 -0
- package/lib/exposedUtilityTypes.d.ts.map +1 -0
- package/lib/exposedUtilityTypes.js +6 -0
- package/lib/exposedUtilityTypes.js.map +1 -0
- package/lib/internal.d.ts +34 -0
- package/lib/internal.d.ts.map +1 -0
- package/lib/internal.js +7 -0
- package/lib/internal.js.map +1 -0
- package/lib/jsonDeserialized.d.ts +112 -0
- package/lib/jsonDeserialized.d.ts.map +1 -0
- package/lib/jsonDeserialized.js +6 -0
- package/lib/jsonDeserialized.js.map +1 -0
- package/lib/jsonSerializable.d.ts +126 -0
- package/lib/jsonSerializable.d.ts.map +1 -0
- package/lib/jsonSerializable.js +6 -0
- package/lib/jsonSerializable.js.map +1 -0
- package/lib/jsonSerializationErrors.d.ts +31 -0
- package/lib/jsonSerializationErrors.d.ts.map +1 -0
- package/lib/jsonSerializationErrors.js +6 -0
- package/lib/jsonSerializationErrors.js.map +1 -0
- package/lib/jsonType.d.ts +30 -0
- package/lib/jsonType.d.ts.map +1 -0
- package/lib/jsonType.js +6 -0
- package/lib/jsonType.js.map +1 -0
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +51 -13
- package/src/cjs/package.json +19 -0
- package/src/exposedInternalUtilityTypes.ts +1152 -0
- package/src/exposedUtilityTypes.ts +20 -0
- package/src/internal.ts +73 -0
- package/src/jsonDeserialized.ts +118 -0
- package/src/jsonSerializable.ts +133 -0
- package/src/jsonSerializationErrors.ts +34 -0
- package/src/jsonType.ts +37 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/core-interfaces",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.0",
|
|
4
4
|
"description": "Fluid object interfaces",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -35,34 +35,69 @@
|
|
|
35
35
|
},
|
|
36
36
|
"./internal": {
|
|
37
37
|
"import": {
|
|
38
|
-
"types": "./lib/
|
|
38
|
+
"types": "./lib/internal.d.ts",
|
|
39
39
|
"default": "./lib/index.js"
|
|
40
40
|
},
|
|
41
41
|
"require": {
|
|
42
|
-
"types": "./dist/
|
|
42
|
+
"types": "./dist/internal.d.ts",
|
|
43
43
|
"default": "./dist/index.js"
|
|
44
44
|
}
|
|
45
|
+
},
|
|
46
|
+
"./internal/exposedUtilityTypes": {
|
|
47
|
+
"import": "./lib/exposedUtilityTypes.js",
|
|
48
|
+
"require": "./dist/exposedUtilityTypes.js"
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
"main": "lib/index.js",
|
|
48
52
|
"types": "lib/public.d.ts",
|
|
53
|
+
"c8": {
|
|
54
|
+
"all": true,
|
|
55
|
+
"cache-dir": "nyc/.cache",
|
|
56
|
+
"exclude": [
|
|
57
|
+
"src/test/**/*.*ts",
|
|
58
|
+
"lib/test/**/*.*js"
|
|
59
|
+
],
|
|
60
|
+
"exclude-after-remap": false,
|
|
61
|
+
"include": [
|
|
62
|
+
"src/**/*.*ts",
|
|
63
|
+
"lib/**/*.*js"
|
|
64
|
+
],
|
|
65
|
+
"report-dir": "nyc/report",
|
|
66
|
+
"reporter": [
|
|
67
|
+
"cobertura",
|
|
68
|
+
"html",
|
|
69
|
+
"text"
|
|
70
|
+
],
|
|
71
|
+
"temp-directory": "nyc/.nyc_output"
|
|
72
|
+
},
|
|
49
73
|
"devDependencies": {
|
|
50
74
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
51
75
|
"@biomejs/biome": "~1.9.3",
|
|
52
76
|
"@fluid-tools/build-cli": "^0.54.0",
|
|
53
77
|
"@fluidframework/build-common": "^2.0.3",
|
|
54
78
|
"@fluidframework/build-tools": "^0.54.0",
|
|
55
|
-
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@2.
|
|
79
|
+
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@2.30.0",
|
|
56
80
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
57
|
-
"@microsoft/api-extractor": "7.
|
|
81
|
+
"@microsoft/api-extractor": "7.50.1",
|
|
82
|
+
"@types/mocha": "^10.0.10",
|
|
58
83
|
"@types/node": "^18.19.0",
|
|
84
|
+
"c8": "^8.0.1",
|
|
59
85
|
"concurrently": "^8.2.1",
|
|
60
86
|
"copyfiles": "^2.4.1",
|
|
87
|
+
"cross-env": "^7.0.3",
|
|
61
88
|
"eslint": "~8.55.0",
|
|
62
|
-
"
|
|
89
|
+
"mocha": "^10.8.2",
|
|
90
|
+
"mocha-multi-reporters": "^1.5.1",
|
|
63
91
|
"rimraf": "^4.4.0",
|
|
64
92
|
"typescript": "~5.4.5"
|
|
65
93
|
},
|
|
94
|
+
"fluidBuild": {
|
|
95
|
+
"tasks": {
|
|
96
|
+
"build:test:esm:no-exactOptionalPropertyTypes": [
|
|
97
|
+
"build:esnext"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
66
101
|
"typeValidation": {
|
|
67
102
|
"broken": {},
|
|
68
103
|
"entrypoint": "legacy"
|
|
@@ -79,9 +114,10 @@
|
|
|
79
114
|
"build:compile": "fluid-build . --task compile",
|
|
80
115
|
"build:docs": "api-extractor run --local",
|
|
81
116
|
"build:esnext": "tsc --project ./tsconfig.json",
|
|
82
|
-
"build:test": "npm run build:test:esm && npm run build:test:cjs",
|
|
117
|
+
"build:test": "npm run build:test:esm && npm run build:test:cjs && npm run build:test:esm:no-exactOptionalPropertyTypes",
|
|
83
118
|
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
84
119
|
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
120
|
+
"build:test:esm:no-exactOptionalPropertyTypes": "tsc --project ./src/test/tsconfig.no-exactOptionalPropertyTypes.json",
|
|
85
121
|
"check:are-the-types-wrong": "attw --pack .",
|
|
86
122
|
"check:biome": "biome check .",
|
|
87
123
|
"check:exports": "concurrently \"npm:check:exports:*\"",
|
|
@@ -91,23 +127,25 @@
|
|
|
91
127
|
"check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json",
|
|
92
128
|
"check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
|
|
93
129
|
"check:format": "npm run check:biome",
|
|
94
|
-
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
95
130
|
"ci:build": "npm run build:compile",
|
|
96
131
|
"ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"",
|
|
97
132
|
"ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json",
|
|
98
133
|
"ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json",
|
|
99
134
|
"ci:build:docs": "api-extractor run",
|
|
100
|
-
"
|
|
101
|
-
"ci:test:coverage": "echo No test for this package",
|
|
102
|
-
"clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
|
135
|
+
"clean": "rimraf --glob dist lib {alpha,beta,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
103
136
|
"eslint": "eslint --format stylish src",
|
|
104
137
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
105
138
|
"format": "npm run format:biome",
|
|
106
139
|
"format:biome": "biome check . --write",
|
|
107
|
-
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
108
140
|
"lint": "fluid-build . --task lint",
|
|
109
141
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
110
|
-
"place:cjs:package-stub": "copyfiles -f
|
|
142
|
+
"place:cjs:package-stub": "copyfiles -f ./src/cjs/package.json ./dist",
|
|
143
|
+
"test": "npm run test:mocha",
|
|
144
|
+
"test:coverage": "c8 npm test",
|
|
145
|
+
"test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
|
|
146
|
+
"test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\"",
|
|
147
|
+
"test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\"",
|
|
148
|
+
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
111
149
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub",
|
|
112
150
|
"tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch",
|
|
113
151
|
"typetests:gen": "flub generate typetests --dir . -v",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluidframework/core-interfaces",
|
|
3
|
+
"type": "commonjs",
|
|
4
|
+
"exports": {
|
|
5
|
+
".": {
|
|
6
|
+
"types": "./public.d.ts",
|
|
7
|
+
"default": "./index.js"
|
|
8
|
+
},
|
|
9
|
+
"./legacy": {
|
|
10
|
+
"types": "./legacy.d.ts",
|
|
11
|
+
"default": "./index.js"
|
|
12
|
+
},
|
|
13
|
+
"./internal": {
|
|
14
|
+
"types": "./internal.d.ts",
|
|
15
|
+
"default": "./index.js"
|
|
16
|
+
},
|
|
17
|
+
"./internal/exposedUtilityTypes": "./exposedUtilityTypes.js"
|
|
18
|
+
}
|
|
19
|
+
}
|