...
1## Changelog
2
3### [1.8.7](https://github.com/magiconair/properties/tree/v1.8.7) - 08 Dec 2022
4
5 * [PR #65](https://github.com/magiconair/properties/pull/65): Speedup Merge
6
7 Thanks to [@AdityaVallabh](https://github.com/AdityaVallabh) for the patch.
8
9 * [PR #66](https://github.com/magiconair/properties/pull/66): use github actions
10
11### [1.8.6](https://github.com/magiconair/properties/tree/v1.8.6) - 23 Feb 2022
12
13 * [PR #57](https://github.com/magiconair/properties/pull/57):Fix "unreachable code" lint error
14
15 Thanks to [@ellie](https://github.com/ellie) for the patch.
16
17 * [PR #63](https://github.com/magiconair/properties/pull/63): Make TestMustGetParsedDuration backwards compatible
18
19 This patch ensures that the `TestMustGetParsedDuration` still works with `go1.3` to make the
20 author happy until it affects real users.
21
22 Thanks to [@maage](https://github.com/maage) for the patch.
23
24### [1.8.5](https://github.com/magiconair/properties/tree/v1.8.5) - 24 Mar 2021
25
26 * [PR #55](https://github.com/magiconair/properties/pull/55): Fix: Encoding Bug in Comments
27
28 When reading comments \ are loaded correctly, but when writing they are then
29 replaced by \\. This leads to wrong comments when writing and reading multiple times.
30
31 Thanks to [@doxsch](https://github.com/doxsch) for the patch.
32
33### [1.8.4](https://github.com/magiconair/properties/tree/v1.8.4) - 23 Sep 2020
34
35 * [PR #50](https://github.com/magiconair/properties/pull/50): enhance error message for circular references
36
37 Thanks to [@sriv](https://github.com/sriv) for the patch.
38
39### [1.8.3](https://github.com/magiconair/properties/tree/v1.8.3) - 14 Sep 2020
40
41 * [PR #49](https://github.com/magiconair/properties/pull/49): Include the key in error message causing the circular reference
42
43 The change is include the key in the error message which is causing the circular
44 reference when parsing/loading the properties files.
45
46 Thanks to [@haroon-sheikh](https://github.com/haroon-sheikh) for the patch.
47
48### [1.8.2](https://github.com/magiconair/properties/tree/v1.8.2) - 25 Aug 2020
49
50 * [PR #36](https://github.com/magiconair/properties/pull/36): Escape backslash on write
51
52 This patch ensures that backslashes are escaped on write. Existing applications which
53 rely on the old behavior may need to be updated.
54
55 Thanks to [@apesternikov](https://github.com/apesternikov) for the patch.
56
57 * [PR #42](https://github.com/magiconair/properties/pull/42): Made Content-Type check whitespace agnostic in LoadURL()
58
59 Thanks to [@aliras1](https://github.com/aliras1) for the patch.
60
61 * [PR #41](https://github.com/magiconair/properties/pull/41): Make key/value separator configurable on Write()
62
63 Thanks to [@mkjor](https://github.com/mkjor) for the patch.
64
65 * [PR #40](https://github.com/magiconair/properties/pull/40): Add method to return a sorted list of keys
66
67 Thanks to [@mkjor](https://github.com/mkjor) for the patch.
68
69### [1.8.1](https://github.com/magiconair/properties/tree/v1.8.1) - 10 May 2019
70
71 * [PR #35](https://github.com/magiconair/properties/pull/35): Close body always after request
72
73 This patch ensures that in `LoadURL` the response body is always closed.
74
75 Thanks to [@liubog2008](https://github.com/liubog2008) for the patch.
76
77### [1.8](https://github.com/magiconair/properties/tree/v1.8) - 15 May 2018
78
79 * [PR #26](https://github.com/magiconair/properties/pull/26): Disable expansion during loading
80
81 This adds the option to disable property expansion during loading.
82
83 Thanks to [@kmala](https://github.com/kmala) for the patch.
84
85### [1.7.6](https://github.com/magiconair/properties/tree/v1.7.6) - 14 Feb 2018
86
87 * [PR #29](https://github.com/magiconair/properties/pull/29): Reworked expansion logic to handle more complex cases.
88
89 See PR for an example.
90
91 Thanks to [@yobert](https://github.com/yobert) for the fix.
92
93### [1.7.5](https://github.com/magiconair/properties/tree/v1.7.5) - 13 Feb 2018
94
95 * [PR #28](https://github.com/magiconair/properties/pull/28): Support duplicate expansions in the same value
96
97 Values which expand the same key multiple times (e.g. `key=${a} ${a}`) will no longer fail
98 with a `circular reference error`.
99
100 Thanks to [@yobert](https://github.com/yobert) for the fix.
101
102### [1.7.4](https://github.com/magiconair/properties/tree/v1.7.4) - 31 Oct 2017
103
104 * [Issue #23](https://github.com/magiconair/properties/issues/23): Ignore blank lines with whitespaces
105
106 * [PR #24](https://github.com/magiconair/properties/pull/24): Update keys when DisableExpansion is enabled
107
108 Thanks to [@mgurov](https://github.com/mgurov) for the fix.
109
110### [1.7.3](https://github.com/magiconair/properties/tree/v1.7.3) - 10 Jul 2017
111
112 * [Issue #17](https://github.com/magiconair/properties/issues/17): Add [SetValue()](http://godoc.org/github.com/magiconair/properties#Properties.SetValue) method to set values generically
113 * [Issue #22](https://github.com/magiconair/properties/issues/22): Add [LoadMap()](http://godoc.org/github.com/magiconair/properties#LoadMap) function to load properties from a string map
114
115### [1.7.2](https://github.com/magiconair/properties/tree/v1.7.2) - 20 Mar 2017
116
117 * [Issue #15](https://github.com/magiconair/properties/issues/15): Drop gocheck dependency
118 * [PR #21](https://github.com/magiconair/properties/pull/21): Add [Map()](http://godoc.org/github.com/magiconair/properties#Properties.Map) and [FilterFunc()](http://godoc.org/github.com/magiconair/properties#Properties.FilterFunc)
119
120### [1.7.1](https://github.com/magiconair/properties/tree/v1.7.1) - 13 Jan 2017
121
122 * [Issue #14](https://github.com/magiconair/properties/issues/14): Decouple TestLoadExpandedFile from `$USER`
123 * [PR #12](https://github.com/magiconair/properties/pull/12): Load from files and URLs
124 * [PR #16](https://github.com/magiconair/properties/pull/16): Keep gofmt happy
125 * [PR #18](https://github.com/magiconair/properties/pull/18): Fix Delete() function
126
127### [1.7.0](https://github.com/magiconair/properties/tree/v1.7.0) - 20 Mar 2016
128
129 * [Issue #10](https://github.com/magiconair/properties/issues/10): Add [LoadURL,LoadURLs,MustLoadURL,MustLoadURLs](http://godoc.org/github.com/magiconair/properties#LoadURL) method to load properties from a URL.
130 * [Issue #11](https://github.com/magiconair/properties/issues/11): Add [LoadString,MustLoadString](http://godoc.org/github.com/magiconair/properties#LoadString) method to load properties from an UTF8 string.
131 * [PR #8](https://github.com/magiconair/properties/pull/8): Add [MustFlag](http://godoc.org/github.com/magiconair/properties#Properties.MustFlag) method to provide overrides via command line flags. (@pascaldekloe)
132
133### [1.6.0](https://github.com/magiconair/properties/tree/v1.6.0) - 11 Dec 2015
134
135 * Add [Decode](http://godoc.org/github.com/magiconair/properties#Properties.Decode) method to populate struct from properties via tags.
136
137### [1.5.6](https://github.com/magiconair/properties/tree/v1.5.6) - 18 Oct 2015
138
139 * Vendored in gopkg.in/check.v1
140
141### [1.5.5](https://github.com/magiconair/properties/tree/v1.5.5) - 31 Jul 2015
142
143 * [PR #6](https://github.com/magiconair/properties/pull/6): Add [Delete](http://godoc.org/github.com/magiconair/properties#Properties.Delete) method to remove keys including comments. (@gerbenjacobs)
144
145### [1.5.4](https://github.com/magiconair/properties/tree/v1.5.4) - 23 Jun 2015
146
147 * [Issue #5](https://github.com/magiconair/properties/issues/5): Allow disabling of property expansion [DisableExpansion](http://godoc.org/github.com/magiconair/properties#Properties.DisableExpansion). When property expansion is disabled Properties become a simple key/value store and don't check for circular references.
148
149### [1.5.3](https://github.com/magiconair/properties/tree/v1.5.3) - 02 Jun 2015
150
151 * [Issue #4](https://github.com/magiconair/properties/issues/4): Maintain key order in [Filter()](http://godoc.org/github.com/magiconair/properties#Properties.Filter), [FilterPrefix()](http://godoc.org/github.com/magiconair/properties#Properties.FilterPrefix) and [FilterRegexp()](http://godoc.org/github.com/magiconair/properties#Properties.FilterRegexp)
152
153### [1.5.2](https://github.com/magiconair/properties/tree/v1.5.2) - 10 Apr 2015
154
155 * [Issue #3](https://github.com/magiconair/properties/issues/3): Don't print comments in [WriteComment()](http://godoc.org/github.com/magiconair/properties#Properties.WriteComment) if they are all empty
156 * Add clickable links to README
157
158### [1.5.1](https://github.com/magiconair/properties/tree/v1.5.1) - 08 Dec 2014
159
160 * Added [GetParsedDuration()](http://godoc.org/github.com/magiconair/properties#Properties.GetParsedDuration) and [MustGetParsedDuration()](http://godoc.org/github.com/magiconair/properties#Properties.MustGetParsedDuration) for values specified compatible with
161 [time.ParseDuration()](http://golang.org/pkg/time/#ParseDuration).
162
163### [1.5.0](https://github.com/magiconair/properties/tree/v1.5.0) - 18 Nov 2014
164
165 * Added support for single and multi-line comments (reading, writing and updating)
166 * The order of keys is now preserved
167 * Calling [Set()](http://godoc.org/github.com/magiconair/properties#Properties.Set) with an empty key now silently ignores the call and does not create a new entry
168 * Added a [MustSet()](http://godoc.org/github.com/magiconair/properties#Properties.MustSet) method
169 * Migrated test library from launchpad.net/gocheck to [gopkg.in/check.v1](http://gopkg.in/check.v1)
170
171### [1.4.2](https://github.com/magiconair/properties/tree/v1.4.2) - 15 Nov 2014
172
173 * [Issue #2](https://github.com/magiconair/properties/issues/2): Fixed goroutine leak in parser which created two lexers but cleaned up only one
174
175### [1.4.1](https://github.com/magiconair/properties/tree/v1.4.1) - 13 Nov 2014
176
177 * [Issue #1](https://github.com/magiconair/properties/issues/1): Fixed bug in Keys() method which returned an empty string
178
179### [1.4.0](https://github.com/magiconair/properties/tree/v1.4.0) - 23 Sep 2014
180
181 * Added [Keys()](http://godoc.org/github.com/magiconair/properties#Properties.Keys) to get the keys
182 * Added [Filter()](http://godoc.org/github.com/magiconair/properties#Properties.Filter), [FilterRegexp()](http://godoc.org/github.com/magiconair/properties#Properties.FilterRegexp) and [FilterPrefix()](http://godoc.org/github.com/magiconair/properties#Properties.FilterPrefix) to get a subset of the properties
183
184### [1.3.0](https://github.com/magiconair/properties/tree/v1.3.0) - 18 Mar 2014
185
186* Added support for time.Duration
187* Made MustXXX() failure beha[ior configurable (log.Fatal, panic](https://github.com/magiconair/properties/tree/vior configurable (log.Fatal, panic) - custom)
188* Changed default of MustXXX() failure from panic to log.Fatal
189
190### [1.2.0](https://github.com/magiconair/properties/tree/v1.2.0) - 05 Mar 2014
191
192* Added MustGet... functions
193* Added support for int and uint with range checks on 32 bit platforms
194
195### [1.1.0](https://github.com/magiconair/properties/tree/v1.1.0) - 20 Jan 2014
196
197* Renamed from goproperties to properties
198* Added support for expansion of environment vars in
199 filenames and value expressions
200* Fixed bug where value expressions were not at the
201 start of the string
202
203### [1.0.0](https://github.com/magiconair/properties/tree/v1.0.0) - 7 Jan 2014
204
205* Initial release
View as plain text