From 9bd5e4f718edd04b3803cc01760de4cbe3052573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Fri, 6 Oct 2023 14:24:48 +0700 Subject: [PATCH] Release v0.11.0 --- CHANGELOG.md | 20 +++++++++++++++++++- README.md | 2 +- mix.exs | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f240a58d..0e60741e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/livebook-dev/kino) +With this release of Livebook and Kino we changed the values for audio and image input. The `:data` key with inline binary has been removed in favour of `:file_ref`, which points to a file similarly to the file input. Note that this is not a Kino change per se, the value you get depends specifically on your Livebook version. Here's how you can access the whole binary with the new API: + +```diff +image_input = Kino.Input.image("Image") +# ... +image = Kino.Input.read(image_input) + +-image.data ++image.file_ref ++|> Kino.Input.file_path() ++|> File.read!() +``` + ### Added * Added `Kino.Shorts`, a convenience module for building outputs and inputs ([#310](https://github.com/livebook-dev/kino/pull/310)) @@ -18,11 +31,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added `Kino.FS` for accessing notebook files ([#319](https://github.com/livebook-dev/kino/pull/319)) * Support for `Kino.JS.Live` outputs to be exported ([#321](https://github.com/livebook-dev/kino/pull/321)) * Added `Kino.start_child!/1` ([#322](https://github.com/livebook-dev/kino/pull/322)) -* Remote execution cell ([#328](https://github.com/livebook-dev/kino/pull/328)) +* Remote execution cell ([#328](https://github.com/livebook-dev/kino/pull/328), [#348](https://github.com/livebook-dev/kino/pull/348)) +* `Kino.tmp_dir/0` to get a directory that is cleaned when the runtime terminates ([#344](https://github.com/livebook-dev/kino/pull/344)) +* Enabled Kino.DataTable data to be exported in .livemd ([#346](https://github.com/livebook-dev/kino/pull/346)) +* Added `:debounce` option to inputs ([#347](https://github.com/livebook-dev/kino/pull/347)) +* Defined default rendering for `Nx.Heatmap` ([#349](https://github.com/livebook-dev/kino/pull/349)) ### Changed * `Kino.listen/{2,3}` to return PID of the started process ([#306](https://github.com/livebook-dev/kino/pull/306)) +* **(Breaking)** Changed audio and image input values to include file rather than inline binary data ### Fixed diff --git a/README.md b/README.md index 1a71d2be..c90f8bc8 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ To bring Kino to Livebook all you need to do is `Mix.install/2`: ```elixir Mix.install([ - {:kino, "~> 0.10.0"} + {:kino, "~> 0.11.0"} ]) ``` diff --git a/mix.exs b/mix.exs index ae33a636..d790caba 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Kino.MixProject do use Mix.Project - @version "0.11.0-dev" + @version "0.11.0" @description "Interactive widgets for Livebook" def project do