virtual-node 0.5.1

A standalone Virtual DOM
Documentation
[package]
name = "virtual-node"
version = "0.5.1"
description = "A standalone Virtual DOM"
authors = ["Chinedu Francis Nwafili <frankie.nwafili@gmail.com>"]
keywords = ["virtual", "dom", "wasm", "browser", "webassembly"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/chinedufn/percy"
documentation = "https://chinedufn.github.io/percy/api/virtual_node/"
edition = "2018"

[features]
# When we introduced the "web" feature in 2026, we made it the default to avoid introducing a breaking change.
# We have not yet thought whether it is best to have it enabled by default.
default = ["web"]
web = ["js-sys", "wasm-bindgen", "web-sys"]

[dependencies]
html-validation = {path = "../html-validation", version = "0.1.1"}

js-sys = {optional = true, version = "0.3"}
wasm-bindgen = {optional = true, version = "0.2"}

[dependencies.web-sys]
optional = true
version = "0.3"
features = [
    "Comment",
    "Document",
    "Element",
    "HtmlElement",
    "Event",
    "EventTarget",
    "HtmlCollection",
    "Node",
    "NodeList",
    "Text",
    "Window",
    "Event",
    "MouseEvent",
    "InputEvent",
]