swiftwasm / WebAPIKit

Access the DOM and other Web APIs from Swift! (Very much a WIP)
MIT License
62 stars 8 forks source link

Update to JavaScriptKit 0.9, add `Global` helpers #3

Closed MaxDesiatov closed 3 years ago

MaxDesiatov commented 3 years ago

Updates JavaScriptKit dependency to upstream 0.9 instead of using a fork as previously. I've updated a few helpers to use non-deprecated names and also added Global type and public let global = Global() with a few extensions on DOM types which for some reason don't seem to be declared in WebIDL.

Additional DOMKitDemo target and product are set up for easy manual test.