Skip to content

Commit 3802cc1

Browse files
authored
Merge branch 'main' into null-safety-cleanup
2 parents 94f3f20 + 94c172c commit 3802cc1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+118
-118
lines changed

.github/workflows/dart.yml

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

dwds/CHANGELOG.md

Lines changed: 4 additions & 0 deletions

dwds/lib/src/services/debug_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,11 @@ class WebSocketDebugService implements DebugService {
436436
}
437437

438438
/// Creates the WebSocket handler for incoming connections.
439-
static dynamic _createWebSocketHandler(
439+
static Handler _createWebSocketHandler(
440440
ServiceExtensionRegistry serviceExtensionRegistry,
441441
WebSocketProxyService webSocketProxyService,
442442
) {
443-
return webSocketHandler((WebSocketChannel webSocket) {
443+
return webSocketHandler((WebSocketChannel webSocket, String? subprotocol) {
444444
final responseController = StreamController<Map<String, Object?>>();
445445
webSocket.sink.addStream(responseController.stream.map(jsonEncode));
446446

dwds/lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dwds/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dwds
22
# Every time this changes you need to run `dart run build_runner build`.
3-
version: 24.4.1
3+
version: 24.4.2-wip
44

55
description: >-
66
A service that proxies between the Chrome debug protocol and the Dart VM
@@ -29,7 +29,7 @@ dependencies:
2929
shelf_packages_handler: ^3.0.0
3030
shelf_proxy: ^1.0.4
3131
shelf_static: ^1.1.0
32-
shelf_web_socket: '>=1.0.0 <3.0.0'
32+
shelf_web_socket: '>=2.0.0 <4.0.0'
3333
source_maps: ^0.10.10
3434
stack_trace: ^1.10.0
3535
sse: ^4.1.2

dwds/test/common/chrome_proxy_service_common.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ void runTests({
20672067
expect(
20682068
resolvedUris.uris,
20692069
containsAll([
2070-
contains('/_testSound/example/hello_world/main.dart'),
2070+
contains('/_test/example/hello_world/main.dart'),
20712071
contains('/lib/path.dart'),
20722072
contains('/lib/src/path_set.dart'),
20732073
]),

dwds/test/fixtures/project.dart

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestProject {
2222
late Directory _fixturesCopy;
2323

2424
/// The top level directory in which we run the test server, e.g.
25-
/// "/tmp/_testSound".
25+
/// "/tmp/_test".
2626
String get absolutePackageDirectory =>
2727
p.join(_fixturesCopy.absolute.path, packageDirectory);
2828

@@ -39,7 +39,7 @@ class TestProject {
3939
}
4040

4141
/// The path to the Dart entry file, e.g,
42-
/// "/tmp/_testSound/example/hello_world/main.dart":
42+
/// "/tmp/_test/example/hello_world/main.dart":
4343
String get dartEntryFilePath => p.joinAll([
4444
_fixturesCopy.absolute.path,
4545
packageDirectory,
@@ -61,67 +61,67 @@ class TestProject {
6161

6262
TestProject.testPackage({IndexBaseMode baseMode = IndexBaseMode.noBase})
6363
: this._(
64-
packageName: '_test_package_sound',
65-
packageDirectory: '_testPackageSound',
64+
packageName: '_test_package',
65+
packageDirectory: '_test_package',
6666
webAssetsPath: 'web',
6767
dartEntryFileName: 'main.dart',
6868
htmlEntryFileName:
6969
baseMode == IndexBaseMode.base ? 'base_index.html' : 'index.html',
7070
);
7171

7272
static final testCircular1 = TestProject._(
73-
packageName: '_test_circular1_sound',
74-
packageDirectory: '_testCircular1Sound',
73+
packageName: '_test_circular1',
74+
packageDirectory: '_test_circular1',
7575
webAssetsPath: 'web',
7676
dartEntryFileName: 'main.dart',
7777
htmlEntryFileName: 'index.html',
7878
);
7979

8080
TestProject.testCircular2({IndexBaseMode baseMode = IndexBaseMode.noBase})
8181
: this._(
82-
packageName: '_test_circular2_sound',
83-
packageDirectory: '_testCircular2Sound',
82+
packageName: '_test_circular2',
83+
packageDirectory: '_test_circular2',
8484
webAssetsPath: 'web',
8585
dartEntryFileName: 'main.dart',
8686
htmlEntryFileName:
8787
baseMode == IndexBaseMode.base ? 'base_index.html' : 'index.html',
8888
);
8989

9090
static final test = TestProject._(
91-
packageName: '_test_sound',
92-
packageDirectory: '_testSound',
91+
packageName: '_test',
92+
packageDirectory: '_test',
9393
webAssetsPath: 'example/hello_world',
9494
dartEntryFileName: 'main.dart',
9595
htmlEntryFileName: 'index.html',
9696
);
9797

9898
static final testScopes = TestProject._(
99-
packageName: '_test_sound',
100-
packageDirectory: '_testSound',
99+
packageName: '_test',
100+
packageDirectory: '_test',
101101
webAssetsPath: webCompatiblePath(['example', 'scopes']),
102102
dartEntryFileName: 'main.dart',
103103
htmlEntryFileName: 'scopes.html',
104104
);
105105

106106
static final testAppendBody = TestProject._(
107-
packageName: '_test_sound',
108-
packageDirectory: '_testSound',
107+
packageName: '_test',
108+
packageDirectory: '_test',
109109
webAssetsPath: webCompatiblePath(['example', 'append_body']),
110110
dartEntryFileName: 'main.dart',
111111
htmlEntryFileName: 'index.html',
112112
);
113113

114114
static final testExperiment = TestProject._(
115-
packageName: '_experiment_sound',
116-
packageDirectory: '_experimentSound',
115+
packageName: '_experiment',
116+
packageDirectory: '_experiment',
117117
webAssetsPath: 'web',
118118
dartEntryFileName: 'main.dart',
119119
htmlEntryFileName: 'index.html',
120120
);
121121

122122
static final testHotRestart1 = TestProject._(
123123
packageName: '_test_hot_restart1',
124-
packageDirectory: '_testHotRestart1Sound',
124+
packageDirectory: '_test_hot_restart1',
125125
webAssetsPath: 'web',
126126
dartEntryFileName: 'main.dart',
127127
htmlEntryFileName: 'index.html',
@@ -131,31 +131,31 @@ class TestProject {
131131
/// order to test correctness when only a subset of libraries are updated.
132132
static final testHotRestart2 = TestProject._(
133133
packageName: '_test_hot_restart2',
134-
packageDirectory: '_testHotRestart2Sound',
134+
packageDirectory: '_test_hot_restart2',
135135
webAssetsPath: 'web',
136136
dartEntryFileName: 'main.dart',
137137
htmlEntryFileName: 'index.html',
138138
);
139139

140140
static final testHotRestartBreakpoints = TestProject._(
141141
packageName: '_test_hot_restart_breakpoints',
142-
packageDirectory: '_testHotRestartBreakpoints',
142+
packageDirectory: '_test_hot_restart_breakpoints',
143143
webAssetsPath: 'web',
144144
dartEntryFileName: 'main.dart',
145145
htmlEntryFileName: 'index.html',
146146
);
147147

148148
static final testHotReload = TestProject._(
149149
packageName: '_test_hot_reload',
150-
packageDirectory: '_testHotReload',
150+
packageDirectory: '_test_hot_reload',
151151
webAssetsPath: 'web',
152152
dartEntryFileName: 'main.dart',
153153
htmlEntryFileName: 'index.html',
154154
);
155155

156156
static final testHotReloadBreakpoints = TestProject._(
157157
packageName: '_test_hot_reload_breakpoints',
158-
packageDirectory: '_testHotReloadBreakpoints',
158+
packageDirectory: '_test_hot_reload_breakpoints',
159159
webAssetsPath: 'web',
160160
dartEntryFileName: 'main.dart',
161161
htmlEntryFileName: 'index.html',
@@ -257,7 +257,7 @@ class TestProject {
257257
}
258258

259259
/// The path to the Dart specified file in the 'lib' directory, e.g,
260-
/// "/tmp/_testSound/lib/library.dart":
260+
/// "/tmp/_test/lib/library.dart":
261261
String dartLibFilePath(String dartLibFileName) => p.joinAll([
262262
_fixturesCopy.absolute.path,
263263
packageDirectory,

dwds/test/load_strategy_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void main() {
3636
test('defaults to "./dart_tool/package_config.json"', () {
3737
expect(
3838
p.split(strategy.packageConfigPath).join('/'),
39-
endsWith('_testSound/.dart_tool/package_config.json'),
39+
endsWith('_test/.dart_tool/package_config.json'),
4040
);
4141
});
4242
},

fixtures/_experimentSound/pubspec.yaml renamed to fixtures/_experiment/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: _experiment_sound
1+
name: _experiment
22
version: 1.0.0
33
description: >-
44
A fake package used for testing experimental language features.

0 commit comments

Comments
 (0)