@fluidframework/core-interfaces 2.23.0 → 2.30.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 +4 -0
- 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/internal/exposedUtilityTypes.d.ts +6 -0
- 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/package.json +50 -7
- 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.30.0",
|
|
4
4
|
"description": "Fluid object interfaces",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -35,34 +35,70 @@
|
|
|
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.23.0",
|
|
56
80
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
57
81
|
"@microsoft/api-extractor": "7.47.8",
|
|
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",
|
|
89
|
+
"mocha": "^10.8.2",
|
|
90
|
+
"mocha-multi-reporters": "^1.5.1",
|
|
62
91
|
"prettier": "~3.0.3",
|
|
63
92
|
"rimraf": "^4.4.0",
|
|
64
93
|
"typescript": "~5.4.5"
|
|
65
94
|
},
|
|
95
|
+
"fluidBuild": {
|
|
96
|
+
"tasks": {
|
|
97
|
+
"build:test:esm:no-exactOptionalPropertyTypes": [
|
|
98
|
+
"build:esnext"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
66
102
|
"typeValidation": {
|
|
67
103
|
"broken": {},
|
|
68
104
|
"entrypoint": "legacy"
|
|
@@ -79,9 +115,10 @@
|
|
|
79
115
|
"build:compile": "fluid-build . --task compile",
|
|
80
116
|
"build:docs": "api-extractor run --local",
|
|
81
117
|
"build:esnext": "tsc --project ./tsconfig.json",
|
|
82
|
-
"build:test": "npm run build:test:esm && npm run build:test:cjs",
|
|
118
|
+
"build:test": "npm run build:test:esm && npm run build:test:cjs && npm run build:test:esm:no-exactOptionalPropertyTypes",
|
|
83
119
|
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
84
120
|
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
121
|
+
"build:test:esm:no-exactOptionalPropertyTypes": "tsc --project ./src/test/tsconfig.no-exactOptionalPropertyTypes.json",
|
|
85
122
|
"check:are-the-types-wrong": "attw --pack .",
|
|
86
123
|
"check:biome": "biome check .",
|
|
87
124
|
"check:exports": "concurrently \"npm:check:exports:*\"",
|
|
@@ -99,7 +136,7 @@
|
|
|
99
136
|
"ci:build:docs": "api-extractor run",
|
|
100
137
|
"ci:test": "echo No test for this package",
|
|
101
138
|
"ci:test:coverage": "echo No test for this package",
|
|
102
|
-
"clean": "rimraf --glob dist lib {alpha,beta,
|
|
139
|
+
"clean": "rimraf --glob dist lib {alpha,beta,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
103
140
|
"eslint": "eslint --format stylish src",
|
|
104
141
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
105
142
|
"format": "npm run format:biome",
|
|
@@ -107,7 +144,13 @@
|
|
|
107
144
|
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
108
145
|
"lint": "fluid-build . --task lint",
|
|
109
146
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
110
|
-
"place:cjs:package-stub": "copyfiles -f
|
|
147
|
+
"place:cjs:package-stub": "copyfiles -f ./src/cjs/package.json ./dist",
|
|
148
|
+
"test": "npm run test:mocha",
|
|
149
|
+
"test:coverage": "c8 npm test",
|
|
150
|
+
"test:mocha": "npm run test:mocha:esm && echo npm run test:mocha:cjs",
|
|
151
|
+
"test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\"",
|
|
152
|
+
"test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\"",
|
|
153
|
+
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
111
154
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub",
|
|
112
155
|
"tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch",
|
|
113
156
|
"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
|
+
}
|