File: version.md

package info (click to toggle)
mithril 1.1.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,824 kB
  • sloc: javascript: 16,774; makefile: 5; sh: 1
file content (27 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# version

- [Signature](#signature)
- [How it works](#how-it-works)

---

### Signature

`m.version`

Argument    | Type                 | Required | Description
----------- | -------------------- | -------- | ---
**returns** | String               |          | Returns the version number

---

### How it works

The `m.version` property is a string containing the [semver](http://semver.org/) value for the current release.

Semver (or Semantic Versioning) specifies that a version number must follow the syntax "0.0.0", where the first number is the MAJOR number, the second is the MINOR number and the third is the PATCH number.

- The MAJOR number changes when there are backwards-incompatible API changes,
- The MINOR number changes when functionality is added in a backwards-compatible manner, and
- The PATCH number changes when there are backwards-compatible bug fixes