summaryrefslogtreecommitdiff
path: root/doc/api/process.md
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2018-04-16 16:51:56 +1000
committerRod Vagg <rod@vagg.org>2018-04-16 16:51:56 +1000
commit33ab526b2d495cdf2a1c4f187e3683652675445c (patch)
tree4e23a887f4851dc067d5482ce453a4ad9cf86e8f /doc/api/process.md
parent978e1524bba34fb92e6710f589329cd03cbec87b (diff)
downloadnode-new-rvagg/revert-process-release-extensions.tar.gz
Revert "process: add version constants and compare"rvagg/revert-process-release-extensions
This reverts commit 91e0f8db118b125e805a77ce31dc21af57ee7abf.
Diffstat (limited to 'doc/api/process.md')
-rw-r--r--doc/api/process.md34
1 files changed, 3 insertions, 31 deletions
diff --git a/doc/api/process.md b/doc/api/process.md
index 060d741804..202725cb51 100644
--- a/doc/api/process.md
+++ b/doc/api/process.md
@@ -1482,9 +1482,6 @@ changes:
- version: v4.2.0
pr-url: https://github.com/nodejs/node/pull/3212
description: The `lts` property is now supported.
- - version: REPLACEME
- pr-url: https://github.com/nodejs/node/pull/19587
- description: Add SemVer properties.
-->
* {Object}
@@ -1513,10 +1510,6 @@ tarball.
- `'Argon'` for the 4.x LTS line beginning with 4.2.0.
- `'Boron'` for the 6.x LTS line beginning with 6.9.0.
- `'Carbon'` for the 8.x LTS line beginning with 8.9.1.
-* `majorVersion` {number} The major version of this release.
-* `minorVersion` {number} The minor version of this release.
-* `patchVersion` {number} The patch version of this release.
-* `prereleaseTag` {string} The SemVer pre-release tag for Node.js.
<!-- eslint-skip -->
```js
@@ -1525,34 +1518,13 @@ tarball.
lts: 'Argon',
sourceUrl: 'https://nodejs.org/download/release/v4.4.5/node-v4.4.5.tar.gz',
headersUrl: 'https://nodejs.org/download/release/v4.4.5/node-v4.4.5-headers.tar.gz',
- libUrl: 'https://nodejs.org/download/release/v4.4.5/win-x64/node.lib',
- majorVersion: 4,
- minorVersion: 4,
- patchVersion: 5,
- prereleaseTag: '',
- compareVersion: [Function: compareVersion]
+ libUrl: 'https://nodejs.org/download/release/v4.4.5/win-x64/node.lib'
}
```
-
In custom builds from non-release versions of the source tree, only the
-`name` property and SemVer properties may be present. The additional properties
-should not be relied upon to exist.
-
-## process.release.compareVersion(major, minor, patch[, tag])
-<!-- YAML
-added: REPLACEME
--->
-
-Perform a SemVer comparison to the release version.
-
-* `major` {number} The major version to compare.
-* `minor` {number} The minor version to compare.
-* `patch` {number} The patch version to compare.
-* `tag` {string} The pre-release tag to compare.
-* Returns: {number} `1` if the given version is lower than the current release
- version, `0` if the given version matches the process version, and `-1`
- if the given version is greater than the release version.
+`name` property may be present. The additional properties should not be
+relied upon to exist.
## process.send(message[, sendHandle[, options]][, callback])
<!-- YAML