Semantic versions in deployments for dynamic versions software

It would be nice to be able to specify NPM-style version specifiers for deployments, particularly for software with dynamic versions. We might be happy with any version of the software within a certain major version, for example, so we could put “5.x” to represent “anything with major version number of 5”.