From 05c8d5a5c210c3a24003975605990ed62e58438d Mon Sep 17 00:00:00 2001 From: dmail Date: Tue, 2 Jul 2024 18:28:33 +0200 Subject: [PATCH] publish new versions --- package-lock.json | 10 ++++++---- package.json | 2 +- packages/dynamic-import-worker/package.json | 2 +- packages/file-size-impact/package.json | 9 +++++---- packages/file-size-impact/src/internal/formatSize.js | 4 ++-- .../file-size-impact/src/internal/format_percentage.js | 2 +- packages/github-pull-request-impact/package.json | 2 +- packages/github-release-package/package.json | 4 ++-- packages/lighthouse-impact/package.json | 6 +++--- packages/monorepo/package.json | 4 ++-- packages/package-publish/package.json | 2 +- packages/performance-impact/package.json | 7 ++++--- .../src/internal/formatMetricValue.js | 6 +++--- .../performance-impact/src/internal/formatRatio.js | 2 +- 14 files changed, 33 insertions(+), 29 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8767536..e8d6bdb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@jsenv/github-check-run": "./packages/github-check-run", "@jsenv/log": "3.5.2", "@jsenv/monorepo": "./packages/monorepo", - "@jsenv/test": "3.0.15", + "@jsenv/test": "3.0.16", "errorstacks": "2.4.1", "eslint": "8.53.0", "eslint-plugin-html": "7.1.0", @@ -925,9 +925,9 @@ } }, "node_modules/@jsenv/test": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@jsenv/test/-/test-3.0.15.tgz", - "integrity": "sha512-d+qWdLId1+QR7r+5gsjECgPDo/Ps5ue4I3Z1tSzAQFfga1yykHVU0FFp9YXYROfH5q26puLzHC72vV1wmB/GMw==", + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/@jsenv/test/-/test-3.0.16.tgz", + "integrity": "sha512-bzhCrp+ZEtVT7V0tC9u+0nsP4+EF41V2nYI0pT9AagNag0PsDTx6+M/98JmhaXJ08B2e4uTGyCEpbK9WJcgPeg==", "dev": true, "license": "MIT", "dependencies": { @@ -6081,6 +6081,7 @@ "@jsenv/dynamic-import-worker": "1.2.0", "@jsenv/filesystem": "4.6.6", "@jsenv/github-pull-request-impact": "1.7.4", + "@jsenv/humanize": "1.1.0", "@jsenv/log": "3.5.2", "@jsenv/urls": "2.2.4" }, @@ -6195,6 +6196,7 @@ "@jsenv/dynamic-import-worker": "1.2.0", "@jsenv/filesystem": "4.6.6", "@jsenv/github-pull-request-impact": "1.7.4", + "@jsenv/humanize": "1.1.0", "@jsenv/log": "3.5.2" }, "engines": { diff --git a/package.json b/package.json index fcf32b1..d29d4ea 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@jsenv/log": "3.5.2", "@jsenv/monorepo": "./packages/monorepo", "@jsenv/github-check-run": "./packages/github-check-run", - "@jsenv/test": "3.0.15", + "@jsenv/test": "3.0.16", "eslint": "8.53.0", "eslint-plugin-html": "7.1.0", "eslint-plugin-import": "2.29.1", diff --git a/packages/dynamic-import-worker/package.json b/packages/dynamic-import-worker/package.json index ab4975f..e09da95 100644 --- a/packages/dynamic-import-worker/package.json +++ b/packages/dynamic-import-worker/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/dynamic-import-worker", - "version": "1.2.0", + "version": "1.2.1", "description": "Bypass node cache on dynamic import thanks to worker", "license": "MIT", "author": { diff --git a/packages/file-size-impact/package.json b/packages/file-size-impact/package.json index b0a1c53..f0018b6 100644 --- a/packages/file-size-impact/package.json +++ b/packages/file-size-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/file-size-impact", - "version": "14.1.5", + "version": "14.1.6", "description": "Add files size impact into pull requests", "license": "MIT", "repository": { @@ -34,10 +34,11 @@ "file-size": "node ./scripts/file_size.mjs --log" }, "dependencies": { - "@jsenv/dynamic-import-worker": "1.2.0", + "@jsenv/dynamic-import-worker": "1.2.1", "@jsenv/filesystem": "4.6.6", - "@jsenv/github-pull-request-impact": "1.7.4", + "@jsenv/github-pull-request-impact": "1.7.5", "@jsenv/log": "3.5.2", - "@jsenv/urls": "2.2.4" + "@jsenv/urls": "2.2.4", + "@jsenv/humanize": "1.1.0" } } diff --git a/packages/file-size-impact/src/internal/formatSize.js b/packages/file-size-impact/src/internal/formatSize.js index f57c5ea..765027e 100644 --- a/packages/file-size-impact/src/internal/formatSize.js +++ b/packages/file-size-impact/src/internal/formatSize.js @@ -1,8 +1,8 @@ -import { byteAsFileSize } from "@jsenv/log"; +import { humanizeFileSize } from "@jsenv/humanize"; export const formatSize = (sizeNumber, { diff = false } = {}) => { const sizeNumberAbsolute = Math.abs(sizeNumber); - let sizeString = byteAsFileSize(sizeNumberAbsolute); + let sizeString = humanizeFileSize(sizeNumberAbsolute); if (diff) { if (sizeNumber < 0) { sizeString = `-${sizeString}`; diff --git a/packages/file-size-impact/src/internal/format_percentage.js b/packages/file-size-impact/src/internal/format_percentage.js index cd19182..b6a4097 100644 --- a/packages/file-size-impact/src/internal/format_percentage.js +++ b/packages/file-size-impact/src/internal/format_percentage.js @@ -1,4 +1,4 @@ -import { setRoundedPrecision } from "@jsenv/log"; +import { setRoundedPrecision } from "@jsenv/humanize/src/utils/decimals.js"; export const formatPercentage = (number) => { return `${number < 0 ? `-` : "+"}${setRoundedPrecision(Math.abs(number), { diff --git a/packages/github-pull-request-impact/package.json b/packages/github-pull-request-impact/package.json index ff81817..bf2cccb 100644 --- a/packages/github-pull-request-impact/package.json +++ b/packages/github-pull-request-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/github-pull-request-impact", - "version": "1.7.4", + "version": "1.7.5", "description": "Report pull request impact on something", "license": "MIT", "author": { diff --git a/packages/github-release-package/package.json b/packages/github-release-package/package.json index c70aefb..5524450 100644 --- a/packages/github-release-package/package.json +++ b/packages/github-release-package/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/github-release-package", - "version": "1.5.4", + "version": "1.5.5", "description": "Create github release when package version changes.", "license": "MIT", "author": { @@ -35,6 +35,6 @@ "dependencies": { "@jsenv/filesystem": "4.6.6", "@jsenv/log": "3.5.2", - "@jsenv/github-pull-request-impact": "1.7.4" + "@jsenv/github-pull-request-impact": "1.7.5" } } diff --git a/packages/lighthouse-impact/package.json b/packages/lighthouse-impact/package.json index 02d2cd4..6ba1fc4 100644 --- a/packages/lighthouse-impact/package.json +++ b/packages/lighthouse-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/lighthouse-impact", - "version": "4.1.2", + "version": "4.1.3", "description": "Package description", "license": "MIT", "author": { @@ -36,9 +36,9 @@ }, "dependencies": { "@jsenv/abort": "4.3.0", - "@jsenv/dynamic-import-worker": "1.2.0", + "@jsenv/dynamic-import-worker": "1.2.1", "@jsenv/filesystem": "4.6.6", - "@jsenv/github-pull-request-impact": "1.7.4", + "@jsenv/github-pull-request-impact": "1.7.5", "@jsenv/log": "3.5.2", "lighthouse": "12.1.0" } diff --git a/packages/monorepo/package.json b/packages/monorepo/package.json index 1bdff6e..9602c21 100644 --- a/packages/monorepo/package.json +++ b/packages/monorepo/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/monorepo", - "version": "0.0.4", + "version": "0.0.5", "description": "Helpers to manage packages in a monorepo", "license": "MIT", "author": { @@ -36,7 +36,7 @@ "dependencies": { "@jsenv/urls": "2.2.4", "@jsenv/filesystem": "4.6.6", - "@jsenv/package-publish": "1.10.4", + "@jsenv/package-publish": "1.10.5", "@jsenv/log": "3.5.2", "semver": "7.6.2" } diff --git a/packages/package-publish/package.json b/packages/package-publish/package.json index bf3cc46..daed52e 100644 --- a/packages/package-publish/package.json +++ b/packages/package-publish/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/package-publish", - "version": "1.10.4", + "version": "1.10.5", "description": "Publish package to one or many registry.", "license": "MIT", "author": { diff --git a/packages/performance-impact/package.json b/packages/performance-impact/package.json index 88d1de7..c3e84f3 100644 --- a/packages/performance-impact/package.json +++ b/packages/performance-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/performance-impact", - "version": "4.2.0", + "version": "4.2.1", "description": "Report pull request impacts on performance metrics", "license": "MIT", "author": { @@ -35,9 +35,10 @@ "test": "node ./scripts/test.mjs" }, "dependencies": { - "@jsenv/dynamic-import-worker": "1.2.0", + "@jsenv/dynamic-import-worker": "1.2.1", "@jsenv/filesystem": "4.6.6", - "@jsenv/github-pull-request-impact": "1.7.4", + "@jsenv/github-pull-request-impact": "1.7.5", + "@jsenv/humanize": "1.1.0", "@jsenv/log": "3.5.2" } } diff --git a/packages/performance-impact/src/internal/formatMetricValue.js b/packages/performance-impact/src/internal/formatMetricValue.js index c9fbe42..c339075 100644 --- a/packages/performance-impact/src/internal/formatMetricValue.js +++ b/packages/performance-impact/src/internal/formatMetricValue.js @@ -1,11 +1,11 @@ -import { byteAsFileSize, msAsDuration } from "@jsenv/log"; +import { humanizeFileSize, humanizeDuration } from "@jsenv/humanize"; export const formatMetricValue = ({ value, unit }) => { return formatters[unit](value); }; const formatters = { - ms: msAsDuration, - byte: byteAsFileSize, + ms: humanizeDuration, + byte: humanizeFileSize, undefined: (value) => value, }; diff --git a/packages/performance-impact/src/internal/formatRatio.js b/packages/performance-impact/src/internal/formatRatio.js index 76b854a..ef6732d 100644 --- a/packages/performance-impact/src/internal/formatRatio.js +++ b/packages/performance-impact/src/internal/formatRatio.js @@ -1,4 +1,4 @@ -import { setRoundedPrecision } from "@jsenv/log"; +import { setRoundedPrecision } from "@jsenv/humanize/src/utils/decimals.js"; export const formatRatioAsPercentage = (ratio) => { const percentage = ratio * 100;