Skip to content

Latest commit

 

History

History
85 lines (53 loc) · 3.57 KB

File metadata and controls

85 lines (53 loc) · 3.57 KB

Changelog

Notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

Breaking changes:

  • The id function returns an ElementId instead of a String. (#58 by @nsaunders)
  • The setId function is parameterized by ElementId instead of String. (#58 by @nsaunders)
  • The getElementById function is parameterized by ElementId instead of String. (#58 by @nsaunders)
  • The className function returns a ClassName instead of a String. (#58 by @nsaunders)
  • The setClassName and getElementsByClassName functions are parameterized by ClassName instead of String. (#58 by @nsaunders)
  • The getAttribute, setAttribute, hasAttribute, and removeAttribute functions are parameterized by AttrName instead of String. (#58 by @nsaunders)

New features:

  • AttrName, ClassName, and PropName types have been added, migrated from web-html. (#58 by @nsaunders)
  • A new ElementId type, representing the value of an id property/attribute, has been added. (#58 by @nsaunders)

Bugfixes:

Other improvements:

v6.0.0 - 2022-04-27

Breaking changes:

  • Migrate FFI to ES modules (#51 by @JordanMartinez)
  • Unwrap returned Effect for doctype (#52 by @JordanMartinez)
  • Port getBoundingClientRect from web-html; set arg to Element (#53 by @JordanMartinez)

New features:

Bugfixes:

Other improvements:

v5.0.0 - 2021-02-26

Breaking changes:

  • Added support for PureScript 0.14 and dropped support for all previous versions (#31)
  • Change node manipulations to return Unit (#32)

New features:

  • Add support for ShadowRoot API (#34)
  • Add support for Element.matches and Element.closest (#39)

Bugfixes:

Other improvements:

  • Migrated CI to GitHub Actions and updated installation instructions to use Spago (#28, #30)
  • Added a CHANGELOG.md file and updated pull request template (#35, #36, #37)
  • Updated issue templates
  • Updated link to spec (#27)
  • Remove return {} from FFI functions for a small performance boost (#26)

v4.1.0 - 2020-06-07

  • Added Show instance for NodeType (@srghma)

v4.0.2 - 2020-05-18

  • Fixed FFI implementation for hasAttribute (#22, @srghma)

v4.0.1 - 2020-03-15

  • Add documentation explaining how to get hold of a Document in Web.DOM.Document (@hdgarrood, #19)

v4.0.0 - 2019-08-18

  • Fixed type of mutationObserver (@alextes)

v3.1.0 - 2019-08-18

  • Added classList for Element (@alextes)

v3.0.0 - 2019-06-02

  • nodeValue now returns Effect (Maybe String) as it is nullable (@bbarker)

v2.0.0 - 2019-02-23

  • Bumped -web-events dependency, Event.defaultPrevented is now effectful.

v1.0.0 - 2018-05-25

  • Initial release