temporal_js_polyfill 0.0.2 copy "temporal_js_polyfill: ^0.0.2" to clipboard
temporal_js_polyfill: ^0.0.2 copied to clipboard

Loads the TC39 Temporal polyfill for Dart web apps that need to support browsers without native Temporal. Injects temporal-polyfill into the page and resolves once the global Temporal object is availa [...]

0.0.2 #

Published as a standalone package on pub.flutter-io.cn alongside the rest of the suite.

0.0.1 #

Initial release:

  • loadTemporalPolyfill() — injects the TC39 Temporal polyfill into the page and resolves once the global Temporal object is available
  • No-op stub on non-web (native / VM) platforms so the same main.dart compiles on every target
  • temporalIsSupported — constant indicating whether the current platform has native Temporal support
0
likes
130
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Loads the TC39 Temporal polyfill for Dart web apps that need to support browsers without native Temporal. Injects temporal-polyfill into the page and resolves once the global Temporal object is available. Pairs with package:temporal or package:temporal_js.

Repository (GitHub)
View/report issues

Topics

#date #time #temporal #web #polyfill

License

unknown (license)

Dependencies

web

More

Packages that depend on temporal_js_polyfill