Changelog History
Page 1
-
v1.8.0 Changes
August 22, 2020v1.8.0 addresses a minor regression with the variable extraction when using a wildcard host match. Specifying
.Host(โfoo.example.com:{port:.*})will now correctly capture the port intomux.Vars.๐ CHANGELOG
- ๐ fix: regression in vars extract for wildcard host (#579) @harshavardhana
- โ Remove stale text from comment. (#568) @EricIO
-
v1.7.4 Changes
February 12, 2020๐ v1.7.4 addresses a number of performance improvements (#544), bugs (#509, #535), and documentation improvements.
๐ CHANGELOG
- โฌ๏ธ Reduce allocations in (*routeRegexp).getURLQuery (#544) @klauspost
- ๐ Fixed golint warnings (#526) @KosToZyB
- ๐ fix headers regexp test case (#536) @icattlecoder
- ๐ Fix the CORSMethodMiddleware bug with subrouters (#535) @fharding1
- โ Remove/cleanup request context helpers (#525) @fharding1
- Guess the scheme if r.URL.Scheme is unset (#474) @euank
- โ Added capacity to slice creation, when capacity is known (#516) @vivekv96
- ๐ฆ Modified http status codes, using constants provided by the http package (#514) @vivekv96
- ๐ bugfix/subrouter custom methodNotAllowed handler returning 404 (#509) (#510) @jonasdebeukelaer
- โก๏ธ Update README (self-host logo) (#513) @elithrar
- โ Remove TravisCI badge (#503) @elithrar
- โ Add documentation for using mux to serve a SPA (#493) @fharding1
- Simplify code (#501) @muesli
- Avoid unnecessary conversion (#502) @muesli
- โก๏ธ Update config.yml (#495) @elithrar
-
v1.7.3 Changes
June 30, 2019๐ This is a patch release that mostly incorporates test & build system updates, as well as fixing a rare cause of panics.
๐ CHANGELOG
- โก๏ธ Update stale.yml (#494) @elithrar
- ๐ Improve CORS Method Middleware (#477) @fharding1
- โ Delete ISSUE_TEMPLATE.md (#492) @elithrar
- โ Use subtests for middleware tests (#478) @fharding1
- โ Delete .travis.yml (#490) @elithrar
- ๐ Fix nil panic in authentication middleware example (#489) @fharding1
- ๐ง [WIP] Create CircleCI config (#484) @elithrar
-
v1.7.2 Changes
May 17, 2019๐ โ ๏ธ This release relaxes the host:port matching when using
*Route.Host()as introduced in v1.7.0. If a port is not provided, the route will match on any port, matching behaviour for all versions of mux prior to v1.7.0.๐ See #447 for a fuller discussion.
๐ CHANGELOG
- Route.Host -matching will ignore any provided port from getHost(), ifโฆ (#447) @cognusion
-
v1.7.1 Changes
April 05, 2019๐ฑ No notable changes ๐
๐ CHANGELOG
- Minor spelling mistake (#454) @souvikhaldar
- ๐ fix go1.12 go vet usage (#458) @seriousben
- โ adding Router.Name to create new Route (#457) @seriousben
- โ Remove sudo setting from travis.yml (#462) @sekky0905
-
v1.7.0 Changes
January 27, 2019Notable changes:
- ๐ mux will only support Go 1.7 and newer: this has allowed us to remove the older
gorilla/contextcode. Go 1.7 has been out since August 2016. *Route.Host()matching now includes thehost:port, as opposed to just thehost.- ๐ Subrouters should correctly return a 405 if the route matches but the method does not (see #437 for details)
๐ CHANGELOG
- [deps] Add go.mod for versioned Go (#376) @elithrar
- ๐ Initialize user map (#371) @kalafut
- โก๏ธ Update LICENSE & AUTHORS files. (#386) @elithrar
- โ Add 1.11 to build in travis (#398) @yershalom
- โฌ๏ธ Drop support for Go < 1.7: remove gorilla/context (#391) @fharding1
- ๐ Create release-drafter.yml (#399) @elithrar
- โ Always run on the latest stable Go version. (#402) @elithrar
- ๐ Use constant for 301 status code in regexp.go (#412) @trungnn
- โ Use subtests in mux_test.go (#415) @kanozec
- โ Add stalebot config (#424) @elithrar
- โก๏ธ Update and rename stale to stale.yml (#425) @elithrar
- โ remove redundant code that remove support gorilla/context (#427) @alimy
- Replace domain.com with example.com (#434) @raeesbhatti
- ๐ fix #2, return full host:port info from getHost (#383) @santsai
- Ignore ErrNotFound while matching Subrouters (#438) @g-w
- Call WriteHeader after setting other header(s) in the example (#442) @timucingelici
- replace rr.HeaderMap by rr.Header() (#443) @moeryomenko
- ๐ mux will only support Go 1.7 and newer: this has allowed us to remove the older
-
v1.6.2 Changes
May 13, 2018โ Adds the
CORSMethodMiddlewaremiddleware, which allows package users to automatically generate aAccess-Control-Allow-MethodsHTTP response header based on which methods are configured for a given route. This is useful when dealing with cross-origin requests, and can be easily enabled viarouter.Use(mux.CORSMethodMiddleware).๐ This release otherwise includes documentation fixes and improvements. We are always looking to improve the documentation for mux, and contributions are welcome!
๐ CHANGELOG
๐ e3702be [docs] Improve docstrings for middleware, skipclean (#375)
โ fdeb7bc [docs] Doc fix for testing variables in path (#374)
5e55a4a Add CORSMethodMiddleware (#366)
๐ ded0c29 Fix linter issues (docs) (#370)
โก๏ธ b57cb16 [build] Update Go versions; add 1.10.x (#364)
๐ 94231ff Fix table-driven example documentation (#363)
4dbd923 Make Use() variadic (#355)
07ba1fd Modify http status code to variable in README (#350)
d284fd8 Modify 403 status code to const variable (#349) -
v1.6.1 Changes
January 16, 2018gorilla/mux now provides first-class support for "middleware" thanks to @roobre! Middleware are handlers that can intercept request & response processing after a route match, but before/after other handlers are invoked. See the documentation for the full details: https://github.com/gorilla/mux#middleware
Previously, developers would have to use a thin wrapper to achieve this per-application. Requests for this functionality built up enough over time such that we've added it to mux's built-in methods.
๐ CHANGELOG:
๐ 53c1911 [feat] Add middleware support as discussed in #293 (#294)
๐ 5bbbb5b [docs] Add graceful shutdown example (#329)
๐จ 512169e refactor routeRegexp, particularily newRouteRegexp. (#328)
โ 5ab525f Public test API to set URL params (#322)
๐ 7904d2e [docs] Add example usage for Route.HeadersRegexp (#320)
๐ c572efe [docs] Note StrictSlash re-direct behaviour #308 (#321)
65ec724 Create ISSUE_TEMPLATE.md (#318)
๐ 4a3d4f3 [bugfix] Fix method subrouter handler matching (#300) (#317)
๐ 2d5fef0 [docs] fix outdated UseEncodedPath method docs (#314) -
v1.6.0 Changes
November 07, 2017v1.6.0 major changes:
RouteMatch.MatchErris now set toErrNotFoundwhen the route does not match.- ๐ Go 1.5.x and below are no longer supported
- ๐ New methods for fetching the query template have been added in
Route.GetQueriesRegexpandRoute.GetQueriesTemplates - ๐ Bug fixes and documentation updates, detailed below.
๐ CHANGELOG
7f08801 MatchErr is set to ErrNotFound if NotFoundHandler is used (#311)
๐ 9f48112 [docs] Document router.Match (#313)
๐ bc452d9 [build] Allow tip failures (#312)
๐ 7625a85 .travis.yml: Remove versions < go1.5 from build matrix
c9183aa use req.URL.EscapedPath() instead of getPath(req) (#306)
10490f5 GetQueryTemplates and GetQueryRegexp extraction (#304)
๐ 9bd9ff2 Added 1.9 build step (#303)
โ bdd5a5a Fix WriteHeader in TestA301ResponseWriter. (#301)
๐ 3f19343 [docs] Document evaluation order for routes (#297) -
v1.5.0 Changes
September 12, 2017v1.5.0 major changes:
- A HTTP 405 "Method Not Allowed" will be returned when the method does not match for the route. This is a change from existing behaviour, where a 404 is returned instead. This behaviour, and the error message, can be customized by setting the
MethodNotAllowedproperty of a*Routerinstance. Walkwill now walk all attached sub-routers
๐ CHANGELOG
๐ 24fca30 [docs] README.md: add missing
.(#292)
๐ bb285ea [docs] Fix missing space in docstring (#289)
a659b61 Fix #271: Return 405 instead of 404 when request method doesn't match the route
๐ ac112f7 Prefer scheme on child route when building URLs.
๐ 37b3a6c Use scheme from parent router when building URLs.
8c683ee Fix typo
โ 18fca31 Add test and fix for escaped query values.
โก๏ธ c7a138d Update docs.
โ f9aa23a Add tests for support for queries in URL reversing.
๐ 9c9af15 Add support for queries in URL reversing.
โก๏ธ 043ee65 Update Walking Routes Section
59ce668 Fix invalid example code
85b8c20 Removing half of conflict marker (#268)
โก๏ธ 456bcfa Update README with example for Router.Walk
โก๏ธ 4d814f7 Update ancestors parameter for WalkFunc for matcher subrouters
โก๏ธ a322b2c Update Walk to match all subrouters - A HTTP 405 "Method Not Allowed" will be returned when the method does not match for the route. This is a change from existing behaviour, where a 404 is returned instead. This behaviour, and the error message, can be customized by setting the