Skip to content

Upgrading web 0.4 to 0.5

Breaking0.4.2 → 0.5.1Breaking1Deprecated6New3Changed4Other3

BreakingUpgrade verdict

1 breaking change.

  • Some element constructors that always failed at runtime are gone.
  • Use the HTMLAudioElement constructor instead of createAudioElement.
  • Redeprecates APIs that were deprecated in 0.4.1 but undeprecated in 0.4.2.
  • Deprecates type aliases such as `AudioElement`, `HtmlElement`, and `CanvasElement` in favor of standardized names.
Top 4 of 7 that need code or config changes

Dart SDK requirement changed in 0.5.1: ^3.2.0 → ^3.3.0.

Breaking1
Removes external Element constructors that would result in a runtime error.
Deprecated6
Deprecates createAudioElement in favor of the HTMLAudioElement constructor.
createAudioElementHTMLAudioElement
Redeprecates APIs that were deprecated in 0.4.1 but undeprecated in 0.4.2.
Deprecates type aliases such as AudioElement, HtmlElement, and CanvasElement in favor of standardized names.
AudioElementHTMLAudioElementHtmlElementHTMLElementCanvasElementHTMLCanvasElementImageElementHTMLImageElement
Deprecates top-level createElementTag, createCanvasElement, createIFrameElement, and querySelector functions.
createElementTagcreateCanvasElementcreateIFrameElementquerySelectordocument
Deprecates the client extension methods on MouseEvent and Touch.
MouseEventTouchclientXclientY
Deprecates the HttpRequest API borrowed from dart:html.
HttpRequest