Releases: anuragsoni/routes
Releases · anuragsoni/routes
2.0.0
CHANGES:
- use
ppx_expect
for tests - add
route
function which is an alias of@-->
and is used to connect a route pattern to a handler
Breaking changes
- Drop support for OCaml 4.05-4.07
- Switch to a new model for trailing slash handling. In routes 1.0.0 users needed to be careful about using
/?
and//?
as the former would only match routes without a trailing slash, and the latter would enforce a trailing slash.- Users only need to use
/?
to end routes, and it will cover both routes ending with trailing slashes and without - The type used for representing match results has more information about whether it was an exact match, or if it was a match but the input target had a trailing slash at the end.
MatchWithTrailingSlash
informs the user that the current target was considered a match, but that the target has an additional trailing slash
- Users only need to use
1.0.0
CHANGES:
- First major release. No changes from 0.9.1
0.9.1
CHANGES:
- bucklescript: Use correct version number (0.9.1) in package.json
0.9.0
CHANGES:
- Add a labelled function to create custom patterns (#114)
- Add support for union operation for two routers (#115, @Chattered)
- Use dune language 2.0 (#116)
- Support wildcard pattern at the end of a route (#118, #129, @Lupus)
- Add map and path prefix to route targets (#121, @Chattered)
- Make ksprintf visible in the public api (#123, @Chattered)
0.8.0
CHANGES:
- Improve trailing slash handling. Instead of separate
nil
andtrail
constructors, all routes end withnil
.
The trailing slash is controlled via/?
for no trailing slash, and//?
for trailing slash. (#111) - No longer possible to use
nil
unless it follows a pattern. To create a route that matches no path params, ex: "/"
useempty
. (#111)
0.7.3
bs-platform should be a peer dependency
0.7.2+bucklscript.3 bs-platform should just be a peer dependency?
Publish on both npm and github registry
0.7.2+bucklscript.2 publish on both npm + github packages
Initial release for bucklescript
0.7.2+bucklscript add scoped name in package.json