fix_globals 1.3.1 copy "fix_globals: ^1.3.1" to clipboard
fix_globals: ^1.3.1 copied to clipboard

A command-line utility to cleanly reinstall and refresh all globally activated Dart and Flutter packages from their original sources (pub, path, git, and custom registries).

1.3.1 #

  • Lowered minimum Dart SDK constraint to ^3.11.0 for broader compatibility across Dart 3.11+ environments.
  • Code formatting and style cleanups across bin/, lib/, and test/.

1.3.0 #

  • Comprehensive refactoring and security hardening:
    • Switched CLI execution backend to non-blocking asynchronous Process.run.
    • Added protection against circular symlink recursion in lockfile directory scanning (followLinks: false).
    • Added 10-second request timeouts to pub registry version checks.
    • Cached compiled regular expressions to optimize line parsing performance.
    • Hardened installation path resolution against missing home directory environment variables.
  • Expanded unit test suite from 8 to 17 tests covering model helpers, environment guards, lockfiles, symlinks, and HTTP server mocks.

1.2.3 #

  • Implemented an automatic pub.dev/custom registry API version check in update (--update) mode. Up-to-date packages are now skipped entirely to prevent redundant recompilations under the new dart install system.

1.2.2 #

  • Removed version pinning for hosted and custom-hosted packages so they always install/upgrade to the latest version.

1.2.1 #

  • Updated CHANGELOG to document the mandatory migration step (dart install fix_globals) for upgrading from pre-1.2.0 versions.

1.2.0 #

Important

Migration Note: Because the tool has transitioned to the new SDK toolchain, your old version of fix-globals installed via pub global activate will continue to use the old commands. You must manually run dart install fix_globals once to install the new version.

  • Completely migrated package management backend from the deprecated pub global commands to the new dart install, dart installed, and dart uninstall commands.
  • Implemented an internal OS-specific directory scanner to locate globally installed AOT app-bundles and parse pubspec.lock files to dynamically reconstruct their original install descriptors.
  • Removed the deprecated --sdk / -s option, running all commands on the standard dart toolchain.
  • Updated the dry-run output and final reinstallation summary layout to reflect the new install commands.
  • Updated documentation and unit tests to verify the new toolchain integration.

1.1.0 #

  • Added the --update / -u CLI flag. When active, it bypasses the package deactivation step to quickly pull updates for active packages and repair bound shims.
  • Updated the dry-run output to only display activation commands when in update mode.
  • Enhanced the end-of-execution summary table to show (up to date) or [Failed to Update] statuses.
  • Added comprehensive documentation comparing Default Mode vs. Update Mode in the README.

1.0.1 #

  • Explicitly declared supported desktop platforms (Linux, macOS, Windows) in pubspec.yaml to exclude non-applicable mobile/web platform tags on pub.dev.

1.0.0 #

  • Initial release of fix_globals!
  • Parses currently activated global packages from pub.dev, local path, git repositories, and custom hosted registries.
  • Deactivates and cleanly reactivates packages to force re-compilation of same-version packages (essential for fixing stale/broken global binaries after Dart SDK upgrades).
  • Standard CLI argument parser with support for:
    • --dry-run / -n to preview reinstallation commands.
    • --sdk / -s to choose between running processes via dart or flutter.
    • --help / -h for usage help.
  • Implements automated rollback safety on reactivation failure to prevent package loss.
  • Displays a clean, readable Reinstallation Summary table at the end of execution.
2
likes
160
points
191
downloads

Documentation

API reference

Publisher

verified publisherstonehenge.com

Weekly Downloads

A command-line utility to cleanly reinstall and refresh all globally activated Dart and Flutter packages from their original sources (pub, path, git, and custom registries).

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

args, path, yaml

More

Packages that depend on fix_globals