Skip to content

chore!: prep v6.0.0 for release - #302

Merged
Justin Hammond (Justintime50) merged 10 commits into
masterfrom
v6.0.0
Nov 18, 2026
Merged

Justin Hammond (Justintime50) merged 10 commits into
masterfrom
v6.0.0

Conversation

@Justintime50

@Justintime50 Justin Hammond (Justintime50) commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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.

  • Version bump: moves the module path to github.com/EasyPost/easypost-go/v6 (go.mod, plus the README install, import, GoDoc link and GoDoc badge), bumps version.go, and turns the Next Release CHANGELOG section into the dated v6.0.0 entry.
  • Minimum Go 1.20: sets go 1.20 in go.mod and 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 is stretchr/objx v0.5.3, a pruned test dependency of testify. The library and tests build, vet and pass on Go 1.20.14.
  • Dependencies: bumps each dependency to its newest version that supports Go 1.20:
    • golang.org/x/text v0.11.0 to v0.22.0. v0.23.0+ requires Go 1.23. This isn't a security fix: govulncheck still reports GO-2026-5970 (CVE-2026-56852, an x/text norm infinite loop on invalid UTF-8) as reachable through ValidateWebhookWithContext, 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-querystring v1.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/testify v1.8.2 to v1.12.1 (test only). testify has no v2 module.
    • Indirect test dependencies: gopkg.in/yaml.v2 v2.2.8 to v2.4.0, and go.yaml.in/yaml/v3 v3.0.6 replaces gopkg.in/yaml.v3. testify v1.12 no longer pulls in go-spew and go-difflib.
    • github.com/dnaeon/go-vcr stays 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 with NewAsMode(…, ModeReplaying, …)), but it brings no benefit for a test-only dependency, so it stays at v1.2.0.
    • testify v1.12+ runs every exported Test* suite method, so it rejected the TestClient() helper because it returns a value. The helper is renamed to the unexported testClient(), and no cassettes changed.
  • Upgrade notes:
    • Adds CHANGELOG entries for the /v6 module path, the Go 1.20 minimum and the dependency bumps, including the GO-2026-5970 known issue.
    • Marks the ShipmentOptions.Machinable bool to *bool change as BREAKING.
    • Adds upgrade guide sections for importing the library, updating dependencies and the Machinable pointer, each with before and after where relevant.
    • Adds a before and after example to "Renamed Identifiers".
    • Notes that ListTrackersOptions.TrackingCodes is now sent as tracking_codes[]=.
    • Says false was treated as machinable "on most USPS paths", in the CHANGELOG, the upgrade guide and the Machinable field comment.
    • Marks v5 as deprecated, matching the v5.0 wording for v4.

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) and just scan pass locally. go build, go vet and go test (replay) also pass with GOTOOLCHAIN=go1.20.14. No cassettes changed.
  • An API diff of v5.13.0 against this branch shows 34 incompatible changes. Every one is covered in the CHANGELOG and upgrade guide.
  • CI runs the test matrix on Go 1.20 through 1.27.

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc.)

@Justintime50 Justin Hammond (Justintime50) changed the title chore: prep v6.0.0 for release chore!: prep v6.0.0 for release Nov 17, 2026
@Justintime50
Justin Hammond (Justintime50) marked this pull request as ready for review November 17, 2026 20:13

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Justintime50

Copy link
Copy Markdown
Member Author

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.

@Justintime50
Justin Hammond (Justintime50) merged commit 0fe7f90 into master Nov 18, 2026
13 checks passed
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