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

conventional-changelog-writer

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-changelog-writer - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="1.4.1"></a>
## [1.4.1](https://github.com/conventional-changelog/conventional-changelog-writer/compare/v1.4.0...v1.4.1) (2016-05-10)
### Bug Fixes
* **context:** auto link references if repoUrl([30bb234](https://github.com/conventional-changelog/conventional-changelog-writer/commit/30bb234))
<a name="1.4.0"></a>

@@ -2,0 +12,0 @@ # [1.4.0](https://github.com/conventional-changelog/conventional-changelog-writer/compare/v1.3.0...v1.4.0) (2016-05-10)

2

index.js

@@ -22,3 +22,3 @@ 'use strict';

if (!_.isBoolean(context.linkReferences) && context.repository && context.commit && context.issue) {
if (!_.isBoolean(context.linkReferences) && (context.repository || context.repoUrl) && context.commit && context.issue) {
context.linkReferences = true;

@@ -25,0 +25,0 @@ }

{
"name": "conventional-changelog-writer",
"version": "1.4.0",
"version": "1.4.1",
"description": "Write logs based on conventional commits and templates",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/conventional-changelog/conventional-changelog-writer",

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

Type: `boolean` Default: `true` if `repository`, `commit` and `issue` are truthy
Type: `boolean` Default: `true` if (`context.repository` or `context.repoUrl`), `context.commit` and `context.issue` are truthy

@@ -129,3 +129,3 @@ Should all references be linked?

Commit keyword in the url if `options.linkReferences === true`.
Commit keyword in the url if `context.linkReferences === true`.

@@ -136,3 +136,3 @@ ##### issue

Issue or pull request keyword in the url if `options.linkReferences === true`.
Issue or pull request keyword in the url if `context.linkReferences === true`.

@@ -139,0 +139,0 @@ ##### date

@@ -90,3 +90,3 @@ 'use strict';

describe('link', function() {
it('should link if repository, commit and issue are truthy', function(done) {
it('should auto link if `context.repository`, `context.commit` and `context.issue` are truthy', function(done) {
var i = 0;

@@ -98,3 +98,4 @@

title: 'this is a title',
repository: 'https://github.com/a/b'
host: 'https://github.com',
repository: 'a/b'
}))

@@ -112,6 +113,26 @@ .pipe(through(function(chunk, enc, cb) {

it('should not link if repository, commit and issue are not truthy', function(done) {
it('should auto link if `context.repoUrl`, `context.commit` and `context.issue` are truthy', function(done) {
var i = 0;
getStream()
.pipe(conventionalChangelogWriter({
version: '0.5.0',
title: 'this is a title',
repoUrl: 'https://github.com/a/b'
}))
.pipe(through(function(chunk, enc, cb) {
expect(chunk.toString()).to.include('https://github.com/a/b/commits/13f3160');
i++;
cb(null);
}, function() {
expect(i).to.equal(1);
done();
}));
});
it('should not auto link', function(done) {
var i = 0;
getStream()
.pipe(conventionalChangelogWriter())

@@ -118,0 +139,0 @@ .pipe(through(function(chunk, enc, cb) {

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