New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rescript-webapi

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rescript-webapi - npm Package Versions

2

0.10.0

Diff
thespyder
published 0.10.0 •

Changelog

Source

0.10.0

:boom: Breaking Change
  • 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. https://github.com/TheSpyder/rescript-webapi/pull/136
  • Corrected argument names of Canvas2d and Path2d bindings https://github.com/TheSpyder/rescript-webapi/pull/133
:rocket: New Feature
  • VisualViewport bindings. https://github.com/TheSpyder/rescript-webapi/pull/137
  • Path2d is now a separate module from Canvas2d, with more complete bindings https://github.com/TheSpyder/rescript-webapi/pull/133
:bug: Bug Fix
  • Widened input type of Window.getComputedStyle, allowing subclasses of Element (such as HtmlElement).
thespyder
published 0.9.1 •

Changelog

Source

0.9.1

:bug: Bug Fix
  • Fix binding compatibility with ReScript 11, which removed _ variable mangling. https://github.com/TheSpyder/rescript-webapi/pull/129
thespyder
published 0.9.0 •

Changelog

Source

0.9.0

:boom: Breaking Change
  • Corrected return type of selectionStart and selectionEnd for input and textarea elements. https://github.com/TheSpyder/rescript-webapi/pull/124
:bug: Bug Fix
  • Fix compatibility with ReScript 11 uncurried mode. https://github.com/TheSpyder/rescript-webapi/pull/123
thespyder
published 0.8.0 •

Changelog

Source

0.8.0

:rocket: New Feature
  • OffscreenCanvas bindings. https://github.com/TheSpyder/rescript-webapi/pull/119
:bug: Bug Fix
  • Url.toJSON() was emitting the wrong function name. https://github.com/TheSpyder/rescript-webapi/pull/121
  • The options signature in Webapi.Dom.CustomEvent's makeWithOption. https://github.com/TheSpyder/rescript-webapi/pull/122
thespyder
published 0.7.0 •

Changelog

Source

0.7.0

:rocket: New Feature
  • Url.createObjectURLFromBlob binding that takes a Blob.t. https://github.com/TheSpyder/rescript-webapi/pull/106
  • returnValue setter for BeforeUnloadEvent. https://github.com/TheSpyder/rescript-webapi/pull/110
  • Webapi.FormData.makeWithHtmlForm binding that takes a Webapi.Dom.HtmlFormElement.t. https://github.com/TheSpyder/rescript-webapi/pull/108
  • Canvas.toBlob & Canvas.toDataUrl methods, with multiple argument variants. https://github.com/TheSpyder/rescript-webapi/pull/111
:bug: Bug Fix
  • Dom.CssStyleDeclaration.setPropertyValue was emitting the wrong function name. https://github.com/TheSpyder/rescript-webapi/pull/114
thespyder
published 0.6.1 •

Changelog

Source

0.6.1

:rocket: New Feature
  • CustomEvent Functor to make custom events with strongly typed detail fields. https://github.com/TheSpyder/rescript-webapi/pull/93
thespyder
published 0.6.0 •
thespyder
published 0.5.0 •

Changelog

Source

0.5.0

:boom: Breaking Change
  • Some Node APIs do not trigger compile errors due to the argument swap, because both arguments were Node instances. This logic error can cause severe migration headaches; the following methods had named arguments added to highlight places migration is necessary. https://github.com/TheSpyder/rescript-webapi/pull/89
    • appendChild
    • compareDocumentPosition
    • contains
    • insertBefore
    • removeChild
    • replaceChild
  • Updated History.scrollRestoration to use auto and manual instead of a boolean. https://github.com/TheSpyder/rescript-webapi/pull/88
  • PopStateEvent.state now returns a history state type instead of an open object. https://github.com/TheSpyder/rescript-webapi/pull/88
  • Updated InputEvent.data to return a nullable value. https://github.com/TheSpyder/rescript-webapi/pull/90
:rocket: New Feature
  • Canvas2d bindings drawImage, drawImageScale, and drawImageFull added. https://github.com/TheSpyder/rescript-webapi/pull/83
  • InputEvent bindings for inputType, dataTransfer and getTargetRanges. https://github.com/TheSpyder/rescript-webapi/pull/90
  • Node.insertAtEnd binding (which does parent.insertBefore(child, null)). https://github.com/TheSpyder/rescript-webapi/pull/89
:house: Internal
  • Deprecated Node.isSameNode (MDN recommends using === instead). https://github.com/TheSpyder/rescript-webapi/pull/89
thespyder
published 0.4.1 •

Changelog

Source

0.4.1

:rocket: New Feature
  • Added HTMLFormControlsCollection, HTMLOptionsCollection, HTMLFieldSetElement, Document.forms, HTMLFormElement.elements, HTMLObjectElement, HTMLOptGroupElement, HTMLOptionElement, HTMLOutputElement, HTMLSelectElement, HTMLTextAreaElement, and RadioNodeList bindings. https://github.com/TheSpyder/rescript-webapi/pull/73
thespyder
published 0.4.0 •
2