Skip to content

0.14.0

Compare
Choose a tag to compare
@MaxDesiatov MaxDesiatov released this 08 Apr 08:44
· 484 commits to main since this release
9a3b7d5

This is a breaking release that enables full support for SwiftWasm 5.6 and lays groundwork for future updates to DOMKit.

Specifically:

  • The ConvertibleToJSValue conformance on Array and Dictionary has been swapped from the == ConvertibleToJSValue case to the : ConvertibleToJSValue case.
    • This means that e.g. [String] is now ConvertibleToJSValue, but [ConvertibleToJSValue] no longer conforms;
    • the jsValue() method still works in both cases;
    • to adapt existing code, use one of these approaches:
      • use generics where possible (for single-type arrays)
      • call .map { $0.jsValue() } (or mapValues) to get an array/dictionary of JSValue which you can then use as ConvertibleToJSValue
      • add .jsValue to the end of all of the values in the array/dictionary literal.

Merged pull requests: