rev to 0.4.1 in preparation for publishing (#135)

2 files changed
tree: 398049665519f77681f07cb125590554c42a8407
  1. .github/
  2. bindings_generator/
  3. example/
  4. lib/
  5. test/
  6. tool/
  7. .gitignore
  8. analysis_options.yaml
  9. CHANGELOG.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
README.md

Dart CI pub package package publisher

Lightweight browser API bindings built around JS static interop.

What's this?

This package exposes browser APIs. It's generated from the Web IDL definitions and uses recent Dart language features for zero-overhead bindings.

This package is intended to replace dart:html and similar Dart SDK libraries. It will support access to browser APIs from Dart code compiled to either JavaScript or WebAssembly.

Status

The APIs in this package are still fairly provisional and could change rapidly. We'll continue to use semantic versioning as we evolve the APIs.

Usage

import 'package:web/web.dart';

void main() {
  final div = document.querySelector('div') as HTMLDivElement;
  div.text = 'Text set at ${DateTime.now()}';
}

Web IDL version

Based on:

For instructions on re-generating the DOM bindings, see bindings_generator/README.md.