fleetlint Policy for a fleet of repositories
v0.6
Getting started

release/api-compatibility/flutter

A library checks its API against the previous release

Implements release/api-compatibility for flutter.

Severityinfo
Tiers1
Stacksflutter
Scoperoot
Kindoutcome
Sourcelibrary v0.3.1
Selected byfleetlint-recommended@v0.3.1

Requirement

A Dart or Flutter package that is published (no publish_to: none) runs dart_apitool against the previous release.

Why

A breaking change in a minor release is found by every user at once; the check finds it before the tag.

Applies when

file("pubspec.yaml") && scan("pubspec.yaml", r'^publish_to:\s*\S*none').size() == 0 && exists("lib/*.dart")

Fix

Run dart_apitool diff --old pub://<package>/<previous> --new . in the release workflow.

Agent instruction: Add the stack’s API compatibility tool to the release workflow, comparing against the latest tag; on a breaking change bump the major version instead of silencing the tool.

See: https://fleetlint.org/baseline/#releases, https://fleetlint.org/stacks/#flutter--dart


Generated by fleetlint docs from catalog v0.3.1.