prepare for 0.7

This commit is contained in:
Simon Cruanes 2020-11-17 10:43:48 -05:00
parent 2a955bcbb4
commit a35b063d41
4 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
## 0.7
- feat: add `rest_of_path_urlencoded` and rename `rest` to `rest_of_path`
- feat: `http_of_dir`: redirect to index.html if present
- fix: `http_of_dir`: do not url-encode '/' in paths
- feat: add `Route.rest` to match the rest of the path
- feat: printing routes
## 0.6

View file

@ -400,12 +400,12 @@ module Route : sig
val rest_of_path : (string -> 'a, 'a) t
(** Matches a string, even containing ['/']. This will match
the entirety of the remaining route.
@since NEXT_RELEASE *)
@since 0.7 *)
val rest_of_path_urlencoded : (string -> 'a, 'a) t
(** Matches a string, even containing ['/'], an URL-decode it.
This will match the entirety of the remaining route.
@since NEXT_RELEASE *)
@since 0.7 *)
val (@/) : ('a, 'b) comp -> ('b, 'c) t -> ('a, 'c) t
(** [comp / route] matches ["foo/bar/…"] iff [comp] matches ["foo"],
@ -413,11 +413,11 @@ module Route : sig
val pp : Format.formatter -> _ t -> unit
(** Print the route.
@since NEXT_RELEASE *)
@since 0.7 *)
val to_string : _ t -> string
(** Print the route.
@since NEXT_RELEASE *)
@since 0.7 *)
end
(** {2 Server} *)

View file

@ -1,5 +1,5 @@
opam-version: "2.0"
version: "0.6"
version: "0.7"
authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT"

View file

@ -1,5 +1,5 @@
opam-version: "2.0"
version: "0.6"
version: "0.7"
authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT"