smartpub 1.1.1 copy "smartpub: ^1.1.1" to clipboard
smartpub: ^1.1.1 copied to clipboard

Smart Flutter dependency analyzer that cleans and organizes pubspec.yaml by detecting unused, misplaced, and duplicate dependencies.

πŸ“„ Changelog #


1.1.1 – 2026-07-06 #

✨ What’s New

  • Missing Dependency Detection: Added support for detecting packages imported or exported in source code but missing from pubspec.yaml (critical for preventing hidden transitive dependency breaks).
  • Animated Spinners & CLI Loaders: Added live animated spinners and progress feedback for slow dependency grouping/categorization tasks.

1.1.0 – 2026-07-05 #

✨ What’s New

  • Misplaced Dependency Detection: Added support for detecting over-promoted packages (used only in tests/tools but declared in dependencies) and under-promoted packages (used in core libraries but declared in dev_dependencies) and automatically or interactively relocating them during cleanup.
  • Persistent Configuration (smartpub.yaml): Added support for team-shareable project configuration files to define directory exclusions (using globs), package ignore lists, and selection check toggles.
  • Setup Initialization Command (init): Added the smartpub init command to safely initialize a fully commented default config template in the project root.
  • Export Scanning: Expanded the scanner engine to parse and verify export statements alongside imports, resolving false-positive unused warnings for exported library packages.

1.0.8 – 2026-03-15 #

✨ What’s New

  • CI Integration Support: SmartPub now returns standard Unix exit codes (0 for success, 1 for violations found, 2 for tool errors, 3 for invalid arguments), making it perfect for CI/CD pipelines (GitHub Actions, GitLab CI, Bitrise).
  • Added --no-fail-on-violations flag to run in "warn-only" mode (always exits 0), which is helpful during initial CI migration.

1.0.7 – 2026-03-08 #

πŸ› Bug Fixes

  • Fixed flutter SDK being incorrectly detected as unused during clean and group commands.
  • Ensured flutter SDK is always placed at the top of pubspec.yaml when running smartpub group --apply.

1.0.6 – 2026-02-22 #

πŸ› Bug Fixes #

  • Fixed a bug where the update notification could appear even if the tool was up-to-date.

1.0.4 – 2026-02-09 #

πŸ“š Documentation #

  • Updated example documentation with comprehensive usage scenarios
  • Added interactive mode examples with sample outputs
  • Included category override examples with group-overrides.yaml
  • Updated CI/CD integration examples to use new command syntax
  • Improved quick start guide with all available commands

1.0.3 – 2026-02-09 #

πŸ› Bug Fixes #

  • Fixed "Category not found" error causing app crashes when API returns error responses
  • Improved null safety across all JSON parsing operations
  • Enhanced error handling to gracefully handle malformed API responses and missing data fields

πŸ”„ Improvements #

  • Better resilience when categorization API is unavailable or returns unexpected data
  • Application continues execution with safe defaults instead of crashing on data errors

1.0.2 – 2026-02-08 #

✨ What’s New #

  • New simplified CLI commands: check, clean, group, restore, update
  • Preview-first workflows for both unused dependency detection and categorization
  • Interactive categorization with clearer prompts and progress indicators
  • Visual confirmation when keeping suggested categories during interactive grouping

πŸ”„ What Changed #

  • check is now the default command when no arguments are provided
  • Categorization is faster and more reliable with automatic caching
  • Help output is clearer and easier to understand for new users

πŸš€ Improvements #

  • Faster categorization performance
  • Clearer error messages for invalid command usage
  • Safer workflows with restore guidance after changes

1.0.1 – 2025-10-20 #

πŸ”„ Improvements #

  • Dev dependencies are no longer incorrectly flagged as unused
  • Smarter detection of when dependencies should move between sections
  • Reduced false positives for build tools and linters

1.0.0 – 2025-10-18 #

πŸŽ‰ Initial Release #

  • Detect unused dependencies in Flutter and Dart projects
  • Automatically remove unused and misplaced dependencies
  • Interactive cleanup mode with confirmations
  • Automatic backup and restore support
  • Works across all Flutter platforms

7
likes
160
points
210
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Smart Flutter dependency analyzer that cleans and organizes pubspec.yaml by detecting unused, misplaced, and duplicate dependencies.

Repository (GitHub)
View/report issues

Topics

#dependencies #pubspec #analyzer #cli #developer-tools

License

BSD-3-Clause (license)

Dependencies

ansicolor, args, checked_yaml, glob, http, path, pub_semver, yaml

More

Packages that depend on smartpub