Socket
Socket
Sign inDemoInstall

conventional-changelog-conventionalcommits

Package Overview
Dependencies
Maintainers
1
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 3.0.1 to 3.0.2

2

add-bang-notes.js

@@ -5,3 +5,3 @@ const { breakingHeaderPattern } = require('./parser-opts')()

const match = commit.header.match(breakingHeaderPattern)
if (match) {
if (match && commit.notes.length === 0) {
const noteText = match[3] // the description of the change.

@@ -8,0 +8,0 @@ commit.notes.push({

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

## [3.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@3.0.1...conventional-changelog-conventionalcommits@3.0.2) (2019-05-05)
### Bug Fixes
* don't require 'host' and 'repository' when deciding whether to render URLs ([#447](https://github.com/conventional-changelog/conventional-changelog/issues/447)) ([83dff7a](https://github.com/conventional-changelog/conventional-changelog/commit/83dff7a))
* if ! and BREAKING CHANGE were used, notes would populate twice ([#446](https://github.com/conventional-changelog/conventional-changelog/issues/446)) ([63d8cbe](https://github.com/conventional-changelog/conventional-changelog/commit/63d8cbe))
## [3.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@3.0.0...conventional-changelog-conventionalcommits@3.0.1) (2019-05-02)

@@ -8,0 +20,0 @@

{
"name": "conventional-changelog-conventionalcommits",
"version": "3.0.1",
"version": "3.0.2",
"description": "conventional-changelog conventionalcommits.org preset",

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

},
"gitHead": "631c684771e7905b6f4a7e71ec13bde4267ef867"
"gitHead": "6fb56a721c6594f2b95d11c4c06a8b0dfad36380"
}

@@ -87,33 +87,29 @@ 'use strict'

if (typeof commit.subject === `string`) {
if (context.repository) {
// Issue URLs.
commit.subject = commit.subject.replace(/#([0-9]+)/g, (_, issue) => {
issues.push(issue)
const url = expandTemplate(config.issueUrlFormat, {
host: context.host,
owner: context.owner,
repository: context.repository,
id: issue
})
return `[#${issue}](${url})`
// Issue URLs.
commit.subject = commit.subject.replace(/#([0-9]+)/g, (_, issue) => {
issues.push(issue)
const url = expandTemplate(config.issueUrlFormat, {
host: context.host,
owner: context.owner,
repository: context.repository,
id: issue
})
}
if (context.host) {
// User URLs.
commit.subject = commit.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (_, user) => {
// TODO: investigate why this code exists.
if (user.includes('/')) {
return `@${user}`
}
return `[#${issue}](${url})`
})
// User URLs.
commit.subject = commit.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (_, user) => {
// TODO: investigate why this code exists.
if (user.includes('/')) {
return `@${user}`
}
const usernameUrl = expandTemplate(config.userUrlFormat, {
host: context.host,
owner: context.owner,
repository: context.repository,
user: user
})
const usernameUrl = expandTemplate(config.userUrlFormat, {
host: context.host,
owner: context.owner,
repository: context.repository,
user: user
})
return `[@${user}](${usernameUrl})`
})
}
return `[@${user}](${usernameUrl})`
})
}

@@ -120,0 +116,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