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

conventional-changelog-conventionalcommits

Package Overview
Dependencies
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-changelog-conventionalcommits - npm Package Compare versions

Comparing version 4.2.3 to 4.3.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [4.3.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@4.2.3...conventional-changelog-conventionalcommits@4.3.0) (2020-05-08)
### Features
* add support for 'feature' as alias for 'feat' ([#582](https://github.com/conventional-changelog/conventional-changelog/issues/582)) ([94c40f7](https://github.com/conventional-changelog/conventional-changelog/commit/94c40f755e6c329311d89a47c634b91cf0276da3))
## [4.2.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@4.2.2...conventional-changelog-conventionalcommits@4.2.3) (2019-11-07)

@@ -8,0 +19,0 @@

6

conventional-changelog.js
'use strict'
const Q = require(`q`)
const parserOpts = require(`./parser-opts`)
const writerOpts = require(`./writer-opts`)
const Q = require('q')
const parserOpts = require('./parser-opts')
const writerOpts = require('./writer-opts')

@@ -7,0 +7,0 @@ module.exports = function (config) {

'use strict'
const addBangNotes = require('./add-bang-notes')
const parserOpts = require(`./parser-opts`)
const parserOpts = require('./parser-opts')

@@ -23,3 +23,3 @@ module.exports = function (config) {

level = 0
} else if (commit.type === `feat`) {
} else if (commit.type === 'feat' || commit.type === 'feature') {
features += 1

@@ -26,0 +26,0 @@ if (level === 2) {

'use strict'
const Q = require(`q`)
const _ = require(`lodash`)
const conventionalChangelog = require(`./conventional-changelog`)
const parserOpts = require(`./parser-opts`)
const recommendedBumpOpts = require(`./conventional-recommended-bump`)
const writerOpts = require(`./writer-opts`)
const Q = require('q')
const _ = require('lodash')
const conventionalChangelog = require('./conventional-changelog')
const parserOpts = require('./parser-opts')
const recommendedBumpOpts = require('./conventional-recommended-bump')
const writerOpts = require('./writer-opts')

@@ -9,0 +9,0 @@ module.exports = function (parameter) {

{
"name": "conventional-changelog-conventionalcommits",
"version": "4.2.3",
"version": "4.3.0",
"description": "conventional-changelog conventionalcommits.org preset",

@@ -29,3 +29,3 @@ "main": "index.js",

"engines": {
"node": ">=6.9.0"
"node": ">=10"
},

@@ -42,3 +42,3 @@ "license": "ISC",

},
"gitHead": "741e90744cdb58e82e71feb36018047d7baca768"
"gitHead": "83643c5a0d2c4d7c9ba14cbf990ffbc577a51e8c"
}

@@ -9,9 +9,9 @@ 'use strict'

headerCorrespondence: [
`type`,
`scope`,
`subject`
'type',
'scope',
'subject'
],
noteKeywords: [`BREAKING CHANGE`],
noteKeywords: ['BREAKING CHANGE'],
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
revertCorrespondence: [`header`, `hash`],
revertCorrespondence: ['header', 'hash'],
issuePrefixes: config.issuePrefixes

@@ -18,0 +18,0 @@ }

'use strict'
const addBangNotes = require('./add-bang-notes')
const compareFunc = require(`compare-func`)
const Q = require(`q`)
const readFile = Q.denodeify(require(`fs`).readFile)
const resolve = require(`path`).resolve
const compareFunc = require('compare-func')
const Q = require('q')
const readFile = Q.denodeify(require('fs').readFile)
const resolve = require('path').resolve

@@ -37,6 +37,6 @@ /**

return Q.all([
readFile(resolve(__dirname, `./templates/template.hbs`), `utf-8`),
readFile(resolve(__dirname, `./templates/header.hbs`), `utf-8`),
readFile(resolve(__dirname, `./templates/commit.hbs`), `utf-8`),
readFile(resolve(__dirname, `./templates/footer.hbs`), `utf-8`)
readFile(resolve(__dirname, './templates/template.hbs'), 'utf-8'),
readFile(resolve(__dirname, './templates/header.hbs'), 'utf-8'),
readFile(resolve(__dirname, './templates/commit.hbs'), 'utf-8'),
readFile(resolve(__dirname, './templates/footer.hbs'), 'utf-8')
])

@@ -77,3 +77,3 @@ .spread((template, header, commit, footer) => {

commit.notes.forEach(note => {
note.title = `BREAKING CHANGES`
note.title = 'BREAKING CHANGES'
discard = false

@@ -88,15 +88,15 @@ })

if (commit.scope === `*`) {
commit.scope = ``
if (commit.scope === '*') {
commit.scope = ''
}
if (typeof commit.hash === `string`) {
if (typeof commit.hash === 'string') {
commit.shortHash = commit.hash.substring(0, 7)
}
if (typeof commit.subject === `string`) {
if (typeof commit.subject === 'string') {
// Issue URLs.
config.issuePrefixes.join('|')
let issueRegEx = '(' + config.issuePrefixes.join('|') + ')' + '([0-9]+)'
let re = new RegExp(issueRegEx, 'g')
const issueRegEx = '(' + config.issuePrefixes.join('|') + ')' + '([0-9]+)'
const re = new RegExp(issueRegEx, 'g')

@@ -143,3 +143,3 @@ commit.subject = commit.subject.replace(re, (_, prefix, issue) => {

},
groupBy: `type`,
groupBy: 'type',
// the groupings of commit messages, e.g., Features vs., Bug Fixes, are

@@ -157,4 +157,4 @@ // sorted based on their probable importance:

},
commitsSort: [`scope`, `subject`],
noteGroupsSort: `title`,
commitsSort: ['scope', 'subject'],
noteGroupsSort: 'title',
notesSort: compareFunc

@@ -169,2 +169,3 @@ }

{ type: 'feat', section: 'Features' },
{ type: 'feature', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },

@@ -171,0 +172,0 @@ { type: 'perf', section: 'Performance Improvements' },

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