preact-custom-element

Wrap your component up as a custom element

MIT License

Downloads
137.3K
Stars
352
Committers
14

Bot releases are hidden (Show)

preact-custom-element - 4.3.0 Latest Release

Published by JoviDeCroock about 1 year ago

Add support for shadow DOM closed mode #75

preact-custom-element - 4.2.1

Published by marvinhagemeister about 4 years ago

  • Fix crash with empty attribute values (#51, thanks @marvinhagemeister)
  • Streamline vdom function signature (#46, thanks @marvinhagemeister)
preact-custom-element - 4.2.0 - Context passthrough

Published by marvinhagemeister about 4 years ago

Features

  • Pass context across Custom Element boundaries (thanks, @marvinhagemeister @ffriedl89 #43)
  • Reflect DOM properties to DOM attributes and more importantly Preact props (thanks, @marvinhagemeister #44)

Maintenance

  • Simplify test suite (thanks, @marvinhagemeister #45)
preact-custom-element - 4.1.0

Published by marvinhagemeister about 4 years ago

  • Change detachedCallback to disconnectedCallback to match Custom Elements v1 spec (thanks @filipbech, #38)
  • Add support for slot as props (thanks, @marvinhagemeister #36)
preact-custom-element - 4.0.0

Published by marvinhagemeister about 4 years ago

  • Hyphenate camelCased Preact props (thanks @tyom @bspaulding #30)
  • Add support for shadow option (thanks @developit #27)
  • Support zero-mutation hydration via hydrate attribute (thanks @developit #24)
  • Refactor internals for size improvements (thanks @developit #21)

Maintenance

  • Update README (thanks @developit @marvinhagemeister #25 #22)
  • Switch to GitHub Actions (thanks @ForsakenHarmony #20)
Package Rankings
Top 1.93% on Npmjs.org
Top 6.67% on Proxy.golang.org
Related Projects