@fluidframework/core-utils
Advanced tools
Comparing version 2.0.0-internal.6.4.0 to 2.0.0-internal.7.0.0
# @fluidframework/core-utils | ||
## 2.0.0-internal.7.0.0 | ||
### Major Changes | ||
- Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e) | ||
The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6. | ||
## 2.0.0-internal.6.4.0 | ||
@@ -4,0 +12,0 @@ |
@@ -46,8 +46,8 @@ "use strict"; | ||
class LazyPromise { | ||
get [Symbol.toStringTag]() { | ||
return this.getPromise()[Symbol.toStringTag]; | ||
} | ||
constructor(execute) { | ||
this.execute = execute; | ||
} | ||
get [Symbol.toStringTag]() { | ||
return this.getPromise()[Symbol.toStringTag]; | ||
} | ||
// eslint-disable-next-line unicorn/no-thenable | ||
@@ -54,0 +54,0 @@ async then( |
@@ -11,3 +11,3 @@ /*! | ||
*/ | ||
export declare type PromiseCacheExpiry = { | ||
export type PromiseCacheExpiry = { | ||
policy: "indefinite"; | ||
@@ -14,0 +14,0 @@ } | { |
@@ -42,7 +42,2 @@ "use strict"; | ||
class Timer { | ||
constructor(defaultTimeout, defaultHandler, getCurrentTick = () => Date.now()) { | ||
this.defaultTimeout = defaultTimeout; | ||
this.defaultHandler = defaultHandler; | ||
this.getCurrentTick = getCurrentTick; | ||
} | ||
/** | ||
@@ -54,2 +49,7 @@ * Returns true if the timer is running. | ||
} | ||
constructor(defaultTimeout, defaultHandler, getCurrentTick = () => Date.now()) { | ||
this.defaultTimeout = defaultTimeout; | ||
this.defaultHandler = defaultHandler; | ||
this.getCurrentTick = getCurrentTick; | ||
} | ||
/** | ||
@@ -155,5 +155,2 @@ * Calls setTimeout and tracks the resulting timeout. | ||
class PromiseTimer { | ||
constructor(defaultTimeout, defaultHandler) { | ||
this.timer = new Timer(defaultTimeout, () => this.wrapHandler(defaultHandler)); | ||
} | ||
/** | ||
@@ -165,2 +162,5 @@ * {@inheritDoc Timer.hasTimer} | ||
} | ||
constructor(defaultTimeout, defaultHandler) { | ||
this.timer = new Timer(defaultTimeout, () => this.wrapHandler(defaultHandler)); | ||
} | ||
/** | ||
@@ -167,0 +167,0 @@ * {@inheritDoc IPromiseTimer.start} |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.34.9" | ||
"packageVersion": "7.37.0" | ||
} | ||
] | ||
} |
@@ -42,8 +42,8 @@ /*! | ||
export class LazyPromise { | ||
get [Symbol.toStringTag]() { | ||
return this.getPromise()[Symbol.toStringTag]; | ||
} | ||
constructor(execute) { | ||
this.execute = execute; | ||
} | ||
get [Symbol.toStringTag]() { | ||
return this.getPromise()[Symbol.toStringTag]; | ||
} | ||
// eslint-disable-next-line unicorn/no-thenable | ||
@@ -50,0 +50,0 @@ async then( |
@@ -11,3 +11,3 @@ /*! | ||
*/ | ||
export declare type PromiseCacheExpiry = { | ||
export type PromiseCacheExpiry = { | ||
policy: "indefinite"; | ||
@@ -14,0 +14,0 @@ } | { |
@@ -38,7 +38,2 @@ /*! | ||
export class Timer { | ||
constructor(defaultTimeout, defaultHandler, getCurrentTick = () => Date.now()) { | ||
this.defaultTimeout = defaultTimeout; | ||
this.defaultHandler = defaultHandler; | ||
this.getCurrentTick = getCurrentTick; | ||
} | ||
/** | ||
@@ -50,2 +45,7 @@ * Returns true if the timer is running. | ||
} | ||
constructor(defaultTimeout, defaultHandler, getCurrentTick = () => Date.now()) { | ||
this.defaultTimeout = defaultTimeout; | ||
this.defaultHandler = defaultHandler; | ||
this.getCurrentTick = getCurrentTick; | ||
} | ||
/** | ||
@@ -150,5 +150,2 @@ * Calls setTimeout and tracks the resulting timeout. | ||
export class PromiseTimer { | ||
constructor(defaultTimeout, defaultHandler) { | ||
this.timer = new Timer(defaultTimeout, () => this.wrapHandler(defaultHandler)); | ||
} | ||
/** | ||
@@ -160,2 +157,5 @@ * {@inheritDoc Timer.hasTimer} | ||
} | ||
constructor(defaultTimeout, defaultHandler) { | ||
this.timer = new Timer(defaultTimeout, () => this.wrapHandler(defaultHandler)); | ||
} | ||
/** | ||
@@ -162,0 +162,0 @@ * {@inheritDoc IPromiseTimer.start} |
{ | ||
"name": "@fluidframework/core-utils", | ||
"version": "2.0.0-internal.6.4.0", | ||
"version": "2.0.0-internal.7.0.0", | ||
"description": "Not intended for use outside the Fluid client repo.", | ||
@@ -39,8 +39,8 @@ "homepage": "https://fluidframework.com", | ||
"@fluid-tools/benchmark": "^0.47.0", | ||
"@fluid-tools/build-cli": "^0.22.0", | ||
"@fluid-tools/build-cli": "^0.24.0", | ||
"@fluidframework/build-common": "^2.0.0", | ||
"@fluidframework/build-tools": "^0.22.0", | ||
"@fluidframework/build-tools": "^0.24.0", | ||
"@fluidframework/eslint-config-fluid": "^2.1.0", | ||
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0", | ||
"@microsoft/api-extractor": "^7.34.4", | ||
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0", | ||
"@microsoft/api-extractor": "^7.37.0", | ||
"@types/mocha": "^9.1.1", | ||
@@ -61,3 +61,3 @@ "@types/node": "^16.18.38", | ||
"sinon": "^7.4.2", | ||
"typescript": "~4.5.5" | ||
"typescript": "~5.1.6" | ||
}, | ||
@@ -64,0 +64,0 @@ "typeValidation": { |
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
219998