Skip to content

Releases: gookit/config

v2.1.4

28 Aug 09:10
Compare
Choose a tag to compare

Change Log

Feature

  • feat: support Set with slice/array index using square brackets. issue #96 df9cb3b
  • feat: add Decode func for mapping all data to struct 88d7e3d
  • feat: #94 - Support parse default value by struct tag default edd2db6

Update

  • up: update some error define, update the binding struct logic b66f432

Other

  • chore: remove un-used func, update some code styles a2a0b8b

Full Changelog: v2.1.3...v2.1.4

v2.1.3

22 Aug 16:12
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: retry set value error on load yaml v2 data 9764bbd
  • fix: #91 - add lock on binding values to struct 1ca5fff
  • fix: fix DumpToFile() error on go1.15, add some tests 8021f6c
  • fix: fix set error on input yaml.v2 like data 6d5e8a6
  • fix build error for built in json driver b71d046

Feature

  • feat: new option - ParseTime support parse string to time.Duration. see issue #81 046bdd7
  • feat: add new driver use Java properties as config source 4ed0a18

Update

  • up: update some code style and update gh release script 64ddf53
  • up: use copy new bind-config instead of add read-lock 1d28d20
  • up: enhance the Set logic, allow change type of map item value. issues #70 46cb2f1
  • up: update readme and examples, default recommend use yaml.v3 808bb97

Other

  • build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 734c2dd
  • build(deps): bump github.com/gookit/goutil from 0.5.2 to 0.5.4 ea79da9
  • build(deps): bump github.com/gookit/ini/v2 from 2.1.0 to 2.1.1 4561cd9
  • build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 5d5226d
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.12.0 to 2.13.0 c69629b
  • build(deps): bump github.com/gookit/goutil from 0.5.4 to 0.5.5 20371c2
  • build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 01bcf97
  • build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 8d5bb4a
  • chore: update some gh action script and method comments 4806a21
  • build(deps): bump github.com/gookit/goutil from 0.5.5 to 0.5.6 46dc450
  • build(deps): bump github.com/gookit/goutil from 0.5.6 to 0.5.7 229c49d
  • build(deps): bump github.com/BurntSushi/toml from 1.1.0 to 1.2.0 45d0807
  • add DumpToFile add WithSetSaveFile 06a328e
  • build(deps): bump morphy2k/revive-action from 2.3.1 to 2.4.0 b427382
  • chore: update some code style and comments adc55a9
  • chore: add unit tests for properties driver d0e34e7
  • chore: update the properties driver dep version 62ee080
  • chore: update the gookit/properties to v0.1, upgrade goutil 37bfe90
  • chore: update some examples, update some for json driver 167f619
  • chore: update readme, add test on go1.19 and rm go1.15 752b6e9

New Contributors

  • @aadog made their first contribution in #90

Full Changelog: v2.1.2...v2.1.3

v2.1.2

01 Jun 05:23
Compare
Choose a tag to compare

Change Log

  • fix: should clear last error after read by config.Error(). close: #76 3be2108

Full Changelog: v2.1.1...v2.1.2

v2.1.1

28 May 14:15
Compare
Choose a tag to compare

Change Log

Refactor

  • refactor: refactoring the config drivers build logic 4dd95c8

Update

  • update: update gh action script and readme a4ca4c0
  • chore: update readme, update action script 2dddf2b
  • up: update readme and release action 9d268b9
  • up: add changelog gen config file 59e1fb2
  • chore: update the action for check go code style e29f6af

Other

  • build(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0 2c73e83
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.11.1 to 2.12.0 5511ab3
  • build(deps): bump github.com/gookit/goutil from 0.5.0 to 0.5.1 c5fa74d
  • build(deps): bump github.com/gookit/goutil from 0.5.1 to 0.5.2 72e1e65
  • chore: fix some code check error by staticcheck 02b6ba5
  • build(deps): bump github.com/imdario/mergo from 0.3.12 to 0.3.13 62659df
  • build(deps): bump gopkg.in/yaml.v3 from 3.0.0 to 3.0.1 e0ab4c5

v2.1.0

16 Apr 03:34
Compare
Choose a tag to compare

Change Log

Feature

  • feat: add new method: MapOnExists - mapping data to the dst struct only on key exists f1ab0eb
  • feat: support listen and fire events on config data changed. close: #61 d9f66ad

Fixed

  • fix: fix unit test error 42daae9
  • test: fix the action test fail 086e622

Other

  • style: update readme and action scripts 79df2b3
  • doc: update options code c5f64c3
  • chore(deps): update dep versions 3e44019
  • chore(action): update dependabot config 812b24b
  • build(deps): bump actions/checkout from 2 to 3 126d8f9
  • build(deps): bump actions/setup-go from 2 to 3 49f0d17
  • build(deps): bump github.com/BurntSushi/toml from 0.3.1 to 1.1.0 d7a3f03
  • build(deps): bump github.com/json-iterator/go from 1.1.11 to 1.1.12 bed5225
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.10.1 to 2.11.1 63c8e25
  • chore: add test on go1.18, will not test on go < 1.15 086f1f4
  • pref: add lock on call SetData 35f7ece
  • pref: add more unit tests, update readme fe69183

v2.0.27

13 Oct 13:52
Compare
Choose a tag to compare
Release v2.0.27

v2.0.26

05 Oct 05:45
Compare
Choose a tag to compare
Release v2.0.26

v2.0.25

29 Jul 15:10
Compare
Choose a tag to compare
Release v2.0.25

v2.0.24

19 May 01:44
Compare
Choose a tag to compare
Release v2.0.24

v2.0.23

07 Apr 02:54
Compare
Choose a tag to compare
Release v2.0.23