-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove dependency on go-chi/chi
BREAKING CHANGE In Go 1.22, http.ServeMux was improved so that we no longer need to use go-chi/chi, gorilla/mux, or any other thrid party HTTP router. The advantage to consumers is that they can use any router, or none, and do not have a dependency forced on them. Public API 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: ```go 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.
- Loading branch information
Showing
19 changed files
with
281 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.