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

grunt-templated-changelog

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-templated-changelog - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

test/fixtures/git/log.notarget

4

CHANGES.md
# 0.1.2
- `bugfix` allow empty target in subjects with `label()` `a69dee4`
# 0.1.1

@@ -3,0 +7,0 @@

2

package.json
{
"name": "grunt-templated-changelog",
"description": "Generates customized changelog file from git logs.",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "",

@@ -6,0 +6,0 @@ "author": {

@@ -18,9 +18,9 @@

// subject with "label(target)" stripped
subject : /^[^\(]+\([^\)]+\)\s+(.*)(?:\n\n|$)/,
subject : /^[^\(]+\([^\)]*\)\s+(.*)(?:\n\n|$)/,
// label, assuming line starts with "label(target)"
label : /^([^\(]+)\([^\)]+\)\s+/,
label : /^([^\(]+)\([^\)]*\)\s+/,
// target, assuming line starts with "label(target)"
target : /^[^\(]+\(([^\)]+)\)\s+/,
target : /^[^\(]+\(([^\)]*)\)\s+/,

@@ -27,0 +27,0 @@ // breaking changes

@@ -112,2 +112,28 @@

it('should parse `label()` with no target', function(done) {
var parser = new Parser();
git.log('log.notarget')
.pipe(parser);
parser.on('data', function(commit) {
expect(commit)
.to.eql({
hash : 'fade3f6d3532d5b915226d59d68884b7e602991f',
hash_abbr : 'fade3f6',
author_name : 'John Doe',
author_email : 'john.doe@domain.com',
date : '2014-02-24 11:43:58 -0800',
body : 'bugfix() Another fix\n\nnext line',
subject : 'Another fix',
label : 'bugfix'
});
done();
});
});
it('should parse `Issues #issue[, #issue[, #issue]]`', function(done) {

@@ -114,0 +140,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