Skip to main content

@std/semver@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score76%
Published2 years ago (0.215.0)

Interfaces

I

The shape of a valid semantic version comparator

  • operator: Operator
    No documentation available
  • semver: SemVer
    No documentation available
I

A SemVer object parsed into its constituent parts.

  • build: string[]
    No documentation available
  • major: number
    No documentation available
  • minor: number
    No documentation available
  • patch: number
    No documentation available
  • prerelease: (string | number)[]
    No documentation available

Type Aliases

T
Operator = OPERATORS[number]

SemVer comparison operators.

T
Range = Comparator[][]

A type representing a semantic version range. The ranges consist of a nested array, which represents a set of OR comparisons while the inner array represents AND comparisons.

T
ReleaseType =
"pre"
| "major"
| "premajor"
| "minor"
| "preminor"
| "patch"
| "prepatch"
| "prerelease"

The possible release types are used as an operator for the increment function and as a result of the difference function.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/semver

Import symbol

import * as mod from "@std/semver/types";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/semver/types";