package melange-webapi
Melange bindings to the DOM
Install
Dune Dependency
Authors
Maintainers
Sources
melange-webapi-0.21.0.tbz
sha256=13005ea0d9f1d688389cc3abf4154fc61da60aaaf541c9d3ee508366bc1b12c1
sha512=33a05a521a546bb21dc6372c8d196d39da164d2352c26985169e9045f68147dae6c092b6e4249fa8cc6198223b90e1d29bdd581c00cc46e0dce7c1144dd48b18
doc/CHANGELOG.html
0.21.0
- feat: bind to new FormData(HtmlFormElement) by @andreypopp (#13)
- fix: compatibilty with Melange v3 by @anmonteiro (#16)
0.20.0
- Migrate to Melange
- Remove bsdoc
0.19.2
- Removed peer dependency on
bsdoc
0.19.1
- Removed dev dependency on
bsdoc
to allow smooth installs on non-Mac OS
0.19.0
- Added bindings to
ReadableStream
- Added
Webapi.Url.makeWith
- Deprecated
Webapi.Url.makeWithBase
in favor ofWebapi.Url.makeWith
- (Breaking) Fixed the binding for
Webapi.Url.URLSearchParams.entries
to return(string, string)
- Added
Webapi.Dom.Node.replaceChild
0.18.0
- Upgraded to bs-platform@7.1.0 and added API doc generation
- Added
bs-fetch
dependency forFormData
bindings - Added bindings for
Blob
andFile
- Deprecated
File._type
forFile.type_
0.17.1 (2020-07-01)
- Deprecated
Webapi.Dom.eventPhase
in favour ofWebapi.Dom.EventPhase.t
0.17.0 (2020-06-29)
- (Breaking) fixed
Canvas2d.putImageData
, unfortunately this needs to be a breaking change because the JavaScript method itself doesn't accept optional arguments
0.16.2 (2020-06-29)
- Fixed
document instanceof HTMLDocument
check to ensure it works across windows
0.16.1 (2020-06-24)
- Fixed
element instanceof HTMLElement
check to ensure it works for elements from different windows - Un-deprecated the unsafe downcast functions
0.16.0 (2020-06-16)
- Fixed
DomStringMap.unsafeDeleteKey
for BuckleScript 8 - Removed
main
file frompackage.json
- Removed JS outputs except for tests
- Enabled more warnings and errors
- Used
instanceof
to implement downcasts and deprecated the unsafe downcasts
0.15.9 (2020-03-14)
- Added
ResizeObserver
0.15.8 (2020-02-22)
- Added
Window.performance
andPerformance.now
0.15.6 (2020-02-08)
WheelEvent
now inherits the implementation ofMouseEvent
0.15.6 (2019-11-20)
- Added
DomStringMap
- Changed
Window.open_
to have optionalfeatures
argument
0.15.5 - (2019-10-09)
- Added
keypress
event handler API - Added
selectionchange
event handler API - Added
Text.ofNode
0.15.4 - (2019-09-02)
- Added
Selection.setBaseAndExtent
0.15.3 - (2019-08-22)
- Added
NodeList.forEach
- Added
Node.asNode
0.15.2 - (2019-05-25)
- Added
File.size
0.15.1 - (2019-05-17)
- Added
URLSearchParams.forEach
- Added
Element.scrollBy
andElement.srollByWithOptions
0.15.0 - (2019-05-11)
- (Breaking) Changed
DomRect
coordinates to usefloat
instead ofint
0.14.4 - (2019-05-04)
- Added
File.name
0.14.3 - (2019-04-28)
- Added
width
,height
,setWidth
andsetHeight
toCanvasElement
0.14.0 - (2019-04-15)
- Removed deprecated
Webapi.Dom.onload
function - Removed deprecated
Webapi.File.Url
module alias - Restructured internal module layout (non-breaking for modules accessed through the
Webapi
top-level module, but breaking if internal*Re
modules have been accessed directly) - Enforce private modules (effectively a formality and non-breaking)
0.13.6 - (2019-03-22)
- Added
HtmlElement.focusPreventScroll
- Refined return type of
Node.cloneNode
andNode.cloneDeepNode
so it now returns the specific type of the cloned node.
0.13.5 - (2019-03-15)
- Added
Element.scrollTo
,Element.scrollToWithOptions
0.13.4 - (2019-02-24)
- Added
URLSearchParams.makeWithDict
andURLSearchParams.makeWithArray
0.13.3 - (2019-02-19)
- Added
bs.return nullable
toURLSearchParams.get
since it returnsnull
, notundefined
and therefore does not autmatically conform to the runtime representation ofoption
as previosuly assumed.
0.13.2 - (2019-01-16)
- Fixed signature of
NamedNodeMap.toArray
, which returnedelement
but should returnattr
(considere non-breaking since it was just plain wrong) - Added
add...
andremovePopStateEventListener
toWindow
- Added
add...
andremove...
functions for touch and animation event listeners toEventTarget
0.13.1 - (2018-11-11)
- Added
add...
andremove...
functions for drag event listeners toEventTarget
0.13.0 - (2018-10-09)
- (Breaking) Requires bs-platform > 4.0.0
- (Breaking) Changed
FocusEvent.relatedTarget
to returnoption
- Added
HtmlFormElement
andHtmlInputElement
0.12.0 - (2018-09-16)
- (Breaking) Fixed return type if
StorageEvent.oldValue
andStorageEvent.newValue
. They should benullable
, but were not. - Added
Url
andUrlSearchParams
- Deprecated
Webapi.File.Url
in favor ofWebapi.Url
0.11.0 - (2018-08-02)
EventTarget.dispatchEvent
now take aDom.event_like(_)
instead of justDom.event
, so it will accept any event subtype.Window.pageXOffset
,pageYOffset
,scrollX
,scrollY
,scrollLeft
andscrollTop
now returnfloat
s instead ofint
s, andWindow.scroll
,scrollBy
,scrollTo
,setScrollLeft
andsetScrollTop
takefloat
s instead ofint
sHtmlElement.offsetParent
now returns anoption
Selection.anchorNode
andSelection.focusNode
now returnoption
sElement.closest
now returns anoption
0.10.0 - (2018-06-14)
- Added inheritance of
HtmlElement
and its ancestors toHtmlImageElement
- Deprecated
HtmlImageElement.onload
- Fixed inconsistencies with
HtmlImageElement.src
andHtmlImageElement.getSrc
, breaking the API - Fleshed out
HtmlImageElement
0.9.1 - (2018-04-19)
- Renamed
Document.docType
toDocument.doctype
to fix #95
0.9.0 - (2018-04-17)
- Support
bs-platform@3.0.0
. If your app isn't using that version, then don't upgrade to0.9.0
; otherwise, please do!
0.8.0 - (2018-01-03)
- Added
EventTarget.unsafeAsDocument
,EventTarget.unsafeAsElement
andEventTarget.unsafeAsWindow
functions - Removed deprecated
Bs_webapi
module` - Added event-specific listener APIs to
EventTarget
, e.g.EventTarget.addMouseMoveListener(mouseEvent => ...)
- Added
requestCancellableAnimationFrame
andcancelAnimationFrame
- Fixed msising
@bs.return
annotations causing type unsoundness - Fixed typo in encoding of
insertPosition
type - Added
Dom.HtmlImageElement
,File
andFile.Url
- Fixed
HtmlElement.offsetParent
returningint
instead ofDom.Element
0.7.0 - (2017-09-22)
- Added
Webapi
module, DeprecatedBs_webapi
- Removed deprecated Storage API
- Add
Document.unsafeAshtmlDocument
,Element.unsafeAsHtmlElement
. DeprecatedDocument.asHtmlDocument
,Element.asHtmlElement
,HtmlEleement.ofElement
. - Changed
Dom.history
andDom.location
to usewindow
instead ofdocument
0.6.1 - (2017-09-10)
- Fix incorrect heuristic in
HtmlElement.ofElement
0.6.0 - (2017-09-10)
- Renamed createText to CreateTextNode, according to spec
- Deprecated Storage API, it's been upstreamed to
bs-platform
asDom.Storage
- Removed
ReasonJs
namespace. UseBs_webapi
instead
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
- 0.20.0
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.0
- 0.17.1 (2020-07-01)
- 0.17.0 (2020-06-29)
- 0.16.2 (2020-06-29)
- 0.16.1 (2020-06-24)
- 0.16.0 (2020-06-16)
- 0.15.9 (2020-03-14)
- 0.15.8 (2020-02-22)
- 0.15.6 (2020-02-08)
- 0.15.6 (2019-11-20)
- 0.15.5 - (2019-10-09)
- 0.15.4 - (2019-09-02)
- 0.15.3 - (2019-08-22)
- 0.15.2 - (2019-05-25)
- 0.15.1 - (2019-05-17)
- 0.15.0 - (2019-05-11)
- 0.14.4 - (2019-05-04)
- 0.14.3 - (2019-04-28)
- 0.14.0 - (2019-04-15)
- 0.13.6 - (2019-03-22)
- 0.13.5 - (2019-03-15)
- 0.13.4 - (2019-02-24)
- 0.13.3 - (2019-02-19)
- 0.13.2 - (2019-01-16)
- 0.13.1 - (2018-11-11)
- 0.13.0 - (2018-10-09)
- 0.12.0 - (2018-09-16)
- 0.11.0 - (2018-08-02)
- 0.10.0 - (2018-06-14)
- 0.9.1 - (2018-04-19)
- 0.9.0 - (2018-04-17)
- 0.8.0 - (2018-01-03)
- 0.7.0 - (2017-09-22)
- 0.6.1 - (2017-09-10)
- 0.6.0 - (2017-09-10)