Skip to content

v2.2.0 - Direct Configuration Format Support

Choose a tag to compare

@kiarina kiarina released this 08 Sep 07:28
· 77 commits to main since this release
acee849

What's New

Direct Configuration Format Support

Multi-mode configuration now supports a more intuitive direct format:

# New direct format (recommended)
manager.user_config = {
    "dev": {"app_name": "MyApp-Dev", "debug": True},
    "prod": {"app_name": "MyApp-Prod", "debug": False}
}

# Existing structured format (still supported)
manager.user_config = {
    "key": "prod",
    "map": {
        "dev": {"app_name": "MyApp-Dev", "debug": True},
        "prod": {"app_name": "MyApp-Prod", "debug": False}
    }
}

Key Improvements

  • Enhanced API Flexibility: Both configuration formats are automatically detected and supported
  • Improved User Experience: More intuitive configuration setup for multi-mode
  • Better Documentation: Updated examples and README with both formats
  • Robust Detection Logic: Simplified and more reliable format detection

Full Changelog

See CHANGELOG.md for complete details.

Compatibility

This release is fully backward compatible. Existing code using the structured format will continue to work without changes.