Socket
Socket
Sign inDemoInstall

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.1 to 2.0.0

.release-it.js

30

CHANGELOG.md
# Changelog
## v2.0.0 (2021-08-07)
#### :boom: Breaking Change
* [#486](https://github.com/lerna/lerna-changelog/pull/486) Drop support for Node.js 10 ([@Turbo87](https://github.com/Turbo87))
#### :rocket: Enhancement
* [#492](https://github.com/lerna/lerna-changelog/pull/492) Add `dependabot-preview` to default list of ignored committers ([@Turbo87](https://github.com/Turbo87))
#### :memo: Documentation
* [#472](https://github.com/lerna/lerna-changelog/pull/472) README: Recommend `npx` usage instead of global install ([@Turbo87](https://github.com/Turbo87))
#### :house: Internal
* [#491](https://github.com/lerna/lerna-changelog/pull/491) Add `release-it` to simplify the release process ([@Turbo87](https://github.com/Turbo87))
* [#490](https://github.com/lerna/lerna-changelog/pull/490) CI: Release tags automatically ([@Turbo87](https://github.com/Turbo87))
* [#489](https://github.com/lerna/lerna-changelog/pull/489) Update `.npmignore` file ([@Turbo87](https://github.com/Turbo87))
* [#488](https://github.com/lerna/lerna-changelog/pull/488) Disable dependabot ([@Turbo87](https://github.com/Turbo87))
* [#487](https://github.com/lerna/lerna-changelog/pull/487) CI: Update `pnpm` version ([@Turbo87](https://github.com/Turbo87))
* [#475](https://github.com/lerna/lerna-changelog/pull/475) git: Extract `getRootPath()` function ([@Turbo87](https://github.com/Turbo87))
* [#474](https://github.com/lerna/lerna-changelog/pull/474) Remove obsolete TSLint references ([@Turbo87](https://github.com/Turbo87))
* [#473](https://github.com/lerna/lerna-changelog/pull/473) Use `pnpm` instead of `yarn` for development ([@Turbo87](https://github.com/Turbo87))
* [#469](https://github.com/lerna/lerna-changelog/pull/469) Replace TravisCI with GitHub Actions ([@Turbo87](https://github.com/Turbo87))
* [#335](https://github.com/lerna/lerna-changelog/pull/335) Use yarn in scripts ([@dcyriller](https://github.com/dcyriller))
* [#268](https://github.com/lerna/lerna-changelog/pull/268) Migrate from normalize-git-info to hosted-git-info. ([@rwjblue](https://github.com/rwjblue))
#### Committers: 4
- Cyrille David ([@dcyriller](https://github.com/dcyriller))
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
- Tobias Bieniek ([@Turbo87](https://github.com/Turbo87))
## v1.0.1 (2020-03-04)

@@ -4,0 +34,0 @@

1

lib/cli.js

@@ -12,2 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.run = void 0;
const chalk_1 = require("chalk");

@@ -14,0 +15,0 @@ const cli_highlight_1 = require("cli-highlight");

16

lib/configuration.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findRepoFromPkg = exports.fromPath = exports.load = void 0;
const fs = require("fs");
const path = require("path");
const execa = require("execa");
const normalize = require("normalize-git-url");
const hostedGitInfo = require("hosted-git-info");
const configuration_error_1 = require("./configuration-error");
const git_1 = require("./git");
function load(options = {}) {
let cwd = process.cwd();
let rootPath = execa.sync("git", ["rev-parse", "--show-toplevel"], { cwd }).stdout;
let rootPath = git_1.getRootPath();
return fromPath(rootPath, options);

@@ -42,2 +43,3 @@ }

"dependabot[bot]",
"dependabot-preview[bot]",
"greenkeeperio-bot",

@@ -91,9 +93,7 @@ "greenkeeper[bot]",

const url = pkg.repository.url || pkg.repository;
const normalized = normalize(url).url;
const match = normalized.match(/github\.com[:/]([^/]+\/[^/]+?)(?:\.git)?$/);
if (!match) {
return;
const info = hostedGitInfo.fromUrl(url);
if (info && info.type === "github") {
return `${info.user}/${info.project}`;
}
return match[1];
}
exports.findRepoFromPkg = findRepoFromPkg;

@@ -12,3 +12,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.listCommits = exports.parseLogMessage = exports.lastTag = exports.listTagNames = exports.changedPaths = exports.getRootPath = void 0;
const execa = require("execa");
function getRootPath() {
const cwd = process.cwd();
return execa.sync("git", ["rev-parse", "--show-toplevel"], { cwd }).stdout;
}
exports.getRootPath = getRootPath;
function changedPaths(sha) {

@@ -15,0 +21,0 @@ return __awaiter(this, void 0, void 0, function* () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigurationError = exports.Changelog = void 0;
const changelog_1 = require("./changelog");

@@ -4,0 +5,0 @@ exports.Changelog = changelog_1.default;

{
"name": "lerna-changelog",
"version": "1.0.1",
"version": "2.0.0",
"description": "Generate a changelog for a lerna monorepo",

@@ -17,3 +17,3 @@ "keywords": [

"bin": {
"lerna-changelog": "./bin/cli.js"
"lerna-changelog": "bin/cli.js"
},

@@ -25,12 +25,13 @@ "repository": {

"scripts": {
"build": "npm run clean && tsc",
"build": "yarn clean && tsc",
"changelog": "node ./bin/cli.js",
"clean": "rimraf lib",
"fix": "npm run lint -- --fix",
"fix": "yarn lint -- --fix",
"lint": "eslint src --ext ts --format stylish",
"prepublish": "npm run build",
"prepack": "yarn build",
"prettier": "prettier --write 'src/**/*.ts'",
"release": "release-it",
"test": "jest",
"test-ci": "npm run build && jest",
"watch": "npm run build -- --watch"
"test-ci": "yarn build && yarn test",
"watch": "yarn build -- --watch"
},

@@ -41,4 +42,4 @@ "dependencies": {

"execa": "^1.0.0",
"hosted-git-info": "^3.0.8",
"make-fetch-happen": "^7.1.1",
"normalize-git-url": "^3.0.2",
"p-map": "^3.0.0",

@@ -49,19 +50,21 @@ "progress": "^2.0.0",

"devDependencies": {
"@types/jest": "^24.9.1",
"@types/node": "^12.12.21",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"@types/jest": "^25.2.3",
"@types/node": "^13.13.4",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"fs-extra": "^8.1.0",
"jest": "^25.1.0",
"jest": "^25.5.4",
"jest-runner-eslint": "^0.7.6",
"prettier": "1.19.1",
"release-it": "14.10.1",
"release-it-lerna-changelog": "3.1.0",
"rimraf": "^3.0.2",
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
"ts-jest": "^25.5.1",
"typescript": "^3.9.2"
},
"engines": {
"node": "10.* || >= 12"
"node": "12.* || 14.* || >= 16"
},

@@ -68,0 +71,0 @@ "changelog": {

@@ -15,22 +15,2 @@ lerna-changelog

Install
------------------------------------------------------------------------------
Install with `yarn`:
```bash
yarn add lerna-changelog --dev
# or globally
yarn global add lerna-changelog
```
We're using `yarn` but you can use `npm` if you like:
```bash
npm install --save-dev lerna-changelog
# or globally
npm install --global lerna-changelog
```
Usage

@@ -40,3 +20,3 @@ ------------------------------------------------------------------------------

```bash
$ lerna-changelog
npx lerna-changelog
```

@@ -73,3 +53,3 @@

```bash
lerna-changelog --from=v1.0.0 --to=v2.0.0
npx lerna-changelog --from=v1.0.0 --to=v2.0.0
```

@@ -76,0 +56,0 @@

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