@beaumont thank you for that! Are you planning to make patch releases for 3.x.x and 4.x.x? There are some big packages (e.g. GitHub - vapor/vapor at vapor4 · GitHub ) that lock Swift Crypto below v5.
About Vapor 4 specifically, I believe there is no technical reason we can’t simply allow Swift Crypto v5.
If you’d like to submit a PR to the vapor4 branch to simply widen the accepted range in Package.swift, that’d be great, otherwise we can take care of it.
Problem is also postgres-nio and who knows what else is the same. Imho rather than scrambling to migrate all affected packages it would make sense for Swift Crypto to release security patches for all major versions affected.
We haven't historically backported to previous majors because all these majors are almost API backwards compatible and the ecosystem is strongly encouraged to widen their supported versions as described in the README. We also expect future years to not require a new major due to the adoption of nonexhaustive enums in 5.0.
Yeah, you should be able to widen without a breaking change.
Postgres NIO is already updated to accept 5.x AFAICT looking at their package manifest.
We might be able to backport this to 4.x if there's a strong need.
@beaumont Not sure what's the best move here but I do want to mention that there are lots of libraries that are still not on v5. These are only the Apple ones. I had an LLM dig through the repos: