Skip to content

Releases: gorilla/mux

v1.5.0

12 Sep 15:34
Compare
Choose a tag to compare

v1.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 MethodNotAllowed property of a *Router instance.
  • Walk will 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

v1.4.0

21 May 04:54
Compare
Choose a tag to compare

bcd8bc7 Support building URLs with non-http schemes. (#260)
b552615 Added method Route.GetMethods
1856953 Added method Route.GetPathRegexp
599cba5 Fixing Regexp in the benchmark test (#234)
ad4ce0e updating logic in route matcher, cleaner and saner (#235)

v1.3.0

18 Jan 13:46
Compare
Choose a tag to compare

Summary

  • Capture groups in regular expressions - e.g. (pattern|thing) vs (?:pattern|thing) are have not been supported. We now fail fast (panic on startup) if we detect any routes with a capturing group. See #200 for discussion.

CHANGELOG

392c28f [bugfix] fail fast if regex is incorrectly specified using capturing groups. (#218)
cafdb65 [docs] Add route listing example to README

v1.2.0

17 Jan 07:16
Compare
Choose a tag to compare

Summary:

  • PathPrefix now supports defining an index path by calling PathPrefix("/foo") and defining a route as /
  • Documented the regex support - capture groups should not be provided.
  • Fix encoded path & variable extraction bugs.

CHANGELOG:

b128961 Merge pull request #199 from wirehead/minor-doc-tweek
34dda71 Merge pull request #215 from ShaneSaww/fix_for_subroutes_with_pathPrefix
b9ff34f Adding some extra tests, to hit all the use cases
293ebe1 Adding in a check for routes with just /
910dd3a Remove unnecessary line from example
239e05f Clarify how route variables work. (#151)
757bef9 Merge pull request #196 from olt/doc-non-capture-groups
14f5df0 document non-capturing groups (closes #143)
0a192a1 Add useEncodedPath option to router and routes (#190)
0b13a92 Simplify extractVars, fixes edge cases. (#185)

v1.1 "Long Overdue"

26 Mar 17:49
Compare
Choose a tag to compare

We're now tagging releases with SemVer, something that was long overdue. gorilla/mux has strict API compatibility guarantees, excepting any security issues, but we understand that being able to vendor specific versions is a useful feature.

Minor breaking changes (i.e. regex functionality) will be treated as minor releases.

We also strongly recommend that you stay up to date: although this project has not had any security issues to date, back-porting security patches across multiple releases (v1.1.1, v1.2.1, etc.) is not maintianable for us.