diff --git a/CHANGES.md b/CHANGES.md index c0a933c..29ba02a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,16 @@ +v4.4.0 2023-09-25 +----------------- + +* **breaking change** Fix parsing & printing of IPv6 addresses in the host part of an uri + + If we follow the RFC3986 correctly, IPv6 must be surrounded by '[' and ']'. Old versions + of `ocaml-uri` escaped these characters. The new version interprets these characters to + recognize an IPv6 address. + + Users should take note of this change in behaviour, which fixes a number of bugs in HTTP + requests. (@anmonteiro, review by several maintainers, #169) +* Upgrade tests to `ounit2` (@Alessandro-Barbieri, #161) + v4.3.0 2023-04-19 ----------------- diff --git a/uri-bench.opam b/uri-bench.opam index 254bc7e..8306a99 100644 --- a/uri-bench.opam +++ b/uri-bench.opam @@ -12,14 +12,14 @@ description: """ This is a benchmarking package for the OCaml implementation of the [RFC3986](http://tools.ietf.org/html/rfc3986) specification for parsing URI or URLs. """ depends: [ - "ocaml" {>= "4.04.0"} + "ocaml" {>= "4.08.0"} "dune" {>= "1.2.0"} "uri" {= version} - "core_bench" {with-test & >= "v0.14.0"} - "core_unix" {with-test & >= "v0.14.0"} + "core_bench" {>= "v0.14.0"} + "core_unix" {>= "v0.14.0"} ] build: [ - ["dune" "subst"] {pinned} + ["dune" "subst"] {dev} ["dune" "build" "-p" name "-j" jobs] ["dune" "runtest" "-p" name "-j" jobs] {with-test} ] diff --git a/uri-re.opam b/uri-re.opam index 3d34e3e..e43899a 100644 --- a/uri-re.opam +++ b/uri-re.opam @@ -13,16 +13,18 @@ This is an OCaml implementation of the [RFC3986](http://tools.ietf.org/html/rfc3 for parsing URI or URLs. """ depends: [ - "ocaml" {>= "4.04.0"} + "ocaml" {>= "4.08.0"} "dune" {>= "1.2.0"} "ounit2" {with-test & >= "1.0.2"} "ppx_sexp_conv" {with-test & >= "v0.9.0"} "re" {>= "1.9.0"} + "uri" {= version} "stringext" {>= "1.4.0"} + "crowbar" {with-test} ] build: [ - ["dune" "subst"] {pinned} + ["dune" "subst"] {dev} ["dune" "build" "-p" name "-j" jobs] - ["dune" "runtest" "-p" name "-j" jobs] {with-test} + ["dune" "runtest" "-p" name "-j" jobs] {with-test & os != "macos"} ] messages: [ "Deprecated. This package is outdated, you should consider using uri instead" ] diff --git a/uri-sexp.opam b/uri-sexp.opam index fb249a5..66b1200 100644 --- a/uri-sexp.opam +++ b/uri-sexp.opam @@ -19,7 +19,7 @@ depends: [ "ounit2" {with-test} ] build: [ - ["dune" "subst"] {pinned} + ["dune" "subst"] {dev} ["dune" "build" "-p" name "-j" jobs] ["dune" "runtest" "-p" name "-j" jobs] {with-test} ] diff --git a/uri.opam b/uri.opam index 5cee37a..04219dc 100644 --- a/uri.opam +++ b/uri.opam @@ -13,7 +13,7 @@ This is an OCaml implementation of the [RFC3986](http://tools.ietf.org/html/rfc3 for parsing URI or URLs. """ depends: [ - "ocaml" {>= "4.04.0"} + "ocaml" {>= "4.08.0"} "dune" {>= "1.2.0"} "ounit2" {with-test & >= "1.0.2"} "ppx_sexp_conv" {with-test & >= "v0.9.0"} @@ -22,7 +22,7 @@ depends: [ "angstrom" {>= "0.14.0"} ] build: [ - ["dune" "subst"] {pinned} + ["dune" "subst"] {dev} ["dune" "build" "-p" name "-j" jobs] - ["dune" "runtest" "-p" name "-j" jobs] {with-test} + ["dune" "runtest" "-p" name "-j" jobs] {with-test & os != "macos"} ]