Skip to content

Releases: gookit/config

v2.2.5

13 Jan 04:13
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat: LoadFromDir support new option: DataKey. see issues #173 1e610d7
  • ✨ feat: add new Option: MergeOptions support set the data merge options. see #166 00de7f6

Update

  • 👔 up: update the dep gookit/goutil to v0.6.15 e25815d
  • 👔 up: update the dep imdario/mergo to dario.cat/mergo v1.0.0 b624f19

Other

  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.18.1 to 2.19.0 (#174) c4df552
  • build(deps): bump morphy2k/revive-action from 2.5.3 to 2.5.4 (#176) 4196bd6
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.19.0 to 2.19.1 (#175) 830e161
  • build(deps): bump WillAbides/setup-go-faster from 1.12.0 to 1.13.0 (#180) 8ff0379
  • build(deps): bump github/codeql-action from 2 to 3 (#181) 6622e55
  • build(deps): bump morphy2k/revive-action from 2.5.4 to 2.5.5 (#182) 7f31649
  • build(deps): bump morphy2k/revive-action from 2.5.5 to 2.5.6 (#183) c74c0ae
  • 📝 doc: update ZH-CN readme and update gh action config 25dc0fa
  • 💚 ci: fix a syntax error on lint.yml 39cb17c
  • ✅ test: add more unit tests, improve test coverage 1a3e1b1
  • 💚 ci: fix morphy/revive-action:v2.5.5 not found on lint.yml d2b8e48
  • 💚 ci: fix go-version or go-version-file must be specified on lint.yml 6c11936

v2.2.4

16 Oct 06:40
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: parsing struct with duration like 90s (#151) 340d324
  • 🐛 fix: bind struct - if c.data is nil, directly return. see #162 2d6eb56
  • 🐛 fix: init default value will skip for empty []struct field. see #162 d1e31aa

Feature

  • ✨ feat: parse env var support required checking. see #156 c58859d

Other

  • build(deps): bump github.com/gookit/goutil from 0.6.10 to 0.6.11 (#153) 526ed31
  • build(deps): bump github.com/gookit/goutil from 0.6.11 to 0.6.12 (#154) ba68e03
  • build(deps): bump WillAbides/setup-go-faster from 1.8.0 to 1.9.0 (#158) 3572fbe
  • build(deps): bump WillAbides/setup-go-faster from 1.9.0 to 1.9.1 (#159) 969f1cf
  • build(deps): bump WillAbides/setup-go-faster from 1.9.1 to 1.10.0 (#160) 2961f10
  • build(deps): bump morphy2k/revive-action from 2.5.2 to 2.5.3 (#163) 2f679d7
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.17.0 to 2.18.0 (#164) eaf2585
  • build(deps): bump WillAbides/setup-go-faster from 1.10.0 to 1.10.1 (#161) d1853fa
  • build(deps): bump actions/checkout from 3 to 4 (#165) df4a629
  • build(deps): bump github.com/goccy/go-yaml from 1.11.0 to 1.11.1 (#168) ce66cbd
  • build(deps): bump WillAbides/setup-go-faster from 1.10.1 to 1.11.0 (#167) 2eceba0
  • build(deps): bump github.com/goccy/go-yaml from 1.11.1 to 1.11.2 (#169) 27558e8
  • build(deps): bump WillAbides/setup-go-faster from 1.11.0 to 1.12.0 (#170) abe21b0
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.18.0 to 2.18.1 (#171) 49ece93
  • ⬆️ dep: upgrade test on go1.21 and remove test on go1.18 a6380a3

v2.2.3

20 Jun 16:38
Compare
Choose a tag to compare

Change Log

  • 👔 up: update the banding struct and init defaults logic ecb0bbe

v2.2.2

11 Jun 15:54
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat: add new method LoadSMap() for load string-map data 460f558
  • ✨ feat: support init default on struct-slice field. resolve issues #141 099297b
  • ✨ feat: support set driver name aliases for resolve issues #139 15d9de4

Update

  • 👔 up: replace json5 pkg from yosuke-furukawa/json5 to titanous/json5 7388b26

Other

  • build(deps): bump github.com/gookit/goutil from 0.6.6 to 0.6.7 (#127) 6c47acf
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.16.1 to 2.16.2 (#128) eedd3c2
  • build(deps): bump github.com/goccy/go-json from 0.10.0 to 0.10.1 (#129) 598881e
  • build(deps): bump morphy2k/revive-action from 2.4.1 to 2.5.0 (#130) 0b8d656
  • build(deps): bump github.com/imdario/mergo from 0.3.13 to 0.3.14 (#131) 365c527
  • build(deps): bump morphy2k/revive-action from 2.5.0 to 2.5.1 (#132) e109354
  • 🎨 chore: update some comments for json5 package 5836243
  • build(deps): bump github.com/goccy/go-json from 0.10.1 to 0.10.2 (#133) 4af11e6
  • build(deps): bump github.com/imdario/mergo from 0.3.14 to 0.3.15 (#134) 906fbff
  • build(deps): bump github.com/goccy/go-yaml from 1.10.0 to 1.10.1 (#135) 34bc67a
  • build(deps): bump github.com/goccy/go-yaml from 1.10.1 to 1.11.0 (#138) f755a87
  • build(deps): bump github.com/gookit/ini/v2 from 2.2.1 to 2.2.2 (#136) 5e9058f
  • build(deps): bump github.com/gookit/goutil from 0.6.7 to 0.6.8 (#137) 37b156f
  • build(deps): bump morphy2k/revive-action from 2.5.1 to 2.5.2 (#142) 6cddaa2
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.16.2 to 2.17.0 (#145) 8cc28fa
  • Fix ParseTime and ParseEnv interaction (#147) 3f23d7b
  • build(deps): bump github.com/BurntSushi/toml from 1.2.1 to 1.3.1 (#148) 91943c5
  • build(deps): bump github.com/BurntSushi/toml from 1.3.1 to 1.3.2 (#149) 1e5875e
  • ✅ test: fix unit test error on update deps version 2dd5341
  • ⬆️ dep: update the gookit/goutil to v0.6.9 d9cbc9b

New Contributors

Full Changelog: v2.2.1...v2.2.2

v2.2.1

05 Mar 15:59
6216690
Compare
Choose a tag to compare

Change Log

Update

  • update goutils to v.0.6.6 and fix problem due to a breaking change (#126) 6216690

Other

  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.16.0 to 2.16.1 95f53fc
  • build(deps): bump github.com/gookit/properties from 0.2.1 to 0.3.0 e30a229
  • build(deps): bump github.com/goccy/go-yaml from 1.9.8 to 1.10.0 (#125) 7198ea9

New Contributors

Full Changelog: v2.2.0...v2.2.1

v2.2.0

11 Feb 11:28
Compare
Choose a tag to compare

Change Log

💥 Breaking: Will be not support the Go < 1.18

Feature

  • ✨ feat: add new read methods for get config value 884a968

Update

  • ⬆️ up: upgrade to go1.18+, replace all interface{} to any 79acc56
  • 🔥 up: remove error sub-pkg dotnev/, update ci config and some tests d52926f
  • ⬆️ up: replace json driver to goccy/go-json from json-iterator/go 5eb6061
  • ⬆️ up: replace yaml driver to goccy/go-yaml from gopkg.in/yaml 31d3867
  • 👔 up: enhance support slice with ParseDefault and ParseEnv. fix: #114 08b995e

Other

  • build(deps): bump WillAbides/setup-go-faster from 1.7.0 to 1.8.0 5b1085e
  • chore: replace yaml with github.com/goccy/go-yaml d5f1f38
  • ⬆️ dep: upgrade ini and hcl driver to the latest version 17d1702

What's Changed

  • build(deps): bump WillAbides/setup-go-faster from 1.7.0 to 1.8.0 by @dependabot in #110
  • chore: replace yaml with github.com/goccy/go-yaml by @JanDeDobbeleer in #119

New Contributors

Full Changelog: v2.1.8...v2.2.0

v2.1.8

16 Nov 12:33
Compare
Choose a tag to compare

Change Log

Feature

  • feat: support load given format files from a dir path. 28a568b
  • feat: #108 add Duration() for read time.Duration type value 1c71011

Update

  • up: replace some input interface{} params to any fd71638
  • up: use gookit/goutil/testutil instead of stretchr/testify on top pkg a43a79c
  • up: use gookit/goutil/testutil instead of stretchr/testify on sub pkg 0eaa807

Other

  • build(deps): bump github.com/BurntSushi/toml from 1.2.0 to 1.2.1 608d97d
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.14.1 to 2.15.0 0cd95ed

v2.1.7

16 Oct 18:25
Compare
Choose a tag to compare

Change Log

Feature

  • feat: add Config.ReloadFiles for reload has been load config files 02cd35d

Update

  • up: update the load data from env logic, update readme 5f2f89e
  • up: breaking - remove all on pkg dotnev, please use gookit/ini/v2/dotenv 5aa4a79
  • up: store the loaded remote urls and fix test error 9e8b419
  • up: revert some dotnev codes for compat old version 7e45b6b

Other

  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.14.0 to 2.14.1 b8ee392
  • build(deps): bump morphy2k/revive-action from 2.4.0 to 2.4.1 1c0b3bf
  • build(deps): bump github.com/gookit/goutil from 0.5.12 to 0.5.13 fcb70b6
  • chore: fix there are examples run error on _examples/ 3e8aeb5
  • chore: add some new docs for watch config files 1d9e607
  • chore: update some docs on readme 9bae072
  • chore: update deps ini,properties and update readme docs 831b20e

v2.1.6

16 Sep 02:20
Compare
Choose a tag to compare

Change Log

  • dep: update deb pkg version, update readme 166b808

v2.1.5

04 Sep 03:33
Compare
Choose a tag to compare

Change Log

Feature

  • feat: support parse ENV var on struct default tag #97 9610f97

Update

  • up: add some new util funcs and update readme 2d3dbe1

Other

  • docs: update some usage docs on README 6823b69
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.13.0 to 2.14.0 259fb5c