-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce oldest, deprecate earliest (#77)
Signed-off-by: Tierney Cyren <[email protected]>
- Loading branch information
Showing
11 changed files
with
56 additions
and
55 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 was deleted.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# @nodevu/oldest | ||
|
||
A module that returns oldest LTS or Security release of a given Node.js release line. | ||
|
||
## Usage | ||
|
||
```js | ||
const { oldest } = require('@nodevu/oldest') | ||
|
||
const oldestLts = oldest('v16', 'lts') | ||
const oldestSecurity = oldest('v16', 'security') | ||
``` | ||
|
||
```js | ||
const { lts, security } = require('@nodevu/oldest') | ||
|
||
const oldestLts = oldest('v16', 'lts') | ||
const oldestSecurity = oldest('v16', 'security') | ||
``` | ||
|
||
## API | ||
|
||
This module exports three functions: | ||
|
||
- `oldest(name, type)` | ||
- `name` (string): Node.js release line name. Examples: `v16`, `v11`, `v8`, `v0.10`. | ||
- `type` (string): `lts` or `security`. | ||
- `lts(name)` | ||
- `name` (string): Node.js release line name. Examples: `v16`, `v11`, `v8`, `v0.10`. | ||
- `security(name)` | ||
- `name` (string): Node.js release line name. Examples: `v16`, `v11`, `v8`, `v0.10`. |
File renamed without changes.
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
"core", | ||
"static", | ||
"parsefiles", | ||
"earliest", | ||
"oldest", | ||
"newest", | ||
"ranges", | ||
"aliases", | ||
|