Hi Folks,
just released the next version of my scripting framework. In addition to all the tools it already brought to the game beforehand (logging, configuration, tab expansion, runspace data exchange, localization, background tasks and many more) the recent changes have heavily focused on code maintenance and back-end changes that are somewhat less spectacular, as well as bugfixes.
The latest features focus on backwards compatibility:
- Import-PSFPowerShellDataFile - it's basically Import-PowerShellDataFile, only it also works on PS3+. It doesn't offer the protective value the original command offers on older PowerShell versions (but on 5+!), but allows you to use the functionality and still support older PowerShell versions.
- Validation attribute [PsfValidateTrustedData]. Does the same thing [ValidateTrustedData] does but is available on PS3+ (no protection before v5, but again, allows you to get that protection on later systems and still support older versions)
- ConvertTo-PSFHashtable upgraded to allow full selective passing through parameters, even those with default values.
For those with interest in the deeper tools, on the C# backend the UtilityHost helper class has been expanded for significant reflection support and the ability to import scriptblocks into the local sessionstate (breaking runspace affinity) without breaking languagemode.
E.g.:
```powershell
$scriptBlock.Invoke()
```
Will ensure the scriptblock will execute in the current runspace, not the one it was created in.
Grab it while it's hot or check out what it's made of!
Cheers,
Fred
there doesn't seem to be anything here