Skip to content

Releases: anuragsoni/routes

2.0.0

11 Oct 02:06
Compare
Choose a tag to compare

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

1.0.0

17 Aug 02:49
b9bb8a0
Compare
Choose a tag to compare

CHANGES:

  • First major release. No changes from 0.9.1

0.9.1

16 Apr 17:26
Compare
Choose a tag to compare

CHANGES:

  • bucklescript: Use correct version number (0.9.1) in package.json

0.9.0

16 Apr 17:21
Compare
Choose a tag to compare

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

09 May 02:30
Compare
Choose a tag to compare

CHANGES:

  • Improve trailing slash handling. Instead of separate nil and trail constructors, all routes end with nil.
    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: "/"
    use empty. (#111)

0.7.3

14 Apr 02:03
Compare
Choose a tag to compare

CHANGES:

  • Allow adding new routes to existing router. (#108, @tatchi)
  • Fix library name in bsconfig.json. (#109, @tsnobip)
  • Specify -O3 flag for ocamlopt when using dune's release profile. (#110)

bs-platform should be a peer dependency

24 Mar 04:07
Compare
Choose a tag to compare
0.7.2+bucklscript.3

bs-platform should just be a peer dependency?

Publish on both npm and github registry

24 Mar 03:38
Compare
Choose a tag to compare
0.7.2+bucklscript.2

publish on both npm + github packages

Initial release for bucklescript

24 Mar 03:14
Compare
Choose a tag to compare
0.7.2+bucklscript

add scoped name in package.json

0.7.2

24 Mar 01:16
Compare
Choose a tag to compare

CHANGES:

  • Use bisect_ppx to generate coverage reports (#95)
  • Lower version constraint for dune and ocaml. Minimum versions needed are now dune 1.0 and OCaml 4.05.0 (#99, #100)