You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the YY.0M.MICRO format, I get the following error: ERROR Cannot read property 'prerelease' of null
I checked and the issue derives from the implementation of parseVersion function implemented here "./lib/util.js" and invoked here in "./lib/tasks.js".
Let's consider the statement in parseVersionconst version = semver.valid(raw) ? raw: semver.coerce(raw); (row 76).
A version like 21.04.1 does not pass the validation above because 04 (Zero-padded month) is not a valid SemVer format. Then, execution continues with a "version" equals "null" and row 78 generates the mentioned error.
Here are the logs with the configuration and the environment I am using:
Maybe it's interesting to look into using the increment (semver default: patch) argument as level (now hard-coded micro), as this could be easily grabbed from the release-it context in the plugin. Then you could do:
Hello,
I would like to use release-it with the plugin that adds Calendar Versioning support (@csmith/release-it-calver-plugin).
When using the YY.0M.MICRO format, I get the following error:
ERROR Cannot read property 'prerelease' of null
I checked and the issue derives from the implementation of parseVersion function implemented here "./lib/util.js" and invoked here in "./lib/tasks.js".
Let's consider the statement in parseVersion
const version = semver.valid(raw) ? raw: semver.coerce(raw);
(row 76).A version like 21.04.1 does not pass the validation above because 04 (Zero-padded month) is not a valid SemVer format. Then, execution continues with a "version" equals "null" and row 78 generates the mentioned error.
Here are the logs with the configuration and the environment I am using:
The text was updated successfully, but these errors were encountered: