Skip to content

src: module path is github.com/insei/tinyconf/v2 - #50

Merged
Insei merged 2 commits into
mainfrom
v2-module
Oct 18, 2026
Merged

Insei merged 2 commits into
mainfrom
v2-module

Conversation

@Insei

@Insei Insei commented Oct 18, 2026

Copy link
Copy Markdown
Owner

The next release is v2.0.0: Parse takes the context and the zap adapter is the separate module, these changes break the code of v1. Go requires the major version in the module path for v2 and newer, so the module path is github.com/insei/tinyconf/v2.

  • go.mod of the core, the imports of the drivers, tests, examples, README and documentation use github.com/insei/tinyconf/v2
  • logger/zaplogger, example and e2e require github.com/insei/tinyconf/v2; the path of logger/zaplogger is not changed, its first version is logger/zaplogger/v1.0.0
  • the "Upgrading to v2" page: the module path, Parse with the context, the zap module, the keys of embedded structs
  • "Why tinyconf?" does not say that zap is a dependency of the core anymore

Insei added 2 commits October 18, 2026 18:07
Signed-off-by: Dmitriy Aleksandrov <goodmobiledevices@gmail.com>
Signed-off-by: Dmitriy Aleksandrov <goodmobiledevices@gmail.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (646f3ef) to head (e937fa4).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #50   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         2581      2581           
=========================================
  Hits          2581      2581           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark diff: 646f3ef → 83b1fd7 (10 runs)

goos: linux
goarch: amd64
pkg: github.com/insei/tinyconf
cpu: AMD EPYC 7763 64-Core Processor                
                    │  base.txt   │
                    │   sec/op    │
Parse-4               8.503µ ± 3%
Parse_SubConfig-4     3.012µ ± 0%
Current-4             55.22n ± 1%
Current_SubConfig-4   98.18n ± 0%
geomean               610.4n

                    │    base.txt    │
                    │      B/op      │
Parse-4               4.899Ki ± 0%
Parse_SubConfig-4     1.367Ki ± 0%
Current-4               0.000 ± 0%
Current_SubConfig-4     0.000 ± 0%
geomean                            ¹
¹ summaries must be >0 to compute geomean

                    │   base.txt   │
                    │  allocs/op   │
Parse-4               139.0 ± 0%
Parse_SubConfig-4     44.00 ± 0%
Current-4             0.000 ± 0%
Current_SubConfig-4   0.000 ± 0%
geomean                          ¹
¹ summaries must be >0 to compute geomean

pkg: github.com/insei/tinyconf/drivers
                │  base.txt   │
                │   sec/op    │
Parse_Drivers-4   74.26µ ± 0%

                │   base.txt   │
                │     B/op     │
Parse_Drivers-4   32.04Ki ± 0%

                │  base.txt  │
                │ allocs/op  │
Parse_Drivers-4   645.0 ± 0%

pkg: github.com/insei/tinyconf/v2
                    │  head.txt   │
                    │   sec/op    │
Parse-4               8.449µ ± 1%
Parse_SubConfig-4     2.994µ ± 1%
Current-4             55.19n ± 0%
Current_SubConfig-4   98.03n ± 0%
geomean               608.2n

                    │    head.txt    │
                    │      B/op      │
Parse-4               4.899Ki ± 0%
Parse_SubConfig-4     1.367Ki ± 0%
Current-4               0.000 ± 0%
Current_SubConfig-4     0.000 ± 0%
geomean                            ¹
¹ summaries must be >0 to compute geomean

                    │   head.txt   │
                    │  allocs/op   │
Parse-4               139.0 ± 0%
Parse_SubConfig-4     44.00 ± 0%
Current-4             0.000 ± 0%
Current_SubConfig-4   0.000 ± 0%
geomean                          ¹
¹ summaries must be >0 to compute geomean

pkg: github.com/insei/tinyconf/v2/drivers
                │  head.txt   │
                │   sec/op    │
Parse_Drivers-4   74.60µ ± 0%

                │   head.txt   │
                │     B/op     │
Parse_Drivers-4   32.04Ki ± 0%

                │  head.txt  │
                │ allocs/op  │
Parse_Drivers-4   645.0 ± 0%

@Insei
Insei merged commit 3f682fe into main Oct 18, 2026
4 checks passed
@Insei
Insei deleted the v2-module branch October 18, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants