Releases: ibraheemdev/matchit
Releases · ibraheemdev/matchit
0.8.3
0.8.2
- Add
Router::remove
.
0.8.1
- Implement
Debug
forRouter
.
0.8.0
This a large release containing a number of new features and breaking changes.
- The syntax for route parameters has been changed. Named parameters are now marked by
{x}
and catch-all parameters with{*x}
. This allows for more flexibility and support for more complex routes in the future. - The
{
and}
characters can be escaped with{{
and}}
in static routes. - Trailing slash redirect support has been removed. Routes like
/foo
and/foo/
are now treated as completely disconnected. To achieve redirect behavior, routes must be registered twice, with and without a trailing slash. - Catch-all parameters without a leading slash are now supported (#42).
0.7.3
0.7.2
0.7.1
- Fix cargo license metadata.
0.7.0
0.6.0
- Routes like
/*foo
and/bar
are now allowed to overlap, with/bar
prioritized (#18) - The route
/foo/
no longer matches/foo/*bar
, and is allowed to exist on it's own - Route parameters for catchall routes no longer include the
/
, e.g./foo.js
will match/*filepath
with a value offoo.js
, not/foo.js
Error::MalformedPath
was removed in favor ofError::InvalidCatchAll
0.5.0
- Renamed
Node
toRouter
- Renamed
Node::path_ignore_case
toRouter::fix_path
MatchError
is now an enum, with more detailed trailing slash information.