Repository navigation
chore: raise min Dart SDK to 3.4.0 to match web ^1.1.1 - #243
Merged
Merged
Conversation
passkeys_web depends on web ^1.1.1, and web >=1.0.0 requires Dart >=3.4.0, but passkeys_web and passkeys still declare sdk >=3.0.0. On Dart 3.3.x this surfaces as a confusing transitive version-solving error. Declare the real minimum so the constraint is honest and the error is clear.
2 tasks done
spydon
added a commit
to supabase/supabase-flutter
that referenced
this pull request
Jun 15, 2026
## What Raises the minimum Dart SDK to `>=3.4.0` for **every package** in the workspace (functions_client, gotrue, postgrest, realtime_client, storage_client, supabase, supabase_flutter, yet_another_json_isolate) so the floor is consistent across the repo. Also: - `supabase_flutter`: `environment.flutter` `>=3.19.0` → `>=3.22.0` (the release that bundled Dart 3.4.0) - CI: the `test-flutter` matrix floor `3.19.x` → `3.22.x` - Example app: corrects its stale `>=2.15.0 <3.0.0` constraint to `>=3.4.0 <4.0.0` ## Why `supabase_flutter` needs Dart 3.4.0 to add the [`passkeys`](https://pub.dev/packages/passkeys) plugin (see the stacked passkey PR #1408): `passkeys` → `passkeys_web ^2.8.1` → `web ^1.1.1`, and `web >=1.0.0` requires Dart `>=3.4.0`. ``` Because passkeys >=2.17.4 depends on passkeys_web ^2.8.1 which depends on web ^1.1.1, passkeys >=2.17.4 requires web ^1.1.1. So, because web >=1.0.0 requires SDK version >=3.4.0 <4.0.0 ... ``` Bumping every package keeps the supported-SDK floor uniform rather than having `supabase_flutter` diverge from the rest. > Note: `passkeys`/`passkeys_web` themselves declare `sdk: ">=3.0.0"` even though they really require 3.4.0. Submitted an upstream fix for that so the constraint is honest: corbado/flutter-passkeys#243. ## Note Raising the minimum SDK is a breaking change for consumers still on Dart 3.3.x, so this should land in a minor/major release rather than a patch. ## Test plan - [x] `melos bootstrap` resolves all 9 packages on Dart 3.4.0+ - [x] CI matrix updated so the min-version job uses an SDK that satisfies the new floor
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.
What
Raise the minimum Dart SDK from
>=3.0.0to>=3.4.0inpasskeys_webandpasskeys.Why
passkeys_webdepends onweb: ^1.1.1, andweb >=1.0.0requires Dart>=3.4.0. Howeverpasskeys_web(and the top-levelpasskeys, which depends on it) still declaresdk: ">=3.0.0 <4.0.0". The declared minimum is therefore lower than the real one.On a project using Dart 3.3.x this surfaces as a confusing transitive version-solving failure rather than a clear "this package needs Dart 3.4.0":
Declaring the real minimum makes the constraint honest and gives consumers a clear error pointing at the SDK requirement.
Notes
web ^1.1.1requirement (passkeys_webdirectly,passkeystransitively). Happy to extend the bump to the other packages in the monorepo if you prefer a uniform floor.