From 9e36427450c1d2fbefe446f074797acb35db58c2 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 2 Oct 2024 09:00:33 -0400 Subject: [PATCH] prepare for 0.12 --- CHANGELOG.md | 9 +++++++++ dune-project | 2 +- printbox-ext-plot.opam | 2 +- printbox-html.opam | 2 +- printbox-md.opam | 2 +- printbox-text.opam | 2 +- printbox.opam | 2 +- src/PrintBox.mli | 8 ++++---- src/printbox-text/PrintBox_text.mli | 2 +- 9 files changed, 20 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a72b43a..d16cfd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,13 @@ +## 0.12 + +- Remove fallback to and dependency on `printbox-html` from `printbox-md` (@lukstafi) +- introduce notion of extensions (@lukstafi) +- add `printbox-ext-plot` extension for text and HTML plots (@lukstafi) +- feat: add `?stretch` param to `frame` + +- fix #45, problem with nested frames + ## 0.11 - Anchors (with self-links if inner is non-empty) diff --git a/dune-project b/dune-project index 57ff13c..7c16bf6 100644 --- a/dune-project +++ b/dune-project @@ -2,7 +2,7 @@ (name printbox) (using mdx 0.2) (generate_opam_files true) -(version 0.11) +(version 0.12) (license "BSD-2-Clause") (authors "Simon Cruanes" "Guillaume Bury" "lukstafi") diff --git a/printbox-ext-plot.opam b/printbox-ext-plot.opam index 8ee1568..dee36d3 100644 --- a/printbox-ext-plot.opam +++ b/printbox-ext-plot.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.11" +version: "0.12" synopsis: "Printbox extension for plotting" description: """ diff --git a/printbox-html.opam b/printbox-html.opam index b049eb7..9316813 100644 --- a/printbox-html.opam +++ b/printbox-html.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.11" +version: "0.12" synopsis: "Printbox unicode handling" description: """ diff --git a/printbox-md.opam b/printbox-md.opam index b2d97fe..98432a0 100644 --- a/printbox-md.opam +++ b/printbox-md.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.11" +version: "0.12" synopsis: "Printbox Markdown rendering" description: """ diff --git a/printbox-text.opam b/printbox-text.opam index e842642..67a6f01 100644 --- a/printbox-text.opam +++ b/printbox-text.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.11" +version: "0.12" synopsis: "Text renderer for printbox, using unicode edges" maintainer: ["c-cube" "lukstafi"] authors: ["Simon Cruanes" "Guillaume Bury" "lukstafi"] diff --git a/printbox.opam b/printbox.opam index 73ac394..a986aff 100644 --- a/printbox.opam +++ b/printbox.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.11" +version: "0.12" synopsis: "Allows to print nested boxes, lists, arrays, tables in several formats" maintainer: ["c-cube" "lukstafi"] diff --git a/src/PrintBox.mli b/src/PrintBox.mli index d298c56..7352104 100644 --- a/src/PrintBox.mli +++ b/src/PrintBox.mli @@ -106,7 +106,7 @@ type t type ext = .. (** Extensions of the representation. - @since NEXT_RELEASE + @since 0.12 *) (** The type [view] can be used to observe the inside of the box, @@ -115,7 +115,7 @@ type ext = .. @since 0.3 added [Align] @since 0.5 added [Link] @since 0.11 added [Anchor] - @since NEXT_RELEASE added [Stretch] + @since 0.12 added [Stretch] *) type view = private | Empty @@ -192,7 +192,7 @@ val float : float -> t val frame : ?stretch:bool -> t -> t (** Put a single frame around the box. @param stretch if true (default false), the frame expands to - fill the available space. Present since NEXT_RELEASE *) + fill the available space. Present since 0.12 *) val pad : t -> t (** Pad the given box with some free space *) @@ -330,7 +330,7 @@ val anchor : id:string -> t -> t val extension : key:string -> ext -> t (** [extension ~key ext] embeds an extended representation [ext] as a box. [ext] must be recognized by the used backends as an extension registered under [key]. - @since NEXT_RELEASE + @since 0.12 *) (** {2 Styling combinators} *) diff --git a/src/printbox-text/PrintBox_text.mli b/src/printbox-text/PrintBox_text.mli index 1221ebe..14bdbe2 100644 --- a/src/printbox-text/PrintBox_text.mli +++ b/src/printbox-text/PrintBox_text.mli @@ -58,5 +58,5 @@ val str_display_width : String.t -> int -> int -> int (** [str_display_width s pos len] computes the width in visible characters of the string [s] starting at string position [pos] and stopping right before [pos + len]. See {!set_string_len}. - @since NEXT_RELEASE + @since 0.12 *)