Get an array of valid, sorted, and cleaned semver versions from an array of strings
by sindresorhusJavaScript
Last 12 weeks · 0 commits
4 of 6 standards met
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.
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
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.