|
1 ## Changelog |
|
2 |
|
3 ### [1.8](https://github.com/magiconair/properties/tree/v1.8) - 15 May 2018 |
|
4 |
|
5 * [PR #26](https://github.com/magiconair/properties/pull/26): Disable expansion during loading |
|
6 |
|
7 This adds the option to disable property expansion during loading. |
|
8 |
|
9 Thanks to [@kmala](https://github.com/kmala) for the patch. |
|
10 |
|
11 ### [1.7.6](https://github.com/magiconair/properties/tree/v1.7.6) - 14 Feb 2018 |
|
12 |
|
13 * [PR #29](https://github.com/magiconair/properties/pull/29): Reworked expansion logic to handle more complex cases. |
|
14 |
|
15 See PR for an example. |
|
16 |
|
17 Thanks to [@yobert](https://github.com/yobert) for the fix. |
|
18 |
|
19 ### [1.7.5](https://github.com/magiconair/properties/tree/v1.7.5) - 13 Feb 2018 |
|
20 |
|
21 * [PR #28](https://github.com/magiconair/properties/pull/28): Support duplicate expansions in the same value |
|
22 |
|
23 Values which expand the same key multiple times (e.g. `key=${a} ${a}`) will no longer fail |
|
24 with a `circular reference error`. |
|
25 |
|
26 Thanks to [@yobert](https://github.com/yobert) for the fix. |
|
27 |
|
28 ### [1.7.4](https://github.com/magiconair/properties/tree/v1.7.4) - 31 Oct 2017 |
|
29 |
|
30 * [Issue #23](https://github.com/magiconair/properties/issues/23): Ignore blank lines with whitespaces |
|
31 |
|
32 * [PR #24](https://github.com/magiconair/properties/pull/24): Update keys when DisableExpansion is enabled |
|
33 |
|
34 Thanks to [@mgurov](https://github.com/mgurov) for the fix. |
|
35 |
|
36 ### [1.7.3](https://github.com/magiconair/properties/tree/v1.7.3) - 10 Jul 2017 |
|
37 |
|
38 * [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 |
|
39 * [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 |
|
40 |
|
41 ### [1.7.2](https://github.com/magiconair/properties/tree/v1.7.2) - 20 Mar 2017 |
|
42 |
|
43 * [Issue #15](https://github.com/magiconair/properties/issues/15): Drop gocheck dependency |
|
44 * [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) |
|
45 |
|
46 ### [1.7.1](https://github.com/magiconair/properties/tree/v1.7.1) - 13 Jan 2017 |
|
47 |
|
48 * [Issue #14](https://github.com/magiconair/properties/issues/14): Decouple TestLoadExpandedFile from `$USER` |
|
49 * [PR #12](https://github.com/magiconair/properties/pull/12): Load from files and URLs |
|
50 * [PR #16](https://github.com/magiconair/properties/pull/16): Keep gofmt happy |
|
51 * [PR #18](https://github.com/magiconair/properties/pull/18): Fix Delete() function |
|
52 |
|
53 ### [1.7.0](https://github.com/magiconair/properties/tree/v1.7.0) - 20 Mar 2016 |
|
54 |
|
55 * [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. |
|
56 * [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. |
|
57 * [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) |
|
58 |
|
59 ### [1.6.0](https://github.com/magiconair/properties/tree/v1.6.0) - 11 Dec 2015 |
|
60 |
|
61 * Add [Decode](http://godoc.org/github.com/magiconair/properties#Properties.Decode) method to populate struct from properties via tags. |
|
62 |
|
63 ### [1.5.6](https://github.com/magiconair/properties/tree/v1.5.6) - 18 Oct 2015 |
|
64 |
|
65 * Vendored in gopkg.in/check.v1 |
|
66 |
|
67 ### [1.5.5](https://github.com/magiconair/properties/tree/v1.5.5) - 31 Jul 2015 |
|
68 |
|
69 * [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) |
|
70 |
|
71 ### [1.5.4](https://github.com/magiconair/properties/tree/v1.5.4) - 23 Jun 2015 |
|
72 |
|
73 * [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. |
|
74 |
|
75 ### [1.5.3](https://github.com/magiconair/properties/tree/v1.5.3) - 02 Jun 2015 |
|
76 |
|
77 * [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) |
|
78 |
|
79 ### [1.5.2](https://github.com/magiconair/properties/tree/v1.5.2) - 10 Apr 2015 |
|
80 |
|
81 * [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 |
|
82 * Add clickable links to README |
|
83 |
|
84 ### [1.5.1](https://github.com/magiconair/properties/tree/v1.5.1) - 08 Dec 2014 |
|
85 |
|
86 * 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 |
|
87 [time.ParseDuration()](http://golang.org/pkg/time/#ParseDuration). |
|
88 |
|
89 ### [1.5.0](https://github.com/magiconair/properties/tree/v1.5.0) - 18 Nov 2014 |
|
90 |
|
91 * Added support for single and multi-line comments (reading, writing and updating) |
|
92 * The order of keys is now preserved |
|
93 * 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 |
|
94 * Added a [MustSet()](http://godoc.org/github.com/magiconair/properties#Properties.MustSet) method |
|
95 * Migrated test library from launchpad.net/gocheck to [gopkg.in/check.v1](http://gopkg.in/check.v1) |
|
96 |
|
97 ### [1.4.2](https://github.com/magiconair/properties/tree/v1.4.2) - 15 Nov 2014 |
|
98 |
|
99 * [Issue #2](https://github.com/magiconair/properties/issues/2): Fixed goroutine leak in parser which created two lexers but cleaned up only one |
|
100 |
|
101 ### [1.4.1](https://github.com/magiconair/properties/tree/v1.4.1) - 13 Nov 2014 |
|
102 |
|
103 * [Issue #1](https://github.com/magiconair/properties/issues/1): Fixed bug in Keys() method which returned an empty string |
|
104 |
|
105 ### [1.4.0](https://github.com/magiconair/properties/tree/v1.4.0) - 23 Sep 2014 |
|
106 |
|
107 * Added [Keys()](http://godoc.org/github.com/magiconair/properties#Properties.Keys) to get the keys |
|
108 * 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 |
|
109 |
|
110 ### [1.3.0](https://github.com/magiconair/properties/tree/v1.3.0) - 18 Mar 2014 |
|
111 |
|
112 * Added support for time.Duration |
|
113 * Made MustXXX() failure beha[ior configurable (log.Fatal, panic](https://github.com/magiconair/properties/tree/vior configurable (log.Fatal, panic) - custom) |
|
114 * Changed default of MustXXX() failure from panic to log.Fatal |
|
115 |
|
116 ### [1.2.0](https://github.com/magiconair/properties/tree/v1.2.0) - 05 Mar 2014 |
|
117 |
|
118 * Added MustGet... functions |
|
119 * Added support for int and uint with range checks on 32 bit platforms |
|
120 |
|
121 ### [1.1.0](https://github.com/magiconair/properties/tree/v1.1.0) - 20 Jan 2014 |
|
122 |
|
123 * Renamed from goproperties to properties |
|
124 * Added support for expansion of environment vars in |
|
125 filenames and value expressions |
|
126 * Fixed bug where value expressions were not at the |
|
127 start of the string |
|
128 |
|
129 ### [1.0.0](https://github.com/magiconair/properties/tree/v1.0.0) - 7 Jan 2014 |
|
130 |
|
131 * Initial release |