0.14.0
This is a breaking release that enables full support for SwiftWasm 5.6 and lays groundwork for future updates to DOMKit.
Specifically:
- The
ConvertibleToJSValueconformance onArrayandDictionaryhas been swapped from the== ConvertibleToJSValuecase to the: ConvertibleToJSValuecase.- This means that e.g.
[String]is nowConvertibleToJSValue, 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() }(ormapValues) to get an array/dictionary ofJSValuewhich you can then use asConvertibleToJSValue - add
.jsValueto the end of all of the values in the array/dictionary literal.
- This means that e.g.
Merged pull requests:
- Reenable integration tests (#180) via @kateinoigakukun
- Updates for DOMKit (#174) via @j-f1
- Add 5.6 release and macOS 12 with Xcode 13.3 to CI matrix (#176) via @MaxDesiatov