-
Notifications
You must be signed in to change notification settings - Fork 201
Upgrade from 6.3.0 to 6.4.0
This page collects the source-incompatible changes to be aware of when upgrading from js_of_ocaml 6.3 to js_of_ocaml 6.4.
Dom_html.mediaElement##play now returns unit Promise.t instead of unit.
Ignore the result (let _ = video##play) to keep the old behaviour, or use
the Promise module to await it.
- The SVG 1.1-only
getTransformToElementmethod has been removed. -
nearestViewportElement/farthestViewportElementare now typedoptdef(they can beundefined).
The non-standard Firefox DOMMouseScroll bindings are gone:
- the
mouseScrollEventclass type, - the
MouseScrollEventvariant oftaggedEvent, -
Dom_html.CoerceTo.mouseScrollEvent, -
Dom_html.Event._DOMMouseScroll.
Use the standard wheel event (Dom_html.Event.wheel / wheelEvent) instead.
Event-handler results are now bool Js.t Js.optdef, where undefined means
"no opinion" (do not override the default). This came out of the
onbeforeunload fix. Handlers that returned Js._true / Js._false still
type-check; update any code that pattern-matched on a plain bool t.
The method-name mangling was corrected, which renames a few bindings that were previously exposed under the wrong name. If you used any of the following, check #2350 for the exact new spelling:
Typed_array._BYTES_PER_ELEMENT_WebGL._MAX_RENDERBUFFER_SIZE_canvasElement##toDataURL_compression
-
Intl.Collator.comparenow returnsJs.number_tinstead ofint. -
EventSourceonopen/onerrornow receive a plainDom.eventinstead of amessageEvent. -
IntersectionObserver##takeRecordsresult is now wrapped inJs.t. -
Dom.attr##.ownerElementis now typedelement t opt readonly_prop.