Upgrading web 0.4 to 0.5
Breaking0.4.2 → 0.5.1Breaking1Deprecated6New3Changed4Other3
BreakingUpgrade verdict
1 breaking change.
In plain terms
- 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.
Must act Top 4 of 7 that need code or config changes
Dart SDK requirement changed in 0.5.1: ^3.2.0 → ^3.3.0.
What you must change
Breaking1
Removes external Element constructors that would result in a runtime error.
Deprecations to plan for
Deprecated6
Deprecates createAudioElement in favor of the HTMLAudioElement constructor.
createAudioElementHTMLAudioElementRedeprecates 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.AudioElementHTMLAudioElementHtmlElementHTMLElementCanvasElementHTMLCanvasElementImageElementHTMLImageElementDeprecates top-level
createElementTag, createCanvasElement, createIFrameElement, and querySelector functions.createElementTagcreateCanvasElementcreateIFrameElementquerySelectordocumentDeprecates the
client extension methods on MouseEvent and Touch.MouseEventTouchclientXclientYDeprecates the
HttpRequest API borrowed from dart:html.HttpRequest