diff --git a/crate/guides/changelog.md b/crate/guides/changelog.md index 14f3d86..eaa207f 100644 --- a/crate/guides/changelog.md +++ b/crate/guides/changelog.md @@ -1,11 +1,37 @@ # Changelog -# Changelog - [unreleased] - - (placeholder) +## v0.6.0 +- Implemented `UpdateEl` for `Filter` and `FilterMap`. +- Added method `El::is_custom(&self)`. +- Fixed custom elements patching (#325). +- Removed unnecessary error message for comment nodes. +- [BREAKING] Removed deprecated `update` and `trigger_update_ev`. +- [BREAKING] Removed the remains of lifecycle hooks. +- Fixed `value` and `checked` setting for input elements (a bug in VirtualDOM patch algorithm). +- [BREAKING] Removed unpredictable internal input listeners - Seed will not longer react to external input value changes. +- [BREAKING] Use `EventHandler` instead of `Listener`. (`Listener` is now used as the internal DOM EventListener representation.) +- [deprecated] - `raw_ev` is deprecated in favor of `ev`. Functionality is the same. +- Improved performance - rewritten event-handling and other refactors in VirtualDOM. +- Fixed processing of multiple event-handlers (#138). +- Added DOM Element references - see `ElRef` and examples (`canvas`, `user_media` or `todomvc`) (#115). +- Removed `Ms: Clone` restriction as much as possible. +- [BREAKING] Added or changed `Custom` variant from `Custom(String)` to `Custom(Cow<'static, str>)` + in `Ev`, `Tag`, `At` and `St`. Use function `from` to create custom entities (e.g. `At::from("my-attribute")`) (#208). +- Added macro `nodes!`. It accepts `Node` and `Vec`. +- Refactored all examples. +- Fixed and rewritten example `todomvc`. +- Renamed `counter` example to `counter_advanced`. +- Renamed `drop` example to `drop_zone`. +- Removed `server_interaction_detailed` example. +- Added a new simpler `counter` example. +- Changed example in the main `README.md`. +- Added flag `#![forbid(unsafe_code)]` so the Seed will be marked as a safe library by the Rust community tools. +- Removed `clone` restriction from the method `Effect::map_msg`. +- Implemented `UpdateEl` for `FlatMap`. + ## v0.5.1 - [BREAKING] `MessageMapper::map_message` changed to `MessageMapper::map_msg`. - [BREAKING] `fetch` and `storage` moved to `seed::browser::service::{fetch, storage}`, @@ -16,7 +42,7 @@ but reimported at the lib level. Ie: `seed::fetch`, and `seed::storage`. - Export `Attrs`, `Style`, `Listener`. ie, can import with `seed::Style` etc. - Fixed a bug causing the docs not to build. -## 0.5.0 +## v0.5.0 - Added helper `seed::canvas()`, and `seed::canvas_context()` helper functions. - Fixed `Url` parsing (resolves issue with hash routing). - [BREAKING] `From for Url` changed to `TryFrom for Url`. diff --git a/crate/guides/view.md b/crate/guides/view.md index 2304a7f..bc00287 100644 --- a/crate/guides/view.md +++ b/crate/guides/view.md @@ -193,8 +193,8 @@ For boolean attributes that are handled by presense or absense, like `disabled`, ```rust fn a_component() -> Node { // ... - input![ attrs!{At::Typed => "checkbox"; At::Checked => true.as_at_value()} ] - input![ attrs!{At::Autofocus => true.as_at_value()} ] + input![ attrs!{At::Type => "checkbox"; At::Checked => true.as_at_value()} ] + input![ attrs!{At::AutoFocus => true.as_at_value()} ] // ... } ``` diff --git a/crate/src/lib.rs b/crate/src/lib.rs index 2d08173..f17d7ca 100644 --- a/crate/src/lib.rs +++ b/crate/src/lib.rs @@ -21,8 +21,8 @@ use serde_json; use std::{convert::identity, fmt}; use Visibility::*; -const SEED_VERSION: &str = "0.5.1"; -const SEED_VERSION_DATE: &str = "Dec 28, 2019"; +const SEED_VERSION: &str = "0.6.0"; +const SEED_VERSION_DATE: &str = "Feb 1, 2020"; const TITLE_SUFFIX: &str = "Seed"; const STORAGE_KEY: &str = "seed"; const USER_AGENT_FOR_PRERENDERING: &str = "ReactSnap";