Socket
Socket
Sign inDemoInstall

git-semver-tags

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-semver-tags - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

11

CHANGELOG.md

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

<a name="1.3.0"></a>
# [1.3.0](https://github.com/stevemao/git-semver-tags/compare/git-semver-tags@1.2.3...git-semver-tags@1.3.0) (2018-01-29)
### Features
* allow to specify a tagPrefix in conventional-recommended-bump ([f60f86f](https://github.com/stevemao/git-semver-tags/commit/f60f86f))
<a name="1.2.3"></a>

@@ -8,0 +19,0 @@ ## [1.2.3](https://github.com/stevemao/git-semver-tags/compare/git-semver-tags@1.2.2...git-semver-tags@1.2.3) (2017-11-13)

6

cli.js

@@ -12,3 +12,4 @@ #!/usr/bin/env node

' --lerna parse lerna style git tags',
' --package when listing lerna style tags, filter by a package'
' --package when listing lerna style tags, filter by a package',
' --tagPrefix prefix to remove from the tags during their processing'
]

@@ -26,3 +27,4 @@ });

lernaTags: args.flags.lerna,
package: args.flags.package
package: args.flags.package,
tagPrefix: args.flags.tagPrefix
});

@@ -32,3 +32,6 @@ 'use strict';

var tags = [];
var tagPrefixRegexp;
if (opts.tagPrefix) {
tagPrefixRegexp = new RegExp('^' + opts.tagPrefix + '(.*)');
}
data.split('\n').forEach(function(decorations) {

@@ -42,2 +45,7 @@ var match;

}
} else if (opts.tagPrefix) {
var matches = tag.match(tagPrefixRegexp);
if (matches && semverValid(matches[1])) {
tags.push(tag);
}
} else if (semverValid(tag)) {

@@ -44,0 +52,0 @@ tags.push(tag);

{
"name": "git-semver-tags",
"version": "1.2.3",
"version": "1.3.0",
"description": "Get all git semver tags of your repository in reverse chronological order",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/stevemao/git-semver-tags",

@@ -39,2 +39,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]

`foo-package`.
* `opts.tagPrefix`: specify a prefix for the git tag to be ignored from the semver checks

@@ -41,0 +42,0 @@ ## License

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