fix_globals 1.2.2
fix_globals: ^1.2.2 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.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 globalcommands to the newdart install,dart installed, anddart uninstallcommands. - Implemented an internal OS-specific directory scanner to locate globally installed AOT
app-bundlesand parsepubspec.lockfiles to dynamically reconstruct their original install descriptors. - Removed the deprecated
--sdk/-soption, running all commands on the standarddarttoolchain. - 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/-uCLI 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.yamlto 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/-nto preview reinstallation commands.--sdk/-sto choose between running processes viadartorflutter.--help/-hfor 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.