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
middleware: add Discard method to WrapResponseWriter by @patrislav in #926
Adds Discard() method to the middleware.WrapResponseWriter interface. This is technically an API breaking change. However after some discussion at #926 (comment), we decided to move forward, and release as minor version, as we don't expect anyone to rely on this interface / implement it externally.
Performance improvement: removing 1 allocation by foregoing context.WithValue, thank you @bouk for
your contribution (#555). Note: new benchmarks posted in README.
middleware.CleanPath: new middleware that clean's request path of double slashes
deprecate & remove chi.ServerBaseContext in favour of stdlib http.Server#BaseContext
plus other tiny improvements, see full commit history below
fix for issue #411 which allows for overlapping regexp
route to the correct handler through a recursive tree search, thanks to @Jahaja for the PR/fix!
new middleware.RouteHeaders as a simple router for request headers with wildcard support
Add new Match(rctx *Context, method, path string) bool method to Routes interface
and Mux. Match searches the mux's routing tree for a handler that matches the method/path
Add new RouteMethod to *Context
Add new Routes pointer to *Context
Add new middleware.GetHead to route missing HEAD requests to GET handler
As per golint, we've redefined func ServerBaseContext(h http.Handler, baseCtx context.Context) http.Handler
to func ServerBaseContext(baseCtx context.Context, h http.Handler) http.Handler
Major update to chi library with many exciting updates, but also some breaking changes
URL parameter syntax changed from /:id to /{id} for even more flexible routing, such as
/articles/{month}-{day}-{year}-{slug}, /articles/{id}, and /articles/{id}.{ext} on the
same router
Support for regexp for routing patterns, in the form of /{paramKey:regExp} for example:
r.Get("/articles/{name:[a-z]+}", h) and chi.URLParam(r, "name")
Add Method and MethodFunc to chi.Router to allow routing definitions such as
r.Method("GET", "/", h) which provides a cleaner interface for custom handlers like
in _examples/custom-handler
Deprecating mux#FileServer helper function. Instead, we encourage users to create their
own using file handler with the stdlib, see _examples/fileserver for an example
Add support for LINK/UNLINK http methods via r.Method() and r.MethodFunc()
Moved the chi project to its own organization, to allow chi-related community packages to
be easily discovered and supported, at: https://github.com/go-chi
NOTE: please update your import paths to "github.com/go-chi/chi"
Minor improvements and update to the chi core library
Introduced a brand new chi/render sub-package to complete the story of building
APIs to offer a pattern for managing well-defined request / response payloads. Please
check out the updated _examples/rest example for how it works.
Added MethodNotAllowed(h http.HandlerFunc) to chi.Router interface
After many months of v2 being in an RC state with many companies and users running it in
production, the inclusion of some improvements to the middlewares, we are very pleased to
announce v2.0.0 of chi.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
Release Notes
go-chi/chi (github.com/go-chi/chi)v5.2.5
Compare Source
What's Changed
New Contributors
Full Changelog: go-chi/chi@v5.2.3...v5.2.5
v5.2.4
Compare Source
v5.2.3
Compare Source
What's Changed
New Contributors
Full Changelog: go-chi/chi@v5.2.2...v5.2.3
v5.2.2
Compare Source
What's Changed
Security fix
New Contributors
Full Changelog: go-chi/chi@v5.2.1...v5.2.2
v5.2.1
Compare Source
⚠️ Chi supports Go 1.20+
Starting this release, we will now support the four most recent major versions of Go. See #963 for related discussion.
What's Changed
Full Changelog: go-chi/chi@v5.2.0...v5.2.1
v5.2.0
Compare Source
What's Changed
New Contributors
Full Changelog: go-chi/chi@v5.1.0...v5.2.0
v5.1.0
Compare Source
What's Changed
New Contributors
Full Changelog: go-chi/chi@v5.0.14...v5.1.0
v5.0.14
Compare Source
What's Changed
New Contributors
Full Changelog: go-chi/chi@v5.0.12...v5.0.14
v5.0.13
Compare Source
What's Changed
New Contributors
Full Changelog: go-chi/chi@v5.0.12...v5.0.13
v5.0.12
Compare Source
v5.0.11
Compare Source
v5.0.10
Compare Source
v5.0.9
Compare Source
v5.0.8
Compare Source
v5.0.7
Compare Source
v5.0.6
Compare Source
v5.0.5
Compare Source
v5.0.4
Compare Source
v5.0.3
Compare Source
v5.0.2
Compare Source
v5.0.1
Compare Source
v5.0.0
Compare Source
v4.1.3
Compare Source
v4.1.2
Compare Source
your contribution (#555). Note: new benchmarks posted in README.
v4.1.2+incompatible
Compare Source
v4.1.1
Compare Source
v4.1.1+incompatible
Compare Source
v4.1.0
Compare Source
route to the correct handler through a recursive tree search, thanks to @Jahaja for the PR/fix!
v4.1.0+incompatible
Compare Source
v4.0.4
Compare Source
v4.0.4+incompatible
Compare Source
v4.0.3
Compare Source
v4.0.3+incompatible
Compare Source
v4.0.2
Compare Source
v4.0.2+incompatible
Compare Source
v4.0.1
Compare Source
v4.0.1+incompatible
Compare Source
v4.0.0
Compare Source
v4.0.0+incompatible
Compare Source
v3.3.5
Compare Source
v3.3.4
Compare Source
v3.3.4+incompatible
Compare Source
v3.3.3
Compare Source
v3.3.3+incompatible
Compare Source
v3.3.2
Compare Source
v3.3.2+incompatible
Compare Source
v3.3.1
Compare Source
v3.3.1+incompatible
Compare Source
v3.3.0
Compare Source
v3.3.0+incompatible
Compare Source
v3.2.1
Compare Source
and Mux. Match searches the mux's routing tree for a handler that matches the method/path
v3.2.1+incompatible
Compare Source
v3.2.0
Compare Source
v3.2.0+incompatible
Compare Source
v3.1.5
Compare Source
to func ServerBaseContext(baseCtx context.Context, h http.Handler) http.Handler
v3.1.5+incompatible
Compare Source
v3.1.4
Compare Source
v3.1.4+incompatible
Compare Source
v3.1.3: Router tree Walker, an analogy to filepath.Walk
Compare Source
v3.1.3+incompatible
Compare Source
v3.1.2
Compare Source
v3.1.2+incompatible
Compare Source
v3.1.1
Compare Source
v3.1.1+incompatible
Compare Source
v3.1.0
Compare Source
suffixes easier, ie. parsing /articles/1.json and /articles/1.xml. See comments in
https://github.com/go-chi/chi/blob/master/middleware/url_format.go for example usage.
v3.1.0+incompatible
Compare Source
v3.0.0
Compare Source
/articles/{month}-{day}-{year}-{slug}, /articles/{id}, and /articles/{id}.{ext} on the
same router
r.Get("/articles/{name:[a-z]+}", h) and chi.URLParam(r, "name")
r.Method("GET", "/", h) which provides a cleaner interface for custom handlers like
in _examples/custom-handler
own using file handler with the stdlib, see _examples/fileserver for an example
be easily discovered and supported, at: https://github.com/go-chi
v3.0.0+incompatible
Compare Source
v2.1.1
Compare Source
v2.1.0
Compare Source
APIs to offer a pattern for managing well-defined request / response payloads. Please
check out the updated _examples/rest example for how it works.
v2.1.0+incompatible
Compare Source
v2.0.0
Compare Source
production, the inclusion of some improvements to the middlewares, we are very pleased to
announce v2.0.0 of chi.
v2.0.0+incompatible
Compare Source
orcaman/concurrent-map (github.com/orcaman/concurrent-map)v2.0.1
Compare Source
Support comparable keys like the native golang map.
v2.0.0
Compare Source
v2.0.0 for generics
santhosh-tekuri/jsonschema (github.com/santhosh-tekuri/jsonschema/v5)v6.0.2
Compare Source
v6.0.1
Compare Source
Bug Fixes:
check https://redirect.github.com/santhosh-tekuri/jsonschema/discussions/172 to see notes for migrating from v5 to v6
v6.0.0
Compare Source
Improvements
check https://redirect.github.com/santhosh-tekuri/jsonschema/discussions/172 to see notes for migrating from v5 to v6
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.