Releases: dart-lang/web
Releases · dart-lang/web
package:web v0.5.1
- Add
TrustedTypes
members. - 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
external
Element constructors that would result in a runtime error. - Deprecate
createAudioElement
in favor of theHTMLAudioElement
constructor.
[MDN Web Docs]: https://developer.mozilla.org/en-US/docs/Web
[CC-BY-SA 2.5]: https://creativecommons.org/licenses/by-sa/2.5/
package:web v0.5.0
- Redeprecate APIs that were deprecated in
0.4.1
but undeprecated in0.4.2
. - Add support for
dart fix
migrations fromdart:html
classes to
package:web
classes. - Contribute a markdown file for the renamed classes from
dart:html
to
package:web
(see renames.md). - Migrate classes to use interop extension types that implement
JSObject
. - Add generics to APIs that use
JSArray
andJSPromise
. 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 of
JSArray
andJSPromise
. - Changed
record
types to beJSObject
instead 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 AudioElement
HTMLAudioElement
HtmlElement
HTMLElement
CanvasElement
HTMLCanvasElement
ImageElement
HTMLImageElement
VideoElement
HTMLVideoElement
CssStyleDeclaration
CSSStyleDeclaration
ContextEvent
WebGLContextEvent
WebGL
WebGLRenderingContext
- Deprecate the top-level
createElementTag
,createCanvasElement
,
createIFrameElement
, andquerySelector
functions.
Instead, use the standard creation and query methods ondocument
. - Deprecate the
client
extension methods onMouseEvent
andTouch
.
Instead, directly use theclientX
andclientY
properties. - Deprecate the
HttpRequest
API borrowed fromdart:html
.
Consider migrating topackage:http
instead.
package:web v0.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
package:web v0.4.1
- Exported the helper libraries from
web.dart
. - Deprecated the
helpers.dart
library 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.append
in favor ofNode.appendChild
. - Deprecated
NodeGlue.clone
in favor ofNode.cloneNode
. - Updated
@webref/css
to6.10.0
.
package:web v0.3.0
- Updated source IDL to
v3.39.1
. - Fixed a bug where
typedef
s were not declared with the IDL type's
nullability. - Types that were aliased to
double
are 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:html
easier.