srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
101 stars 52 forks source link

Upgrade JS interop by removing dart:html dependency #193

Open maxlapides opened 2 months ago

maxlapides commented 2 months ago

"The Dart team recently overhauled the collection of features and APIs that allow developers access to JavaScript and browser bindings in their Dart code. This next generation of web interop not only improves user experience, but also enables Wasm support, aligning Dart with the future of the Web."

https://dart.dev/interop/js-interop

Looks like there is only one file that is using dart:html: https://github.com/srawlins/timezone/blob/master/lib/browser.dart#L16