Skip to content

Commit

Permalink
publish new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Jul 2, 2024
1 parent 235eda8 commit 05c8d5a
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 29 deletions.
10 changes: 6 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-import-worker/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
9 changes: 5 additions & 4 deletions packages/file-size-impact/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions packages/file-size-impact/src/internal/formatSize.js
Original file line number Diff line number Diff line change
@@ -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}`;
Expand Down
Original file line number Diff line number Diff line change
@@ -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), {
Expand Down
2 changes: 1 addition & 1 deletion packages/github-pull-request-impact/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions packages/github-release-package/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
}
}
6 changes: 3 additions & 3 deletions packages/lighthouse-impact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/lighthouse-impact",
"version": "4.1.2",
"version": "4.1.3",
"description": "Package description",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -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"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/monorepo/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/package-publish/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
7 changes: 4 additions & 3 deletions packages/performance-impact/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
}
}
6 changes: 3 additions & 3 deletions packages/performance-impact/src/internal/formatMetricValue.js
Original file line number Diff line number Diff line change
@@ -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,
};
2 changes: 1 addition & 1 deletion packages/performance-impact/src/internal/formatRatio.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 05c8d5a

Please sign in to comment.