Releases: pivotal-cf/brokerapi
Releases · pivotal-cf/brokerapi
v12.0.0
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
- f1587dd feat!: import path changes for v12 (#350)
- d7788d6 feat!: remove dependency on go-chi/chi (#340)
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)