Releases: microsoft/PSRule
Releases · microsoft/PSRule
v3.0.0-B0351
What's changed since pre-release v3.0.0-B0342:
- General improvements:
- Added an integrity hash to lock file by @BernieWhite.
#2664- The lock file now includes an integrity hash to ensures the restored module matches originally added module.
- Added an integrity hash to lock file by @BernieWhite.
See change log.
v3.0.0-B0342
What's changed since pre-release v3.0.0-B0340:
- New features:
- VSCode extension includes PSRule runtime by @BernieWhite.
#1755- The PSRule runtime is bundled with the VSCode extension.
- Separate installation of the PSRule PowerShell module is no longer required.
- VSCode extension asks to automatically restore modules by @BernieWhite.
#2642- When opening a workspace, the extension will ask to restore any modules from the lock file.
- Alternatively, running the
PSRule: Restore modules
command manually will restore modules.
- VSCode extension includes PSRule runtime by @BernieWhite.
See change log.
v3.0.0-B0340
What's changed since pre-release v3.0.0-B0315:
- New features:
- VSCode extension set to use Microsoft verified publisher name by @BernieWhite.
#2636
- VSCode extension set to use Microsoft verified publisher name by @BernieWhite.
- General improvements:
- Expose format options to emitters by @BernieWhite.
#1838 - Added support for overriding options path from the default in VSCode by @BernieWhite.
#2635
- Expose format options to emitters by @BernieWhite.
- Engineering:
- Migrated VSCode extension into PSRule repository by @BernieWhite.
#2615- VSCode extension will now sit side-by-side with the other core PSRule components.
- Migrated VSCode extension into PSRule repository by @BernieWhite.
- Bug fixes:
- Fixes path filtering of ignored files includes prefixed files by @BernieWhite.
#2624
- Fixes path filtering of ignored files includes prefixed files by @BernieWhite.
See change log.
v3.0.0-B0315
What's changed since pre-release v3.0.0-B0275:
- New features:
- Added support for overriding rule severity level by @BernieWhite.
#1180- Baselines now accept a new
spec.overrides.level
property which configures severity level overrides. - Options now accept a new
overrides.level
properties which configures severity level overrides. - For example, a rule that generates an
Error
can be overridden toWarning
.
- Baselines now accept a new
- Added support for overriding rule severity level by @BernieWhite.
- General improvements:
- Automatically restore missing modules when running CLI by @BernieWhite.
#2552- Modules are automatically restored unless
--no-restore
is used with therun
command.
- Modules are automatically restored unless
- Automatically restore missing modules when running CLI by @BernieWhite.
- Engineering:
- Bump YamlDotNet to v16.2.0.
#2596
- Bump YamlDotNet to v16.2.0.
See change log.
v3.0.0-B0275
What's changed since pre-release v3.0.0-B0267:
- New features:
- Allow CLI upgrade command to upgrade a single module by @BernieWhite.
#2551- A single or specific modules can be upgraded by name when using
module upgrade
. - By default, all modules are upgraded.
- A single or specific modules can be upgraded by name when using
- Allow CLI to install pre-release modules by @BernieWhite.
#2550- Add and upgrade pre-release modules with
--prerelease
. - Pre-release modules will be restored from the lock file with
module restore
.
- Add and upgrade pre-release modules with
- Allow CLI upgrade command to upgrade a single module by @BernieWhite.
- General improvements:
- Breaking change: Empty version comparison only accepts stable versions by default by @BernieWhite.
#2557version
andapiVersion
assertions only accept stable versions by default for all cases.- Pre-release versions can be accepted by setting
includePrerelease
totrue
.
- Breaking change: Empty version comparison only accepts stable versions by default by @BernieWhite.
- Bug fixes:
- Fixed CLI upgrade uses pre-release module by @BernieWhite.
#2549
- Fixed CLI upgrade uses pre-release module by @BernieWhite.
See change log.
v3.0.0-B0267
What's changed since pre-release v3.0.0-B0203:
- New features:
- Added option to configure the severity level that PSRule will break the pipeline at by @BernieWhite.
#1508- Previously only rules with the severity level
Error
would break the pipeline. - With this update rules with the severity level
Error
that fail will break the pipeline by default. - The
Execution.Break
option can be set toNever
,OnError
,OnWarning
, orOnInformation
. - If a rule fails with a severity level equal or higher than the configured level the pipeline will break.
- Previously only rules with the severity level
- Added option to configure the severity level that PSRule will break the pipeline at by @BernieWhite.
- General improvements:
- Breaking change: Improve scope handling for correctly handling cases with multiple module by @BernieWhite.
#1215- As a result of this change:
- The
binding
property can no longer be used within baselines. - Custom inline script blocks can no longer be used for custom binding.
- The
- Use module configuration or workspace to configure binding options instead.
- As a result of this change:
- Added support for native logging within emitters by @BernieWhite.
#1837
- Breaking change: Improve scope handling for correctly handling cases with multiple module by @BernieWhite.
- Engineering:
- Bump xunit to v2.9.0.
#1869 - Bump xunit.runner.visualstudio to v2.8.2.
#1869 - Bump System.Drawing.Common to v8.0.8.
#1887 - Bump YamlDotNet to v15.3.0.
#1856 - Bump Microsoft.CodeAnalysis.Common to v4.10.0.
#1854 - Bump Pester to v5.6.1.
#1872 - Bump PSScriptAnalyzer to v1.22.0.
#1858 - Bump BenchmarkDotNet from 0.13.12 to 0.14.0.
#1886
- Bump xunit to v2.9.0.
- Bug fixes:
- Fixed CLI exception the term Find-Module is not recognized by @BernieWhite.
#1860 - Fixed aggregation of reasons with
$Assert.AnyOf()
by @BernieWhite.
#1829 - Added
Problem
to validate sets ofOutputOutcome
by @nightroman
#2542
- Fixed CLI exception the term Find-Module is not recognized by @BernieWhite.
See change log.
v3.0.0-B0203
What's changed since pre-release v3.0.0-B0198:
- New features:
- Breaking change: Simplify handling of inputs from files using emitters by @BernieWhite.
#1179- Files are automatically read from input paths and emitted as objects to the pipeline.
- Emitter interface can be used to implement custom file readers and expansion of custom file types.
- The
File
andDetect
input formats are no longer required and have been removed. - Processing files and objects with rules is no longer recommended, and disabled by default.
- The
Input.FileObjects
can be set totrue
to enable processing of files as objects with rules.
- Breaking change: Simplify handling of inputs from files using emitters by @BernieWhite.
- Engineering:
- Bump Microsoft.NET.Test.Sdk to v17.10.0.
#1826
- Bump Microsoft.NET.Test.Sdk to v17.10.0.
- Bug fixes:
- Fixed reason reported for
startsWith
by @BernieWhite.
#1818 - Fixes CSV output of multiple lines by @BernieWhite.
#1627
- Fixed reason reported for
See change log.
v3.0.0-B0198
What's changed since pre-release v3.0.0-B0153:
- Engineering:
- Bug fixes:
- Fixed discovery of installed modules in CLI by @BernieWhite.
#1779 - Fixed for git head in tests by @BernieWhite.
#1801
- Fixed discovery of installed modules in CLI by @BernieWhite.
See change log.
v3.0.0-B0153
What's changed since pre-release v3.0.0-B0151:
- Bug fixes:
- Fixes null references for CLI module handling by @BernieWhite.
#1746
- Fixes null references for CLI module handling by @BernieWhite.
See change log.
v3.0.0-B0151
What's changed since pre-release v3.0.0-B0141:
- General improvements:
- Improved support for packaging with Visual Studio Code by @BernieWhite.
#1755
- Improved support for packaging with Visual Studio Code by @BernieWhite.
- Engineering:
- Breaking change: Bump development tools to .NET 8.0 SDK by @BernieWhite.
#1673- Running PSRule from PowerShell 7.x is supported on 7.4 and above.
- Running PSRule from Windows PowerShell 5.1 is still supported but deprecated and will be removed in PSRule v4.
- Bump Microsoft.NET.Test.Sdk to v17.9.0.
#1752
- Breaking change: Bump development tools to .NET 8.0 SDK by @BernieWhite.
- Bug fixes:
- Fixed CLI null reference when include module is undefined by @BernieWhite.
#1746
- Fixed CLI null reference when include module is undefined by @BernieWhite.
See change log.