lerna-changelog
Advanced tools
Comparing version 1.0.0 to 1.0.1
# Changelog | ||
## v1.0.1 (2020-03-04) | ||
#### :bug: Bug Fix | ||
* [#259](https://github.com/lerna/lerna-changelog/pull/259) Allow `;` characters in merge commit messages ([@tuchk4](https://github.com/tuchk4)) | ||
#### :house: Internal | ||
* [#260](https://github.com/lerna/lerna-changelog/pull/260) Remove `os.tmpDir` deprecation warning ([@tuchk4](https://github.com/tuchk4)) | ||
#### Committers: 2 | ||
- Valerii Sorokobatko ([@tuchk4](https://github.com/tuchk4)) | ||
## v1.0.0 (2019-12-16) | ||
@@ -4,0 +16,0 @@ |
@@ -31,16 +31,29 @@ "use strict"; | ||
exports.lastTag = lastTag; | ||
function parseLogMessage(commit) { | ||
const parts = commit.match(/hash<(.+)> ref<(.*)> message<(.*)> date<(.*)>/) || []; | ||
if (!parts || parts.length === 0) { | ||
return null; | ||
} | ||
return { | ||
sha: parts[1], | ||
refName: parts[2], | ||
summary: parts[3], | ||
date: parts[4], | ||
}; | ||
} | ||
exports.parseLogMessage = parseLogMessage; | ||
function listCommits(from, to = "") { | ||
return execa | ||
.sync("git", ["log", "--oneline", "--pretty=%h;%D;%s;%cd", "--date=short", `${from}..${to}`]) | ||
.sync("git", [ | ||
"log", | ||
"--oneline", | ||
"--pretty=hash<%h> ref<%D> message<%s> date<%cd>", | ||
"--date=short", | ||
`${from}..${to}`, | ||
]) | ||
.stdout.split("\n") | ||
.filter(Boolean) | ||
.map((commit) => { | ||
const parts = commit.split(";"); | ||
const sha = parts[0]; | ||
const refName = parts[1]; | ||
const summary = parts[2]; | ||
const date = parts[3]; | ||
return { sha, refName, summary, date }; | ||
}); | ||
.map(parseLogMessage) | ||
.filter(Boolean); | ||
} | ||
exports.listCommits = listCommits; |
{ | ||
"name": "lerna-changelog", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Generate a changelog for a lerna monorepo", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
"execa": "^1.0.0", | ||
"make-fetch-happen": "^6.1.0", | ||
"make-fetch-happen": "^7.1.1", | ||
"normalize-git-url": "^3.0.2", | ||
@@ -47,16 +47,16 @@ "p-map": "^3.0.0", | ||
"devDependencies": { | ||
"@types/jest": "^24.0.23", | ||
"@types/node": "^12.12.17", | ||
"@typescript-eslint/eslint-plugin": "^2.11.0", | ||
"@typescript-eslint/parser": "^2.11.0", | ||
"eslint": "^6.7.2", | ||
"eslint-config-prettier": "^6.7.0", | ||
"@types/jest": "^24.9.1", | ||
"@types/node": "^12.12.21", | ||
"@typescript-eslint/eslint-plugin": "^2.21.0", | ||
"@typescript-eslint/parser": "^2.21.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"fs-extra": "^8.1.0", | ||
"jest": "^24.9.0", | ||
"jest-runner-eslint": "^0.7.5", | ||
"jest": "^25.1.0", | ||
"jest-runner-eslint": "^0.7.6", | ||
"prettier": "1.19.1", | ||
"rimraf": "^3.0.0", | ||
"ts-jest": "^24.2.0", | ||
"typescript": "^3.7.3" | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^25.2.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -63,0 +63,0 @@ "engines": { |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
56650
862
1
+ Addedagent-base@5.1.1(transitive)
+ Addedagentkeepalive@4.5.0(transitive)
+ Addedcacache@14.0.0(transitive)
+ Addedchownr@2.0.0(transitive)
+ Addedcross-spawn@6.0.5(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp-proxy-agent@3.0.0(transitive)
+ Addedhttps-proxy-agent@4.0.0(transitive)
+ Addedis-lambda@1.0.1(transitive)
+ Addedmake-fetch-happen@7.1.1(transitive)
+ Addedminipass@5.0.0(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedms@2.1.3(transitive)
+ Addedtar@6.2.1(transitive)
- Removedagent-base@4.3.0(transitive)
- Removedagentkeepalive@3.5.3(transitive)
- Removedcacache@13.0.1(transitive)
- Removedcross-spawn@6.0.6(transitive)
- Removeddebug@3.1.0(transitive)
- Removedhttp-cache-semantics@3.8.1(transitive)
- Removedhttp-proxy-agent@2.1.0(transitive)
- Removedhttps-proxy-agent@3.0.1(transitive)
- Removedmake-fetch-happen@6.1.0(transitive)
- Removedms@2.0.0(transitive)
Updatedmake-fetch-happen@^7.1.1