Skip to content

Commit 3d614cf

Browse files
authored
Upgrade dependencies. (#8734)
1 parent ede1eac commit 3d614cf

File tree

9 files changed

+92
-86
lines changed

9 files changed

+92
-86
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ AppEngine version, listed here to ease deployment and troubleshooting.
44
## Next Release (replace with git tag when deployed)
55
* Bump runtimeVersion to `2025.04.29`.
66
* Upgraded stable Dart analysis SDK to `3.7.3`
7+
* Upgraded dependencies.
78

89
## `20250424t115200-all`
910
* Bump runtimeVersion to `2025.04.24`.

pkg/api_builder/lib/src/api_router_generator.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'package:analyzer/dart/element/element.dart' show ClassElement;
68
import 'package:analyzer/dart/element/type.dart' show ParameterizedType;
79
import 'package:code_builder/code_builder.dart' as code;

pkg/api_builder/lib/src/client_library_generator.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'package:analyzer/dart/element/element.dart'
68
show ClassElement, ExecutableElement;
79
import 'package:analyzer/dart/element/type.dart'

pkg/api_builder/lib/src/shared.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'package:analyzer/dart/element/element.dart'
68
show ClassElement, ExecutableElement, ParameterElement;
79
import 'package:analyzer/dart/element/type.dart' show DartType;

pkg/web_app/lib/script.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ void _setupDarkThemeButton() {
4848
button.onClick.listen((_) {
4949
final classes = document.body!.classList;
5050
final isCurrentlyDark = classes.contains('dark-theme');
51-
window.localStorage['colorTheme'] = isCurrentlyDark ? 'false' : 'true';
51+
window.localStorage
52+
.setItem('colorTheme', isCurrentlyDark ? 'false' : 'true');
5253
classes.toggle('dark-theme');
5354
classes.toggle('light-theme');
5455
});

pkg/web_app/lib/src/hoverable.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void _setEventForPreCodeCopyToClipboard() {
120120

121121
final feedback = HTMLDivElement()
122122
..classList.add('-pub-pre-copy-feedback')
123-
..text = 'copied to clipboard';
123+
..textContent = 'copied to clipboard';
124124
container.append(feedback);
125125

126126
_setupCopyAndFeedbackButton(
@@ -176,7 +176,7 @@ void _updateXAgoLabels() {
176176
final newLabel = formatXAgo(DateTime.now().difference(timestamp));
177177
final oldLabel = e.textContent;
178178
if (oldLabel != newLabel) {
179-
e.text = newLabel;
179+
e.textContent = newLabel;
180180
}
181181
});
182182
}
@@ -188,7 +188,7 @@ void _setEventForXAgo() {
188188
event.preventDefault();
189189
event.stopPropagation();
190190
final text = e.textContent;
191-
e.text = e.getAttribute('title') ?? '';
191+
e.textContent = e.getAttribute('title') ?? '';
192192
e.setAttribute('title', text!);
193193
});
194194
});

pkg/web_app/lib/src/widget/downloads_chart/widget.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ void drawChart(
303303
tickLabel.setAttribute(
304304
'class', 'downloads-chart-tick-label downloads-chart-tick-label-x');
305305
}
306-
tickLabel.text = formatAbbrMonthDay(date);
306+
tickLabel.textContent = formatAbbrMonthDay(date);
307307
tickLabel.setAttribute('y', '$tickLabelYCoordinate');
308308
tickLabel.setAttribute('x', '$x');
309309

@@ -321,7 +321,7 @@ void drawChart(
321321
final suffix = displayMode == DisplayMode.percentage
322322
? '%'
323323
: compactFormat(i * interval).suffix;
324-
tickLabel.text = '${compactFormat(i * interval).value}$suffix';
324+
tickLabel.textContent = '${compactFormat(i * interval).value}$suffix';
325325
tickLabel.setAttribute('x', '${xMax + marginPadding}');
326326
tickLabel.setAttribute('y', '$y');
327327
chart.append(tickLabel);
@@ -439,7 +439,7 @@ void drawChart(
439439

440440
final legendLabel = SVGTextElement();
441441
legendLabel.setAttribute('class', 'downloads-chart-tick-label');
442-
legendLabel.text = ranges[i];
442+
legendLabel.textContent = ranges[i];
443443
chart.append(legendLabel);
444444
chart.append(legend);
445445
legends.add((legend, legendLabel));
@@ -629,7 +629,7 @@ void drawChart(
629629
'top:${e.y + toolTipOffsetFromMouse + document.scrollingElement!.scrollTop}px;$horizontalPosition');
630630
toolTip.replaceChildren(HTMLDivElement()
631631
..setAttribute('class', 'downloads-chart-tooltip-date')
632-
..text =
632+
..textContent =
633633
'${formatAbbrMonthDay(startDay)} - ${formatAbbrMonthDay(selectedDay)}');
634634

635635
final downloads = values[nearestIndex];
@@ -641,14 +641,14 @@ void drawChart(
641641
final square = HTMLDivElement()
642642
..setAttribute('class',
643643
'downloads-chart-tooltip-square ${squareColorClass(colorIndex(i))}');
644-
final rangeText = HTMLSpanElement()..text = '${ranges[i]}: ';
644+
final rangeText = HTMLSpanElement()..textContent = '${ranges[i]}: ';
645645
final suffix = (displayMode == DisplayMode.percentage)
646646
? ' (${(downloads[i] * 100 / totals[nearestIndex]).toStringAsPrecision(2)}%)'
647647
: '';
648648
final text = '${formatWithThousandSeperators(downloads[i])}$suffix';
649649
final downloadsText = HTMLSpanElement()
650650
..setAttribute('class', 'downloads-chart-tooltip-downloads')
651-
..text = text;
651+
..textContent = text;
652652

653653
final tooltipRange = HTMLDivElement()
654654
..setAttribute('class', 'downloads-chart-tooltip-row')

pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart

+7-4
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ void drawChart(Element svg, HTMLDivElement toolTip, HTMLDivElement chartSubText,
9595

9696
// Render chart
9797

98-
chartSubText.text = '${formatDate(firstDay)} - ${formatDate(lastDate)}';
98+
chartSubText.textContent =
99+
'${formatDate(firstDay)} - ${formatDate(lastDate)}';
99100
final chart = SVGGElement();
100101

101102
final sparklineBar = SVGLineElement();
@@ -158,10 +159,11 @@ void drawChart(Element svg, HTMLDivElement toolTip, HTMLDivElement chartSubText,
158159
final coords = computeCoordinates(selectedDay.date, selectedDay.downloads);
159160
sparklineSpot.setAttribute('cy', '${coords.$2}');
160161
sparklineCursor.setAttribute('transform', 'translate(${coords.$1}, 0)');
161-
toolTip.text = '${formatWithThousandSeperators(selectedDay.downloads)}';
162+
toolTip.textContent =
163+
'${formatWithThousandSeperators(selectedDay.downloads)}';
162164

163165
final startDay = selectedDay.date.subtract(Duration(days: 7));
164-
chartSubText.text =
166+
chartSubText.textContent =
165167
'${formatDate(startDay)} - ${formatDate(selectedDay.date)}';
166168

167169
lastSelectedDay = selectedDay.date;
@@ -170,7 +172,8 @@ void drawChart(Element svg, HTMLDivElement toolTip, HTMLDivElement chartSubText,
170172
void hideSparklineCursor(_) {
171173
sparklineCursor.setAttribute('style', 'opacity:0');
172174
toolTip.setAttribute('style', 'opacity:0;position:absolute;');
173-
chartSubText.text = '${formatDate(firstDay)} - ${formatDate(lastDate)}';
175+
chartSubText.textContent =
176+
'${formatDate(firstDay)} - ${formatDate(lastDate)}';
174177
lastSelectedDay = null;
175178
}
176179

0 commit comments

Comments
 (0)