UpdateType

The type of update that the commits represents. The following types are supported:

  • NONE for commits that do not represent an update

  • PATCH for bug fixes

  • MINOR for new features

  • MAJOR for breaking changes

NONE<PATCH<MINOR<MAJOR

Entries

Link copied to clipboard

No update.

Link copied to clipboard

A patch update.

Link copied to clipboard

A minor update.

Link copied to clipboard

A major update.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Increments the version according to the enum value. If it is UpdateType.NONE, the version is returned unchanged. If it is UpdateType.PATCH, the version is incremented as a patch. If it is UpdateType.MINOR, the version is incremented as a minor. If it is UpdateType.MAJOR, the version is incremented as a major.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.