You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).