Skip to content

Latest commit

Β 

History

History
176 lines (108 loc) Β· 7.63 KB

CHANGELOG.md

File metadata and controls

176 lines (108 loc) Β· 7.63 KB

Changelog

Tags:

  • πŸ’₯ [Breaking Change]
  • πŸš€ [New Feature]
  • πŸ› [Bug Fix]
  • πŸ“ [Documentation]
  • 🏠 [Internal]
  • πŸ’… [Polish]

0.10.0

πŸ’₯ Breaking Change

  • Corrected return type of getPropertyValue for CSS style attributes (it's nullable and now returns an option).
  • Corrected signature of DomTokenList.toggleForced to accept a boolean, denoting whether to toggle the class on or off. #136
  • Corrected argument names of Canvas2d and Path2d bindings #133

πŸš€ New Feature

  • VisualViewport bindings. #137
  • Path2d is now a separate module from Canvas2d, with more complete bindings #133

πŸ› Bug Fix

  • Widened input type of Window.getComputedStyle, allowing subclasses of Element (such as HtmlElement).

0.9.1

πŸ› Bug Fix

  • Fix binding compatibility with ReScript 11, which removed _ variable mangling. #129

0.9.0

πŸ’₯ Breaking Change

  • Corrected return type of selectionStart and selectionEnd for input and textarea elements. #124

πŸ› Bug Fix

  • Fix compatibility with ReScript 11 uncurried mode. #123

0.8.0

πŸš€ New Feature

  • OffscreenCanvas bindings. #119

πŸ› Bug Fix

  • Url.toJSON() was emitting the wrong function name. #121
  • The options signature in Webapi.Dom.CustomEvent's makeWithOption. #122

0.7.0

πŸš€ New Feature

  • Url.createObjectURLFromBlob binding that takes a Blob.t. #106
  • returnValue setter for BeforeUnloadEvent. #110
  • Webapi.FormData.makeWithHtmlForm binding that takes a Webapi.Dom.HtmlFormElement.t. #108
  • Canvas.toBlob & Canvas.toDataUrl methods, with multiple argument variants. #111

πŸ› Bug Fix

  • Dom.CssStyleDeclaration.setPropertyValue was emitting the wrong function name. #114

0.6.1

πŸš€ New Feature

  • CustomEvent Functor to make custom events with strongly typed detail fields. #93

0.5.0

πŸ’₯ Breaking Change

  • Some Node APIs do not trigger compile errors due to the argument swap, because both arguments were Node instances. This logic error can cause severe migration headaches; the following methods had named arguments added to highlight places migration is necessary. #89
    • appendChild
    • compareDocumentPosition
    • contains
    • insertBefore
    • removeChild
    • replaceChild
  • Updated History.scrollRestoration to use auto and manual instead of a boolean. #88
  • PopStateEvent.state now returns a history state type instead of an open object. #88
  • Updated InputEvent.data to return a nullable value. #90

πŸš€ New Feature

  • Canvas2d bindings drawImage, drawImageScale, and drawImageFull added. #83
  • InputEvent bindings for inputType, dataTransfer and getTargetRanges. #90
  • Node.insertAtEnd binding (which does parent.insertBefore(child, null)). #89

🏠 Internal

  • Deprecated Node.isSameNode (MDN recommends using === instead). #89

0.4.1

πŸš€ New Feature

  • Added HTMLFormControlsCollection, HTMLOptionsCollection, HTMLFieldSetElement, Document.forms, HTMLFormElement.elements, HTMLObjectElement, HTMLOptGroupElement, HTMLOptionElement, HTMLOutputElement, HTMLSelectElement, HTMLTextAreaElement, and RadioNodeList bindings. #73

0.3.2

πŸ› Bug Fix

  • ofElement was incorrectly returning Dom.htmlElement type instead of the enclosing element type. #60

0.3.1

πŸ’₯ Breaking Change

  • Removed type_ from Fetch.Request module. It doesn't seem to be in any specifications.. #67

0.3.0

πŸ’₯ Breaking Change

  • Removed preview from File bindings. It doesn't seem to be in any specifications.. #56
  • Updated MutationRecord bindings nextSibling, attributeName, attributeNamespace and oldValue to return nullable values. #59
  • Corrected spelling of nextSibling in MutationRecord. #59

πŸš€ New Feature

  • StaticRange bindings. #48
  • Added bindings for the File constructor. #56
  • Added bindings for the Blob constructor. #56
  • DataTransfer bindings. #51
  • WorkerGlobalScope, WindowOrWorkerGlobalScope, WorkerNavigator, and WorkerLocation bindings. #57
  • Response constructors to Fetch bindings. #64

0.2.0

πŸ’₯ Breaking Change

  • Updated Document.elementFromPoint binding to return a nullable value. #35
  • Updated getClientRects binding on Document and Range to return a Dom.RectList.t. #36

πŸš€ New Feature

  • WebSocket bindings. #34
  • Canvas2d.newPath2D() to bind Path2D objects. #45
  • HtmlDocument bindings hasFocus and activeElement moved to Document. #41
    • They're still available on HtmlDocument thanks to the include structure

🏠 Internal

  • Added explicit values to all externals instead of using = "". #40

0.1.3

πŸ’₯ Breaking Change

  • Imported bs-fetch as Webapi.Fetch and converted it to "t-first". #31

🏠 Internal

  • Converted project to rescript syntax. #18

0.1.2

πŸš€ New Feature

  • scrollToWithOptions binding to window. #26
  • IntersectionObserver and IntersectionObserverEntry bindings. #27

0.1.1

πŸ’₯ Breaking Change

  • Changed all send.pipe externals to send, making the whole project "t-first". #8
  • Removed deprecated APIs. #16
  • Updated Window.getSelection binding to return an option. #15