Skip to content

Set placeholder dev version#403

Merged
GrahamCampbell merged 1 commit into
4.xfrom
set-dev-placeholder-version
Jun 12, 2026
Merged

Set placeholder dev version#403
GrahamCampbell merged 1 commit into
4.xfrom
set-dev-placeholder-version

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor

The version in package.json does nothing for releases: the publish workflow stamps the real number from the release tag with npm version before packing, testing and publishing. Carrying the stale 3.40.1 around is actively misleading on this branch, since a dev checkout reports itself as a v3 release through sls --version and through the serverless.version property exposed to plugins.

This sets the field to 4.0.0-dev, which is valid semver that npm happily accepts but is clearly not a real release. The major is kept truthful rather than using something like 0.0.0-development because the frameworkVersion validation in the service class compares against a coerced version, so a dev checkout run against a service pinned to a v4 range keeps validating as expected, while still failing loudly anywhere the placeholder would be the wrong thing to expose. The version-sensitive tests either stub the version or read it from package.json directly, so nothing depends on the old value.

@GrahamCampbell GrahamCampbell merged commit f43fe3c into 4.x Jun 12, 2026
8 checks passed
@GrahamCampbell GrahamCampbell deleted the set-dev-placeholder-version branch June 12, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant