fix_globals 1.3.1
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.0for broader compatibility across Dart 3.11+ environments. - Code formatting and style cleanups across
bin/,lib/, andtest/.
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.
- Switched CLI execution backend to non-blocking asynchronous
- 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 newdart installsystem.
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.