@fluidframework/core-utils 2.33.0-333010 → 2.33.1
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
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
// @alpha
|
|
7
|
+
// @alpha @legacy
|
|
8
8
|
export function assert(condition: boolean, message: string | number): asserts condition;
|
|
9
9
|
|
|
10
|
-
// @alpha
|
|
10
|
+
// @alpha @legacy
|
|
11
11
|
export const compareArrays: <T>(left: readonly T[], right: readonly T[], comparator?: (leftItem: T, rightItem: T, index: number) => boolean) => boolean;
|
|
12
12
|
|
|
13
|
-
// @alpha
|
|
13
|
+
// @alpha @legacy
|
|
14
14
|
export class Deferred<T> {
|
|
15
15
|
constructor();
|
|
16
16
|
get isCompleted(): boolean;
|
|
@@ -19,7 +19,7 @@ export class Deferred<T> {
|
|
|
19
19
|
resolve(value: T | PromiseLike<T>): void;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// @alpha
|
|
22
|
+
// @alpha @legacy
|
|
23
23
|
export class LazyPromise<T> implements Promise<T> {
|
|
24
24
|
// (undocumented)
|
|
25
25
|
get [Symbol.toStringTag](): string;
|
|
@@ -32,7 +32,7 @@ export class LazyPromise<T> implements Promise<T> {
|
|
|
32
32
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
// @alpha
|
|
35
|
+
// @alpha @legacy
|
|
36
36
|
export class PromiseCache<TKey, TResult> {
|
|
37
37
|
constructor({ expiry, removeOnError, }?: PromiseCacheOptions);
|
|
38
38
|
add(key: TKey, asyncFn: () => Promise<TResult>): boolean;
|
|
@@ -44,7 +44,7 @@ export class PromiseCache<TKey, TResult> {
|
|
|
44
44
|
remove(key: TKey): boolean;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
// @alpha
|
|
47
|
+
// @alpha @legacy
|
|
48
48
|
export type PromiseCacheExpiry = {
|
|
49
49
|
policy: "indefinite";
|
|
50
50
|
} | {
|
|
@@ -52,7 +52,7 @@ export type PromiseCacheExpiry = {
|
|
|
52
52
|
durationMs: number;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
// @alpha
|
|
55
|
+
// @alpha @legacy
|
|
56
56
|
export interface PromiseCacheOptions {
|
|
57
57
|
expiry?: PromiseCacheExpiry;
|
|
58
58
|
removeOnError?: (error: any) => boolean;
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/core-utils",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.1",
|
|
4
4
|
"description": "Not intended for use outside the Fluid client repo.",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
71
71
|
"@biomejs/biome": "~1.9.3",
|
|
72
|
-
"@fluid-internal/mocha-test-setup": "2.33.
|
|
72
|
+
"@fluid-internal/mocha-test-setup": "~2.33.1",
|
|
73
73
|
"@fluid-tools/benchmark": "^0.50.0",
|
|
74
74
|
"@fluid-tools/build-cli": "^0.55.0",
|
|
75
75
|
"@fluidframework/build-common": "^2.0.3",
|
|
76
76
|
"@fluidframework/build-tools": "^0.55.0",
|
|
77
|
-
"@fluidframework/core-utils-previous": "npm:@fluidframework/core-utils@2.
|
|
77
|
+
"@fluidframework/core-utils-previous": "npm:@fluidframework/core-utils@2.33.0",
|
|
78
78
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
79
|
-
"@microsoft/api-extractor": "7.
|
|
79
|
+
"@microsoft/api-extractor": "7.52.5",
|
|
80
80
|
"@types/mocha": "^10.0.10",
|
|
81
81
|
"@types/node": "^18.19.0",
|
|
82
82
|
"@types/sinon": "^17.0.3",
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
"eslint-config-prettier": "~9.0.0",
|
|
89
89
|
"mocha": "^10.8.2",
|
|
90
90
|
"mocha-multi-reporters": "^1.5.1",
|
|
91
|
-
"moment": "^2.21.0",
|
|
92
91
|
"rimraf": "^4.4.0",
|
|
93
92
|
"sinon": "^18.0.1",
|
|
94
93
|
"typescript": "~5.4.5"
|