- Fixed the enumeration of keys @lipkau #125
v4 is a breaking change:
- the commands of the module were refactored and renamed.
- the behaviour of parsing quotation marks was changes, as per ADR #95.
Details on how to upgrade are documented in the Migrating to PSIni v4
- Add
-IgnoreEmptySectionparameter toImport-Ini@kevinholtkamp #69 - Added
-CommentChartoExport-Ini@lipkau #103 - Added
-LiteralPathtoImport-Ini@lipkau #105 - Added
-EncodingtoImport-Ini@lipkau #111 - Added
-InputStringtoImport-Ini@lipkau #111- In order to implement this, a slight performance buff was implemented:
files are now read with[System.IO.File]::ReadAllLines()instead forswitch -file
Read more: https://devdojo.com/hcritter/powershell-performance-test-file-reading
- In order to implement this, a slight performance buff was implemented:
- No longer reading empty lines as keys @HighPriest #79
- Improve performance by operating in-memory @HighPriest #80
- Fix tests for ending empty line behaviour in pretty print @HighPriest #90
- Writing of empty sections @lipkau #104
- Fixed positional parameters @lipkau #108
- Fixed
Commentto be a valid key @lipkau #109
- BREAKING:
Get-IniContentis replaced withImport-Ini@lipkau - BREAKING:
Out-IniFileis replaced withExport-Ini@lipkau - BREAKING: Changed behaviour of how quotation marks are parsed @lipkau #100
- BREAKING: Changed
Export-Iniparameters to match the behaviour of otherExport-*functions @lipkau #118
- BREAKING: Removed support for Powershell v2, v3 and v4 @lipkau
This is a collection of changes in v3.*.
PR#42 caused a breaking change, as the change to the quotations marks could result in a different behaviour than current users are accustomed to.
- Allow whitespaces in the beginning of comments @ildar-shaimordanov #42
- Allow whitespaces around sections and key/value/pairs @ildar-shaimordanov #42
- Allow quotation for values @ildar-shaimordanov #42
- Move the important regexp settings out of the
Processblock @ildar-shaimordanov #42
- Removed behaviour to create a nested
arrayliston the first item when keynames are the same. Which caused the first items to be doubled up into two lists. @tcartwright #73
This is a collection of changes in v2.*.
Issue#37 identified a breaking change from v1.*.
- Added parameter
-Prettyfor writing Ini files @lipkau #39 - Read Multiple Values for Common Key into Array @heilkn #43
- Fixed parameter property declaration for Powershell v2 compatibility @lipkau #41
- Fixed backwards compatibility: Values should only be of type
[array]when necessary;[string]otherwise @lipkau - Fix random
Add-Content : Stream was not readableerror @michaelPf85 #44
- Removed Strict Mode @lipkau #45
This is a collection of changes in v1.*.
It was first published on the Microsoft Script Gallery:
http://gallery.technet.microsoft.com/scriptcenter/ea40c1ef-c856-434b-b8fb-ebd7a76e8d91
It was published on the Hey Scripting Guy Blog on 2011-08-20:
Use PowerShell to Work with Any INI File
- Added unit tests. @craibuc #3
- Use
OrderedDictionary, support#comments, utf8 by default and better round tripping. @colinbate #7 - Accepts whitespaces in
[section]line of INI file @lipkau #22 - Add Comment, Uncomment, Remove and Update functions @seanjseymour #24
- Support empty sections @popojargo #27
- Bugfix/Added example to help @IngmarVerheij
- Improved handling for missing output file @SLDR
- Fixed typos @SLDR & @DaveStiff
- Fixed parameters in nested function @lipkau
- Bug
Out-IniFile:$delimitermisspelt as$equal@jpaugh #32 - Fix accessing dictionary keys @SeverinLeonhardt #36
- Improvment to switch @Tallandtree
- Migrate to semantic versioning @lipkau #4
- Changed .outputs section to be
OrderedDictionary@craibuc #15
- Removed need for delimiters by making Sections a string array and NameValuePairs a hashtable
- Removed extra
\r\nat end of file @craibuc - Remove check for
.iniextension @lipkau #6 - Remove the need for delimiters from certain parameters @seanjseymour #31