- Discontinued, please, use Typings instead.
- Fix Invertase logo
- Use .pubignore to override .gitignore when publishing
- Now default parameters are aways passed to anonymous constructors, ie
ResponseInit().status == 200 // true
- JsArray now fully complies to JavaScript
Array
- The package is now sponsored by Invertase.io
- Rebuilt the forbidden words list, so some getters and methods are now using their original name, ie
mGet
is nowget
- Fixed a bug that we would use
null
instead ofundefined
in some factory anonymous ctors likeRequestInit
- Added
static
methods to the originalclass
- Use
self
rather thanwindow
when accessing context.
- Fixes
JsArray
to work with Dart 3 (only in dart2js, DDC still needs fixing)
- Preparing for Dart 3
- Correctly translate enums to their JS types. Previously, the enum
name
getter was being provided to the interop layer, but in cases where this is camel cased the value was incorrect (same for the reverse). - Updated bindings.
- Adjusted to use the factory generator of
staticInterop
- Changed
Map
features to use builtin JS functions - Added
join
toJsArray
- Added
toList()
toJsArray
so you can use regularfor-in
loops.
(See dart-lang/sdk#48327) - Started using the curated data from W3C to generate the source
- Added
Map
andIterable
functionality to maplike, iterable and setlike JS types.
- Typos readme
- Added more info to the readme and todo list
- Fixed some typos in example
- Updated README
- Changed Strings to Enums where possible. Ie:
document.visibilityState
is of typeenum VisibilityState
- Variadic args now are multipled to 3 args, ie:
window.console.log(1, 2, 3)
- Added getter and setter operators for maps, sets and arrays, ie:
document.getElementById('foo')!.childNodes[0]
- Updated the classes names to be camelCase
- Fixed the file names to be snake case correctly
- Adjusted the builders to generate code clean of lints.
- Updated the documentation to use Dart types instead of JS types. Ie:
Some method returns a [Promise] of a [DomString]
toSome method returns a [Future] of a [String]
- Changed the example to use dynamic generated elements
- Breaking change: The
Promise
is gone. The builder now generatesFuture
when it sees aPromise
. So no need to usepromiseToFuture
at all. - Breaking change: The
allowInterop
is gone. The builder now automatically addsallowInterop
so you can use regular DartFunction()
on callbacks.
Example:- Old way:
element.addEventListener('click', allowInterop((ev) {}))
- New way:
element.addEventListener('click', (ev) {})
- Old way:
- Removed a number of runtime dependencies.
- Require Dart 2.16 or greater
- Require package:js 0.6.4 or greater
- Updated the builders to use
@staticInterop
along with dart:js_util - The
example
dir is working and has more examples
- Formatting and example
- Link MediaStream on ReadMe
- Package tries to fully transpile WebIDLs to Dart.