The semver codec: "1.2.3-beta.1" to a frozen SemVer. Each hydrate makes a new
instance. inc() and format() write to the instance, so they throw on the frozen value.
Use semver.inc(value.version, 'patch'), which gives a string. Serialize keeps build
metadata. equals uses semver.eq, so it ignores build metadata (SemVer 2.0.0, section 10).
The
semvercodec:"1.2.3-beta.1"to a frozenSemVer. Each hydrate makes a new instance.inc()andformat()write to the instance, so they throw on the frozen value. Usesemver.inc(value.version, 'patch'), which gives a string. Serialize keeps build metadata.equalsusessemver.eq, so it ignores build metadata (SemVer 2.0.0, section 10).