@bundle-stats/utils 4.2.3-beta.0 → 4.2.3-beta.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.
Files changed (184) hide show
  1. package/README.md +15 -10
  2. package/lib/browsertime/metrics.js +22 -22
  3. package/lib/browsertime/metrics.js.map +1 -1
  4. package/lib/config/component-links.js +7 -1
  5. package/lib/config/component-links.js.map +1 -1
  6. package/lib/config/file-types.js +3 -3
  7. package/lib/config/file-types.js.map +1 -1
  8. package/lib/config/index.js +1 -2
  9. package/lib/config/index.js.map +1 -1
  10. package/lib/config/metric-types.js +28 -0
  11. package/lib/config/metric-types.js.map +1 -0
  12. package/lib/constants.js +23 -22
  13. package/lib/constants.js.map +1 -1
  14. package/lib/i18n.js +15 -10
  15. package/lib/i18n.js.map +1 -1
  16. package/lib/jobs/create-job.js +17 -7
  17. package/lib/jobs/create-job.js.map +1 -1
  18. package/lib/jobs/create-jobs.js.map +1 -1
  19. package/lib/lighthouse/metrics.js +13 -13
  20. package/lib/lighthouse/metrics.js.map +1 -1
  21. package/lib/report/add-row-metric-data.js +4 -4
  22. package/lib/report/add-row-metric-data.js.map +1 -1
  23. package/lib/report/compare-metrics.js +4 -1
  24. package/lib/report/compare-metrics.js.map +1 -1
  25. package/lib/report/create.js +17 -7
  26. package/lib/report/create.js.map +1 -1
  27. package/lib/report/get-metric-changed.js.map +1 -1
  28. package/lib/report/index.js +1 -0
  29. package/lib/report/index.js.map +1 -1
  30. package/lib/report/merge-metrics-by-key.js +1 -1
  31. package/lib/report/merge-metrics-by-key.js.map +1 -1
  32. package/lib/utils/component-links.js +191 -27
  33. package/lib/utils/component-links.js.map +1 -1
  34. package/lib/utils/date.js.map +1 -1
  35. package/lib/utils/delta.js +35 -30
  36. package/lib/utils/delta.js.map +1 -1
  37. package/lib/utils/format.js +5 -6
  38. package/lib/utils/format.js.map +1 -1
  39. package/lib/utils/insights.js.map +1 -1
  40. package/lib/utils/metrics.js +49 -32
  41. package/lib/utils/metrics.js.map +1 -1
  42. package/lib/webpack/compare.js +16 -12
  43. package/lib/webpack/compare.js.map +1 -1
  44. package/lib/webpack/extract/assets.js +7 -1
  45. package/lib/webpack/extract/assets.js.map +1 -1
  46. package/lib/webpack/extract/meta.js.map +1 -1
  47. package/lib/webpack/extract/modules-packages-duplicate.js.map +1 -1
  48. package/lib/webpack/extract/modules-packages-new-insight.js.map +1 -1
  49. package/lib/webpack/extract/modules-packages.js +8 -1
  50. package/lib/webpack/extract/modules-packages.js.map +1 -1
  51. package/lib/webpack/extract/modules.js +45 -20
  52. package/lib/webpack/extract/modules.js.map +1 -1
  53. package/lib/webpack/metrics.js +35 -34
  54. package/lib/webpack/metrics.js.map +1 -1
  55. package/lib/webpack/selectors.js +40 -3
  56. package/lib/webpack/selectors.js.map +1 -1
  57. package/lib/webpack/types.js +1 -1
  58. package/lib/webpack/types.js.map +1 -1
  59. package/lib/webpack/utils.js +37 -25
  60. package/lib/webpack/utils.js.map +1 -1
  61. package/lib-esm/browsertime/metrics.js +22 -22
  62. package/lib-esm/browsertime/metrics.js.map +1 -1
  63. package/lib-esm/config/component-links.js +6 -0
  64. package/lib-esm/config/component-links.js.map +1 -1
  65. package/lib-esm/config/file-types.js +3 -3
  66. package/lib-esm/config/file-types.js.map +1 -1
  67. package/lib-esm/config/index.js +1 -2
  68. package/lib-esm/config/index.js.map +1 -1
  69. package/lib-esm/config/metric-types.js +25 -0
  70. package/lib-esm/config/metric-types.js.map +1 -0
  71. package/lib-esm/constants.js +19 -18
  72. package/lib-esm/constants.js.map +1 -1
  73. package/lib-esm/i18n.js +15 -10
  74. package/lib-esm/i18n.js.map +1 -1
  75. package/lib-esm/jobs/create-job.js.map +1 -1
  76. package/lib-esm/jobs/create-jobs.js.map +1 -1
  77. package/lib-esm/lighthouse/metrics.js +13 -13
  78. package/lib-esm/lighthouse/metrics.js.map +1 -1
  79. package/lib-esm/report/add-row-metric-data.js +4 -4
  80. package/lib-esm/report/add-row-metric-data.js.map +1 -1
  81. package/lib-esm/report/compare-metrics.js +4 -1
  82. package/lib-esm/report/compare-metrics.js.map +1 -1
  83. package/lib-esm/report/create.js.map +1 -1
  84. package/lib-esm/report/get-metric-changed.js.map +1 -1
  85. package/lib-esm/report/index.js +1 -0
  86. package/lib-esm/report/index.js.map +1 -1
  87. package/lib-esm/report/merge-metrics-by-key.js +1 -1
  88. package/lib-esm/report/merge-metrics-by-key.js.map +1 -1
  89. package/lib-esm/utils/component-links.js +185 -27
  90. package/lib-esm/utils/component-links.js.map +1 -1
  91. package/lib-esm/utils/date.js.map +1 -1
  92. package/lib-esm/utils/delta.js +32 -26
  93. package/lib-esm/utils/delta.js.map +1 -1
  94. package/lib-esm/utils/format.js.map +1 -1
  95. package/lib-esm/utils/insights.js.map +1 -1
  96. package/lib-esm/utils/metrics.js +44 -27
  97. package/lib-esm/utils/metrics.js.map +1 -1
  98. package/lib-esm/webpack/compare.js +7 -5
  99. package/lib-esm/webpack/compare.js.map +1 -1
  100. package/lib-esm/webpack/extract/assets.js +7 -1
  101. package/lib-esm/webpack/extract/assets.js.map +1 -1
  102. package/lib-esm/webpack/extract/meta.js.map +1 -1
  103. package/lib-esm/webpack/extract/modules-packages-duplicate.js.map +1 -1
  104. package/lib-esm/webpack/extract/modules-packages-new-insight.js.map +1 -1
  105. package/lib-esm/webpack/extract/modules-packages.js +8 -1
  106. package/lib-esm/webpack/extract/modules-packages.js.map +1 -1
  107. package/lib-esm/webpack/extract/modules.js +45 -20
  108. package/lib-esm/webpack/extract/modules.js.map +1 -1
  109. package/lib-esm/webpack/metrics.js +35 -34
  110. package/lib-esm/webpack/metrics.js.map +1 -1
  111. package/lib-esm/webpack/selectors.js +35 -1
  112. package/lib-esm/webpack/selectors.js.map +1 -1
  113. package/lib-esm/webpack/utils.js +37 -25
  114. package/lib-esm/webpack/utils.js.map +1 -1
  115. package/package.json +20 -22
  116. package/src/browsertime/metrics.js +22 -22
  117. package/src/config/component-links.js +7 -0
  118. package/src/config/file-types.js +3 -3
  119. package/src/config/index.js +1 -2
  120. package/src/config/metric-types.ts +25 -0
  121. package/src/constants.ts +94 -34
  122. package/src/i18n.js +15 -10
  123. package/src/lighthouse/metrics.js +13 -15
  124. package/src/report/add-row-metric-data.ts +42 -38
  125. package/src/report/compare-metrics.ts +7 -4
  126. package/src/report/create.ts +1 -1
  127. package/src/report/index.js +1 -0
  128. package/src/report/merge-metrics-by-key.ts +7 -5
  129. package/src/report/types.ts +17 -0
  130. package/src/utils/component-links.ts +276 -35
  131. package/src/utils/delta.ts +98 -0
  132. package/src/utils/metrics.ts +88 -0
  133. package/src/webpack/compare.ts +62 -0
  134. package/src/webpack/extract/assets.ts +13 -7
  135. package/src/webpack/extract/modules-packages.ts +74 -61
  136. package/src/webpack/extract/modules.ts +66 -33
  137. package/src/webpack/{metrics.js → metrics.ts} +41 -39
  138. package/src/webpack/selectors.js +82 -9
  139. package/src/webpack/types.ts +13 -4
  140. package/src/webpack/utils.ts +173 -0
  141. package/types/browsertime/compare.d.ts +1 -1
  142. package/types/browsertime/metrics.d.ts +63 -43
  143. package/types/config/component-links.d.ts +26 -18
  144. package/types/config/file-types.d.ts +17 -17
  145. package/types/config/index.d.ts +1 -2
  146. package/types/config/metric-types.d.ts +2 -0
  147. package/types/constants.d.ts +52 -29
  148. package/types/i18n.d.ts +19 -14
  149. package/types/lighthouse/compare.d.ts +1 -1
  150. package/types/lighthouse/filter.d.ts +1 -1
  151. package/types/lighthouse/metrics.d.ts +36 -28
  152. package/types/report/add-row-metric-data.d.ts +1 -16
  153. package/types/report/compare-metrics.d.ts +1 -1
  154. package/types/report/index.d.ts +1 -0
  155. package/types/report/merge-metrics-by-key.d.ts +1 -1
  156. package/types/report/types.d.ts +12 -0
  157. package/types/utils/component-links.d.ts +24 -8
  158. package/types/utils/delta.d.ts +4 -6
  159. package/types/utils/metrics.d.ts +4 -3
  160. package/types/webpack/compare.d.ts +11 -14
  161. package/types/webpack/constants.d.ts +1 -1
  162. package/types/webpack/extract/assets-size-total-insight.d.ts +2 -2
  163. package/types/webpack/extract/modules.d.ts +1 -1
  164. package/types/webpack/metrics.d.ts +7 -153
  165. package/types/webpack/selectors.d.ts +21 -7
  166. package/types/webpack/types.d.ts +4 -4
  167. package/types/webpack/utils.d.ts +8 -8
  168. package/CHANGELOG.md +0 -333
  169. package/lib/config/delta.js +0 -13
  170. package/lib/config/delta.js.map +0 -1
  171. package/lib/config/metrics.js +0 -32
  172. package/lib/config/metrics.js.map +0 -1
  173. package/lib-esm/config/delta.js +0 -10
  174. package/lib-esm/config/delta.js.map +0 -1
  175. package/lib-esm/config/metrics.js +0 -29
  176. package/lib-esm/config/metrics.js.map +0 -1
  177. package/src/config/delta.js +0 -11
  178. package/src/config/metrics.js +0 -35
  179. package/src/utils/delta.js +0 -94
  180. package/src/utils/metrics.js +0 -92
  181. package/src/webpack/compare.js +0 -81
  182. package/src/webpack/utils.js +0 -155
  183. package/types/config/delta.d.ts +0 -9
  184. package/types/config/metrics.d.ts +0 -35
@@ -1,153 +1,7 @@
1
- export namespace metrics {
2
- namespace totalSizeByTypeALL {
3
- export const label: string;
4
- export const description: string;
5
- export const url: string;
6
- export { METRIC_TYPE_FILE_SIZE as type };
7
- }
8
- namespace totalInitialSizeJS {
9
- const label_1: string;
10
- export { label_1 as label };
11
- const description_1: string;
12
- export { description_1 as description };
13
- const url_1: string;
14
- export { url_1 as url };
15
- export { METRIC_TYPE_FILE_SIZE as type };
16
- }
17
- namespace totalInitialSizeCSS {
18
- const label_2: string;
19
- export { label_2 as label };
20
- const description_2: string;
21
- export { description_2 as description };
22
- const url_2: string;
23
- export { url_2 as url };
24
- export { METRIC_TYPE_FILE_SIZE as type };
25
- }
26
- namespace cacheInvalidation {
27
- const label_3: string;
28
- export { label_3 as label };
29
- const description_3: string;
30
- export { description_3 as description };
31
- const url_3: string;
32
- export { url_3 as url };
33
- export { METRIC_TYPE_PERCENTAGE as type };
34
- export const biggerIsBetter: boolean;
35
- }
36
- namespace chunkCount {
37
- const label_4: string;
38
- export { label_4 as label };
39
- const description_4: string;
40
- export { description_4 as description };
41
- const url_4: string;
42
- export { url_4 as url };
43
- export { METRIC_TYPE_NUMERIC as type };
44
- const biggerIsBetter_1: boolean;
45
- export { biggerIsBetter_1 as biggerIsBetter };
46
- }
47
- namespace assetCount {
48
- const label_5: string;
49
- export { label_5 as label };
50
- const description_5: string;
51
- export { description_5 as description };
52
- const url_5: string;
53
- export { url_5 as url };
54
- export { METRIC_TYPE_NUMERIC as type };
55
- const biggerIsBetter_2: boolean;
56
- export { biggerIsBetter_2 as biggerIsBetter };
57
- }
58
- namespace moduleCount {
59
- const label_6: string;
60
- export { label_6 as label };
61
- const description_6: string;
62
- export { description_6 as description };
63
- const url_6: string;
64
- export { url_6 as url };
65
- export { METRIC_TYPE_NUMERIC as type };
66
- const biggerIsBetter_3: boolean;
67
- export { biggerIsBetter_3 as biggerIsBetter };
68
- }
69
- namespace duplicateModulesCount {
70
- const label_7: string;
71
- export { label_7 as label };
72
- const description_7: string;
73
- export { description_7 as description };
74
- const url_7: string;
75
- export { url_7 as url };
76
- export { METRIC_TYPE_NUMERIC as type };
77
- const biggerIsBetter_4: boolean;
78
- export { biggerIsBetter_4 as biggerIsBetter };
79
- }
80
- namespace duplicateCode {
81
- const label_8: string;
82
- export { label_8 as label };
83
- const description_8: string;
84
- export { description_8 as description };
85
- const url_8: string;
86
- export { url_8 as url };
87
- export { METRIC_TYPE_PERCENTAGE as type };
88
- const biggerIsBetter_5: boolean;
89
- export { biggerIsBetter_5 as biggerIsBetter };
90
- }
91
- namespace packageCount {
92
- const label_9: string;
93
- export { label_9 as label };
94
- const description_9: string;
95
- export { description_9 as description };
96
- const url_9: string;
97
- export { url_9 as url };
98
- export { METRIC_TYPE_NUMERIC as type };
99
- const biggerIsBetter_6: boolean;
100
- export { biggerIsBetter_6 as biggerIsBetter };
101
- }
102
- namespace duplicatePackagesCount {
103
- const label_10: string;
104
- export { label_10 as label };
105
- const description_10: string;
106
- export { description_10 as description };
107
- const url_10: string;
108
- export { url_10 as url };
109
- export { METRIC_TYPE_NUMERIC as type };
110
- const biggerIsBetter_7: boolean;
111
- export { biggerIsBetter_7 as biggerIsBetter };
112
- }
113
- namespace sizes {
114
- namespace totalSizeByTypeJS {
115
- const label_11: string;
116
- export { label_11 as label };
117
- export { METRIC_TYPE_FILE_SIZE as type };
118
- }
119
- namespace totalSizeByTypeCSS {
120
- const label_12: string;
121
- export { label_12 as label };
122
- export { METRIC_TYPE_FILE_SIZE as type };
123
- }
124
- namespace totalSizeByTypeIMG {
125
- const label_13: string;
126
- export { label_13 as label };
127
- export { METRIC_TYPE_FILE_SIZE as type };
128
- }
129
- namespace totalSizeByTypeMEDIA {
130
- const label_14: string;
131
- export { label_14 as label };
132
- export { METRIC_TYPE_FILE_SIZE as type };
133
- }
134
- namespace totalSizeByTypeFONT {
135
- const label_15: string;
136
- export { label_15 as label };
137
- export { METRIC_TYPE_FILE_SIZE as type };
138
- }
139
- namespace totalSizeByTypeHTML {
140
- const label_16: string;
141
- export { label_16 as label };
142
- export { METRIC_TYPE_FILE_SIZE as type };
143
- }
144
- namespace totalSizeByTypeOTHER {
145
- const label_17: string;
146
- export { label_17 as label };
147
- export { METRIC_TYPE_FILE_SIZE as type };
148
- }
149
- }
150
- }
151
- import { METRIC_TYPE_FILE_SIZE } from "../config/metrics";
152
- import { METRIC_TYPE_PERCENTAGE } from "../config/metrics";
153
- import { METRIC_TYPE_NUMERIC } from "../config/metrics";
1
+ import { Metric } from './types';
2
+ import { MetricConfig } from '../constants';
3
+ type WebpackMetrics = Partial<Record<Metric, MetricConfig>> & {
4
+ sizes: Partial<Record<Metric, MetricConfig>>;
5
+ };
6
+ export declare const metrics: WebpackMetrics;
7
+ export {};
@@ -1,3 +1,24 @@
1
+ export function getModulesMetrics(job: {
2
+ metrics: {
3
+ webpack: {
4
+ modules: Object;
5
+ };
6
+ };
7
+ }): Object;
8
+ export function getModulesDuplicateSizeMetrics(job: {
9
+ metrics: {
10
+ webpack: {
11
+ modules: Object;
12
+ };
13
+ };
14
+ }): Object;
15
+ export function getModulesTotalSizeMetrics(job: {
16
+ metrics: {
17
+ webpack: {
18
+ modules: Object;
19
+ };
20
+ };
21
+ }): Object;
1
22
  export namespace selectors {
2
23
  export { getStatsMetrics as stats };
3
24
  export { getSizeMetrics as sizes };
@@ -24,13 +45,6 @@ declare function getAssetsMetrics(job: {
24
45
  };
25
46
  };
26
47
  }): Object;
27
- declare function getModulesMetrics(job: {
28
- metrics: {
29
- webpack: {
30
- modules: Object;
31
- };
32
- };
33
- }): Object;
34
48
  declare function getPackageMetrics(job: {
35
49
  metrics: {
36
50
  webpack: {
@@ -25,14 +25,14 @@ export interface MetaChunk {
25
25
  id: string;
26
26
  name: string;
27
27
  }
28
- export interface Asset extends MetricRun {
28
+ export interface AssetMetricRun extends MetricRun {
29
29
  name: string;
30
30
  isEntry: boolean;
31
31
  isInitial: boolean;
32
32
  isChunk: boolean;
33
33
  chunkId?: string;
34
34
  }
35
- export type Assets = Record<string, Asset>;
35
+ export type Assets = Record<string, AssetMetricRun>;
36
36
  export interface MetricsAssets {
37
37
  metrics: {
38
38
  assets: Assets;
@@ -43,8 +43,8 @@ export interface MetricsAssets {
43
43
  }
44
44
  export interface Module extends MetricRun {
45
45
  name: string;
46
- chunkIds: Array<String>;
47
- duplicated: boolean;
46
+ chunkIds: Array<string>;
47
+ duplicated?: boolean;
48
48
  }
49
49
  export type Modules = Record<string, Module>;
50
50
  export interface MetricsModules {
@@ -1,8 +1,8 @@
1
- export function getAssetName(assetFilepath: any): any;
2
- export function getModuleName(name: any): any;
3
- export function calculateCacheInvalidation(rows: any): number;
4
- export function getMetricAdded(runs: any): boolean;
5
- export function getMetricDeleted(runs: any): boolean;
6
- export const getMetricType: Function;
7
- export function getPackagePublicName(packageId: string): string;
8
- export function normalizeChunkId(chunkId: string | number): string;
1
+ export declare const getAssetName: (statsAssetPath?: string | null) => string;
2
+ export declare const getModuleName: (name?: string | null) => string;
3
+ export declare const calculateCacheInvalidation: (rows: Array<any>) => number;
4
+ export declare const getMetricAdded: (runs: Array<any>) => boolean;
5
+ export declare const getMetricDeleted: (runs: Array<any>) => boolean;
6
+ export declare const getMetricType: (key: string, type?: import("..").MetricTypes) => import("..").Metric;
7
+ export declare const getPackagePublicName: (packageId: string) => string;
8
+ export declare const normalizeChunkId: (chunkId: string | number) => string;
package/CHANGELOG.md DELETED
@@ -1,333 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [3.2.8](https://github.com/relative-ci/bundle-stats/compare/v3.2.7...v3.2.8) (2022-03-10)
7
-
8
- **Note:** Version bump only for package @bundle-stats/utils
9
-
10
-
11
-
12
-
13
-
14
- ## [3.2.7](https://github.com/relative-ci/bundle-stats/compare/v3.2.6...v3.2.7) (2022-03-10)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * **utils:** FileTypes - add apng, m4a, aac,oga,wav,aac ([1b556c1](https://github.com/relative-ci/bundle-stats/commit/1b556c13b051bab122bfa05bb9b048d646399dbe))
20
- * **utils:** FileTypes - add missing extensions ([260f046](https://github.com/relative-ci/bundle-stats/commit/260f046c177625c1d877156739aa4e83e3f878a5))
21
-
22
-
23
-
24
-
25
-
26
- ## [3.2.6](https://github.com/relative-ci/bundle-stats/compare/v3.2.5...v3.2.6) (2022-03-04)
27
-
28
- **Note:** Version bump only for package @bundle-stats/utils
29
-
30
-
31
-
32
-
33
-
34
- ## [3.2.5](https://github.com/relative-ci/bundle-stats/compare/v3.2.4...v3.2.5) (2022-02-15)
35
-
36
- **Note:** Version bump only for package @bundle-stats/utils
37
-
38
-
39
-
40
-
41
-
42
- ## [3.2.4](https://github.com/relative-ci/bundle-stats/compare/v3.2.3...v3.2.4) (2022-01-17)
43
-
44
- **Note:** Version bump only for package @bundle-stats/utils
45
-
46
-
47
-
48
-
49
-
50
- ## [3.2.3](https://github.com/relative-ci/bundle-stats/compare/v3.2.2...v3.2.3) (2022-01-10)
51
-
52
- **Note:** Version bump only for package @bundle-stats/utils
53
-
54
-
55
-
56
-
57
-
58
- ## [3.2.2](https://github.com/relative-ci/bundle-stats/compare/v3.2.1...v3.2.2) (2021-12-08)
59
-
60
- **Note:** Version bump only for package @bundle-stats/utils
61
-
62
-
63
-
64
-
65
-
66
- ## [3.2.1](https://github.com/relative-ci/bundle-stats/compare/v3.2.0...v3.2.1) (2021-11-23)
67
-
68
- **Note:** Version bump only for package @bundle-stats/utils
69
-
70
-
71
-
72
-
73
-
74
- # [3.2.0](https://github.com/relative-ci/bundle-stats/compare/v3.1.3...v3.2.0) (2021-10-13)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * Consistent dependency versions across packages ([cceebb7](https://github.com/relative-ci/bundle-stats/commit/cceebb7724670a7c40c156c395449fc65d183690))
80
- * **utils:** Use convert-units@beta ([731e7a4](https://github.com/relative-ci/bundle-stats/commit/731e7a4c1cf3fc2189f961388632fdbab838be3f))
81
- * **utils:** Webpack module packages -construct patterns ([29c8606](https://github.com/relative-ci/bundle-stats/commit/29c86067d07188e4a553f7a41f70cc0621ea7c0d))
82
- * **utils:** Webpack packages - make slug pattern more restrictive ([4d1ac7f](https://github.com/relative-ci/bundle-stats/commit/4d1ac7f7fc3c4783a0124efb651de2ff2752301e))
83
-
84
-
85
- ### Features
86
-
87
- * **utils:** Extract packages - add support for pnpm ([527e154](https://github.com/relative-ci/bundle-stats/commit/527e15422447c14dfa6f0ba0fdfe859c0aae7b9a))
88
-
89
-
90
-
91
-
92
-
93
- ## [3.1.2](https://github.com/relative-ci/bundle-stats/compare/v3.1.1...v3.1.2) (2021-08-10)
94
-
95
-
96
- ### Bug Fixes
97
-
98
- * **utils:** Component links - show only changed entries for chunk modules ([be3a79b](https://github.com/relative-ci/bundle-stats/commit/be3a79b46028822f45bcc7487148e56fbc1f1777))
99
-
100
-
101
- ### Performance Improvements
102
-
103
- * **utils:** Webpack extract - use assignments instead of deconstructions ([40fbd38](https://github.com/relative-ci/bundle-stats/commit/40fbd38710cff334a6e58dc026ff6d84e98841c3))
104
-
105
-
106
-
107
-
108
-
109
- ## [3.1.1](https://github.com/relative-ci/bundle-stats/compare/v3.1.0...v3.1.1) (2021-07-28)
110
-
111
-
112
- ### Bug Fixes
113
-
114
- * **utils:** Import default I18N ([baf56e3](https://github.com/relative-ci/bundle-stats/commit/baf56e3fd8b11ee076a623ee6237622ad8fb60f7))
115
-
116
-
117
-
118
-
119
-
120
- # [3.1.0](https://github.com/relative-ci/bundle-stats/compare/v3.0.1...v3.1.0) (2021-07-28)
121
-
122
-
123
- ### Bug Fixes
124
-
125
- * **utils:** Assets - replace 5 char hashes ([f0d6bd2](https://github.com/relative-ci/bundle-stats/commit/f0d6bd26c6ab3e54d548bbb2756d76708ea8bce1))
126
- * **utils:** ModuleName - replace invalid css prefix ([9b7111c](https://github.com/relative-ci/bundle-stats/commit/9b7111cd5e5137a875525d54948c6a7e48795023))
127
-
128
-
129
- ### Features
130
-
131
- * BundleModules - filter by source type ([e494b23](https://github.com/relative-ci/bundle-stats/commit/e494b2312841bd767321f2677c6502f23478bca5))
132
- * **utils:** Webpack compare - pass row transformers ([b5f9728](https://github.com/relative-ci/bundle-stats/commit/b5f9728b4afd11cebc958ef11f70fbcaffe7716e))
133
-
134
-
135
- ### Performance Improvements
136
-
137
- * **utils:** mergeMetricsByKey - run addRowMetricData in one step ([9203549](https://github.com/relative-ci/bundle-stats/commit/92035497f2082d5e676facf23fb748ecc1134668))
138
-
139
-
140
- ### Reverts
141
-
142
- * Revert "build(utils): tsconfig - fix rootDir" ([7f2f753](https://github.com/relative-ci/bundle-stats/commit/7f2f753dcc8ed3393f54772f69db367b589f3389))
143
-
144
-
145
-
146
-
147
-
148
- ## [3.0.1](https://github.com/relative-ci/bundle-stats/compare/v3.0.0...v3.0.1) (2021-06-06)
149
-
150
- **Note:** Version bump only for package @bundle-stats/utils
151
-
152
-
153
-
154
-
155
-
156
- # [3.0.0](https://github.com/relative-ci/bundle-stats/compare/v2.8.2...v3.0.0) (2021-05-18)
157
-
158
-
159
- ### Bug Fixes
160
-
161
- * **utils:** DuplicatePackagesCount - count all the duplicate instances ([d9bdba5](https://github.com/relative-ci/bundle-stats/commit/d9bdba53ef2fc6fb72f89a892fd61adcb159db3b))
162
- * **utils:** Module chunkId - consistent type with meta.chunks ([8e2bc0c](https://github.com/relative-ci/bundle-stats/commit/8e2bc0c359e6622bf30c4f61338e5b40a2918112))
163
-
164
-
165
- ### Features
166
-
167
- * **utils:** Packages - store public package name ([36f5397](https://github.com/relative-ci/bundle-stats/commit/36f5397b50cd4ac377e90f9067692b27e9fdbfd1))
168
- * **utils:** Webpack - extract concatenated modules ([39651ed](https://github.com/relative-ci/bundle-stats/commit/39651ed8e7cfbd0673c5418084911cd8e89c3185))
169
- * **utils:** Webpack validate - allow modules[].modules[] ([309a4bb](https://github.com/relative-ci/bundle-stats/commit/309a4bb1325d399e1dc381c4155dcd7f14a52563))
170
-
171
-
172
-
173
-
174
-
175
- ## [2.8.2](https://github.com/relative-ci/bundle-stats/compare/v2.8.1...v2.8.2) (2021-05-07)
176
-
177
-
178
- ### Bug Fixes
179
-
180
- * Depend on core-js ([475cffb](https://github.com/relative-ci/bundle-stats/commit/475cffbbb9924a4dbfffa923b81ccb19fe9cd7fb))
181
-
182
-
183
-
184
-
185
-
186
- ## [2.8.1](https://github.com/relative-ci/bundle-stats/compare/v2.8.0...v2.8.1) (2021-05-07)
187
-
188
-
189
- ### Bug Fixes
190
-
191
- * **utils:** Filter - remove empty module chunks ([68fae44](https://github.com/relative-ci/bundle-stats/commit/68fae44f226c00c93e2b2a2cecdcb30c372e3dc4))
192
- * **utils:** Filter - skip only null and undefined ([de7b8e9](https://github.com/relative-ci/bundle-stats/commit/de7b8e96b8e81b6fbedf485c53a2855549935314))
193
- * **utils:** Packages - add package path ([b53c362](https://github.com/relative-ci/bundle-stats/commit/b53c3624556cdaf42f5c79a2bdedb5a1fd2e1b62))
194
- * **utils:** Packages - separate packages based on path ([e66cf69](https://github.com/relative-ci/bundle-stats/commit/e66cf69426c0a3c795ff6027b67e388cbe90aaa3))
195
-
196
-
197
-
198
-
199
-
200
- # [2.8.0](https://github.com/relative-ci/bundle-stats/compare/v2.7.2...v2.8.0) (2021-03-27)
201
-
202
-
203
- ### Bug Fixes
204
-
205
- * **ui:** Search - merge filters param to all entries filters ([024d05d](https://github.com/relative-ci/bundle-stats/commit/024d05da639e33a4c4944968f878cbd4c67f6aa1))
206
- * **utils:** Component link - set chunk ids filters ([2643fd3](https://github.com/relative-ci/bundle-stats/commit/2643fd384ed60e2754b7c9aa18cad95e5c7cfd3e))
207
- * **utils:** ComponentLinks - packages change filter ([cb93c85](https://github.com/relative-ci/bundle-stats/commit/cb93c8548943c24f7358a09b55e681150589f461))
208
- * **utils:** Webpack metrics info ([8b06dd5](https://github.com/relative-ci/bundle-stats/commit/8b06dd5095b5a8206ba2531355df618431147541))
209
-
210
-
211
-
212
-
213
-
214
- ## [2.7.2](https://github.com/relative-ci/bundle-stats/compare/v2.7.1...v2.7.2) (2021-03-13)
215
-
216
-
217
- ### Bug Fixes
218
-
219
- * **utils:** Modules - add changed flag to view all link ([5c94893](https://github.com/relative-ci/bundle-stats/commit/5c94893c84d3f59d8f3b91fa57f595457b2d5818))
220
-
221
-
222
- ### Performance Improvements
223
-
224
- * **utils:** Webpack compareAllModules - use object assignment ([7001578](https://github.com/relative-ci/bundle-stats/commit/70015783eff546243ae80160c173c42e9b3ae6bb))
225
-
226
-
227
-
228
-
229
-
230
- # [2.7.0](https://github.com/relative-ci/bundle-stats/compare/v2.6.0...v2.7.0) (2021-03-05)
231
-
232
-
233
- ### Bug Fixes
234
-
235
- * **ui:** Modules packages duplicate - remove extra data ([db60126](https://github.com/relative-ci/bundle-stats/commit/db601266c82611083bcbb946a832e5e42ac318ab))
236
- * **ui/utils:** BundleModules - fix chunk filtering ([b02717d](https://github.com/relative-ci/bundle-stats/commit/b02717dbfe417cc3fddeead54c0d7770aac055ae))
237
- * **utils:** Assets - always flag assets as chunks ([45e20d4](https://github.com/relative-ci/bundle-stats/commit/45e20d48aa6c5c3797295e48c8a40bc4ffbd903f))
238
- * **utils:** Consistent type for chunk id ([76f9f07](https://github.com/relative-ci/bundle-stats/commit/76f9f07962b987f0d7b9ae8f233ba4f134e11263))
239
- * **utils:** Tweak metric descriptions ([e0f6174](https://github.com/relative-ci/bundle-stats/commit/e0f6174c468c2b2536d23edc7ea8137bd4b65a9f))
240
-
241
-
242
- ### Features
243
-
244
- * **utils:** Add compareAllModules ([fc9949d](https://github.com/relative-ci/bundle-stats/commit/fc9949daa4cfc117caee7ef8c1d2fb6dbab86d62))
245
- * **utils:** Add module section links ([1f17efb](https://github.com/relative-ci/bundle-stats/commit/1f17efb1fb295d149210a1fab36cfb00e899950a))
246
- * **utils:** Add support for module source/destination types ([5fc2464](https://github.com/relative-ci/bundle-stats/commit/5fc2464682f8bb2965ca4d4aa07f7a10806a91c2))
247
- * **utils:** ModulesPackagesDuplicate - add size data ([887a554](https://github.com/relative-ci/bundle-stats/commit/887a554314d1b82c820b771f73fc8ebdf48bcbf2))
248
- * **utils:** ModulesPackagesDuplicate - order by size desc ([7c16d78](https://github.com/relative-ci/bundle-stats/commit/7c16d780f99fabd531803fa75cdd4f34dea1722a))
249
- * **utils:** Webpack assets - add chunkId ([048f72f](https://github.com/relative-ci/bundle-stats/commit/048f72f1ef4fa9829e56d82a59a95427d818636d))
250
- * **utils:** Webpack chunks - save normalized array as meta ([8a4e79d](https://github.com/relative-ci/bundle-stats/commit/8a4e79dddc4d20b4a5ac5b524d6b6736960985ff))
251
-
252
-
253
-
254
-
255
-
256
- # [2.6.0](https://github.com/relative-ci/bundle-stats/compare/v2.5.0...v2.6.0) (2021-02-06)
257
-
258
- **Note:** Version bump only for package @bundle-stats/utils
259
-
260
-
261
-
262
-
263
-
264
- # [2.5.0](https://github.com/relative-ci/bundle-stats/compare/v2.4.0...v2.5.0) (2021-01-08)
265
-
266
- **Note:** Version bump only for package @bundle-stats/utils
267
-
268
-
269
-
270
-
271
-
272
- # [2.4.0](https://github.com/relative-ci/bundle-stats/compare/v2.3.0...v2.4.0) (2020-12-21)
273
-
274
-
275
- ### Features
276
-
277
- * **utils:** Add support for custom asset filename ([563c320](https://github.com/relative-ci/bundle-stats/commit/563c320607acf8cf5c96d23cf84427e3cbdfdd61))
278
- * **utils:** Use min 7 chars for hash ([5f1656b](https://github.com/relative-ci/bundle-stats/commit/5f1656ba66ad92fdd3b2b81af0df0ba11c110832))
279
-
280
-
281
-
282
-
283
-
284
- # [2.3.0](https://github.com/relative-ci/bundle-stats/compare/v2.2.0...v2.3.0) (2020-10-12)
285
-
286
-
287
- ### Bug Fixes
288
-
289
- * Regenerate package-lock.json ([0aa419e](https://github.com/relative-ci/bundle-stats/commit/0aa419e29b93f9ebebf1b8b79838d9e52044c9ef))
290
- * **deps:** update dependency lodash to v4.17.19 ([437d715](https://github.com/relative-ci/bundle-stats/commit/437d715bcdce3da849bffc07de9b6aafc07f5d0e))
291
- * **utils:** Webpack - shorten metric labels ([a6be8db](https://github.com/relative-ci/bundle-stats/commit/a6be8dba3f30b2a0e1480e5aa19a31b398184869))
292
-
293
-
294
- ### Features
295
-
296
- * **utils:** Ignore .LICENSE.txt by default ([849c4ba](https://github.com/relative-ci/bundle-stats/commit/849c4ba25caaada46d7dee7a25bdfd0a0fe5cc61))
297
- * Assets total size insights - use consistent shorter message ([76c5d2a](https://github.com/relative-ci/bundle-stats/commit/76c5d2a4bf6c8317f33189a517f700990319fa8d))
298
-
299
-
300
-
301
-
302
-
303
- # [2.2.0](https://github.com/relative-ci/bundle-stats/compare/v2.1.1...v2.2.0) (2020-04-13)
304
-
305
-
306
- ### Bug Fixes
307
-
308
- * **utils:** Handle missing asset/module names ([ba2c11c](https://github.com/relative-ci/bundle-stats/commit/ba2c11c91e9275925a57b1112107c661a3b9fae0))
309
- * **utils:** Validate webpack stats structure ([c2f2ba6](https://github.com/relative-ci/bundle-stats/commit/c2f2ba670fd8bdc2b8b5b60ede55f357dd07399a))
310
-
311
-
312
-
313
-
314
-
315
- ## [2.1.1](https://github.com/relative-ci/bundle-stats/compare/v2.1.0...v2.1.1) (2020-03-29)
316
-
317
- **Note:** Version bump only for package @bundle-stats/utils
318
-
319
-
320
-
321
-
322
-
323
- # [2.1.0](https://github.com/relative-ci/bundle-stats/compare/v2.0.1...v2.1.0) (2020-03-29)
324
-
325
- **Note:** Version bump only for package @bundle-stats/utils
326
-
327
-
328
-
329
-
330
-
331
- # [2.0.0](https://github.com/relative-ci/bundle-stats/compare/v2.0.0-rc.1...v2.0.0) (2020-02-29)
332
-
333
- **Note:** Version bump only for package @bundle-stats/utils
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DELTA_TYPE_HIGH_POSITIVE = exports.DELTA_TYPE_LOW_POSITIVE = exports.DELTA_TYPE_HIGH_NEGATIVE = exports.DELTA_TYPE_LOW_NEGATIVE = exports.DELTA_TYPE_LEVEL_HIGH = exports.DELTA_TYPE_LEVEL_LOW = exports.DELTA_TYPE_POSITIVE = exports.DELTA_TYPE_NO_CHANGE = exports.DELTA_TYPE_NEGATIVE = void 0;
4
- exports.DELTA_TYPE_NEGATIVE = 'NEGATIVE';
5
- exports.DELTA_TYPE_NO_CHANGE = 'NO_CHANGE';
6
- exports.DELTA_TYPE_POSITIVE = 'POSITIVE';
7
- exports.DELTA_TYPE_LEVEL_LOW = 'LOW';
8
- exports.DELTA_TYPE_LEVEL_HIGH = 'HIGH';
9
- exports.DELTA_TYPE_LOW_NEGATIVE = `${exports.DELTA_TYPE_LEVEL_LOW}_${exports.DELTA_TYPE_NEGATIVE}`;
10
- exports.DELTA_TYPE_HIGH_NEGATIVE = `${exports.DELTA_TYPE_LEVEL_HIGH}_${exports.DELTA_TYPE_NEGATIVE}`;
11
- exports.DELTA_TYPE_LOW_POSITIVE = `${exports.DELTA_TYPE_LEVEL_LOW}_${exports.DELTA_TYPE_POSITIVE}`;
12
- exports.DELTA_TYPE_HIGH_POSITIVE = `${exports.DELTA_TYPE_LEVEL_HIGH}_${exports.DELTA_TYPE_POSITIVE}`;
13
- //# sourceMappingURL=delta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delta.js","sourceRoot":"","sources":["../../src/config/delta.js"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,UAAU,CAAC;AACjC,QAAA,oBAAoB,GAAG,WAAW,CAAC;AACnC,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAEjC,QAAA,oBAAoB,GAAG,KAAK,CAAC;AAC7B,QAAA,qBAAqB,GAAG,MAAM,CAAC;AAE/B,QAAA,uBAAuB,GAAG,GAAG,4BAAoB,IAAI,2BAAmB,EAAE,CAAC;AAC3E,QAAA,wBAAwB,GAAG,GAAG,6BAAqB,IAAI,2BAAmB,EAAE,CAAC;AAC7E,QAAA,uBAAuB,GAAG,GAAG,4BAAoB,IAAI,2BAAmB,EAAE,CAAC;AAC3E,QAAA,wBAAwB,GAAG,GAAG,6BAAqB,IAAI,2BAAmB,EAAE,CAAC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.METRIC_TYPES = exports.METRIC_TYPE_PERCENTAGE = exports.METRIC_TYPE_SCORE = exports.METRIC_TYPE_NUMERIC = exports.METRIC_TYPE_DURATION = exports.METRIC_TYPE_FILE_SIZE = void 0;
4
- const format_1 = require("../utils/format");
5
- exports.METRIC_TYPE_FILE_SIZE = 'METRIC_TYPE_FILE_SIZE';
6
- exports.METRIC_TYPE_DURATION = 'METRIC_TYPE_DURATION';
7
- exports.METRIC_TYPE_NUMERIC = 'METRIC_TYPE_NUMERIC';
8
- exports.METRIC_TYPE_SCORE = 'METRIC_TYPE_SCORE';
9
- exports.METRIC_TYPE_PERCENTAGE = 'METRIC_TYPE_PERCENTAGE';
10
- exports.METRIC_TYPES = {
11
- [exports.METRIC_TYPE_NUMERIC]: {
12
- biggerIsBetter: false,
13
- formatter: format_1.formatNumber,
14
- },
15
- [exports.METRIC_TYPE_SCORE]: {
16
- biggerIsBetter: true,
17
- formatter: format_1.formatNumber,
18
- },
19
- [exports.METRIC_TYPE_DURATION]: {
20
- biggerIsBetter: false,
21
- formatter: format_1.formatDuration,
22
- },
23
- [exports.METRIC_TYPE_FILE_SIZE]: {
24
- biggerIsBetter: false,
25
- formatter: format_1.formatFileSize,
26
- },
27
- [exports.METRIC_TYPE_PERCENTAGE]: {
28
- biggerIsBetter: true,
29
- formatter: format_1.formatPercentage,
30
- },
31
- };
32
- //# sourceMappingURL=metrics.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../src/config/metrics.js"],"names":[],"mappings":";;;AAAA,4CAKyB;AAEZ,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAElD,QAAA,YAAY,GAAG;IAC1B,CAAC,2BAAmB,CAAC,EAAE;QACrB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,qBAAY;KACxB;IACD,CAAC,yBAAiB,CAAC,EAAE;QACnB,cAAc,EAAE,IAAI;QACpB,SAAS,EAAE,qBAAY;KACxB;IACD,CAAC,4BAAoB,CAAC,EAAE;QACtB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,uBAAc;KAC1B;IACD,CAAC,6BAAqB,CAAC,EAAE;QACvB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,uBAAc;KAC1B;IACD,CAAC,8BAAsB,CAAC,EAAE;QACxB,cAAc,EAAE,IAAI;QACpB,SAAS,EAAE,yBAAgB;KAC5B;CACF,CAAC"}
@@ -1,10 +0,0 @@
1
- export const DELTA_TYPE_NEGATIVE = 'NEGATIVE';
2
- export const DELTA_TYPE_NO_CHANGE = 'NO_CHANGE';
3
- export const DELTA_TYPE_POSITIVE = 'POSITIVE';
4
- export const DELTA_TYPE_LEVEL_LOW = 'LOW';
5
- export const DELTA_TYPE_LEVEL_HIGH = 'HIGH';
6
- export const DELTA_TYPE_LOW_NEGATIVE = `${DELTA_TYPE_LEVEL_LOW}_${DELTA_TYPE_NEGATIVE}`;
7
- export const DELTA_TYPE_HIGH_NEGATIVE = `${DELTA_TYPE_LEVEL_HIGH}_${DELTA_TYPE_NEGATIVE}`;
8
- export const DELTA_TYPE_LOW_POSITIVE = `${DELTA_TYPE_LEVEL_LOW}_${DELTA_TYPE_POSITIVE}`;
9
- export const DELTA_TYPE_HIGH_POSITIVE = `${DELTA_TYPE_LEVEL_HIGH}_${DELTA_TYPE_POSITIVE}`;
10
- //# sourceMappingURL=delta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delta.js","sourceRoot":"","sources":["../../src/config/delta.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAC9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE5C,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,oBAAoB,IAAI,mBAAmB,EAAE,CAAC;AACxF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,qBAAqB,IAAI,mBAAmB,EAAE,CAAC;AAC1F,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,oBAAoB,IAAI,mBAAmB,EAAE,CAAC;AACxF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,qBAAqB,IAAI,mBAAmB,EAAE,CAAC"}
@@ -1,29 +0,0 @@
1
- import { formatNumber, formatDuration, formatFileSize, formatPercentage, } from '../utils/format';
2
- export const METRIC_TYPE_FILE_SIZE = 'METRIC_TYPE_FILE_SIZE';
3
- export const METRIC_TYPE_DURATION = 'METRIC_TYPE_DURATION';
4
- export const METRIC_TYPE_NUMERIC = 'METRIC_TYPE_NUMERIC';
5
- export const METRIC_TYPE_SCORE = 'METRIC_TYPE_SCORE';
6
- export const METRIC_TYPE_PERCENTAGE = 'METRIC_TYPE_PERCENTAGE';
7
- export const METRIC_TYPES = {
8
- [METRIC_TYPE_NUMERIC]: {
9
- biggerIsBetter: false,
10
- formatter: formatNumber,
11
- },
12
- [METRIC_TYPE_SCORE]: {
13
- biggerIsBetter: true,
14
- formatter: formatNumber,
15
- },
16
- [METRIC_TYPE_DURATION]: {
17
- biggerIsBetter: false,
18
- formatter: formatDuration,
19
- },
20
- [METRIC_TYPE_FILE_SIZE]: {
21
- biggerIsBetter: false,
22
- formatter: formatFileSize,
23
- },
24
- [METRIC_TYPE_PERCENTAGE]: {
25
- biggerIsBetter: true,
26
- formatter: formatPercentage,
27
- },
28
- };
29
- //# sourceMappingURL=metrics.js.map