@lerna/prerelease-id-from-version
Advanced tools
Comparing version 3.16.0 to 4.0.0
@@ -6,2 +6,31 @@ # Change Log | ||
# [4.0.0](https://github.com/lerna/lerna/compare/v3.22.1...v4.0.0) (2021-02-10) | ||
### Features | ||
* **deps:** Bump dependencies ([affed1c](https://github.com/lerna/lerna/commit/affed1ce0fce91f01b0a9eafe357db2d985b974f)) | ||
* **prerelease-id-from-version:** Add JSDoc types ([53cdad9](https://github.com/lerna/lerna/commit/53cdad917ba6ca6a3ce350d44c3854248e0ea933)) | ||
* Consume named exports of sibling modules ([63499e3](https://github.com/lerna/lerna/commit/63499e33652bc78fe23751875d74017e2f16a689)) | ||
* Drop support for Node v6.x & v8.x ([ff4bb4d](https://github.com/lerna/lerna/commit/ff4bb4da215555e3bb136f5af09b5cbc631e57bb)) | ||
* Expose named export ([c1303f1](https://github.com/lerna/lerna/commit/c1303f13adc4cf15f96ff25889b52149f8224c0e)) | ||
* Remove default export ([e2f1ec3](https://github.com/lerna/lerna/commit/e2f1ec3dd049d2a89880029908a2aa7c66f15082)) | ||
* **deps:** semver@^7.3.2 ([003ad66](https://github.com/lerna/lerna/commit/003ad6641fab8b4e3a82251ebffd27061bd6a31b)) | ||
### BREAKING CHANGES | ||
* The default export has been removed, please use a named export instead. | ||
* Node v6.x & v8.x are no longer supported. Please upgrade to the latest LTS release. | ||
Here's the gnarly one-liner I used to make these changes: | ||
``` | ||
npx lerna exec --concurrency 1 --stream -- 'json -I -f package.json -e '"'"'this.engines=this.engines||{};this.engines.node=">= 10.18.0"'"'" | ||
``` | ||
(requires `npm i -g json` beforehand) | ||
# [3.16.0](https://github.com/lerna/lerna/compare/v3.15.0...v3.16.0) (2019-07-18) | ||
@@ -8,0 +37,0 @@ |
@@ -5,6 +5,10 @@ "use strict"; | ||
module.exports = prereleaseIdFromVersion; | ||
module.exports.prereleaseIdFromVersion = prereleaseIdFromVersion; | ||
/** | ||
* @param {string} version | ||
* @returns {string|undefined} | ||
*/ | ||
function prereleaseIdFromVersion(version) { | ||
return (semver.prerelease(version) || []).shift(); | ||
} |
{ | ||
"name": "@lerna/prerelease-id-from-version", | ||
"version": "3.16.0", | ||
"version": "4.0.0", | ||
"description": "Get the prerelease ID from a version string", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 6.9.0" | ||
"node": ">= 10.18.0" | ||
}, | ||
@@ -32,5 +32,5 @@ "publishConfig": { | ||
"dependencies": { | ||
"semver": "^6.2.0" | ||
"semver": "^7.3.4" | ||
}, | ||
"gitHead": "8ca18bedecf4f141c6242a099086e84b2ced72de" | ||
"gitHead": "4582c476e07dddddd6b2e3ab6e7f52c1f9eed59a" | ||
} |
@@ -8,3 +8,3 @@ # `@lerna/prerelease-id-from-version` | ||
```js | ||
const prereleaseIdFromVersion = require("@lerna/prerelease-id-from-version"); | ||
const { prereleaseIdFromVersion } = require("@lerna/prerelease-id-from-version"); | ||
@@ -11,0 +11,0 @@ prereleaseIdFromVersion(1.0.0-alpha.0); // => "alpha" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4801
10
+ Addedsemver@7.6.3(transitive)
- Removedsemver@6.3.1(transitive)
Updatedsemver@^7.3.4