From 9a318ae2b89099546d9636068eb978d4dcd70db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Thu, 27 Feb 2025 00:30:00 +0900 Subject: [PATCH] Ignore :export_info_string passed to Kino.JS.new/3 instead of raising --- lib/kino/js.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/kino/js.ex b/lib/kino/js.ex index 21ef06e5..2f80b833 100644 --- a/lib/kino/js.ex +++ b/lib/kino/js.ex @@ -501,7 +501,9 @@ defmodule Kino.JS do """ @spec new(module(), term(), keyword()) :: t() def new(module, data, opts \\ []) do - opts = Keyword.validate!(opts, [:export]) + # TODO: remove :export_info_string on v1.0, for now we just ignore + # it in case a library passes both export options. + opts = Keyword.validate!(opts, [:export, :export_info_string]) export = opts[:export] ref = Kino.Output.random_ref()