PackageTrack
Sign in Get early access

sweeper

Finds and removes unused gen-l10n translation keys from ARB files using resolved static analysis.

0.4.2 4.8K downloads/mo #3897 most downloaded on pub.dev yash-garg/sweeper

What this package is like to depend on

Last release 1 months ago

08 Jul 2026

Too new to tell

only 1 release windows

Nearly every release is documented

notes for 8 of 8 stable releases

Nothing withdrawn

no release was ever pulled

1 months old

8 releases · first in 2026

8 releases in the last 12 months

see the full history below

Release timeline

8 releases · Jul 2026 to Jul 2026
Release Pre-release

Releases

latest 8
  1. 0.4.2 08 Jul 2026
    Release notes

    Full Changelog: v0.4.1...v0.4.2

    Open source →
    Release notes
    • Internal: stricter lint rules and style cleanups; no functional changes.
    Open source →
  2. 0.4.1 08 Jul 2026
    Release notes

    Full Changelog: v0.4.0...v0.4.1

    Open source →
    Release notes
    • clean no longer rewrites ARB files it removed nothing from: untouched files stay byte-identical instead of being reformatted by re-serialization.
    • Hand-written Dart files inside the gen-l10n output directory (e.g. lib/l10n/l10n.dart helpers) are now scanned for key usage; only the generated <output-localization-file> and its _<locale> variants are excluded. Previously, keys used only in such files were wrongly deleted.
    • tool/ scripts are now scanned for key usage.
    • Invalid --keep globs report a clean error (exit 2) instead of crashing with a stack trace.
    • --keep globs are case-sensitive on every platform; previously they were case-insensitive on Windows only.
    • SweepEngine accepts a relative projectRoot instead of throwing a raw ArgumentError.
    • Removing an ARB key with an explicit null value is now counted in the per-file removal totals.
    • Atomic writes use a pid-suffixed temp file (safe under concurrent runs) and clean up the temp file on failure.
    Open source →
  3. 0.4.0 07 Jul 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.3.0...v0.4.0

    Open source →
    Release notes
    • New --scan/-s flag on check and clean: include additional package roots (monorepo siblings) when scanning for key usage.
    • Pub workspaces are detected automatically: all workspace members are scanned for key usage, and the shared root package_config.json is found by walking up parent directories.
    Open source →
  4. 0.3.0 07 Jul 2026
    Release notes

    What's Changed

    • chore(deps): bump actions/checkout from v4 to v7 by @dependabot[bot] in #1

    New Contributors

    Full Changelog: v0.2.2...v0.3.0

    Open source →
    Release notes
    • New sort command: alphabetizes keys in all ARB files, keeping @@ headers first and @key metadata attached to its key.
    Open source →
  5. 0.2.2 07 Jul 2026
    Release notes

    Full Changelog: v0.2.1...v0.2.2

    Open source →
    Release notes
    • Widened analyzer constraint to >=10.0.0 <15.0.0 so sweeper can coexist with packages pinned to older analyzer majors (e.g. dart_code_linter). Full test suite verified against analyzer 10.0.0 and 14.0.0.
    Open source →
  6. 0.2.1 07 Jul 2026
    Release notes

    Full Changelog: v0.2.0...v0.2.1

    Open source →
    Release notes
    • README: full commands & flags reference (including --quiet).
    Open source →
  7. 0.2.0 07 Jul 2026
    Release notes

    Full Changelog: v0.1.0...v0.2.0

    Open source →
    Release notes
    • Hardened detection: the localizations class must be declared in the gen-l10n output location (output-dir or the legacy package:flutter_gen synthetic package), so identically-named classes elsewhere never count.
    • Colored terminal output (ANSI auto-detected, plain when piped).
    • New --quiet/-q flag on check and clean to print summaries only.
    • Dartdoc for the full public API and a pub.dev example.
    Open source →
  8. 0.1.0 07 Jul 2026
    Release notes Open source →
    Release notes
    • Initial release: check and clean commands with resolved-AST unused-key detection, --keep globs, --json, --dry-run, and fail-closed behavior.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive