Skip to content

Commit 64ba845

Browse files
committed
deprecated sound/weak sdkSummaryPath for SdkLayout class but kept variables in constructor to avoid breaking changes
1 parent 5718438 commit 64ba845

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

dwds/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- Replace deprecated JS code `this.__proto__` with `Object.getPrototypeOf(this)`. - [#2500](https://github.com/dart-lang/webdev/pull/2500)
44
- Migrate injected client code to `package:web`. - [#2491](https://github.com/dart-lang/webdev/pull/2491)
5-
- Deprecated MetadataProvider's, CompilerOptions' & SdkConfiguration's soundNullSafety. - [#2427](https://github.com/dart-lang/webdev/issues/2427)
5+
- Deprecated MetadataProvider's, CompilerOptions', SdkConfiguration's & SdkLayout's soundNullSafety. - [#2427](https://github.com/dart-lang/webdev/issues/2427)
66

77
## 24.1.0
88

dwds/lib/src/utilities/sdk_configuration.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ class SdkLayout {
4545
final String summaryPath;
4646
final String dartdevcSnapshotPath;
4747

48+
@Deprecated('Only sound null safety is supported as of Dart 3.0')
49+
final String soundSummaryPath;
50+
51+
@Deprecated('Only sound null safety is supported as of Dart 3.0')
52+
final String weakSummaryPath;
53+
4854
SdkLayout.createDefault(String sdkDirectory)
4955
: this(
5056
sdkDirectory: sdkDirectory,
@@ -65,6 +71,8 @@ class SdkLayout {
6571
const SdkLayout({
6672
required this.sdkDirectory,
6773
required this.summaryPath,
74+
this.soundSummaryPath = '',
75+
this.weakSummaryPath = '',
6876
required this.dartdevcSnapshotPath,
6977
});
7078
}

0 commit comments

Comments
 (0)