@fluidframework/core-utils
Advanced tools
Comparing version 2.0.0-internal.7.1.0 to 2.0.0-internal.7.2.0
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"extends": "@fluidframework/build-common/api-extractor-base.json", | ||
// TODO: Fix violations and remove these rule overrides | ||
"messages": { | ||
"extractorMessageReporting": { | ||
"ae-missing-release-tag": { | ||
"logLevel": "none" | ||
} | ||
} | ||
} | ||
"extends": "@fluidframework/build-common/api-extractor-base.json" | ||
} |
# @fluidframework/core-utils | ||
## 2.0.0-internal.7.2.0 | ||
Dependency updates only. | ||
## 2.0.0-internal.7.1.0 | ||
@@ -4,0 +8,0 @@ |
@@ -14,4 +14,5 @@ /*! | ||
* use numbered error codes instead. | ||
* @public | ||
*/ | ||
export declare function assert(condition: boolean, message: string | number): asserts condition; | ||
//# sourceMappingURL=assert.d.ts.map |
@@ -17,2 +17,3 @@ "use strict"; | ||
* use numbered error codes instead. | ||
* @public | ||
*/ | ||
@@ -19,0 +20,0 @@ function assert(condition, message) { |
@@ -8,4 +8,5 @@ /*! | ||
* @param timeMs - Time in milliseconds to wait. | ||
* @public | ||
*/ | ||
export declare const delay: (timeMs: number) => Promise<void>; | ||
//# sourceMappingURL=delay.d.ts.map |
@@ -11,2 +11,3 @@ "use strict"; | ||
* @param timeMs - Time in milliseconds to wait. | ||
* @public | ||
*/ | ||
@@ -13,0 +14,0 @@ const delay = async (timeMs) => new Promise((resolve) => setTimeout(() => resolve(), timeMs)); |
@@ -7,2 +7,3 @@ /*! | ||
* Interface for a comparer. | ||
* @public | ||
*/ | ||
@@ -23,2 +24,3 @@ export interface IComparer<T> { | ||
* A comparer for numbers. | ||
* @public | ||
*/ | ||
@@ -28,2 +30,3 @@ export declare const NumberComparer: IComparer<number>; | ||
* Interface to a node in {@link Heap}. | ||
* @public | ||
*/ | ||
@@ -36,2 +39,3 @@ export interface IHeapNode<T> { | ||
* Ordered {@link https://en.wikipedia.org/wiki/Heap_(data_structure) | Heap} data structure implementation. | ||
* @public | ||
*/ | ||
@@ -38,0 +42,0 @@ export declare class Heap<T> { |
@@ -10,2 +10,3 @@ "use strict"; | ||
* A comparer for numbers. | ||
* @public | ||
*/ | ||
@@ -25,2 +26,3 @@ exports.NumberComparer = { | ||
* Ordered {@link https://en.wikipedia.org/wiki/Heap_(data_structure) | Heap} data structure implementation. | ||
* @public | ||
*/ | ||
@@ -27,0 +29,0 @@ class Heap { |
@@ -7,2 +7,3 @@ /*! | ||
* Helper class for lazy initialized values. Ensures the value is only generated once, and remain immutable. | ||
* @public | ||
*/ | ||
@@ -32,2 +33,3 @@ export declare class Lazy<T> { | ||
* All calls are then proxied to the promise returned by the execute method. | ||
* @public | ||
*/ | ||
@@ -34,0 +36,0 @@ export declare class LazyPromise<T> implements Promise<T> { |
@@ -10,2 +10,3 @@ "use strict"; | ||
* Helper class for lazy initialized values. Ensures the value is only generated once, and remain immutable. | ||
* @public | ||
*/ | ||
@@ -45,2 +46,3 @@ class Lazy { | ||
* All calls are then proxied to the promise returned by the execute method. | ||
* @public | ||
*/ | ||
@@ -47,0 +49,0 @@ class LazyPromise { |
@@ -10,2 +10,3 @@ /*! | ||
* - sliding: entries expire after the given duration in MS of inactivity (i.e. get resets the clock) | ||
* @public | ||
*/ | ||
@@ -20,2 +21,3 @@ export type PromiseCacheExpiry = { | ||
* Options for configuring the {@link PromiseCache} | ||
* @public | ||
*/ | ||
@@ -35,2 +37,3 @@ export interface PromiseCacheOptions { | ||
* without fear of running it multiple times or losing track of errors. | ||
* @public | ||
*/ | ||
@@ -37,0 +40,0 @@ export declare class PromiseCache<TKey, TResult> { |
@@ -53,2 +53,3 @@ "use strict"; | ||
* without fear of running it multiple times or losing track of errors. | ||
* @public | ||
*/ | ||
@@ -55,0 +56,0 @@ class PromiseCache { |
@@ -7,2 +7,3 @@ /*! | ||
* A deferred creates a promise and the ability to resolve or reject it | ||
* @public | ||
*/ | ||
@@ -9,0 +10,0 @@ export declare class Deferred<T> { |
@@ -10,2 +10,3 @@ "use strict"; | ||
* A deferred creates a promise and the ability to resolve or reject it | ||
* @public | ||
*/ | ||
@@ -12,0 +13,0 @@ class Deferred { |
@@ -5,2 +5,5 @@ /*! | ||
*/ | ||
/** | ||
* @public | ||
*/ | ||
export interface ITimer { | ||
@@ -29,2 +32,3 @@ /** | ||
* @returns The initial timeout | ||
* @public | ||
*/ | ||
@@ -37,2 +41,3 @@ export declare function setLongTimeout(timeoutFn: () => void, timeoutMs: number, setTimeoutIdFn?: (timeoutId: ReturnType<typeof setTimeout>) => void): ReturnType<typeof setTimeout>; | ||
* or timeouts exceeding (2^31)-1 ms or approximately 24.8 days. | ||
* @public | ||
*/ | ||
@@ -73,2 +78,5 @@ export declare class Timer implements ITimer { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface IPromiseTimerResult { | ||
@@ -80,2 +88,3 @@ timerResult: "timeout" | "cancel"; | ||
* completes. | ||
* @public | ||
*/ | ||
@@ -94,2 +103,3 @@ export interface IPromiseTimer extends ITimer { | ||
* resolves when it times out. | ||
* @public | ||
*/ | ||
@@ -96,0 +106,0 @@ export declare class PromiseTimer implements IPromiseTimer { |
@@ -20,2 +20,3 @@ "use strict"; | ||
* @returns The initial timeout | ||
* @public | ||
*/ | ||
@@ -41,2 +42,3 @@ function setLongTimeout(timeoutFn, timeoutMs, setTimeoutIdFn) { | ||
* or timeouts exceeding (2^31)-1 ms or approximately 24.8 days. | ||
* @public | ||
*/ | ||
@@ -153,2 +155,3 @@ class Timer { | ||
* resolves when it times out. | ||
* @public | ||
*/ | ||
@@ -155,0 +158,0 @@ class PromiseTimer { |
@@ -19,4 +19,5 @@ /*! | ||
* ``` | ||
* @public | ||
*/ | ||
export declare function unreachableCase(_: never, message?: string): never; | ||
//# sourceMappingURL=unreachable.d.ts.map |
@@ -22,2 +22,3 @@ "use strict"; | ||
* ``` | ||
* @public | ||
*/ | ||
@@ -24,0 +25,0 @@ function unreachableCase(_, message = "Unreachable Case") { |
@@ -14,4 +14,5 @@ /*! | ||
* use numbered error codes instead. | ||
* @public | ||
*/ | ||
export declare function assert(condition: boolean, message: string | number): asserts condition; | ||
//# sourceMappingURL=assert.d.ts.map |
@@ -14,2 +14,3 @@ /*! | ||
* use numbered error codes instead. | ||
* @public | ||
*/ | ||
@@ -16,0 +17,0 @@ export function assert(condition, message) { |
@@ -8,4 +8,5 @@ /*! | ||
* @param timeMs - Time in milliseconds to wait. | ||
* @public | ||
*/ | ||
export declare const delay: (timeMs: number) => Promise<void>; | ||
//# sourceMappingURL=delay.d.ts.map |
@@ -8,4 +8,5 @@ /*! | ||
* @param timeMs - Time in milliseconds to wait. | ||
* @public | ||
*/ | ||
export const delay = async (timeMs) => new Promise((resolve) => setTimeout(() => resolve(), timeMs)); | ||
//# sourceMappingURL=delay.js.map |
@@ -7,2 +7,3 @@ /*! | ||
* Interface for a comparer. | ||
* @public | ||
*/ | ||
@@ -23,2 +24,3 @@ export interface IComparer<T> { | ||
* A comparer for numbers. | ||
* @public | ||
*/ | ||
@@ -28,2 +30,3 @@ export declare const NumberComparer: IComparer<number>; | ||
* Interface to a node in {@link Heap}. | ||
* @public | ||
*/ | ||
@@ -36,2 +39,3 @@ export interface IHeapNode<T> { | ||
* Ordered {@link https://en.wikipedia.org/wiki/Heap_(data_structure) | Heap} data structure implementation. | ||
* @public | ||
*/ | ||
@@ -38,0 +42,0 @@ export declare class Heap<T> { |
@@ -7,2 +7,3 @@ /*! | ||
* A comparer for numbers. | ||
* @public | ||
*/ | ||
@@ -22,2 +23,3 @@ export const NumberComparer = { | ||
* Ordered {@link https://en.wikipedia.org/wiki/Heap_(data_structure) | Heap} data structure implementation. | ||
* @public | ||
*/ | ||
@@ -24,0 +26,0 @@ export class Heap { |
@@ -7,2 +7,3 @@ /*! | ||
* Helper class for lazy initialized values. Ensures the value is only generated once, and remain immutable. | ||
* @public | ||
*/ | ||
@@ -32,2 +33,3 @@ export declare class Lazy<T> { | ||
* All calls are then proxied to the promise returned by the execute method. | ||
* @public | ||
*/ | ||
@@ -34,0 +36,0 @@ export declare class LazyPromise<T> implements Promise<T> { |
@@ -7,2 +7,3 @@ /*! | ||
* Helper class for lazy initialized values. Ensures the value is only generated once, and remain immutable. | ||
* @public | ||
*/ | ||
@@ -41,2 +42,3 @@ export class Lazy { | ||
* All calls are then proxied to the promise returned by the execute method. | ||
* @public | ||
*/ | ||
@@ -43,0 +45,0 @@ export class LazyPromise { |
@@ -10,2 +10,3 @@ /*! | ||
* - sliding: entries expire after the given duration in MS of inactivity (i.e. get resets the clock) | ||
* @public | ||
*/ | ||
@@ -20,2 +21,3 @@ export type PromiseCacheExpiry = { | ||
* Options for configuring the {@link PromiseCache} | ||
* @public | ||
*/ | ||
@@ -35,2 +37,3 @@ export interface PromiseCacheOptions { | ||
* without fear of running it multiple times or losing track of errors. | ||
* @public | ||
*/ | ||
@@ -37,0 +40,0 @@ export declare class PromiseCache<TKey, TResult> { |
@@ -50,2 +50,3 @@ /*! | ||
* without fear of running it multiple times or losing track of errors. | ||
* @public | ||
*/ | ||
@@ -52,0 +53,0 @@ export class PromiseCache { |
@@ -7,2 +7,3 @@ /*! | ||
* A deferred creates a promise and the ability to resolve or reject it | ||
* @public | ||
*/ | ||
@@ -9,0 +10,0 @@ export declare class Deferred<T> { |
@@ -7,2 +7,3 @@ /*! | ||
* A deferred creates a promise and the ability to resolve or reject it | ||
* @public | ||
*/ | ||
@@ -9,0 +10,0 @@ export class Deferred { |
@@ -5,2 +5,5 @@ /*! | ||
*/ | ||
/** | ||
* @public | ||
*/ | ||
export interface ITimer { | ||
@@ -29,2 +32,3 @@ /** | ||
* @returns The initial timeout | ||
* @public | ||
*/ | ||
@@ -37,2 +41,3 @@ export declare function setLongTimeout(timeoutFn: () => void, timeoutMs: number, setTimeoutIdFn?: (timeoutId: ReturnType<typeof setTimeout>) => void): ReturnType<typeof setTimeout>; | ||
* or timeouts exceeding (2^31)-1 ms or approximately 24.8 days. | ||
* @public | ||
*/ | ||
@@ -73,2 +78,5 @@ export declare class Timer implements ITimer { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface IPromiseTimerResult { | ||
@@ -80,2 +88,3 @@ timerResult: "timeout" | "cancel"; | ||
* completes. | ||
* @public | ||
*/ | ||
@@ -94,2 +103,3 @@ export interface IPromiseTimer extends ITimer { | ||
* resolves when it times out. | ||
* @public | ||
*/ | ||
@@ -96,0 +106,0 @@ export declare class PromiseTimer implements IPromiseTimer { |
@@ -17,2 +17,3 @@ /*! | ||
* @returns The initial timeout | ||
* @public | ||
*/ | ||
@@ -37,2 +38,3 @@ export function setLongTimeout(timeoutFn, timeoutMs, setTimeoutIdFn) { | ||
* or timeouts exceeding (2^31)-1 ms or approximately 24.8 days. | ||
* @public | ||
*/ | ||
@@ -148,2 +150,3 @@ export class Timer { | ||
* resolves when it times out. | ||
* @public | ||
*/ | ||
@@ -150,0 +153,0 @@ export class PromiseTimer { |
@@ -19,4 +19,5 @@ /*! | ||
* ``` | ||
* @public | ||
*/ | ||
export declare function unreachableCase(_: never, message?: string): never; | ||
//# sourceMappingURL=unreachable.d.ts.map |
@@ -19,2 +19,3 @@ /*! | ||
* ``` | ||
* @public | ||
*/ | ||
@@ -21,0 +22,0 @@ export function unreachableCase(_, message = "Unreachable Case") { |
{ | ||
"name": "@fluidframework/core-utils", | ||
"version": "2.0.0-internal.7.1.0", | ||
"version": "2.0.0-internal.7.2.0", | ||
"description": "Not intended for use outside the Fluid client repo.", | ||
@@ -39,7 +39,7 @@ "homepage": "https://fluidframework.com", | ||
"@fluid-tools/benchmark": "^0.47.0", | ||
"@fluid-tools/build-cli": "^0.25.0", | ||
"@fluidframework/build-common": "^2.0.1", | ||
"@fluidframework/build-tools": "^0.25.0", | ||
"@fluid-tools/build-cli": "^0.26.1", | ||
"@fluidframework/build-common": "^2.0.3", | ||
"@fluidframework/build-tools": "^0.26.1", | ||
"@fluidframework/eslint-config-fluid": "^3.0.0", | ||
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.1.0 <2.0.0-internal.7.2.0", | ||
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0", | ||
"@microsoft/api-extractor": "^7.37.0", | ||
@@ -50,3 +50,2 @@ "@types/mocha": "^9.1.1", | ||
"c8": "^7.7.1", | ||
"copyfiles": "^2.4.1", | ||
"cross-env": "^7.0.3", | ||
@@ -78,3 +77,3 @@ "eslint": "~8.50.0", | ||
"ci:build:docs": "api-extractor run", | ||
"clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'", | ||
"clean": "rimraf --glob dist lib \"*.tsbuildinfo\" \"*.build.log\" _api-extractor-temp nyc", | ||
"eslint": "eslint --format stylish src", | ||
@@ -81,0 +80,0 @@ "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", |
@@ -15,2 +15,3 @@ /*! | ||
* use numbered error codes instead. | ||
* @public | ||
*/ | ||
@@ -17,0 +18,0 @@ export function assert(condition: boolean, message: string | number): asserts condition { |
@@ -9,4 +9,5 @@ /*! | ||
* @param timeMs - Time in milliseconds to wait. | ||
* @public | ||
*/ | ||
export const delay = async (timeMs: number): Promise<void> => | ||
new Promise((resolve) => setTimeout(() => resolve(), timeMs)); |
@@ -8,2 +8,3 @@ /*! | ||
* Interface for a comparer. | ||
* @public | ||
*/ | ||
@@ -26,2 +27,3 @@ export interface IComparer<T> { | ||
* A comparer for numbers. | ||
* @public | ||
*/ | ||
@@ -43,2 +45,3 @@ export const NumberComparer: IComparer<number> = { | ||
* Interface to a node in {@link Heap}. | ||
* @public | ||
*/ | ||
@@ -52,2 +55,3 @@ export interface IHeapNode<T> { | ||
* Ordered {@link https://en.wikipedia.org/wiki/Heap_(data_structure) | Heap} data structure implementation. | ||
* @public | ||
*/ | ||
@@ -54,0 +58,0 @@ export class Heap<T> { |
@@ -8,2 +8,3 @@ /*! | ||
* Helper class for lazy initialized values. Ensures the value is only generated once, and remain immutable. | ||
* @public | ||
*/ | ||
@@ -44,2 +45,3 @@ export class Lazy<T> { | ||
* All calls are then proxied to the promise returned by the execute method. | ||
* @public | ||
*/ | ||
@@ -46,0 +48,0 @@ export class LazyPromise<T> implements Promise<T> { |
@@ -11,2 +11,3 @@ /*! | ||
* - sliding: entries expire after the given duration in MS of inactivity (i.e. get resets the clock) | ||
* @public | ||
*/ | ||
@@ -24,2 +25,3 @@ export type PromiseCacheExpiry = | ||
* Options for configuring the {@link PromiseCache} | ||
* @public | ||
*/ | ||
@@ -92,2 +94,3 @@ export interface PromiseCacheOptions { | ||
* without fear of running it multiple times or losing track of errors. | ||
* @public | ||
*/ | ||
@@ -94,0 +97,0 @@ export class PromiseCache<TKey, TResult> { |
@@ -8,2 +8,3 @@ /*! | ||
* A deferred creates a promise and the ability to resolve or reject it | ||
* @public | ||
*/ | ||
@@ -10,0 +11,0 @@ export class Deferred<T> { |
@@ -9,2 +9,5 @@ /*! | ||
/** | ||
* @public | ||
*/ | ||
export interface ITimer { | ||
@@ -72,2 +75,3 @@ /** | ||
* @returns The initial timeout | ||
* @public | ||
*/ | ||
@@ -100,2 +104,3 @@ export function setLongTimeout( | ||
* or timeouts exceeding (2^31)-1 ms or approximately 24.8 days. | ||
* @public | ||
*/ | ||
@@ -221,2 +226,5 @@ export class Timer implements ITimer { | ||
/** | ||
* @public | ||
*/ | ||
export interface IPromiseTimerResult { | ||
@@ -229,2 +237,3 @@ timerResult: "timeout" | "cancel"; | ||
* completes. | ||
* @public | ||
*/ | ||
@@ -244,2 +253,3 @@ export interface IPromiseTimer extends ITimer { | ||
* resolves when it times out. | ||
* @public | ||
*/ | ||
@@ -246,0 +256,0 @@ export class PromiseTimer implements IPromiseTimer { |
@@ -20,2 +20,3 @@ /*! | ||
* ``` | ||
* @public | ||
*/ | ||
@@ -22,0 +23,0 @@ export function unreachableCase(_: never, message = "Unreachable Case"): never { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22
225495
102
3229