Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lerna-changelog

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lerna-changelog - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

CHANGELOG.md
# 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

lib/git.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc