Blame vendor/github.com/go-chi/chi/CHANGELOG.md

Packit Service 509fd4
# Changelog
Packit Service 509fd4
Packit Service 509fd4
## v4.0.0 (2019-01-10)
Packit Service 509fd4
Packit Service 509fd4
- chi v4 requires Go 1.10.3+ (or Go 1.9.7+) - we have deprecated support for Go 1.7 and 1.8
Packit Service 509fd4
- router: respond with 404 on router with no routes (#362)
Packit Service 509fd4
- router: additional check to ensure wildcard is at the end of a url pattern (#333)
Packit Service 509fd4
- middleware: deprecate use of http.CloseNotifier (#347)
Packit Service 509fd4
- middleware: fix RedirectSlashes to include query params on redirect (#334)
Packit Service 509fd4
- History of changes: see https://github.com/go-chi/chi/compare/v3.3.4...v4.0.0
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.3.4 (2019-01-07)
Packit Service 509fd4
Packit Service 509fd4
- Minor middleware improvements. No changes to core library/router. Moving v3 into its
Packit Service 509fd4
- own branch as a version of chi for Go 1.7, 1.8, 1.9, 1.10, 1.11
Packit Service 509fd4
- History of changes: see https://github.com/go-chi/chi/compare/v3.3.3...v3.3.4
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.3.3 (2018-08-27)
Packit Service 509fd4
Packit Service 509fd4
- Minor release
Packit Service 509fd4
- See https://github.com/go-chi/chi/compare/v3.3.2...v3.3.3
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.3.2 (2017-12-22)
Packit Service 509fd4
Packit Service 509fd4
- Support to route trailing slashes on mounted sub-routers (#281)
Packit Service 509fd4
- middleware: new `ContentCharset` to check matching charsets. Thank you
Packit Service 509fd4
  @csucu for your community contribution!
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.3.1 (2017-11-20)
Packit Service 509fd4
Packit Service 509fd4
- middleware: new `AllowContentType` handler for explicit whitelist of accepted request Content-Types
Packit Service 509fd4
- middleware: new `SetHeader` handler for short-hand middleware to set a response header key/value
Packit Service 509fd4
- Minor bug fixes
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.3.0 (2017-10-10)
Packit Service 509fd4
Packit Service 509fd4
- New chi.RegisterMethod(method) to add support for custom HTTP methods, see _examples/custom-method for usage
Packit Service 509fd4
- Deprecated LINK and UNLINK methods from the default list, please use `chi.RegisterMethod("LINK")` and `chi.RegisterMethod("UNLINK")` in an `init()` function
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.2.1 (2017-08-31)
Packit Service 509fd4
Packit Service 509fd4
- Add new `Match(rctx *Context, method, path string) bool` method to `Routes` interface
Packit Service 509fd4
  and `Mux`. Match searches the mux's routing tree for a handler that matches the method/path
Packit Service 509fd4
- Add new `RouteMethod` to `*Context`
Packit Service 509fd4
- Add new `Routes` pointer to `*Context`
Packit Service 509fd4
- Add new `middleware.GetHead` to route missing HEAD requests to GET handler
Packit Service 509fd4
- Updated benchmarks (see README)
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.1.5 (2017-08-02)
Packit Service 509fd4
Packit Service 509fd4
- Setup golint and go vet for the project
Packit Service 509fd4
- As per golint, we've redefined `func ServerBaseContext(h http.Handler, baseCtx context.Context) http.Handler`
Packit Service 509fd4
  to `func ServerBaseContext(baseCtx context.Context, h http.Handler) http.Handler`
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.1.0 (2017-07-10)
Packit Service 509fd4
Packit Service 509fd4
- Fix a few minor issues after v3 release
Packit Service 509fd4
- Move `docgen` sub-pkg to https://github.com/go-chi/docgen
Packit Service 509fd4
- Move `render` sub-pkg to https://github.com/go-chi/render
Packit Service 509fd4
- Add new `URLFormat` handler to chi/middleware sub-pkg to make working with url mime 
Packit Service 509fd4
  suffixes easier, ie. parsing `/articles/1.json` and `/articles/1.xml`. See comments in
Packit Service 509fd4
  https://github.com/go-chi/chi/blob/master/middleware/url_format.go for example usage.
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v3.0.0 (2017-06-21)
Packit Service 509fd4
Packit Service 509fd4
- Major update to chi library with many exciting updates, but also some *breaking changes*
Packit Service 509fd4
- URL parameter syntax changed from `/:id` to `/{id}` for even more flexible routing, such as
Packit Service 509fd4
  `/articles/{month}-{day}-{year}-{slug}`, `/articles/{id}`, and `/articles/{id}.{ext}` on the
Packit Service 509fd4
  same router
Packit Service 509fd4
- Support for regexp for routing patterns, in the form of `/{paramKey:regExp}` for example:
Packit Service 509fd4
  `r.Get("/articles/{name:[a-z]+}", h)` and `chi.URLParam(r, "name")`
Packit Service 509fd4
- Add `Method` and `MethodFunc` to `chi.Router` to allow routing definitions such as
Packit Service 509fd4
  `r.Method("GET", "/", h)` which provides a cleaner interface for custom handlers like
Packit Service 509fd4
  in `_examples/custom-handler`
Packit Service 509fd4
- Deprecating `mux#FileServer` helper function. Instead, we encourage users to create their
Packit Service 509fd4
  own using file handler with the stdlib, see `_examples/fileserver` for an example
Packit Service 509fd4
- Add support for LINK/UNLINK http methods via `r.Method()` and `r.MethodFunc()`
Packit Service 509fd4
- Moved the chi project to its own organization, to allow chi-related community packages to
Packit Service 509fd4
  be easily discovered and supported, at: https://github.com/go-chi
Packit Service 509fd4
- *NOTE:* please update your import paths to `"github.com/go-chi/chi"`
Packit Service 509fd4
- *NOTE:* chi v2 is still available at https://github.com/go-chi/chi/tree/v2
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v2.1.0 (2017-03-30)
Packit Service 509fd4
Packit Service 509fd4
- Minor improvements and update to the chi core library
Packit Service 509fd4
- Introduced a brand new `chi/render` sub-package to complete the story of building
Packit Service 509fd4
  APIs to offer a pattern for managing well-defined request / response payloads. Please
Packit Service 509fd4
  check out the updated `_examples/rest` example for how it works.
Packit Service 509fd4
- Added `MethodNotAllowed(h http.HandlerFunc)` to chi.Router interface
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v2.0.0 (2017-01-06)
Packit Service 509fd4
Packit Service 509fd4
- After many months of v2 being in an RC state with many companies and users running it in
Packit Service 509fd4
  production, the inclusion of some improvements to the middlewares, we are very pleased to
Packit Service 509fd4
  announce v2.0.0 of chi.
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v2.0.0-rc1 (2016-07-26)
Packit Service 509fd4
Packit Service 509fd4
- Huge update! chi v2 is a large refactor targetting Go 1.7+. As of Go 1.7, the popular
Packit Service 509fd4
  community `"net/context"` package has been included in the standard library as `"context"` and
Packit Service 509fd4
  utilized by `"net/http"` and `http.Request` to managing deadlines, cancelation signals and other
Packit Service 509fd4
  request-scoped values. We're very excited about the new context addition and are proud to
Packit Service 509fd4
  introduce chi v2, a minimal and powerful routing package for building large HTTP services,
Packit Service 509fd4
  with zero external dependencies. Chi focuses on idiomatic design and encourages the use of 
Packit Service 509fd4
  stdlib HTTP handlers and middlwares.
Packit Service 509fd4
- chi v2 deprecates its `chi.Handler` interface and requires `http.Handler` or `http.HandlerFunc`
Packit Service 509fd4
- chi v2 stores URL routing parameters and patterns in the standard request context: `r.Context()`
Packit Service 509fd4
- chi v2 lower-level routing context is accessible by `chi.RouteContext(r.Context()) *chi.Context`,
Packit Service 509fd4
  which provides direct access to URL routing parameters, the routing path and the matching
Packit Service 509fd4
  routing patterns.
Packit Service 509fd4
- Users upgrading from chi v1 to v2, need to:
Packit Service 509fd4
  1. Update the old chi.Handler signature, `func(ctx context.Context, w http.ResponseWriter, r *http.Request)` to
Packit Service 509fd4
     the standard http.Handler: `func(w http.ResponseWriter, r *http.Request)`
Packit Service 509fd4
  2. Use `chi.URLParam(r *http.Request, paramKey string) string`
Packit Service 509fd4
     or `URLParamFromCtx(ctx context.Context, paramKey string) string` to access a url parameter value
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v1.0.0 (2016-07-01)
Packit Service 509fd4
Packit Service 509fd4
- Released chi v1 stable https://github.com/go-chi/chi/tree/v1.0.0 for Go 1.6 and older.
Packit Service 509fd4
Packit Service 509fd4
Packit Service 509fd4
## v0.9.0 (2016-03-31)
Packit Service 509fd4
Packit Service 509fd4
- Reuse context objects via sync.Pool for zero-allocation routing [#33](https://github.com/go-chi/chi/pull/33)
Packit Service 509fd4
- BREAKING NOTE: due to subtle API changes, previously `chi.URLParams(ctx)["id"]` used to access url parameters
Packit Service 509fd4
  has changed to: `chi.URLParam(ctx, "id")`