Mux Versions Save

A powerful HTTP router and URL matcher for building Go web servers with 🦍

v1.4.0

7 years ago

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

7 years ago

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 https://github.com/gorilla/mux/issues/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

7 years ago

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

8 years ago

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.