[web libraries] Deprecate Dart web libraries
https://github.com/dart-lang/sdk/issues/59716 Deprecate dart:html, dart:svg, dart:indexed_db, dart:web_audio, and dart:web_gl in favor of package:web and dart:js_interop. dart:web_sql has already been deprecated and unable to be imported. CoreLibraryReviewExempt: JS-specific library, deprecation only. Change-Id: I2799b474be660153318a60d5e801ecd8431b08a2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401045 Reviewed-by: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
///
|
||||
/// {@category Web (Legacy)}
|
||||
/// {@canonicalFor dart:_internal.HttpStatus}
|
||||
@Deprecated('Use package:web and dart:js_interop instead.')
|
||||
library dart.dom.html;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
/// documentation](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API).
|
||||
///
|
||||
/// {@category Web (Legacy)}
|
||||
@Deprecated('Use package:web and dart:js_interop instead.')
|
||||
library dart.dom.indexed_db;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
/// [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/).
|
||||
///
|
||||
/// {@category Web (Legacy)}
|
||||
@Deprecated('Use package:web and dart:js_interop instead.')
|
||||
library dart.dom.svg;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
/// > our [migration guide](https://dart.dev/go/package-web).
|
||||
///
|
||||
/// {@category Web (Legacy)}
|
||||
@Deprecated('Use package:web and dart:js_interop instead.')
|
||||
library dart.dom.web_audio;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
/// > our [migration guide](https://dart.dev/go/package-web).
|
||||
///
|
||||
/// {@category Web (Legacy)}
|
||||
@Deprecated('Use package:web and dart:js_interop instead.')
|
||||
library dart.dom.web_gl;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
Reference in New Issue
Block a user