Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
latest-semver
Advanced tools
Get the latest stable semver version from an array of versions
This can be useful when you have an unsorted list of versions, like Git tags, and want to get the semantically latest version.
npm install latest-semver
import latestSemver from 'latest-semver';
latestSemver([
'v1.8.0-alpha.1',
'v1.3.16',
'v1.7.0',
'v1.6.9'
]);
//=> '1.7.0'
latestSemver([
'unicorn',
'v1.8.0-alpha.1'
]);
//=> undefined
Non-semver versions and prereleases are ignored.
Type: string[]
0.0.1
0.0.2
→ patch
1.2.3
→ 1.2.0
FAQs
Get the latest stable semver version from an array of versions
The npm package latest-semver receives a total of 1,050 weekly downloads. As such, latest-semver popularity was classified as popular.
We found that latest-semver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.