Repository navigation
chore!: prep v6.0.0 for release - #302
Conversation
Stephen Watkins (stephenjwatkins)
left a comment
There was a problem hiding this comment.
non-blocking: the examples docs cut is still to do. docs/golang/current still imports /v5, and five snippets use names #300 renamed (billing/add-stripe-bank-account, billing/retrieve-stripe-public-key, customer-portals/create, embeddables/session, tax-identifiers/create), so freezing current as v5 and moving it to v6 like examples #192 did for v5 is worth landing alongside the tag.
For sure. That can't be done until v6 goes live because the examples repo must import v6 to pull in the new syntax since it's statically typed and will fail CI otherwise. v6 Go doc examples will follow shortly after release. |
Description
Preps v6.0.0 for release, following the v5.0.0 prep (#247). It also raises the minimum Go version, like the pre-v3 change in #193.
github.com/EasyPost/easypost-go/v6(go.mod, plus the README install, import, GoDoc link and GoDoc badge), bumpsversion.go, and turns theNext ReleaseCHANGELOG section into the dated v6.0.0 entry.go 1.20ingo.modand trims the CI test matrix to 1.20 through 1.27, dropping 1.16 through 1.19 for as much backward compatibility as the dependencies allow. Every module in the dependency graph declares Go 1.20 or lower; the highest isstretchr/objxv0.5.3, a pruned test dependency of testify. The library and tests build, vet and pass on Go 1.20.14.golang.org/x/textv0.11.0 to v0.22.0. v0.23.0+ requires Go 1.23. This isn't a security fix:govulncheckstill reports GO-2026-5970 (CVE-2026-56852, an x/textnorminfinite loop on invalid UTF-8) as reachable throughValidateWebhookWithContext, which normalizes the integrator's own webhook secret, so the risk is low. The fixed x/text releases need Go 1.25. The CHANGELOG and upgrade guide note it as a known issue and say that users on Go 1.25+ can require x/text v0.41.0 or later themselves, which also clears GO-2026-6629.github.com/google/go-querystringv1.1.0 to v1.2.0. Its only encoding change skips empty delimited slices, and the library has none, so requests are unchanged.github.com/stretchr/testifyv1.8.2 to v1.12.1 (test only). testify has no v2 module.gopkg.in/yaml.v2v2.2.8 to v2.4.0, andgo.yaml.in/yaml/v3v3.0.6 replacesgopkg.in/yaml.v3. testify v1.12 no longer pulls ingo-spewandgo-difflib.github.com/dnaeon/go-vcrstays at v1.2.0 (test only). v3 and v4 only read version 2 cassettes, which would mean re-recording all 169 cassettes, and v4.0.5+ needs Go 1.24, above the 1.20 floor. v2 would also work (it reads our cassettes and replays safely withNewAsMode(…, ModeReplaying, …)), but it brings no benefit for a test-only dependency, so it stays at v1.2.0.Test*suite method, so it rejected theTestClient()helper because it returns a value. The helper is renamed to the unexportedtestClient(), and no cassettes changed./v6module path, the Go 1.20 minimum and the dependency bumps, including the GO-2026-5970 known issue.ShipmentOptions.Machinableboolto*boolchange as BREAKING.Machinablepointer, each with before and after where relevant.ListTrackersOptions.TrackingCodesis now sent astracking_codes[]=.falsewas treated as machinable "on most USPS paths", in the CHANGELOG, the upgrade guide and theMachinablefield comment.The tests are in-package, so none import the module path. The only test change is the
testClient()rename.Testing
just lint,just test(cassette replay only, with placeholder keys) andjust scanpass locally.go build,go vetandgo test(replay) also pass withGOTOOLCHAIN=go1.20.14. No cassettes changed.Pull Request Type
Please select the option(s) that are relevant to this PR.