Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
conventional-changelog-core
Advanced tools
The conventional-changelog-core npm package is a tool designed to generate changelogs for projects based on semantic versioning and commit message conventions. It automates the creation of changelogs by parsing commit messages, identifying the type of changes, and formatting them into a structured changelog file.
Generate changelog from git metadata
This code demonstrates how to generate a changelog using the Angular preset. It streams the changelog content and writes it to a 'CHANGELOG.md' file.
const conventionalChangelog = require('conventional-changelog-core');
const fs = require('fs');
const changelogStream = conventionalChangelog({preset: 'angular'});
changelogStream.pipe(fs.createWriteStream('CHANGELOG.md'));
Customizable preset and configuration
This example shows how to use a custom configuration for generating a changelog. The configuration can define how commit messages are parsed, what types of commits to include, and how the changelog is formatted.
const conventionalChangelog = require('conventional-changelog-core');
const config = require('./custom-config');
const changelogStream = conventionalChangelog({config: config});
changelogStream.pipe(process.stdout);
standard-version is an automatic versioning and changelog generation package that follows the Conventional Commits specification. It wraps around the conventional-changelog-core and provides additional features like version bumping and tagging, making it more comprehensive for release management compared to conventional-changelog-core which focuses primarily on changelog generation.
lerna-changelog is tailored for managing monorepos and integrates well with Lerna projects. It generates changelogs based on pull requests and their labels, offering a different approach compared to conventional-changelog-core which relies on commit messages. This makes lerna-changelog particularly useful in collaborative projects that utilize GitHub's PR features extensively.
FAQs
Core package of conventional-changelog.
The npm package conventional-changelog-core receives a total of 2,227,943 weekly downloads. As such, conventional-changelog-core popularity was classified as popular.
We found that conventional-changelog-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.