Skip to content

Commit d6f7f15

Browse files
committed
prepare for 1.4
1 parent 66a8dfc commit d6f7f15

File tree

10 files changed

+32
-12
lines changed

10 files changed

+32
-12
lines changed

CHANGELOG.adoc

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

3+
== 1.4
4+
5+
- add `CCMap.union`
6+
- add `CCRef.swap`
7+
- add `CCArray.swap`
8+
- change signature of `CCWBTree.get_rank`
9+
- add `CCWBTree.get_rank{,_exn}`
10+
11+
- more efficient `List.map` Using efficient chunking algorithm
12+
- Fix `CCVector.append_array` (empty vector case)
13+
- `CCFQueue.take_back_exn` raised InvalidArg instead of Empty on an empty queue
14+
- faster `CCString.{prefix,suffix}`
15+
- speed improvements and benchmarks for `CCString.{prefix,suffix}`
16+
17+
- add ocp-indent file
18+
- fix `CCFun.tap` example in doc
19+
- specify behavior of `CCFQueue.take_{front,back}_l` in some corner cases
20+
- More tests for CCVector.append and CCVector.append_array
21+
- assertions and cleanup in `CCPool`
22+
323
== 1.3
424

525
- deprecate `CCBool.negate`

HOWTO.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ can be removed.
1010
. `make update_next_tag` (to update `@since` comments; be careful not to change symlinks)
1111
. check status of modules (`{b status: foo}`) and update if required;
1212
removed deprecated functions, etc.
13-
. update `CHANGELOG.md` (see its end to find the right git command)
13+
. update `CHANGELOG.adoc` (see its end to find the right git command)
1414
. commit the changes
1515
. `git checkout stable`
1616
. `git merge master`

_oasis

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OASISFormat: 0.4
22
Name: containers
3-
Version: 1.3
3+
Version: 1.4
44
Homepage: https://github.com/c-cube/ocaml-containers
55
Authors: Simon Cruanes
66
License: BSD-2-clause

src/core/CCArray.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ val compare : 'a ord -> 'a t ord
2525

2626
val swap : 'a t -> int -> int -> unit
2727
(** [swap arr i j] swaps elements at indices [i] and [j].
28-
@since NEXT_RELEASE *)
28+
@since 1.4 *)
2929

3030
val get : 'a t -> int -> 'a
3131

src/core/CCFormat.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ val some : 'a printer -> 'a option printer
162162
"what is your @{<White>favorite color@}? @{<blue>blue@}! No, @{<red>red@}! Ahhhhhhh@.";;
163163
]}
164164
165-
{b status: experimental}
165+
{b status: unstable}
166166
@since 0.15 *)
167167

168168
val set_color_tag_handling : t -> unit
@@ -177,13 +177,13 @@ val set_color_default : bool -> unit
177177
val with_color : string -> 'a printer -> 'a printer
178178
(** [with_color "Blue" pp] behaves like the printer [pp], but with the given
179179
style.
180-
{b status: experimental}
180+
{b status: unstable}
181181
@since 0.16 *)
182182

183183
val with_colorf : string -> t -> ('a, t, unit, unit) format4 -> 'a
184184
(** [with_colorf "Blue" out "%s %d" "yolo" 42] will behave like {!Format.fprintf},
185185
but wrapping the content with the given style
186-
{b status: experimental}
186+
{b status: unstable}
187187
@since 0.16 *)
188188

189189
val with_color_sf : string -> ('a, t, unit, string) format4 -> 'a
@@ -193,7 +193,7 @@ val with_color_sf : string -> ('a, t, unit, string) format4 -> 'a
193193
{[
194194
CCFormat.with_color_sf "red" "%a" CCFormat.Dump.(list int) [1;2;3] |> print_endline;;
195195
]}
196-
{b status: experimental}
196+
{b status: unstable}
197197
@since 0.21 *)
198198

199199
val with_color_ksf : f:(string -> 'b) -> string -> ('a, t, unit, 'b) format4 -> 'a

src/core/CCMap.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module type S = sig
3232
val union : (key -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t
3333
(** Union of both maps, using the function to combine bindings
3434
that belong to both inputs
35-
@since NEXT_RELEASE *)
35+
@since 1.4 *)
3636

3737
val of_seq : (key * 'a) sequence -> 'a t
3838

src/core/CCMap.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module type S = sig
3535
val union : (key -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t
3636
(** Union of both maps, using the function to combine bindings
3737
that belong to both inputs
38-
@since NEXT_RELEASE *)
38+
@since 1.4 *)
3939

4040
val of_seq : (key * 'a) sequence -> 'a t
4141
(** Same as {!of_list} *)

src/core/CCRef.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ val get_then_incr : int t -> int
3333

3434
val swap : 'a t -> 'a t -> unit
3535
(** Swap values.
36-
@since NEXT_RELEASE *)
36+
@since 1.4 *)
3737

3838
val compare : 'a ord -> 'a t ord
3939

src/data/CCWBTree.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module type S = sig
8686
(** [get_rank k m] looks for the rank of [k] in [m], i.e. the index
8787
of [k] in the sorted list of bindings of [m].
8888
[let (`At n) = get_rank k m in nth_exn n m = get m k] should hold.
89-
@since NEXT_RELEASE *)
89+
@since 1.4 *)
9090

9191
val add : key -> 'a -> 'a t -> 'a t
9292

src/data/CCWBTree.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module type S = sig
5151
(** [get_rank k m] looks for the rank of [k] in [m], i.e. the index
5252
of [k] in the sorted list of bindings of [m].
5353
[let (`At n) = get_rank k m in nth_exn n m = get m k] should hold.
54-
@since NEXT_RELEASE *)
54+
@since 1.4 *)
5555

5656
val add : key -> 'a -> 'a t -> 'a t
5757

0 commit comments

Comments
 (0)