Skip to content

Commit 75b498a

Browse files
committedJun 11, 2022
prepare for 3.8
1 parent 259edb9 commit 75b498a

10 files changed

+24
-13
lines changed
 

‎CHANGELOG.md

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

3+
## 3.8
4+
5+
- add `Containers_bencode` for lightweight (de)ser
6+
- perf(CCHash): improve a bit commutative hashing of arrays/lists
7+
- perf(CCHash): only hash prefix of string/bytes
8+
- feat(CCList): Add `Assoc.{keys,values,map_values}`
9+
- feat(CCArray): add `CCArray.map_inplace`
10+
- add `CCString.{to_hex,of_hex}`
11+
12+
- fix(Atomic): prevent race conditions under flambda, for now
13+
314
## 3.7
415

516
- add `Format.styling`

‎containers-data.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "3.7"
2+
version: "3.8"
33
author: "Simon Cruanes"
44
maintainer: "simon.cruanes.2007@m4x.org"
55
synopsis: "A set of advanced datatypes for containers"

‎containers-thread.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "3.7"
2+
version: "3.8"
33
author: "Simon Cruanes"
44
maintainer: "simon.cruanes.2007@m4x.org"
55
license: "BSD-2-Clause"

‎containers.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "containers"
3-
version: "3.7"
3+
version: "3.8"
44
author: "Simon Cruanes"
55
maintainer: "simon.cruanes.2007@m4x.org"
66
license: "BSD-2-Clause"

‎src/bencode/containers_bencode.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
See https://en.wikipedia.org/wiki/Bencode .
44
5-
@since NEXT_RELEASE *)
5+
@since 3.8 *)
66

77
module Str_map : module type of Map.Make(String)
88

‎src/core/CCArray.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ val get_safe : 'a t -> int -> 'a option
6060

6161
val map_inplace : ('a -> 'a) -> 'a t -> unit
6262
(** [map_inplace f a] replace all elements of [a] by its image by [f].
63-
@since NEXT_RELEASE *)
63+
@since 3.8 *)
6464

6565
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
6666
(** [fold f init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],

‎src/core/CCArrayLabels.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ val get_safe : 'a t -> int -> 'a option
6161

6262
val map_inplace : f:('a -> 'a) -> 'a t -> unit
6363
(** [map_inplace ~f a] replace all elements of [a] by its image by [f].
64-
@since NEXT_RELEASE *)
64+
@since 3.8 *)
6565

6666
val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a
6767
(** [fold ~f ~init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],

‎src/core/CCSeq.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ val unzip : ('a * 'b) t -> 'a t * 'b t
168168

169169
val zip_i : 'a t -> (int * 'a) t
170170
(** [zip_i seq] zips the index of each element with the element itself.
171-
@since NEXT
171+
@since 3.8
172172
*)
173173

174174
(** {2 Misc} *)

‎src/core/CCString.mli

+3-3
Original file line numberDiff line numberDiff line change
@@ -327,16 +327,16 @@ val equal_caseless : string -> string -> bool
327327

328328
val to_hex : string -> string
329329
(** Convert a string with arbitrary content into a hexadecimal string.
330-
@since NEXT_RELEASE *)
330+
@since 3.8 *)
331331

332332
val of_hex : string -> string option
333333
(** Convert a string in hex into a string with arbitrary content.
334-
@since NEXT_RELEASE *)
334+
@since 3.8 *)
335335

336336
val of_hex_exn : string -> string
337337
(** Same as {!of_hex} but fails harder.
338338
@raise Invalid_argument if the input is not valid hex.
339-
@since NEXT_RELEASE *)
339+
@since 3.8 *)
340340

341341
(** {2 Finding}
342342

‎src/core/CCStringLabels.mli

+3-3
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,16 @@ val equal_caseless : string -> string -> bool
356356

357357
val to_hex : string -> string
358358
(** Convert a string with arbitrary content into a hexadecimal string.
359-
@since NEXT_RELEASE *)
359+
@since 3.8 *)
360360

361361
val of_hex : string -> string option
362362
(** Convert a string in hex into a string with arbitrary content.
363-
@since NEXT_RELEASE *)
363+
@since 3.8 *)
364364

365365
val of_hex_exn : string -> string
366366
(** Same as {!of_hex} but fails harder.
367367
@raise Invalid_argument if the input is not valid hex.
368-
@since NEXT_RELEASE *)
368+
@since 3.8 *)
369369

370370
(** {2 Finding}
371371

0 commit comments

Comments
 (0)
Please sign in to comment.