MCPcopy Create free account
hub / github.com/Effect-TS/effect / bumpPatch

Function bumpPatch

packages/effect/src/SemVer.ts:774–781  ·  view source on GitHub ↗
(self: SemVer)

Source from the content-addressed store, hash-verified

772 * @since 4.0.6
773 */
774export const bumpPatch = (self: SemVer): SemVer =>
775 unchecked(
776 self.major,
777 self.minor,
778 self.prerelease.length > 0 ? self.patch : increment(self.patch, "patch"),
779 [],
780 []
781 )
782
783const startPrerelease = (identifier: string | undefined): ReadonlyArray<string | number> =>
784 identifier === undefined ? [0] : [prereleaseIdentifier(identifier), 0]

Callers 1

SemVer.tsFile · 0.85

Calls 2

uncheckedFunction · 0.85
incrementFunction · 0.70

Tested by

no test coverage detected