Release 0.2.2

This commit is contained in:
Bodil Stokke 2020-02-07 17:36:14 +00:00
parent 0950c82294
commit 5f652f1840
3 changed files with 45 additions and 32 deletions

View File

@ -2,55 +2,62 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project
and this project adheres to [Semantic adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
Versioning](http://semver.org/spec/v2.0.0.html).
## [0.2.2] - 2020-02-07
## Fixed
- Changed some internal uses of `into_iter()` to `iter()` for future proofing. (#78)
## [0.2.1] - 2019-06-28 ## [0.2.1] - 2019-06-28
### Added ### Added
- Most types now implement `Send`. (#53) - Most types now implement `Send`. (#53)
- All tags now support the ARIA `role` attribute. (#47) - All tags now support the ARIA `role` attribute. (#47)
- The `text!()` macro now accepts expressions as value arguments. (#48) - The `text!()` macro now accepts expressions as value arguments. (#48)
- You can now create "unsafe" text nodes with the `unsafe_text!()` macro, which - You can now create "unsafe" text nodes with the `unsafe_text!()` macro, which won't be quoted at
won't be quoted at all when stringifying, even if they contain HTML tags. This all when stringifying, even if they contain HTML tags. This is a meaningless distinction when
is a meaningless distinction when creating DOM nodes, however, and unsafe text creating DOM nodes, however, and unsafe text nodes will behave like normal text nodes in this
nodes will behave like normal text nodes in this case. (#39) case. (#39)
### Changed ### Changed
- Text in attributes are quoted less aggressively when stringified. (#26, #49) - Text in attributes are quoted less aggressively when stringified. (#26, #49)
- Attribute type conversion is now using the recently stabilised `TryFrom` - Attribute type conversion is now using the recently stabilised `TryFrom` instead of `From`, to
instead of `From`, to avoid relying on panicking `From` implementations to avoid relying on panicking `From` implementations to detect conversion errors, though the
detect conversion errors, though the conversions inside the macro will still conversions inside the macro will still panic if they fail. The appropriate `TryFrom`
panic if they fail. The appropriate `TryFrom` implementations have been added implementations have been added to `Class`, `Id`, `SpacedList` and `SpacedSet`, and the
to `Class`, `Id`, `SpacedList` and `SpacedSet`, and the corresponding `From` corresponding `From` implementations have been removed.
implementations have been removed.
## [0.2.0] - 2019-03-16 ## [0.2.0] - 2019-03-16
### Added ### Added
* Support for the [Dodrio](https://github.com/fitzgen/dodrio) virtual DOM renderer: the `dodrio_macro` feature flag enables the `typed_html::dodrio` macro, which generates code to build a `dodrio::Node` directly, without going via `VNode`s. (#38) - Support for the [Dodrio](https://github.com/fitzgen/dodrio) virtual DOM renderer: the
`dodrio_macro` feature flag enables the `typed_html::dodrio` macro, which generates code to
build a `dodrio::Node` directly, without going via `VNode`s. (#38)
### Fixed ### Fixed
* Added the missing attributes to the `<video>` tag, which was previously listed as having none. (#32) - Added the missing attributes to the `<video>` tag, which was previously listed as having none.
(#32)
## [0.1.1] - 2018-11-29 ## [0.1.1] - 2018-11-29
### Added ### Added
* `typed-html` now works on stable rustc. (#1) - `typed-html` now works on stable rustc. (#1)
* All elements and HTML marker traits now implement `IntoIterator`, so you can return them directly - All elements and HTML marker traits now implement `IntoIterator`, so you can return them
from a group. (#12) directly from a group. (#12)
### Fixed ### Fixed
* Boolean flags are now correctly rendered as empty when stringifying. (#13, #14) - Boolean flags are now correctly rendered as empty when stringifying. (#13, #14)
* Non-self-closing tags are now correctly rendered with a closing tag in the HTML style, rather than - Non-self-closing tags are now correctly rendered with a closing tag in the HTML style, rather
in the XML style. (#15, #16) than in the XML style. (#15, #16)
## [0.1.0] - 2018-11-17 ## [0.1.0] - 2018-11-17

View File

@ -1,6 +1,6 @@
[package] [package]
name = "typed-html-macros" name = "typed-html-macros"
version = "0.2.1" version = "0.2.2"
edition = "2018" edition = "2018"
authors = ["Bodil Stokke <bodil@bodil.org>"] authors = ["Bodil Stokke <bodil@bodil.org>"]
build = "build.rs" build = "build.rs"

View File

@ -1,6 +1,6 @@
[package] [package]
name = "typed-html" name = "typed-html"
version = "0.2.1" version = "0.2.2"
edition = "2018" edition = "2018"
authors = ["Bodil Stokke <bodil@bodil.org>"] authors = ["Bodil Stokke <bodil@bodil.org>"]
license = "MPL-2.0+" license = "MPL-2.0+"
@ -13,12 +13,15 @@ keywords = ["jsx", "html", "wasm"]
[badges] [badges]
travis-ci = { repository = "bodil/typed-html" } travis-ci = { repository = "bodil/typed-html" }
maintenance = { status = "actively-developed" } maintenance = { status = "looking-for-maintainer" }
[package.metadata.docs.rs]
all-features = true
[dependencies] [dependencies]
typed-html-macros = { path = "../macros" } typed-html-macros = "0.2.2"
strum = "0.16.0" strum = "0.17"
strum_macros = "0.16.0" strum_macros = "0.17"
mime = "0.3.13" mime = "0.3.13"
language-tags = "0.2.2" language-tags = "0.2.2"
htmlescape = "0.3.1" htmlescape = "0.3.1"
@ -26,7 +29,10 @@ proc-macro-hack = "0.5.4"
proc-macro-nested = "0.1.3" proc-macro-nested = "0.1.3"
stdweb = { version = "0.4.14", optional = true } stdweb = { version = "0.4.14", optional = true }
dodrio = { version = "0.1.0", optional = true } dodrio = { version = "0.1.0", optional = true }
web-sys = { version = "0.3.16", optional = true, features = ["Event", "Element"] } web-sys = { version = "0.3.16", optional = true, features = [
"Event",
"Element"
] }
[features] [features]
dodrio_macro = ["web-sys", "dodrio", "typed-html-macros/dodrio"] dodrio_macro = ["web-sys", "dodrio", "typed-html-macros/dodrio"]