Skip to content

v12.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 06 Jan 13:07
f1587dd

v12 changes

  • New() has changed signature to optionally take options.
  • AttachRoutes() has been removed. If you want to attach to an existing Chi router, you can still
    do something like:
b := brokerapi.New(broker, logger, brokerapi.WithBrokerCredentials(creds))

r := chi.NewRouter()
r.Handle("/*", b)
  • The WithRouter() option has been removed as a Chi router can no longer be specified.
  • WithEncodedPath() has been removed as it was deprecated and did nothing.

In Go 1.22, http.ServeMux was improved so that we no longer need to use
go-chi/chi, gorilla/mux, or any other third party HTTP router. Users therefore
no longer have a dependency forced on them, and can choose which router they
would like to use (if any).

Changelog

Breaking Changes

Dependency updates

  • 8daa2e6 chore(deps): bump github.com/go-chi/chi/v5 from 5.1.0 to 5.2.0 (#345)
  • a0966ec chore(deps): bump github.com/onsi/ginkgo/v2 from 2.22.0 to 2.22.1 (#347)
  • 570dd8b chore(deps): bump github.com/onsi/ginkgo/v2 from 2.22.1 to 2.22.2 (#349)
  • f0cda8b chore(deps): bump github.com/onsi/gomega from 1.36.1 to 1.36.2 (#348)