Implement RFC-413 (#18749)

* Implement RFC 413

* Implement RFC 413

* Implement RFC 413

* Implement RFC 413

* https://github.com/nim-lang/Nim/pull/18749#discussion_r696320995

* Update lib/js/dom_extensions.nim

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

* Update lib/js/dom_extensions.nim

* https://github.com/nim-lang/Nim/pull/18749#discussion_r696913310

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
Juan Carlos 2021-08-26 18:07:54 -03:00 • committed by GitHub
commit 041edaa1df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 5 deletions

View file

@ -371,6 +371,9 @@
- Added `dom.setInterval`, `dom.clearInterval` overloads. - Added `dom.setInterval`, `dom.clearInterval` overloads.
- Merged `dom_extensions` module into `dom` module,
it was a module with a single line, see https://github.com/nim-lang/RFCs/issues/413
- Allow reading parameters when compiling for Nintendo Switch. - Allow reading parameters when compiling for Nintendo Switch.
- Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect - Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect

View file

@ -1771,3 +1771,6 @@ since (1, 3):
## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL ## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
proc readAsText*(f: FileReader, b: Blob|File, encoding = cstring"UTF-8") {.importcpp: "#.readAsText(#, #)".} proc readAsText*(f: FileReader, b: Blob|File, encoding = cstring"UTF-8") {.importcpp: "#.readAsText(#, #)".}
## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText ## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
since (1, 5):
proc elementsFromPoint*(n: DocumentOrShadowRoot; x, y: float): seq[Element] {.importcpp.}

View file

@ -1,5 +1,3 @@
import std/dom import std/dom
export elementsFromPoint
{.push importcpp.} {.deprecated: "use `std/dom` instead".}
proc elementsFromPoint*(n: DocumentOrShadowRoot; x, y: float): seq[Element]
{.pop.}

View file

@ -7,7 +7,6 @@ discard """
import import
asyncjs, asyncjs,
dom, dom,
dom_extensions,
jsconsole, jsconsole,
jsffi, jsffi,
jsre jsre