Skip to content

Commit 9851c23

Browse files
authored
Update SDK constraints for Dart 3.0 and 3.1 stable releases (#2207)
Update SDK constraints for most packages to the first `dev` release of 3.2.0 since the stable 3.1.0 release doesn't actually include the DDC debugger runtime API changes, but will allow for package resolution with the `3.1.0-...-dev` constraint and a 3.1.0 SDK. This will prevent that. Others are updated to stable releases. Issue reference: dart-lang/sdk#53459
1 parent 9487a45 commit 9851c23

File tree

30 files changed

+43
-41
lines changed

30 files changed

+43
-41
lines changed

.github/workflows/dart.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dwds/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 21.0.0-wip
22

3+
- Update Dart SDK constraint to `>=3.2.0-36.0.dev <4.0.0`. - [#2207](https://github.com/dart-lang/webdev/pull/2207)
4+
35
**Breaking changes**
46

57
- Allow clients to specify where to find the package config. - [#2203](https://github.com/dart-lang/webdev/pull/2203).

dwds/debug_extension/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66
A chrome extension for Dart debugging.
77
88
environment:
9-
sdk: ">=3.1.0-340.0.dev <4.0.0"
9+
sdk: ^3.2.0-36.0.dev
1010

1111
dependencies:
1212
async: ^2.3.0

dwds/debug_extension_mv3/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66
A Chrome extension for Dart debugging.
77
88
environment:
9-
sdk: ">=3.1.0-340.0.dev <4.0.0"
9+
sdk: ^3.2.0-36.0.dev
1010

1111
dependencies:
1212
built_value: ^8.3.0

dwds/lib/src/handlers/dev_handler.dart

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,15 +420,13 @@ class DevHandler {
420420
debuggerStart: debuggerStart,
421421
devToolsStart: DateTime.now(),
422422
);
423-
if (_devTools != null) {
424-
await _launchDevTools(
425-
appServices.chromeProxyService.remoteDebugger,
426-
_constructDevToolsUri(
427-
appServices.debugService.uri,
428-
ideQueryParam: 'Dwds',
429-
),
430-
);
431-
}
423+
await _launchDevTools(
424+
appServices.chromeProxyService.remoteDebugger,
425+
_constructDevToolsUri(
426+
appServices.debugService.uri,
427+
ideQueryParam: 'Dwds',
428+
),
429+
);
432430
}
433431

434432
Future<AppConnection> _handleConnectRequest(

dwds/lib/src/services/debug_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class DebugService {
203203
Future<String> get encodedUri async {
204204
if (_encodedUri != null) return _encodedUri!;
205205
var encoded = uri;
206-
if (_urlEncoder != null) encoded = await _urlEncoder!(encoded);
206+
if (_urlEncoder != null) encoded = await _urlEncoder(encoded);
207207
return _encodedUri = encoded;
208208
}
209209

dwds/lib/src/utilities/objects.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class Property {
2121
///
2222
/// Useful for getting access to properties of particular types of
2323
/// RemoteObject.
24-
Object? get rawValue => _map == null ? null : _map!['value'];
24+
Object? get rawValue => _map == null ? null : _map['value'];
2525

2626
/// Remote object value in case of primitive values or JSON values (if it was
2727
/// requested). (optional)
2828
RemoteObject? get value {
2929
if (_remoteObjectValue != null) return _remoteObjectValue!;
3030
if (_map == null) return null;
3131
if (rawValue == null) return null;
32-
final val = _map!['value'];
32+
final val = _map['value'];
3333
if (val is RemoteObject) {
3434
_remoteObjectValue = val;
3535
} else {
@@ -59,7 +59,7 @@ class Property {
5959
/// Will be of the form 'Symbol(_actualName)' for private fields.
6060
String? get rawName {
6161
if (_map == null) return null;
62-
return _map!['name'] as String;
62+
return _map['name'] as String;
6363
}
6464

6565
@override

dwds/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66
service protocol.
77
repository: https://github.com/dart-lang/webdev/tree/master/dwds
88
environment:
9-
sdk: ">=3.1.0-340.0.dev <4.0.0"
9+
sdk: ^3.2.0-36.0.dev
1010

1111
dependencies:
1212
async: ^2.9.0

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A web app example for webdev CLI.
44
publish_to: none
55

66
environment:
7-
sdk: ">=3.1.0-340.0.dev <4.0.0"
7+
sdk: ^3.2.0-36.0.dev
88

99
dev_dependencies:
1010
build_runner: ^2.4.0

fixtures/_experimentSound/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >-
55
publish_to: none
66

77
environment:
8-
sdk: ">=3.1.0-254.0.dev<4.0.0"
8+
sdk: ^3.2.0-36.0.dev
99

1010
dependencies:
1111
intl: ^0.17.0

0 commit comments

Comments
 (0)