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

conventional-commits-parser

Package Overview
Dependencies
Maintainers
6
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-commits-parser - npm Package Compare versions

Comparing version 3.0.8 to 3.1.0

17

CHANGELOG.md

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

# [3.1.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.8...conventional-commits-parser@3.1.0) (2020-05-08)
### Bug Fixes
* **deps:** update yargs-parser to move off a flagged-vulnerable version. ([#635](https://github.com/conventional-changelog/conventional-changelog/issues/635)) ([aafc0f0](https://github.com/conventional-changelog/conventional-changelog/commit/aafc0f00412c3e4b23b8418300e5a570a48fe24d))
### Features
* **conventional-commits-parser:** add issuePrefixesCaseSensitive parser option ([#580](https://github.com/conventional-changelog/conventional-changelog/issues/580)) ([526b282](https://github.com/conventional-changelog/conventional-changelog/commit/526b28214d12c55158eb2e4d44408378587ceb97))
* support slash in headerPattern default options ([93a547d](https://github.com/conventional-changelog/conventional-changelog/commit/93a547d742634d8676f499cfa2a274bc3792d020))
## [3.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.7...conventional-commits-parser@3.0.8) (2019-11-14)

@@ -8,0 +25,0 @@

22

cli.js

@@ -34,11 +34,12 @@ #!/usr/bin/env node

Options
-p, --header-pattern Regex to match header pattern
-c, --header-correspondence Comma separated parts used to define what capturing group of 'headerPattern' captures what
-r, --reference-actions Comma separated keywords that used to reference issues
-i, --issue-prefixes Comma separated prefixes of an issue
-n, --note-keywords Comma separated keywords for important notes
-f, --field-pattern Regex to match other fields
--revert-pattern Regex to match revert pattern
--revert-correspondence Comma separated fields used to define what the commit reverts
-v, --verbose Verbose output
-p, --header-pattern Regex to match header pattern
-c, --header-correspondence Comma separated parts used to define what capturing group of 'headerPattern' captures what
-r, --reference-actions Comma separated keywords that used to reference issues
-i, --issue-prefixes Comma separated prefixes of an issue
--issue-prefixes-case-sensitive Treat issue prefixes as case sensitive
-n, --note-keywords Comma separated keywords for important notes
-f, --field-pattern Regex to match other fields
--revert-pattern Regex to match revert pattern
--revert-correspondence Comma separated fields used to define what the commit reverts
-v, --verbose Verbose output
`, {

@@ -62,2 +63,5 @@ flags: {

},
'issue-prefixes-case-sensitive': {
type: 'boolean'
},
'note-keywords': {

@@ -64,0 +68,0 @@ alias: 'n',

@@ -10,3 +10,3 @@ 'use strict'

options = _.extend({
headerPattern: /^(\w*)(?:\(([\w$.\-* ]*)\))?: (.*)$/,
headerPattern: /^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/,
headerCorrespondence: ['type', 'scope', 'subject'],

@@ -13,0 +13,0 @@ referenceActions: [

@@ -24,3 +24,3 @@ 'use strict'

function getReferencePartsRegex (issuePrefixes) {
function getReferencePartsRegex (issuePrefixes, issuePrefixesCaseSensitive) {
if (!issuePrefixes) {

@@ -30,3 +30,4 @@ return reNomatch

return new RegExp('(?:.*?)??\\s*([\\w-\\.\\/]*?)??(' + join(issuePrefixes, '|') + ')([\\w-]*\\d+)', 'gi')
var flags = issuePrefixesCaseSensitive ? 'g' : 'gi'
return new RegExp('(?:.*?)??\\s*([\\w-\\.\\/]*?)??(' + join(issuePrefixes, '|') + ')([\\w-]*\\d+)', flags)
}

@@ -47,3 +48,3 @@

var reNotes = getNotesRegex(options.noteKeywords)
var reReferenceParts = getReferencePartsRegex(options.issuePrefixes)
var reReferenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive)
var reReferences = getReferencesRegex(options.referenceActions)

@@ -50,0 +51,0 @@

{
"name": "conventional-commits-parser",
"version": "3.0.8",
"version": "3.1.0",
"description": "Parse raw conventional commits",

@@ -20,3 +20,3 @@ "bugs": {

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

@@ -40,3 +40,3 @@ "files": [

"lodash": "^4.17.15",
"meow": "^5.0.0",
"meow": "^7.0.0",
"split2": "^2.0.0",

@@ -52,3 +52,6 @@ "through2": "^3.0.0",

},
"gitHead": "79217815a7ce5f3d3f833961ce9a14bd454e5789"
"devDependencies": {
"forceable-tty": "^0.1.0"
},
"gitHead": "83643c5a0d2c4d7c9ba14cbf990ffbc577a51e8c"
}

@@ -196,2 +196,8 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]

##### issuePrefixesCaseSensitive
Type: `boolean` Default: false
Used to define if `issuePrefixes` should be considered case sensitive.
##### noteKeywords

@@ -198,0 +204,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