Skip to content

chore: raise min Dart SDK to 3.4.0 to match web ^1.1.1 - #243

Merged
kopy merged 1 commit into
corbado:mainfrom
spydon:chore/raise-min-sdk-3.4
Jun 15, 2026
Merged

kopy merged 1 commit into
corbado:mainfrom
spydon:chore/raise-min-sdk-3.4

Conversation

@spydon

@spydon spydon commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

What

Raise the minimum Dart SDK from >=3.0.0 to >=3.4.0 in passkeys_web and passkeys.

Why

passkeys_web depends on web: ^1.1.1, and web >=1.0.0 requires Dart >=3.4.0. However passkeys_web (and the top-level passkeys, which depends on it) still declare sdk: ">=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":

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 and <app> depends on passkeys ^2.19.0,
version solving failed.

Declaring the real minimum makes the constraint honest and gives consumers a clear error pointing at the SDK requirement.

Notes

  • This is the minimum that actually resolves today, so it does not change which SDKs can use the package, only what the metadata reports. Pub already refuses to install these versions on Dart < 3.4.0.
  • Scope kept to the two packages that carry the web ^1.1.1 requirement (passkeys_web directly, passkeys transitively). Happy to extend the bump to the other packages in the monorepo if you prefer a uniform floor.

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.
@kopy
kopy merged commit 4a4c677 into corbado:main Jun 15, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants