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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dwds/CHANGELOG.md

+2
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

+1-1
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

+1-1
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

+7-9
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

+1-1
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

+3-3
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

+1-1
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

+1-1
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

+1-1
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

fixtures/_test/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: >-
99
publish_to: none
1010

1111
environment:
12-
sdk: ">=3.1.0-340.0.dev <4.0.0"
12+
sdk: ^3.2.0-36.0.dev
1313

1414
dependencies:
1515
intl: ^0.17.0

fixtures/_testCircular1/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: >-
99
publish_to: none
1010

1111
environment:
12-
sdk: ">=3.1.0-340.0.dev <4.0.0"
12+
sdk: ^3.2.0-36.0.dev
1313

1414
dependencies:
1515
intl: ^0.17.0

fixtures/_testCircular1Sound/pubspec.yaml

+1-1
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-340.0.dev <4.0.0"
8+
sdk: ^3.2.0-36.0.dev
99

1010
dependencies:
1111
intl: ^0.17.0

fixtures/_testCircular2/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: >-
99
publish_to: none
1010

1111
environment:
12-
sdk: ">=3.1.0-340.0.dev <4.0.0"
12+
sdk: ^3.2.0-36.0.dev
1313

1414
dependencies:
1515
_test_circular1:

fixtures/_testCircular2Sound/pubspec.yaml

+1-1
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-340.0.dev <4.0.0"
8+
sdk: ^3.2.0-36.0.dev
99

1010
dependencies:
1111
_test_circular1_sound:

fixtures/_testPackage/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: >-
99
publish_to: none
1010

1111
environment:
12-
sdk: ">=3.1.0-254.0.dev<4.0.0"
12+
sdk: ^3.2.0-36.0.dev
1313

1414
dependencies:
1515
_test:

fixtures/_testPackageSound/pubspec.yaml

+1-1
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-340.0.dev <4.0.0"
8+
sdk: ^3.2.0-36.0.dev
99

1010
dependencies:
1111
_test_sound:

fixtures/_testSound/pubspec.yaml

+1-1
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-340.0.dev <4.0.0"
8+
sdk: ^3.2.0-36.0.dev
99

1010
dependencies:
1111
intl: ^0.17.0

fixtures/_webdevSmoke/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ publish_to: none
1414
# and build_web_compilers constraint should match those defined
1515
# in pubspec.dart.
1616
environment:
17-
sdk: ">=3.1.0-340.0.dev <4.0.0"
17+
sdk: ^3.2.0-36.0.dev
1818

1919
dev_dependencies:
2020
build_runner: '>=1.6.2 <3.0.0'

fixtures/_webdevSoundSmoke/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A test fixture for webdev testing with sound support.
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

frontend_server_client/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## 3.3.0-dev
1+
## 3.3.0-wip
22

3-
- Update SDK constraint to `>=3.0.0-134.0.dev <4.0.0`.
3+
- Update Dart SDK constraint to `>=3.0.0 <4.0.0`.
44
- Support changes in the SDK layout for Dart 3.0.
55

66
## 3.2.0

frontend_server_client/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: frontend_server_client
2-
version: 3.3.0-dev
2+
version: 3.3.0-wip
33
description: >-
44
Client code to start and interact with the frontend_server compiler from the
55
Dart SDK.
66
repository: https://github.com/dart-lang/webdev/tree/master/frontend_server_client
77

88
environment:
9-
sdk: ">=3.0.0-134.0.dev <4.0.0"
9+
sdk: ^3.0.0
1010

1111
dependencies:
1212
async: ^2.5.0

frontend_server_client/test/frontend_sever_client_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies:
2828
path: ^1.0.0
2929
3030
environment:
31-
sdk: ">3.0.0-134.0.dev <4.0.0"
31+
sdk: ^3.0.0
3232
'''),
3333
d.dir('bin', [
3434
d.file('main.dart', '''

frontend_server_common/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish_to: none
33
description: >-
44
Frontend server integration code to use for dwds tests. Mimics flutter code.
55
environment:
6-
sdk: ">=3.0.0-134.0.dev <4.0.0"
6+
sdk: ^3.2.0-36.0.dev
77

88
dependencies:
99
dwds: any

test_common/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish_to: none
33
description: >-
44
Common test functionality.
55
environment:
6-
sdk: ">=3.0.0-134.0.dev <4.0.0"
6+
sdk: ^3.1.0
77

88
dependencies:
99
dwds: any

tool/ci.sh

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tool/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish_to: none
33
description: >-
44
Common tools for the mono-repo.
55
environment:
6-
sdk: ">=3.0.0-134.0.dev <4.0.0"
6+
sdk: ^3.1.0
77

88
dev_dependencies:
99
args: ^2.4.0

webdev/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 3.0.8-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
## 3.0.7
46

57
- Update `build_web_compilers` constraint to `^4.0.4`.

webdev/lib/src/pubspec.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class PubspecLock {
9191
PackageExceptionDetails.missingDep(pkgName, constraint);
9292

9393
var pkgDataMap =
94-
(_packages == null) ? null : _packages![pkgName] as YamlMap?;
94+
(_packages == null) ? null : _packages[pkgName] as YamlMap?;
9595
if (pkgDataMap == null) {
9696
issues.add(missingDetails);
9797
} else {

webdev/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: >-
88
features for users and tools to build and deploy web applications with Dart.
99
repository: https://github.com/dart-lang/webdev/tree/master/webdev
1010
environment:
11-
sdk: ">=3.1.0-340.0.dev <4.0.0"
11+
sdk: ^3.2.0-36.0.dev
1212

1313
dependencies:
1414
args: ^2.3.1

0 commit comments

Comments
 (0)