Skip to content

Releases: ibraheemdev/matchit

0.7.0

09 Nov 03:36
Compare
Choose a tag to compare
  • Router::fix_path was removed
  • False positive MatchError::ExtraTrailingSlash bug was fixed (#22)

0.6.0

15 Jun 16:52
Compare
Choose a tag to compare
  • 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 of foo.js, not /foo.js
  • Error::MalformedPath was removed in favor of Error::InvalidCatchAll

0.5.0

09 Mar 02:40
Compare
Choose a tag to compare
  • Renamed Node to Router
  • Renamed Node::path_ignore_case to Router::fix_path
  • MatchError is now an enum, with more detailed trailing slash information.

0.4.6

31 Jan 18:53
Compare
Choose a tag to compare
  • Set MSRV to Rust 1.54 (reverted to 2018 edition)

0.4.5

31 Jan 04:06
Compare
Choose a tag to compare
  • Fixed a bug where a specific format of overlapping routes would cause a panic (#12). Thanks to @loony-bean for catching this :)

0.4.4

25 Oct 23:11
Compare
Choose a tag to compare
  • Overlapping wildcard and static route segments are now supported (#4)
matcher.insert("/foo", 1);
matcher.insert("/:foo", 2)

assert_eq!(matcher.at("/foo")?.value, 1);
assert_eq!(matcher.at("/bar")?.value, 2);
  • tsr values for root requests have been fixed (#7)

0.4.3

15 Sep 11:30
Compare
Choose a tag to compare
  • Implement Clone for Node<T: Clone>

0.4.2

08 Jun 00:28
Compare
Choose a tag to compare
  • Implement Send and Sync
  • Lazy utf-8 validation

0.4.1

18 May 15:28
Compare
Choose a tag to compare
  • Performance and reliability improvements.

0.4.0

17 May 23:06
Compare
Choose a tag to compare
  • Node::at_mut.
  • Improve error handling API.
  • 2x lookup performance increase!