@fluidframework/driver-utils
Advanced tools
Comparing version 2.20.0 to 2.21.0
# @fluidframework/driver-utils | ||
## 2.21.0 | ||
Dependency updates only. | ||
## 2.20.0 | ||
@@ -4,0 +8,0 @@ |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/driver-utils"; | ||
export declare const pkgVersion = "2.20.0"; | ||
export declare const pkgVersion = "2.21.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/driver-utils"; | ||
exports.pkgVersion = "2.20.0"; | ||
exports.pkgVersion = "2.21.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -347,3 +347,3 @@ "use strict"; | ||
let lastError; | ||
const startTime = client_utils_1.performance.now(); | ||
const startTime = (0, client_utils_1.performanceNow)(); | ||
try { | ||
@@ -367,5 +367,5 @@ // Issue async request for deltas | ||
// If we keep getting empty responses we'll eventually fail out below. | ||
lastSuccessTime = client_utils_1.performance.now(); | ||
lastSuccessTime = (0, client_utils_1.performanceNow)(); | ||
} | ||
else if (client_utils_1.performance.now() - lastSuccessTime > 30000) { | ||
else if ((0, client_utils_1.performanceNow)() - lastSuccessTime > 30000) { | ||
// If we are connected and receiving proper responses from server, but can't get any ops back, | ||
@@ -393,3 +393,3 @@ // then give up after some time. This likely indicates the issue with ordering service not flushing | ||
retry, | ||
duration: client_utils_1.performance.now() - startTime, | ||
duration: (0, client_utils_1.performanceNow)() - startTime, | ||
retryAfter, | ||
@@ -404,3 +404,3 @@ reason: scenarioName, | ||
if (telemetryEvent === undefined) { | ||
waitStartTime = client_utils_1.performance.now(); | ||
waitStartTime = (0, client_utils_1.performanceNow)(); | ||
telemetryEvent = internal_2.PerformanceEvent.start(logger, { | ||
@@ -420,3 +420,3 @@ eventName: "GetDeltasWaitTime", | ||
await waitForOnline(); | ||
totalRetryAfterTime += client_utils_1.performance.now() - waitStartTime; | ||
totalRetryAfterTime += (0, client_utils_1.performanceNow)() - waitStartTime; | ||
} | ||
@@ -423,0 +423,0 @@ return nothing; |
@@ -23,3 +23,3 @@ "use strict"; | ||
let numRetries = 0; | ||
const startTime = client_utils_1.performance.now(); | ||
const startTime = (0, client_utils_1.performanceNow)(); | ||
let lastError; | ||
@@ -37,3 +37,3 @@ do { | ||
retry: numRetries, | ||
duration: client_utils_1.performance.now() - startTime, | ||
duration: (0, client_utils_1.performanceNow)() - startTime, | ||
fetchCallName, | ||
@@ -47,3 +47,3 @@ }, err); | ||
retry: numRetries, | ||
duration: client_utils_1.performance.now() - startTime, | ||
duration: (0, client_utils_1.performanceNow)() - startTime, | ||
fetchCallName, | ||
@@ -64,3 +64,3 @@ reason: progress.cancel.reason, | ||
eventName: `${fetchCallName}_firstFailed`, | ||
duration: client_utils_1.performance.now() - startTime, | ||
duration: (0, client_utils_1.performanceNow)() - startTime, | ||
fetchCallName, | ||
@@ -83,3 +83,3 @@ }, err); | ||
retry: numRetries, | ||
duration: client_utils_1.performance.now() - startTime, | ||
duration: (0, client_utils_1.performanceNow)() - startTime, | ||
fetchCallName, | ||
@@ -86,0 +86,0 @@ }, lastError); |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/driver-utils"; | ||
export declare const pkgVersion = "2.20.0"; | ||
export declare const pkgVersion = "2.21.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/driver-utils"; | ||
export const pkgVersion = "2.20.0"; | ||
export const pkgVersion = "2.21.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import { performance } from "@fluid-internal/client-utils"; | ||
import { performanceNow } from "@fluid-internal/client-utils"; | ||
import { assert, Deferred } from "@fluidframework/core-utils/internal"; | ||
@@ -343,3 +343,3 @@ import { PerformanceEvent, } from "@fluidframework/telemetry-utils/internal"; | ||
let lastError; | ||
const startTime = performance.now(); | ||
const startTime = performanceNow(); | ||
try { | ||
@@ -363,5 +363,5 @@ // Issue async request for deltas | ||
// If we keep getting empty responses we'll eventually fail out below. | ||
lastSuccessTime = performance.now(); | ||
lastSuccessTime = performanceNow(); | ||
} | ||
else if (performance.now() - lastSuccessTime > 30000) { | ||
else if (performanceNow() - lastSuccessTime > 30000) { | ||
// If we are connected and receiving proper responses from server, but can't get any ops back, | ||
@@ -389,3 +389,3 @@ // then give up after some time. This likely indicates the issue with ordering service not flushing | ||
retry, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
retryAfter, | ||
@@ -400,3 +400,3 @@ reason: scenarioName, | ||
if (telemetryEvent === undefined) { | ||
waitStartTime = performance.now(); | ||
waitStartTime = performanceNow(); | ||
telemetryEvent = PerformanceEvent.start(logger, { | ||
@@ -416,3 +416,3 @@ eventName: "GetDeltasWaitTime", | ||
await waitForOnline(); | ||
totalRetryAfterTime += performance.now() - waitStartTime; | ||
totalRetryAfterTime += performanceNow() - waitStartTime; | ||
} | ||
@@ -419,0 +419,0 @@ return nothing; |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import { performance } from "@fluid-internal/client-utils"; | ||
import { performanceNow } from "@fluid-internal/client-utils"; | ||
import { delay } from "@fluidframework/core-utils/internal"; | ||
@@ -21,3 +21,3 @@ import { DriverErrorTypes } from "@fluidframework/driver-definitions/internal"; | ||
let numRetries = 0; | ||
const startTime = performance.now(); | ||
const startTime = performanceNow(); | ||
let lastError; | ||
@@ -35,3 +35,3 @@ do { | ||
retry: numRetries, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -45,3 +45,3 @@ }, err); | ||
retry: numRetries, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -62,3 +62,3 @@ reason: progress.cancel.reason, | ||
eventName: `${fetchCallName}_firstFailed`, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -81,3 +81,3 @@ }, err); | ||
retry: numRetries, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -84,0 +84,0 @@ }, lastError); |
{ | ||
"name": "@fluidframework/driver-utils", | ||
"version": "2.20.0", | ||
"version": "2.21.0", | ||
"description": "Collection of utility functions for Fluid drivers", | ||
@@ -72,7 +72,7 @@ "homepage": "https://fluidframework.com", | ||
"dependencies": { | ||
"@fluid-internal/client-utils": "~2.20.0", | ||
"@fluidframework/core-interfaces": "~2.20.0", | ||
"@fluidframework/core-utils": "~2.20.0", | ||
"@fluidframework/driver-definitions": "~2.20.0", | ||
"@fluidframework/telemetry-utils": "~2.20.0", | ||
"@fluid-internal/client-utils": "~2.21.0", | ||
"@fluidframework/core-interfaces": "~2.21.0", | ||
"@fluidframework/core-utils": "~2.21.0", | ||
"@fluidframework/driver-definitions": "~2.21.0", | ||
"@fluidframework/telemetry-utils": "~2.21.0", | ||
"axios": "^1.7.7", | ||
@@ -85,8 +85,8 @@ "lz4js": "^0.2.0", | ||
"@biomejs/biome": "~1.9.3", | ||
"@fluid-internal/mocha-test-setup": "~2.20.0", | ||
"@fluid-internal/mocha-test-setup": "~2.21.0", | ||
"@fluid-tools/build-cli": "^0.51.0", | ||
"@fluidframework/build-common": "^2.0.3", | ||
"@fluidframework/build-tools": "^0.51.0", | ||
"@fluidframework/driver-utils-previous": "npm:@fluidframework/driver-utils@2.13.0", | ||
"@fluidframework/eslint-config-fluid": "^5.6.0", | ||
"@fluidframework/driver-utils-previous": "npm:@fluidframework/driver-utils@2.20.0", | ||
"@fluidframework/eslint-config-fluid": "^5.7.3", | ||
"@microsoft/api-extractor": "7.47.8", | ||
@@ -144,3 +144,3 @@ "@types/mocha": "^10.0.10", | ||
"ci:build:docs": "api-extractor run", | ||
"clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", | ||
"clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", | ||
"eslint": "eslint --format stylish src", | ||
@@ -147,0 +147,0 @@ "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/driver-utils"; | ||
export const pkgVersion = "2.20.0"; | ||
export const pkgVersion = "2.21.0"; |
@@ -6,3 +6,3 @@ /*! | ||
import { performance } from "@fluid-internal/client-utils"; | ||
import { performanceNow } from "@fluid-internal/client-utils"; | ||
import { ITelemetryBaseProperties } from "@fluidframework/core-interfaces"; | ||
@@ -440,3 +440,3 @@ import { assert, Deferred } from "@fluidframework/core-utils/internal"; | ||
let lastError: unknown; | ||
const startTime = performance.now(); | ||
const startTime = performanceNow(); | ||
@@ -464,4 +464,4 @@ try { | ||
// If we keep getting empty responses we'll eventually fail out below. | ||
lastSuccessTime = performance.now(); | ||
} else if (performance.now() - lastSuccessTime > 30000) { | ||
lastSuccessTime = performanceNow(); | ||
} else if (performanceNow() - lastSuccessTime > 30000) { | ||
// If we are connected and receiving proper responses from server, but can't get any ops back, | ||
@@ -495,3 +495,3 @@ // then give up after some time. This likely indicates the issue with ordering service not flushing | ||
retry, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
retryAfter, | ||
@@ -510,3 +510,3 @@ reason: scenarioName, | ||
if (telemetryEvent === undefined) { | ||
waitStartTime = performance.now(); | ||
waitStartTime = performanceNow(); | ||
telemetryEvent = PerformanceEvent.start(logger, { | ||
@@ -529,3 +529,3 @@ eventName: "GetDeltasWaitTime", | ||
await waitForOnline(); | ||
totalRetryAfterTime += performance.now() - waitStartTime; | ||
totalRetryAfterTime += performanceNow() - waitStartTime; | ||
} | ||
@@ -532,0 +532,0 @@ |
@@ -6,3 +6,3 @@ /*! | ||
import { performance } from "@fluid-internal/client-utils"; | ||
import { performanceNow } from "@fluid-internal/client-utils"; | ||
import { delay } from "@fluidframework/core-utils/internal"; | ||
@@ -62,3 +62,3 @@ import { DriverErrorTypes } from "@fluidframework/driver-definitions/internal"; | ||
let numRetries = 0; | ||
const startTime = performance.now(); | ||
const startTime = performanceNow(); | ||
let lastError: any; | ||
@@ -76,3 +76,3 @@ do { | ||
retry: numRetries, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -90,3 +90,3 @@ }, | ||
retry: numRetries, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -115,3 +115,3 @@ reason: progress.cancel.reason, | ||
eventName: `${fetchCallName}_firstFailed`, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -138,3 +138,3 @@ }, | ||
retry: numRetries, | ||
duration: performance.now() - startTime, | ||
duration: performanceNow() - startTime, | ||
fetchCallName, | ||
@@ -141,0 +141,0 @@ }, |
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
764538
+ Added@fluid-internal/client-utils@2.21.0(transitive)
+ Added@fluidframework/core-interfaces@2.21.0(transitive)
+ Added@fluidframework/core-utils@2.21.0(transitive)
+ Added@fluidframework/driver-definitions@2.21.0(transitive)
+ Added@fluidframework/telemetry-utils@2.21.0(transitive)
- Removed@fluid-internal/client-utils@2.20.0(transitive)
- Removed@fluidframework/core-interfaces@2.20.0(transitive)
- Removed@fluidframework/core-utils@2.20.0(transitive)
- Removed@fluidframework/driver-definitions@2.20.0(transitive)
- Removed@fluidframework/telemetry-utils@2.20.0(transitive)