GitShow/sindresorhus/to-semver
sindresorhus

to-semver

Get an array of valid, sorted, and cleaned semver versions from an array of strings

by sindresorhus
Star on GitHubForknpm

JavaScript

41 stars5 forks4 contributorsQuiet · 5y agoSince 2017v4.0.0MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus9 contributions
Richienb
Richienb2 contributions
BendingBender
BendingBender1 contribution
jgierer12
jgierer121 contribution

Languages

View on GitHub →
JavaScript85.7%
TypeScript14.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
philmirez
SyntaxError: Cannot use import statement outside a moduleClosedIssue

Hello 👋 I'm in need of some help. I'm trying to use this within my local github action. I'm defaulting to the default environment for the action so I'm not compiling/transpiling. I was surprised when I saw this error since it's within the directory. I know github actions default to node 12. I'm wondering why it isn't picking up the compiled/transpiled code? I'm not sure if this is isolated to this repo or to all my . I'm still investigating.

philmirez · 11mo ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
Richienb
Improper version parsingClosedIssue

At the moment, this package uses in combination with to process the provided versions. The problem here is that some versions aren't supported directly. The calls fail because is called first, which returns null even though only is able to correctly parse the version in the first example. Also, both of those calls fail when given a version string like as in the second example. The correct strategy here is to use as shown here. A fix to this issue may require somehow storing the identity of each string in the array, using the true parsing strategy and somehow reverting back to the previous values after sorting unless has been specified. cc @sindresorhus

Richienb · 6y ago
Structured data for AI agents

Repository: sindresorhus/to-semver. Description: Get an array of valid, sorted, and cleaned semver versions from an array of strings Stars: 41, Forks: 5. Primary language: JavaScript. Languages: JavaScript (85.7%), TypeScript (14.3%). License: MIT. Latest release: v4.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, Richienb, BendingBender, jgierer12.

·@ofershap

Replace github.com with gitshow.dev