🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

simple-commit-message

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-commit-message - npm Package Compare versions

Comparing version

to
4.0.0

21

package.json

@@ -8,3 +8,3 @@ {

},
"version": "3.3.2",
"version": "4.0.0",
"scripts": {

@@ -16,3 +16,3 @@ "ban": "node node_modules/.bin/ban",

"commit": "commit-wizard",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"semantic-release": "semantic-release",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",

@@ -47,4 +47,4 @@ "wizard": "node bin/simple-wizard.js",

"devDependencies": {
"ban-sensitive-files": "1.9.0",
"dependency-check": "2.9.1",
"ban-sensitive-files": "1.9.2",
"dependency-check": "2.9.2",
"deps-ok": "1.2.1",

@@ -54,6 +54,6 @@ "git-issues": "1.3.1",

"next-update-travis": "1.7.1",
"pre-git": "3.15.3",
"pre-git": "3.16.0",
"ramda": "0.25.0",
"rocha": "2.5.0",
"semantic-release": "^6.3.6",
"semantic-release": "^11.1.0",
"snap-shot": "2.17.0",

@@ -80,4 +80,4 @@ "standard": "10.0.3"

"check-more-types": "2.24.0",
"debug": "2.6.9",
"ggit": "1.23.1",
"debug": "3.1.0",
"ggit": "2.4.2",
"hr": "0.1.3",

@@ -92,5 +92,4 @@ "inquirer": "0.12.0",

"release": {
"analyzeCommits": ".",
"generateNotes": "github-post-release"
"analyzeCommits": "."
}
}
}

@@ -121,2 +121,7 @@ # simple-commit-message

### Versions
* `1 ... 3.x` compatible with `semantic-release` v8
* `4` compatible with `semantic-release` v11
## Wizard

@@ -123,0 +128,0 @@

'use strict'
const parse = require('./valid-message').parse
const topChange = require('largest-semantic-change').topChange
const debug = require('debug')('simple')
const la = require('lazy-ass')

@@ -19,20 +18,17 @@ // semantic-release only understands

function analyzeCommits (pluginConfig, config, cb) {
debug('analyzeCommits with %d commits', config.commits.length)
debug(config.commits)
const semantic = config.commits
.map(c => parse(c.message))
.filter(c => c)
console.log('found %d semantic commit(s)', semantic.length)
/* pluginConfig, config */
function analyzeCommits (releaseRules, commit) {
const semantic = parse(commit.message)
if (!semantic) {
return
}
console.log('found semantic')
console.log(semantic)
const top = topChange(semantic)
const change = changes[top]
debug('top semantic change', top, 'change', change)
const releaseType = changes[semantic.type]
la(releaseType, 'could not pick release type from', semantic)
cb(null, change)
return releaseType
}
module.exports = analyzeCommits