@statoscope/stats-validator-plugin-webpack
Advanced tools
Comparing version 5.8.0-alpha.0 to 5.8.0
@@ -7,2 +7,3 @@ import { NormalizedReason } from '@statoscope/webpack-model/dist/normalize'; | ||
moduleName: string; | ||
diff: NormalizedReason[]; | ||
after: NormalizedReason[]; | ||
@@ -9,0 +10,0 @@ reference: NormalizedReason[]; |
@@ -75,2 +75,7 @@ "use strict"; | ||
module: $input.compilations.hash.(#.module.resolveModule($)).pick(), | ||
diff: #.diff.({ | ||
$reason: $; | ||
...$, | ||
resolvedModule: $input.compilations.hash.($reason.moduleName.resolveModule($)).pick(), | ||
}), | ||
before: #.before, | ||
@@ -83,2 +88,8 @@ after: #.after, | ||
module: item.moduleName, | ||
diff: item.diff.map((reason) => ({ | ||
type: reason.type, | ||
loc: reason.loc, | ||
moduleName: reason.moduleName, | ||
resolvedEntryName: reason.resolvedEntryName, | ||
})), | ||
before: item.reference.length, | ||
@@ -85,0 +96,0 @@ after: item.after.length, |
@@ -91,3 +91,12 @@ "use strict"; | ||
{ | ||
package: $input.compilations.hash.(#.package.resolvePackage($)).pick(), | ||
package: $input.compilations.hash.(#.packageName.resolvePackage($)).pick(), | ||
diff: #.diff.({ | ||
$module; | ||
module: $input.compilations.hash.($module.resolveModule($)).pick(), | ||
changedReasons: changedReasons.({ | ||
$reason: $; | ||
...$, | ||
resolvedModule: $input.compilations.hash.($reason.moduleName.resolveModule($)).pick(), | ||
}) | ||
}), | ||
before: #.before, | ||
@@ -99,3 +108,12 @@ after: #.after, | ||
context: { | ||
package: packageItem.packageName, | ||
packageName: packageItem.packageName, | ||
diff: packageItem.diff.map((item) => ({ | ||
module: item.module.name, | ||
changedReasons: item.reasons.map((reason) => ({ | ||
type: reason.type, | ||
loc: reason.loc, | ||
moduleName: reason.moduleName, | ||
resolvedEntryName: reason.resolvedEntryName, | ||
})), | ||
})), | ||
before: packageItem.reference.length, | ||
@@ -102,0 +120,0 @@ after: packageItem.after.length, |
{ | ||
"name": "@statoscope/stats-validator-plugin-webpack", | ||
"version": "5.8.0-alpha.0", | ||
"version": "5.8.0", | ||
"description": "Plugin for @statoscope/stats-validator to validate webpack stats", | ||
@@ -24,5 +24,5 @@ "main": "./dist/index.js", | ||
"@statoscope/stats-extension-compressed": "5.7.1", | ||
"@statoscope/stats-validator": "5.8.0-alpha.0", | ||
"@statoscope/stats-validator": "5.8.0", | ||
"@statoscope/types": "5.7.1", | ||
"@statoscope/webpack-model": "5.8.0-alpha.0", | ||
"@statoscope/webpack-model": "5.8.0", | ||
"chalk": "^4.1.1", | ||
@@ -34,3 +34,3 @@ "semver": "^7.3.5" | ||
}, | ||
"gitHead": "8b9b91ff4d9f79a05141bbe5002c22f3648e6857" | ||
"gitHead": "d7b10e373e8352a955271fd8923778b68f23dfca" | ||
} |
@@ -32,4 +32,4 @@ # stats-validator-plugin-webpack | ||
- [build-time-limits.md](docs/rules/build-time-limits.md]) - Ensures that the build time has not exceeded the limit | ||
- [diff-build-time-limits.md](docs/rules/diff-build-time-limits.md) - Compares build time between input and reference stats. Fails if build time has increased | ||
- [build-time-limits](docs/rules/build-time-limits.md) - Ensures that the build time has not exceeded the limit | ||
- [diff-build-time-limits](docs/rules/diff-build-time-limits.md) - Compares build time between input and reference stats. Fails if build time has increased | ||
- [diff-deprecated-modules](docs/rules/diff-deprecated-modules.md) - Compares usage of specified modules between input and reference stats | ||
@@ -36,0 +36,0 @@ - [diff-deprecated-packages](docs/rules/diff-deprecated-packages.md) - Compares usage of specified packages usage between input and reference stats |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
96465
2218
0
+ Added@statoscope/stats-validator@5.8.0(transitive)
+ Added@statoscope/webpack-model@5.8.0(transitive)
- Removed@statoscope/stats-validator@5.8.0-alpha.0(transitive)
- Removed@statoscope/webpack-model@5.8.0-alpha.0(transitive)