summaryrefslogtreecommitdiff
path: root/doc/api/process.md
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2018-04-16 16:51:56 +1000
committerRich Trott <rtrott@gmail.com>2018-04-20 10:28:38 -0700
commit287ec1e8f434098a32e99d6778a826aae6f9c165 (patch)
tree9c9edf5bb9e0e29e52324aa919816de34a5c59b4 /doc/api/process.md
parent53822f605d3171530ab820d71e8832f473479c27 (diff)
downloadandroid-node-v8-287ec1e8f434098a32e99d6778a826aae6f9c165.tar.gz
android-node-v8-287ec1e8f434098a32e99d6778a826aae6f9c165.tar.bz2
android-node-v8-287ec1e8f434098a32e99d6778a826aae6f9c165.zip
Revert "process: add version constants and compare"
This reverts commit 91e0f8db118b125e805a77ce31dc21af57ee7abf. PR-URL: https://github.com/nodejs/node/pull/20062 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
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