Repository navigation
-
sdk: ^3.13.0
-
web_utils.dart:- Fix: no longer re-exports
package:web's deprecatedTouchListConvert, whosetoListmade
TouchList.toList()ambiguous withTouchListExtension.toList(compile error).
- Fix: no longer re-exports
-
NodeExtension:- Fix:
clearNodes(andclearon a non-Elementnode, e.g. aDocumentFragment) threw aNotFoundError:
it calledremoveChildon each child instead of on the node itself.
- Fix:
-
IDBRequestExtension.process:- Removed an
invalid_runtime_check_with_js_interop_typesignore: the cursor is now checked and cast from
request.resultinstead of the genericT?.
- Removed an
-
Now based on
js_interop_utils1.1.0 (re-exported), which brings:isA-basedasJSAny/asJSObject:isNode/isElement/isHTMLElementandWeb.isOf/castNullableare
reliablyfalse/nullfor non-JS Dart objects withdart2js.- Typed lists
.toJS(e.g.Uint8ClampedListforImageData,Float64ListforBlob) produce JS typed arrays
instead of JSArrays. - New
JSIterable,prototype/isPlainObjectandisJSFunctionhelpers.
-
Tests:
- Added integration tests (
test/web_utils_integration_test.dart): IndexedDB (openDatabase,processwith
cursors and errors),localStorage, DOM building, typed events, canvas/ImageData/Blob/FileReader/FileList. - Added unit tests for the whole public API (
test/web_utils_api_test.dart), including everyWebtype and DOM
type check (cached and uncached).
- Added integration tests (
-
Dependencies:
- js_interop_utils: ^1.1.0
- lints: ^6.1.0
- test: ^1.32.0
- dependency_validator: ^5.1.0