Socket
Socket
Sign inDemoInstall

@lerna/conventional-commits

Package Overview
Dependencies
170
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-beta.0 to 3.0.0-beta.1

CHANGELOG.md

33

index.js

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

const npa = require("npm-package-arg");
const os = require("os");
const path = require("path");

@@ -16,2 +17,10 @@ const semver = require("semver");

const BLANK_LINE = os.EOL + os.EOL;
const CHANGELOG_HEADER = dedent`
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
`;
const cfgCache = new Map();

@@ -97,9 +106,9 @@

// When force publishing, it is possible that there will be no actual changes, only a version bump.
// Add a note to indicate that only a version bump has occurred.
if (!newEntry.split("\n").some(line => line.startsWith("*"))) {
return dedent(`
${newEntry}
// Add a note to indicate that only a version bump has occurred.
// TODO: actually list the dependencies that were bumped
const message = `**Note:** Version bump only for package ${pkg.name}`;
**Note:** Version bump only for package ${pkg.name}
`);
// the extra blank lines preserve the whitespace delimiting releases
return [newEntry.trim(), message, BLANK_LINE].join(BLANK_LINE);
}

@@ -170,15 +179,7 @@

return FileSystemUtilities.writeFile(
changelogFileLoc,
dedent`
# Change Log
const content = [CHANGELOG_HEADER, newEntry, changelogContents].join(BLANK_LINE);
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
return FileSystemUtilities.writeFile(changelogFileLoc, content.trim()).then(() => {
log.verbose(type, "wrote", changelogFileLoc);
${newEntry}
${changelogContents}`
).then(() => {
log.verbose(type, "wrote", changelogFileLoc);
return changelogFileLoc;

@@ -185,0 +186,0 @@ });

{
"name": "@lerna/conventional-commits",
"version": "3.0.0-beta.0",
"version": "3.0.0-beta.1",
"description": "TODO",

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

},
"gitHead": "349b9c765bcbf38988d1fcd48313422417a04c8f"
"gitHead": "5a527968bb9f7b7c3af0d5d86391d6d2650ddc7a"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc