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

conventional-changelog-conventionalcommits

Package Overview
Dependencies
Maintainers
7
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.4.0 to 4.5.0

11

CHANGELOG.md

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

# [4.5.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@4.4.0...conventional-changelog-conventionalcommits@4.5.0) (2020-11-05)
### Features
* **conventionalcommits:** allow matching scope ([#669](https://github.com/conventional-changelog/conventional-changelog/issues/669)) ([e01e027](https://github.com/conventional-changelog/conventional-changelog/commit/e01e027af60f5fa3e9146223b96797793930aeb4))
# [4.4.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@4.3.1...conventional-changelog-conventionalcommits@4.4.0) (2020-08-12)

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

4

package.json
{
"name": "conventional-changelog-conventionalcommits",
"version": "4.4.0",
"version": "4.5.0",
"description": "conventional-changelog conventionalcommits.org preset",

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

},
"gitHead": "be1246c68f5dc4e6f28996129951a75bbf1cf307"
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca"
}

@@ -57,8 +57,17 @@ 'use strict'

function findTypeEntry (types, commit) {
const typeKey = (commit.revert ? 'revert' : (commit.type || '')).toLowerCase()
return types.find((entry) => {
if (entry.type !== typeKey) {
return false
}
if (entry.scope && entry.scope !== commit.scope) {
return false
}
return true
})
}
function getWriterOpts (config) {
config = defaultConfig(config)
const typesLookup = {}
config.types.forEach(type => {
typesLookup[type.type] = type
})

@@ -69,3 +78,3 @@ return {

const issues = []
const typeKey = (commit.revert ? 'revert' : (commit.type || '')).toLowerCase()
const entry = findTypeEntry(config.types, commit)

@@ -83,6 +92,6 @@ // adds additional breaking change notes

// breaking changes attached to any type are still displayed.
if (discard && (typesLookup[typeKey] === undefined ||
typesLookup[typeKey].hidden)) return
if (discard && (entry === undefined ||
entry.hidden)) return
if (typesLookup[typeKey]) commit.type = typesLookup[typeKey].section
if (entry) commit.type = entry.section

@@ -89,0 +98,0 @@ if (commit.scope === '*') {

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