Skip to content

Releases: untitledpng/environment-switcher

v2.0.0

10 Oct 09:12

Choose a tag to compare

🚀 Complete Rewrite with Rollback and Save Commands

This release brings major improvements and new functionality:

  • ♻️ Full Codebase Rewrite:
    The entire codebase has been rewritten for improved performance, cleaner architecture, and easier maintainability.

  • Added Rollback Command:
    Introduced a rollback command to restore environment file(s) from the .backup file or from a specific environment file (e.g., .env.local).

  • Added Save Command:
    Added a save command that allows you to persist current environment changes back to the corresponding environment-specific files.

These enhancements significantly improve reliability, performance, and developer control over environment management.

Upgrading from v1.x

We have changed the JSON structure in both the global and project specific .switchrc files. We recommend to remove these old files and initialise your project again. You can remove your global config using the following command: rm ~/.config/switch/.switchrc

v1.5.0

02 Oct 21:59

Choose a tag to compare

✨ Extended Configuration and Environment Management

This release introduces major enhancements to configuration and environment handling:

  • Save Current Environment in .switchrc:
    The current environment is now saved in the .switchrc file.
    Added a files array to the config which sets default files for all environments, while still allowing per-environment overrides.

  • Global Configuration Support:
    Introduced global configuration where you can define default values for the init command.

  • Add Command for Environments:
    Added an add command to easily add new environments to the config.

  • Remove Environments:
    Implemented the ability to remove environments directly from the configuration.

These updates provide greater flexibility, customization, and ease of managing environments.

v1.4.0

02 Oct 14:43

Choose a tag to compare

💚 Build Switch Executable

This release introduces a build improvement:

  • 💚 Switch Executable Build:
    Added support for building the switch executable, enabling easier distribution and usage of the tool.

This change improves portability and accessibility for end users.

v1.3.0

02 Oct 13:03

Choose a tag to compare

✨ Init Command Creates Environment Files

This release introduces a new enhancement:

  • Automatic Environment File Creation:
    The init command can now create all required environment files based on user input, streamlining the setup process.

This improvement simplifies initialization and reduces manual configuration effort.

v1.2.0

02 Oct 12:27

Choose a tag to compare

✨ Enhanced Environment Switching and Initialization Features

This release introduces multiple new features and improvements:

  • View Current Selected Environment:
    Running the switch command now displays the currently selected environment along with modified files for better visibility.

  • 🎨 Improved Console Styling:
    Refined the styling of console messages for a clearer and more user-friendly experience.

  • Added CLAUDE.md File:
    Introduced an auto-generated CLAUDE.md file to support documentation and workflow consistency.

  • Interactive switch init Command:
    Made the switch init command interactive, allowing you to set environments (defaults: local, staging, production) and choose which files should be switched (default: .env).

  • .gitignore Support in Init Command:
    The switch init command can now also create or update .gitignore files to ensure proper version control handling.

These updates improve usability, customization, and developer workflow when working with environment switching.

v1.1.1

01 Oct 22:54

Choose a tag to compare

🎨 Improved Spacing in switch Output

This release includes a user experience improvement:

  • 🎨 Better Spaced Output:
    Adjusted the formatting of the switch command output to improve readability with clearer spacing.

This change enhances the overall user experience when using the tool.

v1.1.0

01 Oct 22:50

Choose a tag to compare

✨ New Init Command, Improved Docs, and UX Enhancements

This release introduces new features, improvements, and cleanups:

  • Added switch init Command:
    Introduced a new command to simplify the initial configuration setup.

  • 📝 Improved Documentation:
    Enhanced the readme.md with clearer instructions and updated usage examples.

  • 🔥 Removed Compiled Switch Executable:
    Cleaned up the repository by removing the compiled switch executable.

  • 🎨 Enhanced Messages with Colors and Emojis:
    Improved the readability and user experience of printed messages by adding colors and emojis.

  • Failed Message on Skipped Files:
    Now displaying a clear failed message when all files are skipped during environment switching.

These updates streamline setup, improve usability, and keep the project clean.

v1.0.1

01 Oct 22:10

Choose a tag to compare

🐛 Fixed Filename Case Issue for main.swift

This release includes a bug fix:

  • 🐛 Corrected main.swift Case Sensitivity:
    Fixed an issue where main.swift was pushed as Main.swift, causing brew to fail during compilation.

This fix ensures consistent file naming and prevents build errors.

v1.0.0

01 Oct 21:57

Choose a tag to compare

This is the initial release.