diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f065f33..c0e4e2b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,7 @@ jobs: # Ref: https://github.com/actions/setup-go - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: check-latest: true cache: false diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index 26e939b..8a3f6c5 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -67,7 +67,7 @@ jobs: # Ref: https://github.com/actions/setup-go - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version-file: go.mod diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 708df82..767ede2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -45,7 +45,7 @@ jobs: # Ref: https://github.com/actions/setup-go - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: check-latest: true cache: false diff --git a/CHANGELOG/CHANGELOG-1.x.md b/CHANGELOG/CHANGELOG-1.x.md index 7a8c2a7..d764957 100644 --- a/CHANGELOG/CHANGELOG-1.x.md +++ b/CHANGELOG/CHANGELOG-1.x.md @@ -19,6 +19,20 @@ Date format: `YYYY-MM-DD` --- +## [1.34.0] - 2025-09-09 + +### Added +### Changed +- **debt:** Upgraded dependencies to their latest stable versions. +- **debt:** Upgraded to [sixafter/nanoid@v1.49.0](https://github.com/sixafter/nanoid/releases/tag/v1.49.0). + +### Deprecated +### Removed +### Fixed +### Security + +--- + ## [1.33.0] - 2025-09-01 ### Added @@ -565,7 +579,8 @@ Date format: `YYYY-MM-DD` ### Fixed ### Security -[Unreleased]: https://github.com/sixafter/nanoid-cli/compare/v1.33.0...HEAD +[Unreleased]: https://github.com/sixafter/nanoid-cli/compare/v1.34.0...HEAD +[1.34.0]: https://github.com/sixafter/nanoid-cli/compare/v1.33.0...v1.34.0 [1.33.0]: https://github.com/sixafter/nanoid-cli/compare/v1.32.0...v1.33.0 [1.32.0]: https://github.com/sixafter/nanoid-cli/compare/v1.31.2...v1.32.0 [1.31.2]: https://github.com/sixafter/nanoid-cli/compare/v1.31.1...v1.31.1 diff --git a/Makefile b/Makefile index 50ddbc1..dc9b384 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ GO_WORK_FILE := ./go.work export BINARY_NAME=out/nanoid .PHONY: all -all: clean build test +all: deps vendor update vendor tidy clean build test .PHONY: build build: ## Build the binary executable. diff --git a/go.mod b/go.mod index fed477b..fb66b6b 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ go 1.25 require ( github.com/dustin/go-humanize v1.0.1 - github.com/sixafter/nanoid v1.47.0 + github.com/sixafter/nanoid v1.49.0 github.com/sixafter/semver v1.7.0 github.com/spf13/cobra v1.10.1 github.com/stretchr/testify v1.11.1 @@ -19,9 +19,9 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/sixafter/prng-chacha v1.3.0 // indirect - github.com/spf13/pflag v1.0.9 // indirect - golang.org/x/crypto v0.41.0 // indirect - golang.org/x/sys v0.35.0 // indirect + github.com/sixafter/prng-chacha v1.4.0 // indirect + github.com/spf13/pflag v1.0.10 // indirect + golang.org/x/crypto v0.42.0 // indirect + golang.org/x/sys v0.36.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index e763930..4b69121 100644 --- a/go.sum +++ b/go.sum @@ -10,24 +10,25 @@ github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLf github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sixafter/nanoid v1.47.0 h1:EeQxrHTkNcdG6ZJo6PDnjrLdUILrRlfQlbbG0HmD1go= -github.com/sixafter/nanoid v1.47.0/go.mod h1:EE3PKKe3HO6CvyOE2uD8Vwwbi9DV36S92xQE7Aae0vM= -github.com/sixafter/prng-chacha v1.3.0 h1:qZkxybS5HUSDkPqa+U7FmyABJIzQURQfmE0/9CoxGLE= -github.com/sixafter/prng-chacha v1.3.0/go.mod h1:9W0eWks9Ajnn4a15G/+bGX2lNyle3VEoFDa58ad65R0= +github.com/sixafter/nanoid v1.49.0 h1:iNlPKeaPDCPAgldyl9sly7rOq9WgAKDSYxTy1Y4Qj3I= +github.com/sixafter/nanoid v1.49.0/go.mod h1:7X8fUEqGRf+OGqEnOyIEBk7oWqOjx9Bvgtau43psWWo= +github.com/sixafter/prng-chacha v1.4.0 h1:24MWhVL1hAF759TnFANdV4+CqhZXOltPxZuWnmV/aFI= +github.com/sixafter/prng-chacha v1.4.0/go.mod h1:/qgtGyz1ueWauLV6JgIi6a2BNc/9IkLWXL98U2GEM7o= github.com/sixafter/semver v1.7.0 h1:kz3RPsy92e/WRD6kYi9/r1zdmC768ne9S9586KRD5pg= github.com/sixafter/semver v1.7.0/go.mod h1:kIkw1gO0r6JtGoOam9xesWKqOFUH8kfTViLVbiC4WmA= github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s= github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0= -github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY= github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= -golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= -golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= +golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI= +golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8= golang.org/x/exp v0.0.0-20250813145105-42675adae3e6 h1:SbTAbRFnd5kjQXbczszQ0hdk3ctwYf3qBNH9jIsGclE= golang.org/x/exp v0.0.0-20250813145105-42675adae3e6/go.mod h1:4QTo5u+SEIbbKW1RacMZq1YEfOBqeXa19JeshGi+zc4= -golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= -golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k= +golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/vendor/github.com/sixafter/nanoid/Makefile b/vendor/github.com/sixafter/nanoid/Makefile index 167655b..8ad0394 100644 --- a/vendor/github.com/sixafter/nanoid/Makefile +++ b/vendor/github.com/sixafter/nanoid/Makefile @@ -20,7 +20,7 @@ GO_WORK_FILE := ./go.work FUZZTIME ?= 10s .PHONY: all -all: clean test +all: deps vendor update vendor tidy clean test .PHONY: deps deps: ## Get the dependencies and vendor diff --git a/vendor/github.com/sixafter/nanoid/nanoid.go b/vendor/github.com/sixafter/nanoid/nanoid.go index b82070f..6507a8b 100644 --- a/vendor/github.com/sixafter/nanoid/nanoid.go +++ b/vendor/github.com/sixafter/nanoid/nanoid.go @@ -21,6 +21,8 @@ var ( // RandReader is the default random number generator used for generating IDs. RandReader = prng.Reader + + _ Interface = (*generator)(nil) ) const ( @@ -458,11 +460,6 @@ func (g *generator) Read(p []byte) (int, error) { return n, nil } -// GetConfig returns the current configuration of the generator. -func (g *generator) GetConfig() Config { - return g.config -} - // newASCII generates a new Nano ID using the configured ASCII alphabet. // // This method fills the provided byte slice `idBuffer` with a random sequence of diff --git a/vendor/github.com/sixafter/prng-chacha/Makefile b/vendor/github.com/sixafter/prng-chacha/Makefile index 9180d2e..60acd68 100644 --- a/vendor/github.com/sixafter/prng-chacha/Makefile +++ b/vendor/github.com/sixafter/prng-chacha/Makefile @@ -20,7 +20,7 @@ GO_WORK_FILE := ./go.work FUZZTIME ?= 20s .PHONY: all -all: clean test +all: deps vendor update vendor tidy clean test .PHONY: deps deps: ## Get the dependencies and vendor diff --git a/vendor/github.com/spf13/pflag/flag.go b/vendor/github.com/spf13/pflag/flag.go index eeed1e9..2fd3c57 100644 --- a/vendor/github.com/spf13/pflag/flag.go +++ b/vendor/github.com/spf13/pflag/flag.go @@ -143,8 +143,9 @@ type ParseErrorsAllowlist struct { UnknownFlags bool } -// DEPRECATED: please use ParseErrorsAllowlist instead -// This type will be removed in a future release +// ParseErrorsWhitelist defines the parsing errors that can be ignored. +// +// Deprecated: use [ParseErrorsAllowlist] instead. This type will be removed in a future release. type ParseErrorsWhitelist = ParseErrorsAllowlist // NormalizedName is a flag name that has been normalized according to rules @@ -165,8 +166,9 @@ type FlagSet struct { // ParseErrorsAllowlist is used to configure an allowlist of errors ParseErrorsAllowlist ParseErrorsAllowlist - // DEPRECATED: please use ParseErrorsAllowlist instead - // This field will be removed in a future release + // ParseErrorsAllowlist is used to configure an allowlist of errors. + // + // Deprecated: use [FlagSet.ParseErrorsAllowlist] instead. This field will be removed in a future release. ParseErrorsWhitelist ParseErrorsAllowlist name string @@ -1185,7 +1187,7 @@ func (f *FlagSet) Parse(arguments []string) error { case ContinueOnError: return err case ExitOnError: - if errors.Is(err, ErrHelp) { + if err == ErrHelp { os.Exit(0) } fmt.Fprintln(f.Output(), err) @@ -1214,7 +1216,7 @@ func (f *FlagSet) ParseAll(arguments []string, fn func(flag *Flag, value string) case ContinueOnError: return err case ExitOnError: - if errors.Is(err, ErrHelp) { + if err == ErrHelp { os.Exit(0) } fmt.Fprintln(f.Output(), err) diff --git a/vendor/modules.txt b/vendor/modules.txt index ecfaea9..a76a39f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -10,10 +10,10 @@ github.com/inconshreveable/mousetrap # github.com/pmezard/go-difflib v1.0.0 ## explicit github.com/pmezard/go-difflib/difflib -# github.com/sixafter/nanoid v1.47.0 +# github.com/sixafter/nanoid v1.49.0 ## explicit; go 1.25 github.com/sixafter/nanoid -# github.com/sixafter/prng-chacha v1.3.0 +# github.com/sixafter/prng-chacha v1.4.0 ## explicit; go 1.25 github.com/sixafter/prng-chacha # github.com/sixafter/semver v1.7.0 @@ -22,7 +22,7 @@ github.com/sixafter/semver # github.com/spf13/cobra v1.10.1 ## explicit; go 1.15 github.com/spf13/cobra -# github.com/spf13/pflag v1.0.9 +# github.com/spf13/pflag v1.0.10 ## explicit; go 1.12 github.com/spf13/pflag # github.com/stretchr/objx v0.5.2 @@ -31,12 +31,12 @@ github.com/spf13/pflag ## explicit; go 1.17 github.com/stretchr/testify/assert github.com/stretchr/testify/assert/yaml -# golang.org/x/crypto v0.41.0 -## explicit; go 1.23.0 +# golang.org/x/crypto v0.42.0 +## explicit; go 1.24.0 golang.org/x/crypto/chacha20 golang.org/x/crypto/internal/alias -# golang.org/x/sys v0.35.0 -## explicit; go 1.23.0 +# golang.org/x/sys v0.36.0 +## explicit; go 1.24.0 golang.org/x/sys/cpu # gopkg.in/yaml.v3 v3.0.1 ## explicit