From 8ee6e42cc13c564eaf3027c4628e6154ca0f0895 Mon Sep 17 00:00:00 2001 From: Calascibetta Romain Date: Mon, 25 Sep 2023 17:21:44 +0200 Subject: [PATCH] [new release] uri, uri-sexp, uri-re and uri-bench (4.4.0) CHANGES: * **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, mirage/ocaml-uri#169) * Upgrade tests to `ounit2` (@Alessandro-Barbieri, mirage/ocaml-uri#161) --- packages/uri-bench/uri-bench.4.4.0/opam | 34 +++++++++++++++++++++++ packages/uri-re/uri-re.4.4.0/opam | 37 +++++++++++++++++++++++++ packages/uri-sexp/uri-sexp.4.4.0/opam | 34 +++++++++++++++++++++++ packages/uri/uri.4.4.0/opam | 37 +++++++++++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 packages/uri-bench/uri-bench.4.4.0/opam create mode 100644 packages/uri-re/uri-re.4.4.0/opam create mode 100644 packages/uri-sexp/uri-sexp.4.4.0/opam create mode 100644 packages/uri/uri.4.4.0/opam diff --git a/packages/uri-bench/uri-bench.4.4.0/opam b/packages/uri-bench/uri-bench.4.4.0/opam new file mode 100644 index 000000000000..4637e84e018e --- /dev/null +++ b/packages/uri-bench/uri-bench.4.4.0/opam @@ -0,0 +1,34 @@ +opam-version: "2.0" +maintainer: "anil@recoil.org" +authors: ["Anil Madhavapeddy" "David Sheets" "Rudi Grinberg"] +license: "ISC" +tags: ["url" "uri" "org:mirage" "org:xapi-project"] +homepage: "https://github.com/mirage/ocaml-uri" +bug-reports: "https://github.com/mirage/ocaml-uri/issues" +dev-repo: "git+https://github.com/mirage/ocaml-uri.git" +doc: "https://mirage.github.io/ocaml-uri/" +synopsis: "Benchmarking package for ocaml-uri" +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"} + "dune" {>= "1.2.0"} + "uri" {= version} + "core_bench" {with-test & >= "v0.14.0"} + "core_unix" {with-test & >= "v0.14.0"} +] +build: [ + ["dune" "subst"] {pinned} + ["dune" "build" "-p" name "-j" jobs] + ["dune" "runtest" "-p" name "-j" jobs] {with-test} +] +url { + src: + "https://github.com/mirage/ocaml-uri/releases/download/v4.4.0/uri-4.4.0.tbz" + checksum: [ + "sha256=cdabaf6ef5cd2161e59cc7b74c6e4a68ecb80a9f4e96002e338e1b6bf17adec4" + "sha512=88374143e0d8aaf6d40aa3cbd7593f9832e9c9727738c6e651498125150c83d5646e13b5737d5c3e81484dd041127f67f8acea13fdc0300ac4e46107559f8ae2" + ] +} +x-commit-hash: "c336c796f4deb8979a4c7ceea3bef34b46240623" diff --git a/packages/uri-re/uri-re.4.4.0/opam b/packages/uri-re/uri-re.4.4.0/opam new file mode 100644 index 000000000000..5f16aaa04120 --- /dev/null +++ b/packages/uri-re/uri-re.4.4.0/opam @@ -0,0 +1,37 @@ +opam-version: "2.0" +maintainer: "anil@recoil.org" +authors: ["Anil Madhavapeddy" "David Sheets" "Rudi Grinberg"] +license: "ISC" +tags: ["url" "uri" "org:mirage" "org:xapi-project"] +homepage: "https://github.com/mirage/ocaml-uri" +bug-reports: "https://github.com/mirage/ocaml-uri/issues" +dev-repo: "git+https://github.com/mirage/ocaml-uri.git" +doc: "https://mirage.github.io/ocaml-uri/" +synopsis: "An RFC3986 URI/URL parsing library" +description: """ +This is an OCaml implementation of the [RFC3986](http://tools.ietf.org/html/rfc3986) specification +for parsing URI or URLs. +""" +depends: [ + "ocaml" {>= "4.04.0"} + "dune" {>= "1.2.0"} + "ounit2" {with-test & >= "1.0.2"} + "ppx_sexp_conv" {with-test & >= "v0.9.0"} + "re" {>= "1.9.0"} + "stringext" {>= "1.4.0"} +] +build: [ + ["dune" "subst"] {pinned} + ["dune" "build" "-p" name "-j" jobs] + ["dune" "runtest" "-p" name "-j" jobs] {with-test} +] +messages: [ "Deprecated. This package is outdated, you should consider using uri instead" ] +url { + src: + "https://github.com/mirage/ocaml-uri/releases/download/v4.4.0/uri-4.4.0.tbz" + checksum: [ + "sha256=cdabaf6ef5cd2161e59cc7b74c6e4a68ecb80a9f4e96002e338e1b6bf17adec4" + "sha512=88374143e0d8aaf6d40aa3cbd7593f9832e9c9727738c6e651498125150c83d5646e13b5737d5c3e81484dd041127f67f8acea13fdc0300ac4e46107559f8ae2" + ] +} +x-commit-hash: "c336c796f4deb8979a4c7ceea3bef34b46240623" diff --git a/packages/uri-sexp/uri-sexp.4.4.0/opam b/packages/uri-sexp/uri-sexp.4.4.0/opam new file mode 100644 index 000000000000..016d676ec08f --- /dev/null +++ b/packages/uri-sexp/uri-sexp.4.4.0/opam @@ -0,0 +1,34 @@ +opam-version: "2.0" +maintainer: "anil@recoil.org" +authors: ["Anil Madhavapeddy" "David Sheets" "Rudi Grinberg"] +license: "ISC" +tags: ["url" "uri" "org:mirage" "org:xapi-project"] +homepage: "https://github.com/mirage/ocaml-uri" +bug-reports: "https://github.com/mirage/ocaml-uri/issues" +dev-repo: "git+https://github.com/mirage/ocaml-uri.git" +doc: "https://mirage.github.io/ocaml-uri/" +synopsis: "An RFC3986 URI/URL parsing library" +description: """ +ocaml-uri with sexp support +""" +depends: [ + "uri" {= version} + "dune" {>= "1.2.0"} + "ppx_sexp_conv" {>= "v0.13.0"} + "sexplib0" + "ounit2" {with-test} +] +build: [ + ["dune" "subst"] {pinned} + ["dune" "build" "-p" name "-j" jobs] + ["dune" "runtest" "-p" name "-j" jobs] {with-test} +] +url { + src: + "https://github.com/mirage/ocaml-uri/releases/download/v4.4.0/uri-4.4.0.tbz" + checksum: [ + "sha256=cdabaf6ef5cd2161e59cc7b74c6e4a68ecb80a9f4e96002e338e1b6bf17adec4" + "sha512=88374143e0d8aaf6d40aa3cbd7593f9832e9c9727738c6e651498125150c83d5646e13b5737d5c3e81484dd041127f67f8acea13fdc0300ac4e46107559f8ae2" + ] +} +x-commit-hash: "c336c796f4deb8979a4c7ceea3bef34b46240623" diff --git a/packages/uri/uri.4.4.0/opam b/packages/uri/uri.4.4.0/opam new file mode 100644 index 000000000000..8a2ac626f19e --- /dev/null +++ b/packages/uri/uri.4.4.0/opam @@ -0,0 +1,37 @@ +opam-version: "2.0" +maintainer: "anil@recoil.org" +authors: ["Anil Madhavapeddy" "David Sheets" "Rudi Grinberg"] +license: "ISC" +tags: ["url" "uri" "org:mirage" "org:xapi-project"] +homepage: "https://github.com/mirage/ocaml-uri" +bug-reports: "https://github.com/mirage/ocaml-uri/issues" +dev-repo: "git+https://github.com/mirage/ocaml-uri.git" +doc: "https://mirage.github.io/ocaml-uri/" +synopsis: "An RFC3986 URI/URL parsing library" +description: """ +This is an OCaml implementation of the [RFC3986](http://tools.ietf.org/html/rfc3986) specification +for parsing URI or URLs. +""" +depends: [ + "ocaml" {>= "4.04.0"} + "dune" {>= "1.2.0"} + "ounit2" {with-test & >= "1.0.2"} + "ppx_sexp_conv" {with-test & >= "v0.9.0"} + "crowbar" {with-test & >= "0.2"} + "stringext" {>= "1.4.0"} + "angstrom" {>= "0.14.0"} +] +build: [ + ["dune" "subst"] {pinned} + ["dune" "build" "-p" name "-j" jobs] + ["dune" "runtest" "-p" name "-j" jobs] {with-test} +] +url { + src: + "https://github.com/mirage/ocaml-uri/releases/download/v4.4.0/uri-4.4.0.tbz" + checksum: [ + "sha256=cdabaf6ef5cd2161e59cc7b74c6e4a68ecb80a9f4e96002e338e1b6bf17adec4" + "sha512=88374143e0d8aaf6d40aa3cbd7593f9832e9c9727738c6e651498125150c83d5646e13b5737d5c3e81484dd041127f67f8acea13fdc0300ac4e46107559f8ae2" + ] +} +x-commit-hash: "c336c796f4deb8979a4c7ceea3bef34b46240623"