-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme for v4 and remove semver for version feature flags (#3148)
* update readme to include v4 * use version module instead of semver to match library version
- Loading branch information
Showing
8 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
'use strict' | ||
|
||
const matches = require('./package.json').version.match(/^(\d+)\.(\d+)\.(\d+)/) | ||
const ddMatches = require('./package.json').version.match(/^(\d+)\.(\d+)\.(\d+)/) | ||
const nodeMatches = process.versions.node.match(/^(\d+)\.(\d+)\.(\d+)/) | ||
|
||
module.exports = { | ||
MAJOR: parseInt(matches[1]), | ||
MINOR: parseInt(matches[2]), | ||
PATCH: parseInt(matches[3]) | ||
DD_MAJOR: parseInt(ddMatches[1]), | ||
DD_MINOR: parseInt(ddMatches[2]), | ||
DD_PATCH: parseInt(ddMatches[3]), | ||
NODE_MAJOR: parseInt(nodeMatches[1]), | ||
NODE_MINOR: parseInt(nodeMatches[2]), | ||
NODE_PATCH: parseInt(nodeMatches[3]) | ||
} |