web 0.5.1
web: ^0.5.1 copied to clipboard
Lightweight browser API bindings built around JS static interop.
0.5.1 #
- Add
TrustedTypesmembers. - Include MDN API documentation as class and member dartdoc comments. Docs sourced from the MDN Web Docs project; attributions and copyright licensing by Mozilla Contributors is licensed under CC-BY-SA 2.5.
- Add a constructor for each Element tag onto their respective Element interfaces.
- Remove
externalElement constructors that would result in a runtime error. - Deprecate
createAudioElementin favor of theHTMLAudioElementconstructor.
0.5.0 #
-
Redeprecate APIs that were deprecated in
0.4.1but undeprecated in0.4.2. -
Add support for
dart fixmigrations fromdart:htmlclasses topackage:webclasses. -
Contribute a markdown file for the renamed classes from
dart:htmltopackage:web(see renames.md). -
Migrate classes to use interop extension types that implement
JSObject. -
Add generics to APIs that use
JSArrayandJSPromise. Typedefs of a Dart primitive type are instead replaced with their JS type equivalent if they appear as a type parameter in order to conform with the type bounds ofJSArrayandJSPromise. -
Changed
recordtypes to beJSObjectinstead ofJSAny. -
Reduce the number of DOM APIs we generate code for. Currently, the API needs to be standards-track, and be supported by Safari, Chrome, and Firefox.
-
Updated the source IDL version to
3.43.1. -
Deprecate a few type aliases in favor of their standardized versions:
Deprecated Preferred AudioElementHTMLAudioElementHtmlElementHTMLElementCanvasElementHTMLCanvasElementImageElementHTMLImageElementVideoElementHTMLVideoElementCssStyleDeclarationCSSStyleDeclarationContextEventWebGLContextEventWebGLWebGLRenderingContext -
Deprecate the top-level
createElementTag,createCanvasElement,createIFrameElement, andquerySelectorfunctions. Instead, use the standard creation and query methods ondocument. -
Deprecate the
clientextension methods onMouseEventandTouch. Instead, directly use theclientXandclientYproperties. -
Deprecate the
HttpRequestAPI borrowed fromdart:html. Consider migrating topackage:httpinstead.
0.4.2 #
- Undeprecate some APIs and helpers library that were deprecated in
0.4.1. Because deprecations are breaking in Flutter, they should be done in a breaking change.
0.4.1 #
- Exported the helper libraries from
web.dart. - Deprecated the
helpers.dartlibrary in favor ofweb.dart. - Updated the readme to include usage info and package status.
- Added an example.
- Added event extensions for
WebSocket - Fixes to the return types of the
append()andclone()extension methods onNode. - Deprecated
NodeGlue.appendin favor ofNode.appendChild. - Deprecated
NodeGlue.clonein favor ofNode.cloneNode. - Updated
@webref/cssto6.10.0.
0.4.0 #
- Remove
implements JSObjectfrom all types. This is needed to move the JS types exposed indart:js_interopto extension types. This subtyping will be added back in a future version when we move allpackage:webtypes to extension types. - Add
onMessagegetter toWindowEventGettersextension methods. helpers.dart: expose theEventStreamProvidersclass.- Add
createIFrameElementmethod tohelpers.dart. - Updated types to account for union types.
- Fixed issue where all
JSAnys were treated as nullable. - Changed
JSVoidtovoid. interface mixins are no longer emitted as interfaces. Their members are instead added to the interface that mixes them in.
0.3.0 #
- Updated source IDL to
v3.39.1. - Fixed a bug where
typedefs were not declared with the IDL type's nullability. - Types that were aliased to
doubleare now aliased tonum. This is to make it easier for users to pass integer values without going through a cast and to make migration fromdart:htmleasier.
0.2.2-beta #
- Updates SDK version minimum to 3.2.0-194.0.dev.
- Removes
isInstanceOfDomTypeasdart:js_interopnow exposesinstanceOfString.
0.2.1-beta #
helpers.dart- Expose
EventStreamProvider
- Expose
0.2.0-beta #
- Added
helpers.darttop-level library. - Require Dart 3.2 pre-release.
- Update to IDL 3.38.2
0.1.4-beta #
- Support
bool,int,double,Stringin APIs.
0.1.3-beta #
- CSS properties can now be accessed directly.
0.1.2-beta #
JSAnyas an IDL type now includesnull.
0.1.1-beta #
- Objects now inherit from JSObject.
0.1.0-beta #
- First release.