Skip to content

Commit

Permalink
prepare for 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Jun 11, 2022
1 parent 259edb9 commit 75b498a
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 13 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 3.8

- add `Containers_bencode` for lightweight (de)ser
- perf(CCHash): improve a bit commutative hashing of arrays/lists
- perf(CCHash): only hash prefix of string/bytes
- feat(CCList): Add `Assoc.{keys,values,map_values}`
- feat(CCArray): add `CCArray.map_inplace`
- add `CCString.{to_hex,of_hex}`

- fix(Atomic): prevent race conditions under flambda, for now

## 3.7

- add `Format.styling`
Expand Down
2 changes: 1 addition & 1 deletion containers-data.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "3.7"
version: "3.8"
author: "Simon Cruanes"
maintainer: "simon.cruanes.2007@m4x.org"
synopsis: "A set of advanced datatypes for containers"
Expand Down
2 changes: 1 addition & 1 deletion containers-thread.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "3.7"
version: "3.8"
author: "Simon Cruanes"
maintainer: "simon.cruanes.2007@m4x.org"
license: "BSD-2-Clause"
Expand Down
2 changes: 1 addition & 1 deletion containers.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
opam-version: "2.0"
name: "containers"
version: "3.7"
version: "3.8"
author: "Simon Cruanes"
maintainer: "simon.cruanes.2007@m4x.org"
license: "BSD-2-Clause"
Expand Down
2 changes: 1 addition & 1 deletion src/bencode/containers_bencode.mli
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
See https://en.wikipedia.org/wiki/Bencode .
@since NEXT_RELEASE *)
@since 3.8 *)

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

Expand Down
2 changes: 1 addition & 1 deletion src/core/CCArray.mli
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ val get_safe : 'a t -> int -> 'a option

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

val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
(** [fold f init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
Expand Down
2 changes: 1 addition & 1 deletion src/core/CCArrayLabels.mli
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ val get_safe : 'a t -> int -> 'a option

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

val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a
(** [fold ~f ~init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
Expand Down
2 changes: 1 addition & 1 deletion src/core/CCSeq.mli
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ val unzip : ('a * 'b) t -> 'a t * 'b t

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

(** {2 Misc} *)
Expand Down
6 changes: 3 additions & 3 deletions src/core/CCString.mli
Original file line number Diff line number Diff line change
Expand Up @@ -327,16 +327,16 @@ val equal_caseless : string -> string -> bool

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

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

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

(** {2 Finding}
Expand Down
6 changes: 3 additions & 3 deletions src/core/CCStringLabels.mli
Original file line number Diff line number Diff line change
Expand Up @@ -356,16 +356,16 @@ val equal_caseless : string -> string -> bool

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

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

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

(** {2 Finding}
Expand Down

0 comments on commit 75b498a

Please sign in to comment.