Skip to main content
Module

x/version_bump/deps.ts

A pluggable version bumping software (akin to standard-version) written in Deno + TS
Go to Latest
import * as versionBump from "https://deno.land/x/version_bump@2.0.1/deps.ts";

Functions

Run some shared teardown after all of the tests in the suite.

Run some shared teardown after each test in the suite.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that actual match RegExp expected. If not then throw.

Make an assertion that actual and expected are not equal, deeply. If not then throw.

Make an assertion that actual object is a subset of expected object, deeply. If not, then throw.

Executes a function which returns a promise, expecting it to throw or reject. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

Executes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

Run some shared setup before all of the tests in the suite.

Run some shared setup before each test in the suite.

Set background color to green.

Set background color to red.

Set background color to yellow.

Registers a test suite.

Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. Requires the --allow-read and --allow-write flag.

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --allow-write flag.

Ensures that the file exists. If the file that is requested to be created is in directories that do not exist. these directories are created. If the file already exists, it is NOTMODIFIED. Requires the --allow-read and --allow-write flag.

Set text color to green.

Registers an individual test case.

Take a set of command line arguments, with an optional set of options, and return an object representation of those argument.

Read strings line-by-line from a Reader.

Set text color to red.

Coerces a string to semver if possible

Return true if version is greater than all the versions possible in the range.

Return the version incremented by the release type (major, minor, patch, or prerelease), or null if it's not valid.

Return true if any of the ranges comparators intersect

Return true if version is less than all the versions possible in the range.

Return the major version number.

Return the minor version number.

Return true if the version is outside the bounds of the range in either the high or low direction. The hilo argument must be either the string '>' or '<'. (This is the function called by gtr and ltr.)

Return the patch version number.

Interfaces

Registers a test suite.

Registers an individual test case.

Type Aliases