From 4bc8c22b03b989df20df91b64e50e8a9c6903195 Mon Sep 17 00:00:00 2001 From: Max Marcon Date: Tue, 5 Dec 2023 10:18:40 +0100 Subject: [PATCH] Version 1.3.0 --- CHANGELOG.md | 4 ++++ README.md | 3 ++- mix.exs | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a5a9b8..41ae95a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.3.0 (2023-12-05) + +* added support for form recovery. Upon reconnection, the client sends an event (`options_recovery`) that contains the latest selection. This allows recovery of the options that were active before the view disconnected. + ## 1.2.2 (2023-10-21) * daisyui3-compatible diff --git a/README.md b/README.md index 86047b7..5594364 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,8 @@ of the callback that your LiveView needs to implement in order to handle the eve ## Contribute 🤝 -Contributions are very welcome! +Contributions are very welcome! If you add some new feature, please also add a test that covers it if possible. If you don't know how to write the test, +I'm happy to help. At the very least, please make sure that your code changes don't break any existing tests. Use `mix test` to run the entire test suite, which is subdivided into 3 main files: diff --git a/mix.exs b/mix.exs index 6323e4c..27d6dd2 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule LiveSelect.MixProject do def project do [ app: app(), - version: "1.2.2", + version: "1.3.0", elixir: "~> 1.13", description: "Dynamic (multi)selection field for LiveView", elixirc_paths: elixirc_paths(Mix.env()), diff --git a/package.json b/package.json index 4b79788..c52f654 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "live_select", - "version": "1.2.2", + "version": "1.3.0", "description": "JS hooks for LiveSelect", "main": "priv/static/live_select.min.js", "repository": "git@github.com:maxmarcon/live_select.git",