@jsenv/performance-impact 4.3.1 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -14
- package/src/{importMetricFromFiles.js → import_metric_from_files.js} +5 -6
- package/src/internal/assertions.js +1 -1
- package/src/internal/comment/{createPerfImpactComment.js → create_perf_impact_comment.js} +1 -1
- package/src/internal/comment/{formatImpact.js → format_impact.js} +2 -2
- package/src/internal/comment/jsenv_comment_parameters.js +9 -0
- package/src/internal/comment/{jsenvFormatGroupSummary.js → jsenv_format_group_summary.js} +1 -1
- package/src/internal/comment/{jsenvFormatPerformanceImpactCell.js → jsenv_format_performance_impact_cell.js} +1 -1
- package/src/internal/comment/{renderGroupImpactTable.js → render_group_impact_table.js} +1 -1
- package/src/internal/{formatMetricValue.js → format_metric_value.js} +1 -1
- package/src/internal/{formatMetricsLog.js → format_metrics_log.js} +1 -1
- package/src/internal/{measureMultipleTimes.js → measure_multiple_times.js} +1 -2
- package/src/main.js +3 -4
- package/src/{reportPerformanceImpact.js → report_performance_impact.js} +4 -5
- package/src/{startMeasures.js → start_measures.js} +1 -1
- package/src/internal/comment/jsenvCommentParameters.js +0 -9
- /package/src/internal/comment/{jsenvIsPerformanceImpactBig.js → jsenv_is_performance_impact_big.js} +0 -0
- /package/src/internal/{computeMetricsMedian.js → compute_metrics_median.js} +0 -0
- /package/src/internal/{formatRatio.js → format_ratio.js} +0 -0
package/package.json
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/performance-impact",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Report pull request impacts on performance metrics",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "dmail",
|
|
8
|
-
"email": "dmaillard06@gmail.com",
|
|
9
|
-
"url": "https://twitter.com/damienmaillard"
|
|
10
|
-
},
|
|
11
6
|
"repository": {
|
|
12
7
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/jsenv/
|
|
14
|
-
"directory": "packages/performance-impact"
|
|
8
|
+
"url": "https://github.com/jsenv/core",
|
|
9
|
+
"directory": "packages/independent/workflow/performance-impact"
|
|
15
10
|
},
|
|
16
11
|
"engines": {
|
|
17
12
|
"node": ">=16.13.0"
|
|
@@ -31,14 +26,12 @@
|
|
|
31
26
|
"/src/"
|
|
32
27
|
],
|
|
33
28
|
"scripts": {
|
|
34
|
-
"snapshot": "node ./tests/comment_snapshot/generate_comment_snapshot_file.mjs"
|
|
35
|
-
"test": "node ./scripts/test.mjs"
|
|
29
|
+
"snapshot": "node ./tests/comment_snapshot/generate_comment_snapshot_file.mjs"
|
|
36
30
|
},
|
|
37
31
|
"dependencies": {
|
|
38
32
|
"@jsenv/dynamic-import-worker": "1.2.1",
|
|
39
|
-
"@jsenv/filesystem": "4.10.
|
|
40
|
-
"@jsenv/github-pull-request-impact": "1.
|
|
41
|
-
"@jsenv/humanize": "1.2.8"
|
|
42
|
-
"@jsenv/log": "3.5.2"
|
|
33
|
+
"@jsenv/filesystem": "4.10.3",
|
|
34
|
+
"@jsenv/github-pull-request-impact": "1.8.1",
|
|
35
|
+
"@jsenv/humanize": "1.2.8"
|
|
43
36
|
}
|
|
44
37
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { assertAndNormalizeDirectoryUrl } from "@jsenv/filesystem";
|
|
2
|
-
import { createLogger } from "@jsenv/log";
|
|
3
1
|
import { importOneExportFromFile } from "@jsenv/dynamic-import-worker";
|
|
4
|
-
|
|
5
|
-
import {
|
|
2
|
+
import { assertAndNormalizeDirectoryUrl } from "@jsenv/filesystem";
|
|
3
|
+
import { createLogger } from "@jsenv/humanize";
|
|
6
4
|
import { assertMetrics } from "./internal/assertions.js";
|
|
7
|
-
import { computeMetricsMedian } from "./internal/
|
|
8
|
-
import { formatMetricsLog } from "./internal/
|
|
5
|
+
import { computeMetricsMedian } from "./internal/compute_metrics_median.js";
|
|
6
|
+
import { formatMetricsLog } from "./internal/format_metrics_log.js";
|
|
7
|
+
import { measureMultipleTimes } from "./internal/measure_multiple_times.js";
|
|
9
8
|
|
|
10
9
|
export const importMetricFromFiles = async ({
|
|
11
10
|
logLevel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formatMetricValue } from "../
|
|
2
|
-
import { formatRatioAsPercentage } from "../
|
|
1
|
+
import { formatMetricValue } from "../format_metric_value.js";
|
|
2
|
+
import { formatRatioAsPercentage } from "../format_ratio.js";
|
|
3
3
|
|
|
4
4
|
export const formatImpact = ({
|
|
5
5
|
metricValueBeforeMerge,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsenvFormatGroupSummary } from "./jsenv_format_group_summary.js";
|
|
2
|
+
import { jsenvFormatPerformanceImpactCell } from "./jsenv_format_performance_impact_cell.js";
|
|
3
|
+
import { jsenvIsPerformanceImpactBig } from "./jsenv_is_performance_impact_big.js";
|
|
4
|
+
|
|
5
|
+
export const jsenvCommentParameters = {
|
|
6
|
+
isPerformanceImpactBig: jsenvIsPerformanceImpactBig,
|
|
7
|
+
formatGroupSummary: jsenvFormatGroupSummary,
|
|
8
|
+
formatPerformanceImpactCell: jsenvFormatPerformanceImpactCell,
|
|
9
|
+
};
|
package/src/main.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { readGitHubWorkflowEnv } from "@jsenv/github-pull-request-impact";
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { reportPerformanceImpact } from "./reportPerformanceImpact.js";
|
|
2
|
+
export { importMetricFromFiles } from "./import_metric_from_files.js";
|
|
3
|
+
export { reportPerformanceImpact } from "./report_performance_impact.js";
|
|
4
|
+
export { startMeasures } from "./start_measures.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { importOneExportFromFile } from "@jsenv/dynamic-import-worker";
|
|
1
2
|
import { assertAndNormalizeDirectoryUrl } from "@jsenv/filesystem";
|
|
2
3
|
import { commentGitHubPullRequestImpact } from "@jsenv/github-pull-request-impact";
|
|
3
|
-
import { importOneExportFromFile } from "@jsenv/dynamic-import-worker";
|
|
4
|
-
|
|
5
4
|
import { assertPerformanceReport } from "./internal/assertions.js";
|
|
6
|
-
import { createPerfImpactComment } from "./internal/comment/
|
|
7
|
-
import { jsenvCommentParameters } from "./internal/comment/
|
|
5
|
+
import { createPerfImpactComment } from "./internal/comment/create_perf_impact_comment.js";
|
|
6
|
+
import { jsenvCommentParameters } from "./internal/comment/jsenv_comment_parameters.js";
|
|
8
7
|
|
|
9
8
|
export const reportPerformanceImpact = async ({
|
|
10
9
|
logLevel,
|
|
@@ -72,7 +71,7 @@ export const reportPerformanceImpact = async ({
|
|
|
72
71
|
});
|
|
73
72
|
},
|
|
74
73
|
generatedByLink: {
|
|
75
|
-
url: "https://github.com/jsenv/
|
|
74
|
+
url: "https://github.com/jsenv/core/tree/main/packages/independent/workflow/performance-impact",
|
|
76
75
|
text: "@jsenv/performance-impact",
|
|
77
76
|
},
|
|
78
77
|
runLink,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsenvIsPerformanceImpactBig } from "./jsenvIsPerformanceImpactBig.js";
|
|
2
|
-
import { jsenvFormatGroupSummary } from "./jsenvFormatGroupSummary.js";
|
|
3
|
-
import { jsenvFormatPerformanceImpactCell } from "./jsenvFormatPerformanceImpactCell.js";
|
|
4
|
-
|
|
5
|
-
export const jsenvCommentParameters = {
|
|
6
|
-
isPerformanceImpactBig: jsenvIsPerformanceImpactBig,
|
|
7
|
-
formatGroupSummary: jsenvFormatGroupSummary,
|
|
8
|
-
formatPerformanceImpactCell: jsenvFormatPerformanceImpactCell,
|
|
9
|
-
};
|
/package/src/internal/comment/{jsenvIsPerformanceImpactBig.js → jsenv_is_performance_impact_big.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|