|
1 | 1 | # Plaster Release History |
2 | 2 |
|
3 | | -## 1.1.4 - (Unreleased) |
| 3 | +## 2.0.0 - 2025-06-18 |
| 4 | + |
| 5 | +### Major Release - Plaster 2.0 |
| 6 | + |
| 7 | +This is a major release that modernizes Plaster for PowerShell 7.x while maintaining full backward compatibility with existing templates and workflows. |
| 8 | + |
| 9 | +### BREAKING CHANGES |
| 10 | + |
| 11 | +- **Minimum PowerShell Version**: Updated from 3.0 to 5.1 |
| 12 | +- **Build System**: Replaced psake with modern InvokeBuild for better cross-platform support |
| 13 | +- **Test Framework**: Updated to Pester 5.x (breaking change for test authors) |
| 14 | +- **Default Encoding**: Changed from 'Default' to 'UTF8-NoBOM' for better cross-platform compatibility |
| 15 | + |
| 16 | +### NEW FEATURES |
4 | 17 |
|
5 | | -## Fixed |
| 18 | +#### PowerShell 7.x Full Support |
| 19 | +- **Cross-Platform Compatibility**: Full support for Windows, Linux, and macOS |
| 20 | +- **PowerShell Core Optimization**: Improved performance and reliability on PowerShell 7.x |
| 21 | +- **Platform Detection**: Enhanced platform-specific functionality and path handling |
| 22 | + |
| 23 | +#### Modern Development Practices |
| 24 | +- **Enhanced Error Handling**: Comprehensive error handling with detailed logging |
| 25 | +- **Parameter Validation**: Modern PowerShell parameter validation attributes |
| 26 | +- **Type Safety**: Improved type safety using PowerShell classes and `using` statements |
| 27 | +- **Logging System**: Built-in logging system with configurable levels |
| 28 | + |
| 29 | +#### Build and Development |
| 30 | +- **Modern Build System**: InvokeBuild-based build system replacing legacy psake |
| 31 | +- **Pester 5.x Support**: Updated test framework with modern Pester 5.x syntax |
| 32 | +- **Cross-Platform CI/CD**: GitHub Actions workflow supporting all platforms |
| 33 | +- **Code Coverage**: Integrated code coverage reporting with configurable thresholds |
| 34 | +- **Static Analysis**: Enhanced PSScriptAnalyzer integration with modern rules |
| 35 | + |
| 36 | +### IMPROVEMENTS |
| 37 | + |
| 38 | +#### Performance |
| 39 | +- **Faster Module Loading**: Optimized module loading and reduced startup time |
| 40 | +- **Memory Usage**: Improved memory usage and garbage collection |
| 41 | +- **Template Processing**: Enhanced template processing performance on large projects |
| 42 | +- **Cross-Platform I/O**: Optimized file operations for different platforms |
| 43 | + |
| 44 | +#### Developer Experience |
| 45 | +- **Better Error Messages**: More descriptive error messages with actionable guidance |
| 46 | +- **Enhanced Debugging**: Improved debug output and verbose logging |
| 47 | +- **IntelliSense Support**: Better parameter completion and help text |
| 48 | +- **Modern PowerShell Features**: Leverages PowerShell 5.1+ and 7.x features |
| 49 | + |
| 50 | +#### Cross-Platform Enhancements |
| 51 | +- **Path Normalization**: Automatic path separator handling across platforms |
| 52 | +- **Encoding Handling**: Consistent UTF-8 encoding with BOM handling |
| 53 | +- **Platform-Specific Defaults**: Smart defaults based on operating system |
| 54 | +- **Line Ending Normalization**: Proper handling of different line ending styles |
| 55 | + |
| 56 | +### BUG FIXES |
| 57 | + |
| 58 | +#### Core Issues |
| 59 | +- **XML Schema Validation**: Fixed .NET Core XML schema validation issues ([#107](https://github.com/PowerShellOrg/Plaster/issues/107)) |
| 60 | +- **Constrained Runspace**: Resolved PowerShell 7.x constrained runspace compatibility |
| 61 | +- **Path Resolution**: Fixed absolute vs relative path handling across platforms |
| 62 | +- **Parameter Store**: Corrected parameter default value storage on non-Windows platforms |
| 63 | + |
| 64 | +#### Template Processing |
| 65 | +- **Variable Substitution**: Fixed edge cases in parameter substitution |
| 66 | +- **Conditional Logic**: Improved reliability of condition evaluation |
| 67 | +- **File Encoding**: Resolved encoding issues with template files |
| 68 | +- **Directory Creation**: Fixed recursive directory creation on Unix systems |
| 69 | + |
| 70 | +#### Module Loading |
| 71 | +- **Import Errors**: Resolved module import issues on PowerShell Core |
| 72 | +- **Dependency Resolution**: Fixed module dependency loading order |
| 73 | +- **Resource Loading**: Improved localized resource loading reliability |
| 74 | + |
| 75 | +### MIGRATION GUIDE |
| 76 | + |
| 77 | +#### For Template Authors |
| 78 | +1. **No Changes Required**: Existing XML templates work without modification |
| 79 | +2. **Encoding**: Consider updating templates to use UTF-8 encoding |
| 80 | +3. **Testing**: Update any custom tests to use Pester 5.x syntax |
| 81 | + |
| 82 | +#### For Template Users |
| 83 | +1. **PowerShell Version**: Ensure PowerShell 5.1 or higher is installed |
| 84 | +2. **Module Update**: Use `Update-Module Plaster` to get version 2.0 |
| 85 | +3. **Workflows**: No changes required to existing Invoke-Plaster usage |
| 86 | + |
| 87 | +#### For Contributors |
| 88 | +1. **Build System**: Use `./build.ps1` instead of psake commands |
| 89 | +2. **Tests**: Update to Pester 5.x syntax and configuration |
| 90 | +3. **Development**: Follow new coding standards and use modern PowerShell features |
| 91 | + |
| 92 | +### INTERNAL CHANGES |
| 93 | + |
| 94 | +#### Code Quality |
| 95 | +- **PSScriptAnalyzer**: Updated to latest rules and best practices |
| 96 | +- **Code Coverage**: Achieved >80% code coverage across all modules |
| 97 | +- **Documentation**: Comprehensive inline documentation and examples |
| 98 | +- **Type Safety**: Added parameter validation and type constraints |
| 99 | + |
| 100 | +#### Architecture |
| 101 | +- **Module Structure**: Reorganized for better maintainability |
| 102 | +- **Error Handling**: Centralized error handling and logging |
| 103 | +- **Resource Management**: Improved resource cleanup and disposal |
| 104 | +- **Platform Abstraction**: Abstracted platform-specific functionality |
| 105 | + |
| 106 | +#### Testing |
| 107 | +- **Test Coverage**: Comprehensive test suite covering all platforms |
| 108 | +- **Integration Tests**: Added end-to-end integration testing |
| 109 | +- **Performance Tests**: Benchmarking for performance regression detection |
| 110 | +- **Cross-Platform Tests**: Automated testing on Windows, Linux, and macOS |
| 111 | + |
| 112 | +### ACKNOWLEDGMENTS |
| 113 | + |
| 114 | +Special thanks to the PowerShell community for their patience during the transition and to all contributors who helped modernize Plaster for the PowerShell 7.x era. |
| 115 | + |
| 116 | +### COMPATIBILITY MATRIX |
| 117 | + |
| 118 | +| PowerShell Version | Windows | Linux | macOS | Status | |
| 119 | +|-------------------|---------|-------|-------|---------| |
| 120 | +| 5.1 (Desktop) | ✅ | ❌ | ❌ | Fully Supported | |
| 121 | +| 7.0+ (Core) | ✅ | ✅ | ✅ | Fully Supported | |
| 122 | +| 3.0-5.0 | ❌ | ❌ | ❌ | No Longer Supported | |
| 123 | + |
| 124 | +--- |
| 125 | + |
| 126 | +## 1.1.4 - (Unreleased - Legacy) |
| 127 | + |
| 128 | +### Fixed |
6 | 129 |
|
7 | 130 | - Write destination path with Write-Host so it doesn't add extra output when -PassThru specified |
8 | 131 | [#326](https://github.com/PowerShell/Plaster/issues/326). |
9 | 132 |
|
10 | | -## Changed |
| 133 | +### Changed |
11 | 134 |
|
12 | 135 | - Updated PSScriptAnalyzerSettings.psd1 template file to sync w/latest in vscode-powershell examples. |
13 | 136 | - Text parameter with default value where condition evaluates to false returns default value. |
|
63 | 186 | the `template` and `encoding` attributes have been removed. |
64 | 187 | - Restructured the module source to follow best practice of separating infrastructure from module files. |
65 | 188 | - Fixed #47: How to create empty directories. The `<file>` directive supports this now. |
66 | | -- Fixed #58: File recurse does not work anymore. |
| 189 | +- Fixed #58: File recurse does not work anymore. |
0 commit comments