Skip to content

Commit 43824b2

Browse files
committed
Merge branch 'main' of github.com:dart-lang/webdev into format_webdev
2 parents c8fbbfe + 23aefeb commit 43824b2

File tree

142 files changed

+4817
-2904
lines changed

Some content is hidden

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

142 files changed

+4817
-2904
lines changed

.github/workflows/changelog_reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1919
- name: Check changed files
2020
run: |
2121
git fetch origin main

.github/workflows/daily_stable_testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
echo "VERSION_TAG=$(webdev --version)" >> $GITHUB_OUTPUT
3030
- name: Checkout Webdev at version tag
3131
id: checkout
32-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
32+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3333
with:
3434
ref: webdev-v${{ steps.version.outputs.VERSION_TAG }}
3535
- name: Upgrade deps

.github/workflows/daily_testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
sdk: main
1818
- id: checkout
1919
name: Checkout repository
20-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2121
- id: dwds_pub_upgrade
2222
name: dwds; dart pub upgrade
2323
run: dart pub upgrade

.github/workflows/dart.yml

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

.github/workflows/dcm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
sdk: dev
2828
- id: checkout
2929
name: Checkout repository
30-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
30+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3131
with:
3232
ref: "${{ github.event.pull_request.head.sha }}"
3333
- id: dwds_pub_upgrade

.github/workflows/release_reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
sdk: dev
1919
- id: checkout
2020
name: Checkout repository
21-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2222
- name: Run proper release test
2323
run: dart test test/proper_release_test.dart
2424
working-directory: test_common

dwds/CHANGELOG.md

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,55 @@
1-
## 24.4.2-wip
1+
## 25.1.0
22

3-
- Bump minimum SDK version to 3.8.0
3+
- Added `DartDevelopmentServiceConfiguration` to allow for configuring DDS behavior.
4+
- Added support for serving DevTools via DDS. This will become the sole method of serving
5+
DevTools from DWDS in a future major release.
6+
- Deprecated `spawnDds`, `ddsPort`, and `devToolsLauncher` properties in `DebugSettings`.
7+
- Added `ddsConfiguration` to `DebugSettings`.
8+
9+
## 25.0.4
10+
11+
### Bug Fixes:
12+
13+
- Fix issue where `DebugService: Error serving requestsError: Unsupported operation: Cannot send Null`
14+
would be spammed on the console.
15+
16+
## 25.0.3
17+
18+
### Bug Fixes:
19+
20+
- Fix issue in hot restart with the web socket where we didn't pass the reloaded
21+
sources path, resulting in a null assertion.
22+
23+
## 25.0.2
24+
25+
### Bug Fixes:
26+
27+
- Fix issue where DDS would fail to initialize if DWDS already had existing
28+
clients.
29+
30+
## 25.0.1
31+
32+
### Bug Fixes:
33+
34+
- Fix issue in hot restart where a hot restart with no changes followed by one
35+
with changes, a `Future` was completed again, resulting in a crash.
36+
37+
## 25.0.0
38+
39+
- Implemented hot restart over websockets with multi window support.
40+
- Fix refresh race condition bug by adding an isolate destruction grace period.
441
- Update a call to the `package:shelf_web_socket` `webSocketHandler()` function.
542

43+
**Breaking changes**
44+
45+
- Remove deprecated parameter `injectDebuggingSupportCode` from `Dwds.start()`.
46+
- Remove all deprecated fields, getters, and parameters
47+
related to the null safety compilation mode. Dart 3 only
48+
supports [sound null safety](https://dart.dev/null-safety).
49+
- Rename `FrontendServerDdcLibraryBundleStrategy.hotReloadSourcesUri` to
50+
`reloadedSourcesUri`. The file that the `Uri` points to should now be updated
51+
for both a hot restart and a hot reload.
52+
653
## 24.4.1
754

855
- Implemented a WebSocket-based communication protocol that provides essential developer tooling (hot reload, service extensions) when Chrome debugger access is unavailable. - [#2605](https://github.com/dart-lang/webdev/issues/2605)
@@ -55,6 +102,7 @@
55102
libraries instead of assuming it exists in the global `window`.
56103

57104
## 24.3.5
105+
58106
- Allow clients to specify the `packageConfigPath` in `LoadStrategy` class and associated providers.
59107

60108
## 24.3.4
@@ -139,7 +187,7 @@
139187

140188
## 23.1.1
141189

142-
- Loosen `package:vm_service` constraints to allow `>=13.0.0 <15.0.0`. - [#2329](https://github.com/dart-lang/webdev/pull/2329)
190+
- Loosen `package:vm_service` constraints to allow `>=13.0.0 <15.0.0`. - [#2329](https://github.com/dart-lang/webdev/pull/2329)
143191

144192
## 23.1.0
145193

dwds/lib/dart_web_debug_service.dart

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ class Dwds {
7474
required Stream<BuildResult> buildResults,
7575
required ConnectionProvider chromeConnection,
7676
required ToolConfiguration toolConfiguration,
77-
// ignore: avoid-unused-parameters
78-
@Deprecated(
79-
'This parameter is ignored and will be removed in a future version.',
80-
)
81-
bool injectDebuggingSupportCode = true,
8277
bool useDwdsWebSocketConnection = false,
8378
}) async {
8479
globalToolConfiguration = toolConfiguration;
@@ -119,15 +114,20 @@ class Dwds {
119114
}
120115
}
121116

117+
// TODO(bkonyi): only allow for serving DevTools via DDS.
118+
// ignore: deprecated_member_use_from_same_package
122119
final devToolsLauncher = debugSettings.devToolsLauncher;
123-
if (devToolsLauncher != null) {
120+
Uri? launchedDevToolsUri;
121+
if (devToolsLauncher != null &&
122+
// If DDS is configured to serve DevTools, use its instance.
123+
!debugSettings.ddsConfiguration.serveDevTools) {
124124
devTools = await devToolsLauncher(appMetadata.hostname);
125-
final uri = Uri(
125+
launchedDevToolsUri = Uri(
126126
scheme: 'http',
127127
host: devTools.hostname,
128128
port: devTools.port,
129129
);
130-
_logger.info('Serving DevTools at $uri\n');
130+
_logger.info('Serving DevTools at $launchedDevToolsUri\n');
131131
}
132132

133133
final injected = DwdsInjector(extensionUri: extensionUri);
@@ -144,8 +144,18 @@ class Dwds {
144144
debugSettings.useSseForInjectedClient,
145145
debugSettings.expressionCompiler,
146146
injected,
147-
debugSettings.spawnDds,
148-
debugSettings.ddsPort,
147+
DartDevelopmentServiceConfiguration(
148+
// This technically isn't correct, but DartDevelopmentServiceConfiguration.enable
149+
// is true by default, so this won't break unmigrated tools.
150+
// ignore: deprecated_member_use_from_same_package
151+
enable: debugSettings.spawnDds && debugSettings.ddsConfiguration.enable,
152+
// ignore: deprecated_member_use_from_same_package
153+
port: debugSettings.ddsPort ?? debugSettings.ddsConfiguration.port,
154+
devToolsServerAddress:
155+
launchedDevToolsUri ??
156+
debugSettings.ddsConfiguration.devToolsServerAddress,
157+
serveDevTools: debugSettings.ddsConfiguration.serveDevTools,
158+
),
149159
debugSettings.launchDevToolsInNewWindow,
150160
useWebSocketConnection: useDwdsWebSocketConnection,
151161
);

dwds/lib/data/build_result.g.dart

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

dwds/lib/data/connect_request.g.dart

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

0 commit comments

Comments
 (0)