Skip to content

Commit f0eeb22

Browse files
parloughCommit Queue
authored andcommitted
[dartdev] Update dependencies of 'web' template
Primarily updates package:web past v1 to avoid usages of the major deprecation removals. Change-Id: Iadf614c533a043ba3821d241548cc47a68a30558 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/421500 Reviewed-by: Srujan Gaddam <[email protected]> Reviewed-by: Ben Konyi <[email protected]> Auto-Submit: Parker Lougheed <[email protected]> Commit-Queue: Srujan Gaddam <[email protected]>
1 parent 59ceb55 commit f0eeb22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/dartdev/lib/src/templates/web.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ environment:
5050
5151
# Add regular dependencies here.
5252
dependencies:
53-
web: ^0.5.1
53+
web: ^1.1.1
5454
5555
dev_dependencies:
56-
build_runner: ^2.4.8
57-
build_web_compilers: ^4.0.9
56+
build_runner: ^2.4.15
57+
build_web_compilers: ^4.1.4
5858
lints: ^5.0.0
5959
''';
6060

@@ -113,7 +113,7 @@ import 'package:web/web.dart' as web;
113113
void main() {
114114
final now = DateTime.now();
115115
final element = web.document.querySelector('#output') as web.HTMLDivElement;
116-
element.text =
116+
element.textContent =
117117
'The time is \${now.hour}:\${now.minute} '
118118
'and your Dart web app is running!';
119119
}

0 commit comments

Comments
 (0)