Skip to content

Commit 249dc35

Browse files
committed
prepare for 3.9
1 parent 6a415e9 commit 249dc35

10 files changed

+31
-15
lines changed

Diff for: CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 3.9
4+
5+
- feat: add `Containers_cbor` module
6+
- feat(CCInt32): add popcount function
7+
- feat(CCInt64): add `popcount` operation
8+
- CCBV:
9+
* more extensive test suite
10+
* use `bytes` underneath, not an array of integers
11+
- add `containers_testlib`, removing qtest and ounit.
12+
13+
- fix: handle uppercase in string/hex
14+
315
## 3.8
416

517
- add `Containers_bencode` for lightweight (de)ser

Diff for: containers-data.opam

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "3.8"
2+
version: "3.9"
33
author: "Simon Cruanes"
44
maintainer: "[email protected]"
55
synopsis: "A set of advanced datatypes for containers"
@@ -14,7 +14,8 @@ depends: [
1414
"dune" { >= "2.0" }
1515
"containers" { = version }
1616
"seq"
17-
"qcheck-core" { with-test }
17+
(("ocaml" {with-test & < "4.08"} & "qcheck-core" {>= "0.17" & with-test})
18+
| ("ocaml" {with-test & >= "4.08"} & "qcheck-core" {>= "0.18" & with-test}))
1819
"iter" { with-test }
1920
"gen" { with-test }
2021
#"mdx" { with-test & >= "1.5.0" & < "2.0.0" }

Diff for: containers-thread.opam

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "3.8"
2+
version: "3.9"
33
author: "Simon Cruanes"
44
maintainer: "[email protected]"
55
license: "BSD-2-Clause"
@@ -16,7 +16,8 @@ depends: [
1616
"dune-configurator"
1717
"containers" { = version }
1818
"iter" { with-test }
19-
"qcheck-core" { with-test }
19+
(("ocaml" {with-test & < "4.08"} & "qcheck-core" {>= "0.17" & with-test})
20+
| ("ocaml" {with-test & >= "4.08"} & "qcheck-core" {>= "0.18" & with-test}))
2021
"uutf" { with-test }
2122
"odoc" { with-doc }
2223
]

Diff for: containers.opam

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "containers"
3-
version: "3.8"
3+
version: "3.9"
44
author: "Simon Cruanes"
55
maintainer: "[email protected]"
66
license: "BSD-2-Clause"
@@ -16,7 +16,8 @@ depends: [
1616
"dune-configurator"
1717
"seq" # compat
1818
"either" # compat
19-
"qcheck-core" { >= "0.14" & with-test }
19+
(("ocaml" {with-test & < "4.08"} & "qcheck-core" {>= "0.17" & with-test})
20+
| ("ocaml" {with-test & >= "4.08"} & "qcheck-core" {>= "0.18" & with-test}))
2021
"yojson" { with-test }
2122
"iter" { with-test }
2223
"gen" { with-test }

Diff for: src/cbor/containers_cbor.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{b note} this is only available on OCaml >= 4.08. Below that, the module
99
is empty.
1010
11-
@since NEXT_RELEASE
11+
@since 3.9
1212
*)
1313

1414
type t =

Diff for: src/cbor/tests/dune

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
(rule
1010
(alias runtest)
1111
(deps t_appendix_a.exe appendix_a.json)
12+
(package containers)
1213
(action
1314
(run ./t_appendix_a.exe ./appendix_a.json)))

Diff for: src/core/CCEqualLabels.mli

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ val map : f:('a -> 'b) -> 'b t -> 'a t
3535

3636
val always_eq : _ t
3737
(** Always returns true. All values are equal.
38-
@since NEXT_RELEASE *)
38+
@since 3.9 *)
3939

4040
val never_eq : _ t
4141
(** Always returns false. No values are, so this
4242
is not even reflexive (i.e. [x=x] is false).
4343
Be careful!
44-
@since NEXT_RELEASE *)
44+
@since 3.9 *)
4545

4646
module Infix : sig
4747
val ( >|= ) : 'b t -> ('a -> 'b) -> 'a t

Diff for: src/core/CCInt32.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ val pow : t -> t -> t
4343

4444
val popcount : t -> int
4545
(** Number of bits set to 1.
46-
@since NEXT_RELEASE *)
46+
@since 3.9 *)
4747

4848
val floor_div : t -> t -> t
4949
(** [floor_div x n] is integer division rounding towards negative infinity.

Diff for: src/core/CCInt64.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ val hash : t -> int
3232

3333
val popcount : t -> int
3434
(** Number of bits set to 1.
35-
@since NEXT_RELEASE *)
35+
@since 3.9 *)
3636

3737
val sign : t -> int
3838
(** [sign x] return [0] if [x = 0], [-1] if [x < 0] and [1] if [x > 0].

Diff for: src/data/CCBV.mli

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ val create : size:int -> bool -> t
2626
val init : int -> (int -> bool) -> t
2727
(** [init len f] initializes a bitvector of length [len], where bit [i]
2828
is true iff [f i] is.
29-
@since NEXT_RELEASE *)
29+
@since 3.9 *)
3030

3131
val copy : t -> t
3232
(** Copy of bitvector. *)
@@ -55,7 +55,7 @@ val resize_minimize_memory : t -> int -> unit
5555
(** Same as {!resize}, but this can also shrink the underlying
5656
array if this reduces the size.
5757
@raise Invalid_argument on negative sizes.
58-
@since NEXT_RELEASE *)
58+
@since 3.9 *)
5959

6060
val is_empty : t -> bool
6161
(** Are there any true bits? *)
@@ -71,7 +71,7 @@ val reset : t -> int -> unit
7171

7272
val set_bool : t -> int -> bool -> unit
7373
(** Set or reset [i]-th bit.
74-
@since NEXT_RELEASE *)
74+
@since 3.9 *)
7575

7676
val flip : t -> int -> unit
7777
(** Flip i-th bit, extending the bitvector if needed. *)
@@ -81,7 +81,7 @@ val clear : t -> unit
8181

8282
val clear_and_shrink : t -> unit
8383
(** Set every bit to 0, and set length to 0.
84-
@since NEXT_RELEASE *)
84+
@since 3.9 *)
8585

8686
val iter : t -> (int -> bool -> unit) -> unit
8787
(** Iterate on all bits. *)

0 commit comments

Comments
 (0)