From 7e4e0326d7a39aa98102418b3171b6e0bf9e76d0 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Mon, 16 Mar 2026 09:59:07 -0700 Subject: [PATCH] Bump web packages to language version 3.12. This CL is part of an effort to bump the SDK requirement to `3.12.0-0` for all the packages in `pkg` that are not published to `pub`, so that we can get better testing of the "private named parameters" feature. (Packages that *are* published to `pub` can't be safely bumped yet, because SDK 3.12 hasn't been released, and I don't want to block those packages' ability to publish useful updates to customers.) This change covers the following packages, which are owned by OWNERS_WEB: - pkg/_js_interop_checks/pubspec.yaml - pkg/compiler/pubspec.yaml - pkg/dart2js_info/pubspec.yaml - pkg/dart2js_runtime_metrics/pubspec.yaml - pkg/dart2js_tools/pubspec.yaml - pkg/dev_compiler/pubspec.yaml - pkg/js_ast/pubspec.yaml - pkg/js_runtime/pubspec.yaml - pkg/js_shared/pubspec.yaml - pkg/modular_test/pubspec.yaml - pkg/node_preamble/pubspec.yaml - pkg/reload_test/pubspec.yaml - pkg/sourcemap_testing/pubspec.yaml Changes to `pubspec.yaml` files were made manually. Changes to `.dart` files were made automatically (with a few exceptions), using `dart fix` to migrate to using private named parameters where it is possible to do so without changing semantics. Note that this migration is conservative; see https://github.com/dart-lang/sdk/issues/58607 for details. The exceptions are: - pkg/compiler/test/codesize/swarm/DataSource.dart - pkg/compiler/test/codesize/swarm/Views.dart - pkg/compiler/test/codesize/swarm/swarm_ui_lib/layout/GridLayout.dart - pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/ClickBuster.dart - pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scrollbar.dart - pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scroller.dart - pkg/dev_compiler/test/sourcemap/testfiles/next_through_is_and_as_test.dart For these files, there was no need to migrate to using private named parameters, however the language version bump caused flow analysis to improve, so some additional dead code was detected that hadn't been detected previously. I reasoned that it's better to minimize changes to testcases, so rather than deleting the dead code, I just added `ignore` comments to prevent the bots from failing. Change-Id: I04f5280d7cedef0a6f0ef718133a03d06a6a6964 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/487945 Auto-Submit: Paul Berry Reviewed-by: Nicholas Shahan Commit-Queue: Paul Berry Reviewed-by: Daco Harkes --- pkg/_js_interop_checks/pubspec.yaml | 2 +- .../lib/src/js_backend/backend_impact.dart | 4 +-- .../lib/src/js_backend/backend_usage.dart | 16 +++++------- .../js_backend/custom_elements_analysis.dart | 4 +-- pkg/compiler/lib/src/js_model/elements.dart | 4 +-- pkg/compiler/lib/src/kernel/kernel_world.dart | 4 +-- .../lib/src/serialization/binary_source.dart | 3 +-- .../src/universe/codegen_world_builder.dart | 25 +++++++------------ .../lib/src/universe/member_usage.dart | 13 ++++------ pkg/compiler/pubspec.yaml | 2 +- .../test/codesize/swarm/DataSource.dart | 1 + pkg/compiler/test/codesize/swarm/Views.dart | 2 ++ .../swarm/swarm_ui_lib/layout/GridLayout.dart | 1 + .../swarm/swarm_ui_lib/touch/ClickBuster.dart | 1 + .../swarm/swarm_ui_lib/touch/Scrollbar.dart | 1 + .../swarm/swarm_ui_lib/touch/Scroller.dart | 1 + pkg/dart2js_info/pubspec.yaml | 2 +- pkg/dart2js_runtime_metrics/pubspec.yaml | 2 +- pkg/dart2js_tools/pubspec.yaml | 2 +- pkg/dev_compiler/lib/src/js_ast/nodes.dart | 3 +-- .../lib/src/kernel/compiler_new.dart | 5 ++-- .../lib/src/kernel/retry_timeout_client.dart | 10 +++----- pkg/dev_compiler/pubspec.yaml | 2 +- .../next_through_is_and_as_test.dart | 2 +- pkg/js_ast/pubspec.yaml | 2 +- pkg/js_runtime/pubspec.yaml | 2 +- pkg/js_shared/pubspec.yaml | 2 +- pkg/modular_test/pubspec.yaml | 2 +- pkg/node_preamble/pubspec.yaml | 2 +- pkg/reload_test/pubspec.yaml | 2 +- pkg/sourcemap_testing/pubspec.yaml | 2 +- 31 files changed, 57 insertions(+), 69 deletions(-) diff --git a/pkg/_js_interop_checks/pubspec.yaml b/pkg/_js_interop_checks/pubspec.yaml index 6413f2509f8..ea24db4d5f5 100644 --- a/pkg/_js_interop_checks/pubspec.yaml +++ b/pkg/_js_interop_checks/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none environment: # Use min prerelease bound to get the latest formatter changes. - sdk: '^3.8.0' + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/compiler/lib/src/js_backend/backend_impact.dart b/pkg/compiler/lib/src/js_backend/backend_impact.dart index c18e33977e3..e7465a8da0f 100644 --- a/pkg/compiler/lib/src/js_backend/backend_impact.dart +++ b/pkg/compiler/lib/src/js_backend/backend_impact.dart @@ -40,8 +40,8 @@ class BackendImpact { this.instantiatedClasses = const [], this.globalClasses = const [], this.otherImpacts = const [], - EnumSet features = const EnumSet.empty(), - }) : _features = features; + this._features = const EnumSet.empty(), + }); Iterable get features => _features.iterable(BackendFeature.values); diff --git a/pkg/compiler/lib/src/js_backend/backend_usage.dart b/pkg/compiler/lib/src/js_backend/backend_usage.dart index 08bf255e37d..02d13f2e408 100644 --- a/pkg/compiler/lib/src/js_backend/backend_usage.dart +++ b/pkg/compiler/lib/src/js_backend/backend_usage.dart @@ -278,22 +278,18 @@ class BackendUsageImpl implements BackendUsage { final bool isNoSuchMethodUsed; BackendUsageImpl({ - required Set? globalFunctionDependencies, - required Set? globalClassDependencies, - required Set helperFunctionsUsed, - required Set helperClassesUsed, + required this._globalFunctionDependencies, + required this._globalClassDependencies, + required this._helperFunctionsUsed, + required this._helperClassesUsed, required this.needToInitializeIsolateAffinityTag, required this.needToInitializeDispatchProperty, required this.requiresPreamble, required this.requiresStartupMetrics, - required Set runtimeTypeUses, + required this._runtimeTypeUses, required this.isFunctionApplyUsed, required this.isNoSuchMethodUsed, - }) : _globalFunctionDependencies = globalFunctionDependencies, - _globalClassDependencies = globalClassDependencies, - _helperFunctionsUsed = helperFunctionsUsed, - _helperClassesUsed = helperClassesUsed, - _runtimeTypeUses = runtimeTypeUses; + }); factory BackendUsageImpl.readFromDataSource(DataSourceReader source) { source.begin(tag); diff --git a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart index 432ceb8a93c..4ff2b3ac9f5 100644 --- a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart +++ b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart @@ -180,8 +180,8 @@ class CustomElementsAnalysisJoin { this._elementEnvironment, this._commonElements, this._nativeData, { - BackendUsageBuilder? backendUsageBuilder, - }) : _backendUsageBuilder = backendUsageBuilder; + this._backendUsageBuilder, + }); WorldImpact flush() { if (!demanded) return const WorldImpact(); diff --git a/pkg/compiler/lib/src/js_model/elements.dart b/pkg/compiler/lib/src/js_model/elements.dart index feaa7430797..448bdd90cbe 100644 --- a/pkg/compiler/lib/src/js_model/elements.dart +++ b/pkg/compiler/lib/src/js_model/elements.dart @@ -144,8 +144,8 @@ abstract class JMember with EntityMapKey implements MemberEntity { this.library, this.enclosingClass, this._name, { - bool isStatic = false, - }) : _isStatic = isStatic; + this._isStatic = false, + }); /// Deserializes a [JMember] object from [source]. factory JMember.readFromDataSource(DataSourceReader source) { diff --git a/pkg/compiler/lib/src/kernel/kernel_world.dart b/pkg/compiler/lib/src/kernel/kernel_world.dart index 0f7f7b9f417..6a5543c4821 100644 --- a/pkg/compiler/lib/src/kernel/kernel_world.dart +++ b/pkg/compiler/lib/src/kernel/kernel_world.dart @@ -103,7 +103,7 @@ class KClosedWorld implements BuiltWorld { required this.noSuchMethodData, required RuntimeTypesNeedBuilder rtiNeedBuilder, required this.fieldAnalysis, - required Set implementedClasses, + required this._implementedClasses, required this.liveNativeClasses, required this.liveInstanceMembers, required this.liveAbstractInstanceMembers, @@ -123,7 +123,7 @@ class KClosedWorld implements BuiltWorld { required this.localFunctions, required this.instantiatedTypes, required this.instantiatedRecordTypes, - }) : _implementedClasses = implementedClasses { + }) { _rtiNeed = rtiNeedBuilder.computeRuntimeTypesNeed(this, options); assert(_checkIntegrity()); } diff --git a/pkg/compiler/lib/src/serialization/binary_source.dart b/pkg/compiler/lib/src/serialization/binary_source.dart index 4c242974009..a321912b05e 100644 --- a/pkg/compiler/lib/src/serialization/binary_source.dart +++ b/pkg/compiler/lib/src/serialization/binary_source.dart @@ -15,8 +15,7 @@ class BinaryDataSource implements DataSource { final StringInterner? _stringInterner; late final Map _deferredOffsetToSize; - BinaryDataSource(this._bytes, {StringInterner? stringInterner}) - : _stringInterner = stringInterner { + BinaryDataSource(this._bytes, {this._stringInterner}) { final deferredDataStart = readAtOffset(_bytes.length - 4, readUint32); _deferredOffsetToSize = readAtOffset(deferredDataStart, () { final deferredSizesCount = readInt(); diff --git a/pkg/compiler/lib/src/universe/codegen_world_builder.dart b/pkg/compiler/lib/src/universe/codegen_world_builder.dart index ef36a65c7d2..2bd03f5eac6 100644 --- a/pkg/compiler/lib/src/universe/codegen_world_builder.dart +++ b/pkg/compiler/lib/src/universe/codegen_world_builder.dart @@ -962,24 +962,17 @@ class CodegenWorldImpl implements CodegenWorld { required this.namedTypeVariables, required this.instantiatedTypes, required this.liveTypeArguments, - required Map> parameterStubs, - required Iterable compiledConstants, - required Map> invokedNames, - required Map> invokedGetters, - required Map> invokedSetters, - required Map> staticTypeArgumentDependencies, - required Map> dynamicTypeArgumentDependencies, + required this._parameterStubs, + required this._compiledConstants, + required this._invokedNames, + required this._invokedGetters, + required this._invokedSetters, + required this._staticTypeArgumentDependencies, + required this._dynamicTypeArgumentDependencies, required this.oneShotInterceptorData, - }) : _parameterStubs = parameterStubs, - _reachableLazyMemberBodies = processedEntities + }) : _reachableLazyMemberBodies = processedEntities .where((e) => e is JGeneratorBody || e is JConstructorBody) - .toSet(), - _compiledConstants = compiledConstants, - _invokedNames = invokedNames, - _invokedGetters = invokedGetters, - _invokedSetters = invokedSetters, - _staticTypeArgumentDependencies = staticTypeArgumentDependencies, - _dynamicTypeArgumentDependencies = dynamicTypeArgumentDependencies; + .toSet(); @override AnnotationsData get annotationsData => _closedWorld.annotationsData; diff --git a/pkg/compiler/lib/src/universe/member_usage.dart b/pkg/compiler/lib/src/universe/member_usage.dart index d30f0c453f2..676d9cca7d1 100644 --- a/pkg/compiler/lib/src/universe/member_usage.dart +++ b/pkg/compiler/lib/src/universe/member_usage.dart @@ -800,14 +800,11 @@ class ParameterUsage { ParameterUsage.cloned( this._parameterStructure, { - required bool hasInvoke, - required int? providedPositionalParameters, - required bool areAllTypeParametersProvided, - required Set? unprovidedNamedParameters, - }) : _hasInvoke = hasInvoke, - _providedPositionalParameters = providedPositionalParameters, - _areAllTypeParametersProvided = areAllTypeParametersProvided, - _unprovidedNamedParameters = unprovidedNamedParameters; + required this._hasInvoke, + required this._providedPositionalParameters, + required this._areAllTypeParametersProvided, + required this._unprovidedNamedParameters, + }); bool invoke(CallStructure callStructure) { if (isFullyUsed) return false; diff --git a/pkg/compiler/pubspec.yaml b/pkg/compiler/pubspec.yaml index aa6de93da18..63fda3fefaf 100644 --- a/pkg/compiler/pubspec.yaml +++ b/pkg/compiler/pubspec.yaml @@ -5,7 +5,7 @@ name: compiler publish_to: none environment: - sdk: ^3.8.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/compiler/test/codesize/swarm/DataSource.dart b/pkg/compiler/test/codesize/swarm/DataSource.dart index 202f38f9371..cb7fd41c7b4 100644 --- a/pkg/compiler/test/codesize/swarm/DataSource.dart +++ b/pkg/compiler/test/codesize/swarm/DataSource.dart @@ -225,6 +225,7 @@ class Article { void _ensureLoaded() { if (_htmlBody != null) return; + // ignore: dead_code var name = '$dataUri.html'; if (Sections.runningFromFile) { _htmlBody = CannedData.data[name]!; diff --git a/pkg/compiler/test/codesize/swarm/Views.dart b/pkg/compiler/test/codesize/swarm/Views.dart index fa8cde11fc6..960f8bbb2e7 100644 --- a/pkg/compiler/test/codesize/swarm/Views.dart +++ b/pkg/compiler/test/codesize/swarm/Views.dart @@ -926,10 +926,12 @@ class VariableSizeListViewLayout implements ListViewLayout { final offsetInt = offset.toInt(); int start = _findFirstItemBefore( -offsetInt - bufferLength, + // ignore: dead_code _lastVisibleInterval != null ? _lastVisibleInterval.start : 0, ); int end = _findFirstItemAfter( -offsetInt + viewLength + bufferLength, + // ignore: dead_code _lastVisibleInterval != null ? _lastVisibleInterval.end : 0, ); _lastVisibleInterval = Interval(start, Math.max(start, end)); diff --git a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/layout/GridLayout.dart b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/layout/GridLayout.dart index 5ad03c47e1f..76543535c04 100644 --- a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/layout/GridLayout.dart +++ b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/layout/GridLayout.dart @@ -405,6 +405,7 @@ class GridLayout extends ViewLayout { // Fill in tracks for (int i = first; i < length; i++) { + // ignore: dead_code if (tracks[i] == null) { tracks[i] = GridTrack(sizing); } diff --git a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/ClickBuster.dart b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/ClickBuster.dart index 3b4c377c820..728b73c7854 100644 --- a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/ClickBuster.dart +++ b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/ClickBuster.dart @@ -162,6 +162,7 @@ class ClickBuster { // temporary "allowable zone". // - The click handler captures the user's click event and allows it to // propagate since the click falls in the "allowable zone". + // ignore: dead_code if (_coordinates == null) { // Listen to clicks on capture phase so they can be busted before anything // else gets a chance to handle them. diff --git a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scrollbar.dart b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scrollbar.dart index 55e5b9ece6a..8310c1443ba 100644 --- a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scrollbar.dart +++ b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scrollbar.dart @@ -93,6 +93,7 @@ class Scrollbar implements ScrollListener { if (_verticalElement != null) { return; } + // ignore: dead_code _verticalElement = Element.html( '
', ); diff --git a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scroller.dart b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scroller.dart index 5b0e3566230..41fe823744f 100644 --- a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scroller.dart +++ b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/touch/Scroller.dart @@ -495,6 +495,7 @@ class Scroller implements Draggable, MomentumDelegate { scheduleMicrotask(() { if (_lookupContentSizeDelegate != null) { _contentSize = _lookupContentSizeDelegate(); + // ignore: dead_code } else { _contentSize = Size(_element.scrollWidth, _element.scrollHeight); } diff --git a/pkg/dart2js_info/pubspec.yaml b/pkg/dart2js_info/pubspec.yaml index e37c46bbe97..2343d5b1bc0 100644 --- a/pkg/dart2js_info/pubspec.yaml +++ b/pkg/dart2js_info/pubspec.yaml @@ -6,7 +6,7 @@ description: >- --dump-info. environment: - sdk: '^3.8.0' + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/dart2js_runtime_metrics/pubspec.yaml b/pkg/dart2js_runtime_metrics/pubspec.yaml index 8c16e884be7..cfa03849b02 100644 --- a/pkg/dart2js_runtime_metrics/pubspec.yaml +++ b/pkg/dart2js_runtime_metrics/pubspec.yaml @@ -7,7 +7,7 @@ description: >- This library provides access to the measurements at runtime. environment: - sdk: "^3.8.0" + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/dart2js_tools/pubspec.yaml b/pkg/dart2js_tools/pubspec.yaml index 6030b496b84..d6129e3090b 100644 --- a/pkg/dart2js_tools/pubspec.yaml +++ b/pkg/dart2js_tools/pubspec.yaml @@ -6,7 +6,7 @@ description: > information, deobfuscation of stack-traces and minified names. environment: - sdk: '^3.8.0' + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/dev_compiler/lib/src/js_ast/nodes.dart b/pkg/dev_compiler/lib/src/js_ast/nodes.dart index 1d837af3746..39c88fed6ba 100644 --- a/pkg/dev_compiler/lib/src/js_ast/nodes.dart +++ b/pkg/dev_compiler/lib/src/js_ast/nodes.dart @@ -1797,8 +1797,7 @@ class ObjectInitializer extends Expression { final bool _multiline; /// Constructs a new object-initializer containing the given [properties]. - ObjectInitializer(this.properties, {bool multiline = false}) - : _multiline = multiline; + ObjectInitializer(this.properties, {this._multiline = false}); @override T accept(NodeVisitor visitor) => visitor.visitObjectInitializer(this); diff --git a/pkg/dev_compiler/lib/src/kernel/compiler_new.dart b/pkg/dev_compiler/lib/src/kernel/compiler_new.dart index 8b4b09764a2..a7a5d63ebe6 100644 --- a/pkg/dev_compiler/lib/src/kernel/compiler_new.dart +++ b/pkg/dev_compiler/lib/src/kernel/compiler_new.dart @@ -120,9 +120,8 @@ class LibraryBundleCompiler implements old.Compiler { this._importToSummary, this._summaryToModule, { CoreTypes? coreTypes, - Ticker? ticker, - }) : _coreTypes = coreTypes ?? CoreTypes(component), - _ticker = ticker; + this._ticker, + }) : _coreTypes = coreTypes ?? CoreTypes(component); @override Map get classIdentifiers => diff --git a/pkg/dev_compiler/lib/src/kernel/retry_timeout_client.dart b/pkg/dev_compiler/lib/src/kernel/retry_timeout_client.dart index e2d58c34219..c006af6b43a 100644 --- a/pkg/dev_compiler/lib/src/kernel/retry_timeout_client.dart +++ b/pkg/dev_compiler/lib/src/kernel/retry_timeout_client.dart @@ -36,20 +36,18 @@ class RetryTimeoutClient { /// Creates a client wrapping [_inner] that retries HTTP requests. RetryTimeoutClient( this._inner, { - int retries = 3, + this._retries = 3, bool Function(HttpClientResponse)? when, bool Function(Object, StackTrace)? whenError, Duration Function(int retryCount)? delay, Duration Function(int retryCount)? connectionTimeout, Duration Function(int retryCount)? responseTimeout, - void Function(Uri, HttpClientResponse?, int retryCount)? onRetry, - }) : _retries = retries, - _when = when ?? _defaultWhen, + this._onRetry, + }) : _when = when ?? _defaultWhen, _whenError = whenError ?? _defaultWhenError, _delay = delay ?? _defaultDelay, _connectionTimeout = connectionTimeout ?? _defaultTimeout, - _responseTimeout = responseTimeout ?? _defaultTimeout, - _onRetry = onRetry { + _responseTimeout = responseTimeout ?? _defaultTimeout { RangeError.checkNotNegative(_retries, 'retries'); } diff --git a/pkg/dev_compiler/pubspec.yaml b/pkg/dev_compiler/pubspec.yaml index 7d7b18b96bd..d08bea697d5 100644 --- a/pkg/dev_compiler/pubspec.yaml +++ b/pkg/dev_compiler/pubspec.yaml @@ -3,7 +3,7 @@ name: dev_compiler publish_to: none environment: - sdk: ^3.8.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/dev_compiler/test/sourcemap/testfiles/next_through_is_and_as_test.dart b/pkg/dev_compiler/test/sourcemap/testfiles/next_through_is_and_as_test.dart index 20daab94c56..9a6e674c7ad 100644 --- a/pkg/dev_compiler/test/sourcemap/testfiles/next_through_is_and_as_test.dart +++ b/pkg/dev_compiler/test/sourcemap/testfiles/next_through_is_and_as_test.dart @@ -27,7 +27,7 @@ void main() { print("but it's not even even!"); } } - // ignore: unnecessary_type_check + // ignore: dead_code, unnecessary_type_check /*bc:14*/ if (hex is! int) { print('hex is not int'); } diff --git a/pkg/js_ast/pubspec.yaml b/pkg/js_ast/pubspec.yaml index dd8f3af1a43..3fc95668ef0 100644 --- a/pkg/js_ast/pubspec.yaml +++ b/pkg/js_ast/pubspec.yaml @@ -3,7 +3,7 @@ name: js_ast publish_to: none environment: - sdk: '^3.8.0' + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/js_runtime/pubspec.yaml b/pkg/js_runtime/pubspec.yaml index ded19b5f120..9d8e99d8c42 100644 --- a/pkg/js_runtime/pubspec.yaml +++ b/pkg/js_runtime/pubspec.yaml @@ -3,7 +3,7 @@ name: js_runtime publish_to: none environment: - sdk: ^3.8.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/js_shared/pubspec.yaml b/pkg/js_shared/pubspec.yaml index 251346d9e38..f433f75d7f2 100644 --- a/pkg/js_shared/pubspec.yaml +++ b/pkg/js_shared/pubspec.yaml @@ -3,7 +3,7 @@ name: js_shared publish_to: none environment: - sdk: ^3.8.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/modular_test/pubspec.yaml b/pkg/modular_test/pubspec.yaml index 3d5f8e342b7..9c0d7ca85fe 100644 --- a/pkg/modular_test/pubspec.yaml +++ b/pkg/modular_test/pubspec.yaml @@ -7,7 +7,7 @@ description: > pipeline of different SDK tools. environment: - sdk: ^3.5.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/node_preamble/pubspec.yaml b/pkg/node_preamble/pubspec.yaml index ee228945f07..33d4dd963d1 100644 --- a/pkg/node_preamble/pubspec.yaml +++ b/pkg/node_preamble/pubspec.yaml @@ -1,7 +1,7 @@ # This is just a stub, not the real node_preamble package name: node_preamble environment: - sdk: ^3.8.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/reload_test/pubspec.yaml b/pkg/reload_test/pubspec.yaml index 9151b571a52..90b62fa5a46 100644 --- a/pkg/reload_test/pubspec.yaml +++ b/pkg/reload_test/pubspec.yaml @@ -5,7 +5,7 @@ description: > Small framework for testing hot reload and hot restart across Dart backends. environment: - sdk: ^3.6.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/sourcemap_testing/pubspec.yaml b/pkg/sourcemap_testing/pubspec.yaml index 134145df15c..dd278371f15 100644 --- a/pkg/sourcemap_testing/pubspec.yaml +++ b/pkg/sourcemap_testing/pubspec.yaml @@ -4,7 +4,7 @@ name: sourcemap_testing publish_to: none environment: - sdk: ^3.8.0 + sdk: '^3.12.0-0' resolution: workspace