Lower minimum SDK constraint to ^3.10.0#9
Open
galacticgibbon wants to merge 1 commit into
Open
Conversation
The only language feature in use that gates the SDK floor is dot shorthands, which shipped stable in Dart 3.10. pro_lsp itself only requires ^3.10.0, so nothing in the dependency tree needs 3.12. Verified on Dart 3.11.4 (Flutter 3.41.6): dart analyze is clean, all 30 tests pass, dart format is unchanged, and the tool runs end-to-end against the example fixture.
galacticgibbon
force-pushed
the
lower-sdk-constraint-3.11
branch
from
July 14, 2026 22:18
eefc9a3 to
da50a31
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lowers
environment.sdkfrom^3.12.2to^3.10.0(root package and theexample/fixture). This lets ciach be activated on projects still pinned to Flutter 3.38–3.41 (Dart 3.10–3.11), which currently fail version solving:Why 3.10 is a safe floor
.class$,.new(...), etc.), which shipped stable in Dart 3.10. Null-aware elements ('container': ?container) only need 3.8.pro_lspdeclaressdk: ^3.10.0itself, so nothing in the dependency tree requires 3.12.Verification (on Dart 3.11.4 / Flutter 3.41.6)
dart analyze— no issuesdart test— all 30 tests passdart format --set-exit-if-changed .— unchangeddart run bin/ciach.dart example— runs end-to-end, reports the expected fixture declarations// @dart=3.10accepts the shorthand syntax while// @dart=3.9rejects it, so^3.10.0is the true floorNotes
Deliberately not bumping the version or touching the CHANGELOG so you can fold this into your next release however you prefer — happy to add an entry if you'd like. You may also want a second CI job on SDK
3.10to keep the floor honest; also happy to add that here if wanted.