Skip to content

v3.1.0

Latest

Choose a tag to compare

@stackotter stackotter released this 27 Nov 14:22
· 2 commits to main since this release
e182e46

This release bumps Swift Bundler's version to 3.1.0 (duh) to enable config_version-based configuration files.

config_version = "3.1.0"

[apps.HelloWorld]
# ... (everything else as usual)

The config_version field is superior to the old format_version field because it lets outdated CLIs tell you exactly which version of Swift Bundler you need in order to load a particular config file.

This change isn't great for forwards compatibility of old CLIs, but CLIs from before config_version didn't even check the format_version field properly in the first place, so I don't think it's that big of a deal. Even just bumping the format_version would be a similarly breaking change for those old CLIs.

3.0.0 understands the config_version field enough to give helpful error messages but doesn't allow using it, because the CLI's reported version was 3.0.0 long before the release of 3.0.0. Having a config file with config_version = "3.0.0" fail to load when used with a CLI that claims to be 3.0.0 would be very confusing.

Tl;dr

This new config_version system is far superior, but required breaking things in a way that made introducing it in 3.1.0 a better idea than introducing it in 3.0.0. The feature was already implemented, but gated, so all we had to do to enable it was bump the CLI version (and fix a few minor things).

Merged PRs

Full Changelog: v3.0.0...v3.1.0