Tags:
- π₯ [Breaking Change]
- π [New Feature]
- π [Bug Fix]
- π [Documentation]
- π [Internal]
- π [Polish]
- Corrected return type of
getPropertyValuefor CSS style attributes (it's nullable and now returns an option). - Corrected signature of
DomTokenList.toggleForcedto accept a boolean, denoting whether to toggle the class on or off. #136 - Corrected argument names of Canvas2d and Path2d bindings #133
VisualViewportbindings. #137Path2dis 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
selectionStartandselectionEndforinputandtextareaelements. #124
- Fix compatibility with ReScript 11 uncurried mode. #123
OffscreenCanvasbindings. #119
Url.toJSON()was emitting the wrong function name. #121- The
optionssignature inWebapi.Dom.CustomEvent'smakeWithOption. #122
Url.createObjectURLFromBlobbinding that takes aBlob.t. #106returnValuesetter forBeforeUnloadEvent. #110Webapi.FormData.makeWithHtmlFormbinding that takes aWebapi.Dom.HtmlFormElement.t. #108Canvas.toBlob&Canvas.toDataUrlmethods, with multiple argument variants. #111
Dom.CssStyleDeclaration.setPropertyValuewas emitting the wrong function name. #114
- CustomEvent Functor to make custom events with strongly typed
detailfields. #93
- Some
NodeAPIs do not trigger compile errors due to the argument swap, because both arguments wereNodeinstances. This logic error can cause severe migration headaches; the following methods had named arguments added to highlight places migration is necessary. #89appendChildcompareDocumentPositioncontainsinsertBeforeremoveChildreplaceChild
- Updated
History.scrollRestorationto useautoandmanualinstead of a boolean. #88 PopStateEvent.statenow returns a history state type instead of an open object. #88- Updated
InputEvent.datato return a nullable value. #90
Canvas2dbindingsdrawImage,drawImageScale, anddrawImageFulladded. #83InputEventbindings forinputType,dataTransferandgetTargetRanges. #90Node.insertAtEndbinding (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, andRadioNodeListbindings. #73
ofElementwas incorrectly returningDom.htmlElementtype instead of the enclosing element type. #60
- Removed
type_fromFetch.Requestmodule. It doesn't seem to be in any specifications.. #67
- Removed
previewfrom File bindings. It doesn't seem to be in any specifications.. #56 - Updated
MutationRecordbindingsnextSibling,attributeName,attributeNamespaceandoldValueto return nullable values. #59 - Corrected spelling of
nextSiblinginMutationRecord. #59
StaticRangebindings. #48- Added bindings for the File constructor. #56
- Added bindings for the Blob constructor. #56
DataTransferbindings. #51WorkerGlobalScope,WindowOrWorkerGlobalScope,WorkerNavigator, andWorkerLocationbindings. #57Responseconstructors toFetchbindings. #64
- Updated
Document.elementFromPointbinding to return a nullable value. #35 - Updated
getClientRectsbinding onDocumentandRangeto return aDom.RectList.t. #36
WebSocketbindings. #34Canvas2d.newPath2D()to bindPath2Dobjects. #45HtmlDocumentbindingshasFocusandactiveElementmoved toDocument. #41- They're still available on
HtmlDocumentthanks to theincludestructure
- They're still available on
- Added explicit values to all externals instead of using
= "". #40
- Imported
bs-fetchasWebapi.Fetchand converted it to "t-first". #31
- Converted project to rescript syntax. #18