You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Earlier this year, we launched a new set of Dart libraries for JavaScript interop and package:web to access browser features. These APIs are designed to maximize performance, minimize compiled code size, and enable compatibility when your Dart and Flutter applications target JavaScript, WebAssembly, or both.
Now that these new APIs have been out for a year, it's time to sunset the legacy APIs that have been replaced. Starting with the first stable release of Dart and Flutter in 2025, the following dart: libraries will be deprecated:
While these APIs will still be available, developers will start seeing warnings about their use. Packages that depend on them will also see their score on pub.dev drop. Final removal of the legacy Dart SDK libraries is being discussed for the end of 2025.
From Dart Announcements:
Earlier this year, we launched a new set of Dart libraries for JavaScript interop and package:web to access browser features. These APIs are designed to maximize performance, minimize compiled code size, and enable compatibility when your Dart and Flutter applications target JavaScript, WebAssembly, or both.
Now that these new APIs have been out for a year, it's time to sunset the legacy APIs that have been replaced. Starting with the first stable release of Dart and Flutter in 2025, the following dart: libraries will be deprecated:
We will also deprecate package:js.
While these APIs will still be available, developers will start seeing warnings about their use. Packages that depend on them will also see their score on pub.dev drop. Final removal of the legacy Dart SDK libraries is being discussed for the end of 2025.
To learn about alternatives, read the JavaScript interoperability guide. If you have issues, feel free to comment on the tracking issue.
To do: determine whether deprecation notices should be placed around the site, or content should be removed
The text was updated successfully, but these errors were encountered: