From bbcde828aa148581a94efd5830e19e44da78161b Mon Sep 17 00:00:00 2001 From: Hedzr Yeh Date: Sat, 30 Mar 2024 08:26:23 +0800 Subject: [PATCH] bump to v2.0.1 --- CHANGELOG | 17 +++++++++++------ README.md | 13 ++++++++++--- doc.go | 2 +- go.mod | 3 +-- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index eadc4a0..e1117c4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,14 +1,19 @@ # CHANGELOG +- v2.0.1 + + - fix/improve map -> struct, from hedzr/store + - more tests, more docs + - slight corrections - v2.0.0 initial commit - - integrated with store.Store - - preProcess, parse, and exec - - help screen, external editor, try parse value, atoa subpackage - - mutual exclusive, just once, prerequisites, circuit break - - sbom, --config, debug info screen - + - integrated with store.Store + - preProcess, parse, and exec + - help screen, external editor, try parse value, atoa subpackage + - mutual exclusive, just once, prerequisites, circuit break + - sbom, --config, debug info screen + a (string) to any (type) - To convert a string to an exact value according to the given meme. diff --git a/README.md b/README.md index 1cc74a3..5216f0a 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,9 @@ There are many dirty codes in the cmdr.v1 which cannot be refactored as well. It The passing winter, we did rewrite the cmdr.v2 to keep it clean and absorbed in parsing and dispatching. Some abilities were removed and relayouted to new modules. That's why the `Option Store` has been split as a standalone module [hedzr/store](https://github.com/hedzr/store)[^1]. -A faster and colorful slog-like logger has been implemented freshly as [hedzr/logg](https://github.com/hedzr/logg). -[hedzr/evendeep](https://github.com/hedzr/evendeep) provides a deep fully-functional object copy tool. It helps to deep copy some internal objects easily. It is also ready for you. -[hedzr/is](https://github.com/hedzr/is) is an environment detecting framework with many out-of-the-box detectors, such as `is.InTesting` and `is.InDebugging`. +A faster and colorful slog-like logger has been implemented freshly as [hedzr/logg](https://github.com/hedzr/logg)[^3]. +[hedzr/evendeep](https://github.com/hedzr/evendeep)[^2] provides a deep fully-functional object copy tool. It helps to deep copy some internal objects easily. It is also ready for you. +[hedzr/is](https://github.com/hedzr/is)[^4] is an environment detecting framework with many out-of-the-box detectors, such as `is.InTesting` and `is.InDebugging`. Anyway, the whole supply chain painted: @@ -95,6 +95,9 @@ v2 is in earlier state but the baseline is stable: [^1]: `hedzr/store` is a high-performance configure management library +[^2]: `hedzr/evendeep` offers a customizable deepcopy tool to you. There are also deepequal, deepdiff tools in it. +[^3]: `hedzr/logg` provides a slog like and colorful logging library +[^4]: `hedzr/is` is a basic environ detectors library More minor details need to be evaluated and reimplemented if it's still meaningful in v2. @@ -102,6 +105,10 @@ More minor details need to be evaluated and reimplemented if it's still meaningf v2 is staying in earlier state: +- Latest: v2.0.1 + - following our direct dependencies to fix/improve map -> struct converter so that we can: + - improved the performance `GetSectionFrom` + - remove direct dep to yåml.v3, so we haven't any 3rd-party direct deps now, in the main module. - Full list: [CHANGELOG](https://github.com/hedzr/cmdr/blob/master/CHANGELOG) ## Guide diff --git a/doc.go b/doc.go index d8059c5..a90be5d 100644 --- a/doc.go +++ b/doc.go @@ -2,4 +2,4 @@ package cmdr -const Version = "v2.0.0" // Version fir hedzr/cmdr/v2 +const Version = "v2.0.1" // Version fir hedzr/cmdr/v2 diff --git a/go.mod b/go.mod index b7e0d07..e52c1ad 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ go 1.21 // replace github.com/hedzr/go-cabin/v2 => ../libs.cabin -replace github.com/hedzr/cmdr/v2/loaders => ./loaders +// replace github.com/hedzr/cmdr/v2/loaders => ./loaders // replace github.com/hedzr/store/codecs/hcl => ../libs.store/codecs/hcl @@ -53,7 +53,6 @@ replace github.com/hedzr/cmdr/v2/loaders => ./loaders // replace github.com/hedzr/store/providers/maps => ../libs.store/providers/maps require ( - github.com/hedzr/cmdr/v2/loaders v0.0.0-00010101000000-000000000000 github.com/hedzr/evendeep v1.1.7 github.com/hedzr/is v0.5.18 github.com/hedzr/logg v0.5.18