- feat: bind to new FormData(HtmlFormElement) by @andreypopp (#13)
- Migrate to Melange
- Remove bsdoc
- Removed peer dependency on
bsdoc
- Removed dev dependency on
bsdoc
to allow smooth installs on non-Mac OS
- 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
- Upgraded to [email protected] and added API doc generation
- Added
bs-fetch
dependency forFormData
bindings - Added bindings for
Blob
andFile
- Deprecated
File._type
forFile.type_
- Deprecated
Webapi.Dom.eventPhase
in favour ofWebapi.Dom.EventPhase.t
- (Breaking) fixed
Canvas2d.putImageData
, unfortunately this needs to be a breaking change because the JavaScript method itself doesn't accept optional arguments
- Fixed
document instanceof HTMLDocument
check to ensure it works across windows
- Fixed
element instanceof HTMLElement
check to ensure it works for elements from different windows - Un-deprecated the unsafe downcast functions
- 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
- Added
ResizeObserver
- Added
Window.performance
andPerformance.now
WheelEvent
now inherits the implementation ofMouseEvent
- Added
DomStringMap
- Changed
Window.open_
to have optionalfeatures
argument
- Added
keypress
event handler API - Added
selectionchange
event handler API - Added
Text.ofNode
- Added
Selection.setBaseAndExtent
- Added
NodeList.forEach
- Added
Node.asNode
- Added
File.size
- Added
URLSearchParams.forEach
- Added
Element.scrollBy
andElement.srollByWithOptions
- (Breaking) Changed
DomRect
coordinates to usefloat
instead ofint
- Added
File.name
- Added
width
,height
,setWidth
andsetHeight
toCanvasElement
- 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)
- Added
HtmlElement.focusPreventScroll
- Refined return type of
Node.cloneNode
andNode.cloneDeepNode
so it now returns the specific type of the cloned node.
- Added
Element.scrollTo
,Element.scrollToWithOptions
- Added
URLSearchParams.makeWithDict
andURLSearchParams.makeWithArray
- Added
bs.return nullable
toURLSearchParams.get
since it returnsnull
, notundefined
and therefore does not autmatically conform to the runtime representation ofoption
as previosuly assumed.
- 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
- Added
add...
andremove...
functions for drag event listeners toEventTarget
- (Breaking) Requires bs-platform > 4.0.0
- (Breaking) Changed
FocusEvent.relatedTarget
to returnoption
- Added
HtmlFormElement
andHtmlInputElement
- (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
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
- Added inheritance of
HtmlElement
and its ancestors toHtmlImageElement
- Deprecated
HtmlImageElement.onload
- Fixed inconsistencies with
HtmlImageElement.src
andHtmlImageElement.getSrc
, breaking the API - Fleshed out
HtmlImageElement
- Renamed
Document.docType
toDocument.doctype
to fix #95
- Support
[email protected]
. If your app isn't using that version, then don't upgrade to0.9.0
; otherwise, please do!
- 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
- 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
- Fix incorrect heuristic in
HtmlElement.ofElement
- 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