| Modifier and Type | Method and Description |
|---|---|
Semver.SemverType |
Semver.getType() |
Semver.SemverType |
Requirement.getType() |
static Semver.SemverType |
Semver.SemverType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Semver.SemverType[] |
Semver.SemverType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
protected static Requirement |
Requirement.caretRequirement(String version,
Semver.SemverType type)
Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple.
|
protected static Requirement |
Requirement.hyphenRequirement(String lowerVersion,
String upperVersion,
Semver.SemverType type)
Creates a requirement that satisfies "x1.y1.z1 - x2.y2.z2".
|
boolean |
Tokenizer.TokenType.supports(Semver.SemverType type) |
protected static Requirement |
Requirement.tildeRequirement(String version,
Semver.SemverType type)
Allows patch-level changes if a minor version is specified on the comparator.
|
protected static List<Tokenizer.Token> |
Tokenizer.tokenize(String requirement,
Semver.SemverType type)
Takes a NPM requirement string and creates a list of tokens by performing 3 operations:
- If the token is a version, it will add the version string
- If the token is an operator, it will add the operator
- It will insert missing "AND" operators for ranges
|
| Constructor and Description |
|---|
Semver(String value,
Semver.SemverType type) |
Copyright © 2021. All rights reserved.