Skip to content

Commit 6ab811f

Browse files
committed
prepare for 3.14
1 parent 9f8c2ef commit 6ab811f

14 files changed

+48
-33
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 3.14
4+
5+
6+
- predicate combinators: `and_pred` and `or_pred`
7+
- feat `pp`: add a bunch of extensions
8+
- Kleisli Composition Operator and Apply_or for option/result/fun (#455)
9+
- add `CCByte_buffer.to_slice`
10+
- add a byte slice type `CCByte_slice`
11+
- add `cons_when` to `CCListLabels`
12+
- add `(|||>)` and `||>` to `CCFun`
13+
- `CCVector`: Add function foldi
14+
- add `containers.pvec`, a persistent vector type.
15+
16+
- perf: use a monomorphic impl for `CCMonomorphic.{min,max}`
17+
318
## 3.13.1
419

520
- list: TRMC was in 4.14, we can use it earlier

containers-data.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "3.13.1"
3+
version: "3.14"
44
synopsis: "A set of advanced datatypes for containers"
55
maintainer: ["c-cube"]
66
authors: ["c-cube"]

containers.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "3.13.1"
3+
version: "3.14"
44
synopsis:
55
"A modular, clean and powerful extension of the OCaml standard library"
66
maintainer: ["c-cube"]

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
(name containers)
33
(generate_opam_files true)
44

5-
(version 3.13.1)
5+
(version 3.14)
66
(authors c-cube)
77
(maintainers c-cube)
88
(license BSD-2-Clause)

src/core/CCByte_buffer.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type t = {
1313
is undefined garbage. *)
1414
}
1515
(** The byte buffer.
16-
The definition is public since NEXT_RELEASE . *)
16+
The definition is public since 3.13.1 . *)
1717

1818
type 'a iter = ('a -> unit) -> unit
1919

@@ -89,7 +89,7 @@ val unsafe_set : t -> int -> char -> unit
8989
val to_slice : t -> CCByte_slice.t
9090
(** [to_slice buf] returns a slice of the current content.
9191
The slice shares the same byte array as [buf] (until [buf] is resized).
92-
@since NEXT_RELEASE *)
92+
@since 3.13.1 *)
9393

9494
val contents : t -> string
9595
(** Copy the internal data to a string. Allocates. *)
@@ -102,7 +102,7 @@ val iter : (char -> unit) -> t -> unit
102102

103103
val iteri : (int -> char -> unit) -> t -> unit
104104
(** Iterate with index.
105-
@since NEXT_RELEASE *)
105+
@since 3.13.1 *)
106106

107107
val fold_left : ('a -> char -> 'a) -> 'a -> t -> 'a
108108
val of_iter : char iter -> t

src/core/CCByte_slice.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(** A simple byte slice.
22
3-
@since NEXT_RELEASE *)
3+
@since 3.13.1 *)
44

55
type t = {
66
bs: bytes; (** The bytes, potentially shared between many slices *)

src/core/CCFun.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ include module type of Fun
88
val and_pred : ('a -> bool) -> ('a -> bool) -> 'a -> bool
99
(** [and_p f g x] is [(f x) && (g x)].
1010
Produces a predicate which is a conjunction of the two predicates.
11-
@since NEXT_RELEASE
11+
@since 3.13.1
1212
*)
1313

1414
val or_pred : ('a -> bool) -> ('a -> bool) -> 'a -> bool
1515
(** [or_p f g x] is [(f x) || (g x)].
1616
Produces a predicate which is a disjunction of the two predicates.
17-
@since NEXT_RELEASE
17+
@since 3.13.1
1818
*)
1919

2020
val compose : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c
@@ -96,11 +96,11 @@ module Infix : sig
9696

9797
val ( ||> ) : 'a * 'b -> ('a -> 'b -> 'c) -> 'c
9898
(** [x ||> f] is [f (fst x) (snd x)]
99-
@since NEXT_RELEASE *)
99+
@since 3.13.1 *)
100100

101101
val ( |||> ) : 'a * 'b * 'c -> ('a -> 'b -> 'c -> 'd) -> 'd
102102
(** like [||>] but for tuples of size 3
103-
@since NEXT_RELEASE *)
103+
@since 3.13.1 *)
104104
end
105105

106106
include module type of Infix

src/core/CCList.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ val cons_maybe : 'a option -> 'a t -> 'a t
2828
val cons_when : bool -> 'a -> 'a t -> 'a t
2929
(** [cons_when true x l] is [x :: l].
3030
[cons_when false x l] is [l].
31-
@since NEXT_RELEASE *)
31+
@since 3.13.1 *)
3232

3333
val cons' : 'a t -> 'a -> 'a t
3434
(** [cons' l x] is the same as [x :: l]. This is convenient for fold

src/core/CCListLabels.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ val cons_maybe : 'a option -> 'a t -> 'a t
4747
val cons_when : bool -> 'a -> 'a t -> 'a t
4848
(** [cons_when true x l] is [x :: l].
4949
[cons_when false x l] is [l].
50-
@since NEXT_RELEASE *)
50+
@since 3.13.1 *)
5151

5252
val filter : f:('a -> bool) -> 'a t -> 'a t
5353
(** [filter ~f l] returns all the elements of the list [l]

src/core/CCOption.mli

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ val bind : 'a t -> ('a -> 'b t) -> 'b t
6060

6161
val k_compose : ('a -> 'b t) -> ('b -> 'c t) -> 'a -> 'c t
6262
(** Kleisli composition. Monadic equivalent of {!CCFun.compose}
63-
@since NEXT_RELEASE *)
63+
@since 3.13.1 *)
6464

6565
val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
6666
(** [map2 f o1 o2] maps ['a option] and ['b option] to a ['c option] using [f]. *)
@@ -100,7 +100,7 @@ val apply_or : ('a -> 'a t) -> 'a -> 'a
100100
(** [apply_or f x] returns the original [x] if [f] fails, or unwraps [f x] if it succeeds.
101101
Useful for piping preprocessing functions together (such as string processing),
102102
turning functions like "remove" into "remove_if_it_exists".
103-
@since NEXT_RELEASE *)
103+
@since 3.13.1 *)
104104

105105
val value : 'a t -> default:'a -> 'a
106106
(** [value o ~default] is similar to the Stdlib's [Option.value] and to {!get_or}.
@@ -187,7 +187,7 @@ module Infix : sig
187187

188188
val ( |?> ) : 'a -> ('a -> 'a t) -> 'a
189189
(** [x |?> f] is [apply_or f x]
190-
@since NEXT_RELEASE *)
190+
@since 3.13.1 *)
191191

192192
val ( let+ ) : 'a t -> ('a -> 'b) -> 'b t
193193
val ( and+ ) : 'a t -> 'b t -> ('a * 'b) t
@@ -196,11 +196,11 @@ module Infix : sig
196196

197197
val ( >=> ) : ('a -> 'b t) -> ('b -> 'c t) -> 'a -> 'c t
198198
(** Monadic [k_compose].
199-
@since NEXT_RELEASE *)
199+
@since 3.13.1 *)
200200

201201
val ( <=< ) : ('b -> 'c t) -> ('a -> 'b t) -> 'a -> 'c t
202202
(** Reverse monadic [k_compose].
203-
@since NEXT_RELEASE *)
203+
@since 3.13.1 *)
204204
end
205205

206206
include module type of Infix

0 commit comments

Comments
 (0)