@fluid-experimental/property-common 2.114.0 → 2.115.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/CHANGELOG.md +4 -0
- package/dist/datastructures/index.d.ts +4 -4
- package/dist/datastructures/index.d.ts.map +1 -1
- package/dist/datastructures/index.js +21 -21
- package/dist/datastructures/index.js.map +1 -1
- package/dist/datastructures/integer64.js +9 -9
- package/dist/datastructures/integer64.js.map +1 -1
- package/dist/datastructures/sortedCollection.d.ts +1 -1
- package/dist/datastructures/sortedCollection.d.ts.map +1 -1
- package/dist/datastructures/sortedCollection.js +2 -2
- package/dist/datastructures/sortedCollection.js.map +1 -1
- package/dist/deterministicRandomGenerator.js +5 -5
- package/dist/deterministicRandomGenerator.js.map +1 -1
- package/dist/error_objects/httpError.js +4 -4
- package/dist/error_objects/httpError.js.map +1 -1
- package/dist/error_objects/httpErrorNoStack.d.ts +1 -1
- package/dist/error_objects/httpErrorNoStack.d.ts.map +1 -1
- package/dist/error_objects/httpErrorNoStack.js +4 -4
- package/dist/error_objects/httpErrorNoStack.js.map +1 -1
- package/dist/error_objects/index.d.ts +4 -4
- package/dist/error_objects/index.d.ts.map +1 -1
- package/dist/error_objects/index.js +8 -8
- package/dist/error_objects/index.js.map +1 -1
- package/dist/error_objects/operationError.js +5 -5
- package/dist/error_objects/operationError.js.map +1 -1
- package/dist/index.d.ts +13 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -41
- package/dist/index.js.map +1 -1
- package/dist/package.json +4 -0
- package/lib/datastructures/index.d.ts +4 -4
- package/lib/datastructures/index.d.ts.map +1 -1
- package/lib/datastructures/index.js +4 -4
- package/lib/datastructures/index.js.map +1 -1
- package/lib/datastructures/integer64.js +2 -2
- package/lib/datastructures/integer64.js.map +1 -1
- package/lib/datastructures/sortedCollection.d.ts +1 -1
- package/lib/datastructures/sortedCollection.d.ts.map +1 -1
- package/lib/datastructures/sortedCollection.js +1 -1
- package/lib/datastructures/sortedCollection.js.map +1 -1
- package/lib/deterministicRandomGenerator.js +2 -2
- package/lib/deterministicRandomGenerator.js.map +1 -1
- package/lib/error_objects/httpError.js +1 -1
- package/lib/error_objects/httpError.js.map +1 -1
- package/lib/error_objects/httpErrorNoStack.d.ts +1 -1
- package/lib/error_objects/httpErrorNoStack.d.ts.map +1 -1
- package/lib/error_objects/httpErrorNoStack.js +2 -2
- package/lib/error_objects/httpErrorNoStack.js.map +1 -1
- package/lib/error_objects/index.d.ts +4 -4
- package/lib/error_objects/index.d.ts.map +1 -1
- package/lib/error_objects/index.js +4 -4
- package/lib/error_objects/index.js.map +1 -1
- package/lib/error_objects/operationError.js +1 -1
- package/lib/error_objects/operationError.js.map +1 -1
- package/lib/index.d.ts +13 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -11
- package/lib/index.js.map +1 -1
- package/package.json +17 -19
- package/src/datastructures/index.ts +4 -4
- package/src/datastructures/integer64.ts +2 -2
- package/src/datastructures/sortedCollection.ts +1 -1
- package/src/deterministicRandomGenerator.ts +2 -2
- package/src/error_objects/httpError.ts +1 -1
- package/src/error_objects/httpErrorNoStack.ts +2 -2
- package/src/error_objects/index.ts +4 -4
- package/src/error_objects/operationError.ts +1 -1
- package/src/index.ts +18 -11
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +7 -4
- package/tsconfig.esnext.json +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/property-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.115.0",
|
|
4
4
|
"description": "common functions used in properties",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -10,9 +10,13 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": "Microsoft and contributors",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./lib/index.js",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
16
20
|
"c8": {
|
|
17
21
|
"all": true,
|
|
18
22
|
"cache-dir": "nyc/.cache",
|
|
@@ -48,7 +52,7 @@
|
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
50
54
|
"@biomejs/biome": "~2.4.5",
|
|
51
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
55
|
+
"@fluid-internal/mocha-test-setup": "~2.115.0",
|
|
52
56
|
"@fluidframework/build-common": "^2.0.3",
|
|
53
57
|
"@fluidframework/build-tools": "^0.65.0",
|
|
54
58
|
"@microsoft/api-extractor": "7.58.1",
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
"@types/sinon": "^17.0.3",
|
|
62
66
|
"c8": "^10.1.3",
|
|
63
67
|
"chai": "^4.5.0",
|
|
68
|
+
"concurrently": "^10.0.3",
|
|
64
69
|
"cross-env": "^10.1.0",
|
|
65
70
|
"eslint": "~9.39.1",
|
|
66
71
|
"jiti": "^2.6.1",
|
|
@@ -71,15 +76,6 @@
|
|
|
71
76
|
"sinon": "^18.0.1",
|
|
72
77
|
"typescript": "~5.4.5"
|
|
73
78
|
},
|
|
74
|
-
"fluidBuild": {
|
|
75
|
-
"_tasks_comment": "This package does not have a proper ESM build. All consumers depend on CommonJS. So building CommonJS when ESM is requested ensures the CommonJS expectation is satisfied.",
|
|
76
|
-
"tasks": {
|
|
77
|
-
"build:esnext": [
|
|
78
|
-
"...",
|
|
79
|
-
"tsc"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
79
|
"typeValidation": {
|
|
84
80
|
"disabled": true
|
|
85
81
|
},
|
|
@@ -87,9 +83,10 @@
|
|
|
87
83
|
"build": "fluid-build . --task build",
|
|
88
84
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
89
85
|
"build:compile": "fluid-build . --task compile",
|
|
90
|
-
"build:esnext": "tsc --project ./tsconfig.
|
|
91
|
-
"build:test": "npm
|
|
92
|
-
"build:test:cjs": "tsc --project ./src/test/tsconfig.json",
|
|
86
|
+
"build:esnext": "tsc --project ./tsconfig.json",
|
|
87
|
+
"build:test": "concurrently npm:build:test:esm npm:build:test:cjs",
|
|
88
|
+
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
89
|
+
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
93
90
|
"check:biome": "biome check .",
|
|
94
91
|
"check:format": "npm run check:biome",
|
|
95
92
|
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc",
|
|
@@ -101,9 +98,10 @@
|
|
|
101
98
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
102
99
|
"test": "npm run test:mocha",
|
|
103
100
|
"test:coverage": "c8 npm test",
|
|
104
|
-
"test:mocha": "npm run test:mocha:cjs",
|
|
101
|
+
"test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs",
|
|
105
102
|
"test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha",
|
|
103
|
+
"test:mocha:esm": "mocha",
|
|
106
104
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
107
|
-
"tsc": "tsc"
|
|
105
|
+
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist"
|
|
108
106
|
}
|
|
109
107
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export { Collection } from "./collection";
|
|
6
|
+
export { Collection } from "./collection.js";
|
|
7
7
|
export {
|
|
8
8
|
BaseDataArray,
|
|
9
9
|
BoolDataArray,
|
|
@@ -17,6 +17,6 @@ export {
|
|
|
17
17
|
Uint32DataArray,
|
|
18
18
|
Uint8DataArray,
|
|
19
19
|
UniversalDataArray,
|
|
20
|
-
} from "./dataArray";
|
|
21
|
-
export { Int64, Integer64, Uint64 } from "./integer64";
|
|
22
|
-
export { SortedCollection } from "./sortedCollection";
|
|
20
|
+
} from "./dataArray.js";
|
|
21
|
+
export { Int64, Integer64, Uint64 } from "./integer64.js";
|
|
22
|
+
export { SortedCollection } from "./sortedCollection.js";
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
import _ from "lodash";
|
|
11
11
|
|
|
12
|
-
import { ConsoleUtils } from "../consoleUtils";
|
|
13
|
-
import { constants } from "../constants";
|
|
12
|
+
import { ConsoleUtils } from "../consoleUtils.js";
|
|
13
|
+
import { constants } from "../constants.js";
|
|
14
14
|
|
|
15
15
|
const BIT32 = 4294967296;
|
|
16
16
|
const { MSG } = constants;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
import _ from "lodash";
|
|
13
13
|
|
|
14
|
-
import { GuidUtils } from "./guidUtils";
|
|
15
|
-
import { calculateHash } from "./hashCalculator";
|
|
14
|
+
import { GuidUtils } from "./guidUtils.js";
|
|
15
|
+
import { calculateHash } from "./hashCalculator.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Random number generator that creates a deterministic sequence of random numbers based on an initial seed GUID.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { FlaggedError } from "./flaggedError";
|
|
7
|
-
import { HTTPError } from "./httpError";
|
|
6
|
+
import { FlaggedError } from "./flaggedError.js";
|
|
7
|
+
import { HTTPError } from "./httpError.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Class extending HTTPError without storing the stack
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export { FlaggedError } from "./flaggedError";
|
|
7
|
-
export { HTTPError } from "./httpError";
|
|
8
|
-
export { HTTPErrorNoStack } from "./httpErrorNoStack";
|
|
9
|
-
export { OperationError } from "./operationError";
|
|
6
|
+
export { FlaggedError } from "./flaggedError.js";
|
|
7
|
+
export { HTTPError } from "./httpError.js";
|
|
8
|
+
export { HTTPErrorNoStack } from "./httpErrorNoStack.js";
|
|
9
|
+
export { OperationError } from "./operationError.js";
|
package/src/index.ts
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import events_pkg from "events_pkg";
|
|
7
|
+
const { EventEmitter } = events_pkg;
|
|
8
|
+
export { EventEmitter };
|
|
7
9
|
|
|
8
|
-
export { Chronometer } from "./chronometer";
|
|
9
|
-
export { ConsoleUtils } from "./consoleUtils";
|
|
10
|
-
export { constants } from "./constants";
|
|
10
|
+
export { Chronometer } from "./chronometer.js";
|
|
11
|
+
export { ConsoleUtils } from "./consoleUtils.js";
|
|
12
|
+
export { constants } from "./constants.js";
|
|
11
13
|
export {
|
|
12
14
|
BaseDataArray,
|
|
13
15
|
BoolDataArray,
|
|
@@ -26,10 +28,15 @@ export {
|
|
|
26
28
|
Uint64,
|
|
27
29
|
Uint8DataArray,
|
|
28
30
|
UniversalDataArray,
|
|
29
|
-
} from "./datastructures";
|
|
30
|
-
export { DeferredPromise } from "./deferredPromise";
|
|
31
|
-
export { DeterministicRandomGenerator } from "./deterministicRandomGenerator";
|
|
32
|
-
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
} from "./datastructures/index.js";
|
|
32
|
+
export { DeferredPromise } from "./deferredPromise.js";
|
|
33
|
+
export { DeterministicRandomGenerator } from "./deterministicRandomGenerator.js";
|
|
34
|
+
export {
|
|
35
|
+
FlaggedError,
|
|
36
|
+
HTTPError,
|
|
37
|
+
HTTPErrorNoStack,
|
|
38
|
+
OperationError,
|
|
39
|
+
} from "./error_objects/index.js";
|
|
40
|
+
export { GuidUtils } from "./guidUtils.js";
|
|
41
|
+
export { calculateHash } from "./hashCalculator.js";
|
|
42
|
+
export { joinPaths } from "./joinPaths.js";
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../../../common/build/build-common/
|
|
2
|
+
"extends": "../../../../common/build/build-common/tsconfig.node16.json",
|
|
3
|
+
"include": ["src/**/*"],
|
|
4
|
+
"exclude": ["src/test/**/*"],
|
|
3
5
|
"compilerOptions": {
|
|
4
6
|
"composite": true,
|
|
5
7
|
"rootDir": "./src",
|
|
6
|
-
"outDir": "./
|
|
8
|
+
"outDir": "./lib",
|
|
9
|
+
"types": ["node"],
|
|
10
|
+
"exactOptionalPropertyTypes": false,
|
|
11
|
+
"noUncheckedIndexedAccess": false,
|
|
7
12
|
},
|
|
8
|
-
"include": ["src/**/*"],
|
|
9
|
-
"exclude": ["src/test/**/*"],
|
|
10
13
|
}
|