Tags:
- π₯ [Breaking Change]
- π [New Feature]
- π [Bug Fix]
- π [Documentation]
- π [Internal]
- π [Polish]
- 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
VisualViewport
bindings. #137Path2d
is now a separate module fromCanvas2d
, with more complete bindings #133
- Widened input type of
Window.getComputedStyle
, allowing subclasses of Element (such as HtmlElement).
- Fix binding compatibility with ReScript 11, which removed
_
variable mangling. #129
- Corrected return type of
selectionStart
andselectionEnd
forinput
andtextarea
elements. #124
- Fix compatibility with ReScript 11 uncurried mode. #123
OffscreenCanvas
bindings. #119
Url.toJSON()
was emitting the wrong function name. #121- The
options
signature inWebapi.Dom.CustomEvent
'smakeWithOption
. #122
Url.createObjectURLFromBlob
binding that takes aBlob.t
. #106returnValue
setter forBeforeUnloadEvent
. #110Webapi.FormData.makeWithHtmlForm
binding that takes aWebapi.Dom.HtmlFormElement.t
. #108Canvas.toBlob
&Canvas.toDataUrl
methods, with multiple argument variants. #111
Dom.CssStyleDeclaration.setPropertyValue
was emitting the wrong function name. #114
- CustomEvent Functor to make custom events with strongly typed
detail
fields. #93
- Some
Node
APIs do not trigger compile errors due to the argument swap, because both arguments wereNode
instances. This logic error can cause severe migration headaches; the following methods had named arguments added to highlight places migration is necessary. #89appendChild
compareDocumentPosition
contains
insertBefore
removeChild
replaceChild
- Updated
History.scrollRestoration
to useauto
andmanual
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
Canvas2d
bindingsdrawImage
,drawImageScale
, anddrawImageFull
added. #83InputEvent
bindings forinputType
,dataTransfer
andgetTargetRanges
. #90Node.insertAtEnd
binding (which doesparent.insertBefore(child, null)
). #89
- Deprecated
Node.isSameNode
(MDN recommends using===
instead). #89
- Added
HTMLFormControlsCollection
,HTMLOptionsCollection
,HTMLFieldSetElement
,Document.forms
,HTMLFormElement.elements
,HTMLObjectElement
,HTMLOptGroupElement
,HTMLOptionElement
,HTMLOutputElement
,HTMLSelectElement
,HTMLTextAreaElement
, andRadioNodeList
bindings. #73
ofElement
was incorrectly returningDom.htmlElement
type instead of the enclosing element type. #60
- Removed
type_
fromFetch.Request
module. It doesn't seem to be in any specifications.. #67
- Removed
preview
from File bindings. It doesn't seem to be in any specifications.. #56 - Updated
MutationRecord
bindingsnextSibling
,attributeName
,attributeNamespace
andoldValue
to return nullable values. #59 - Corrected spelling of
nextSibling
inMutationRecord
. #59
StaticRange
bindings. #48- Added bindings for the File constructor. #56
- Added bindings for the Blob constructor. #56
DataTransfer
bindings. #51WorkerGlobalScope
,WindowOrWorkerGlobalScope
,WorkerNavigator
, andWorkerLocation
bindings. #57Response
constructors toFetch
bindings. #64
- Updated
Document.elementFromPoint
binding to return a nullable value. #35 - Updated
getClientRects
binding onDocument
andRange
to return aDom.RectList.t
. #36
WebSocket
bindings. #34Canvas2d.newPath2D()
to bindPath2D
objects. #45HtmlDocument
bindingshasFocus
andactiveElement
moved toDocument
. #41- They're still available on
HtmlDocument
thanks to theinclude
structure
- They're still available on
- Added explicit values to all externals instead of using
= ""
. #40
- Imported
bs-fetch
asWebapi.Fetch
and converted it to "t-first". #31
- Converted project to rescript syntax. #18