Code Monkey home page Code Monkey logo

conventional-recommended-bump's People

Contributors

blowsie avatar dgreif avatar fusionstrings avatar stevemao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

conventional-recommended-bump's Issues

option --verbose or -v doesn't output details of the bump

Great work stevemao,

I have one question: when I run conventional-recommended-bump --verbose -p angular the output is the same as conventional-recommended-bump -p angular. I would expect further info about the reason a certain bump has been chosen.
Looking at the source code, I can't see any debug message.

Leonardo

Result is no longer a string

As per the docs;

var conventionalRecommendedBump = require('conventional-recommended-bump');

conventionalRecommendedBump({
  preset: 'angular'
}, function(err, releaseAs) {
  console.log(releaseAs);
  //=> 'major'
});

Since a recent update what is more accurate is

var conventionalRecommendedBump = require('conventional-recommended-bump');

conventionalRecommendedBump({
  preset: 'angular'
}, function(err, releaseAsObj) {
  console.log(releaseAsObj.releaseAs); // Its now an object.
  //=> 'major'
});

I don't know whether the code or the documentation should be updated, otherwise I would create a PR

RFC: Allow a starting version/tag to be given as option

Correct me if I'm wrong, but it seems that the conventional-recommended-bumpgit-latest-semver-taggit-semver-tags calls review the complete git log history just to determine the latest tag (so it knows how far back to go when determining the recommended version bump). This is definitely robust, but it seems a little inefficient/unnecessary for a tool like standard-version that already knows which version (and thus, which tag) it wants to start from.

If we allowed a starting version to be specified, then perhaps conventional-recommended-bump could first verify a git tag exists for that version and, if so, use that as the starting point instead of jumping through the git-latest-semver-taggit-semver-tags hoop. If no git tag is found for the given version, it could either return an error or fallback to the existing functionality.

What do you think? Is there something I'm missing about how this works?

returns "patch" in published package

I just did an npm publish and ./node_modules/.bin/conventional-recommended-bump --preset=angular returns patch although there aren't any new commits since last publish. Is that the expected behaviour? Shouldn't just the command fail since there is not need to bump to a new version?

Error while using it.

I am getting following error while running conventional-recommended-bump as suggested in docs.

events.js:74
        throw TypeError('Uncaught, unspecified "error" event.');
              ^
TypeError: Uncaught, unspecified "error" event.
    at TypeError (<anonymous>)
    at Readable.emit (events.js:74:15)
    at DestroyableTransform._transform (C:\Users\dshuk4\AppData\Roaming\npm\node_modules\conventional-recommended-bump\node_modules\git-raw-commits\index.js:48:16)
    at DestroyableTransform.Transform._read (C:\Users\dshuk4\AppData\Roaming\npm\node_modules\conventional-recommended-bump\node_modules\git-raw-commits\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:10)
    at DestroyableTransform.Transform._write (C:\Users\dshuk4\AppData\Roaming\npm\node_modules\conventional-recommended-bump\node_modules\git-raw-commits\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:160:12)
    at doWrite (C:\Users\dshuk4\AppData\Roaming\npm\node_modules\conventional-recommended-bump\node_modules\git-raw-commits\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:323:12)
    at writeOrBuffer (C:\Users\dshuk4\AppData\Roaming\npm\node_modules\conventional-recommended-bump\node_modules\git-raw-commits\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:309:5)
    at DestroyableTransform.Writable.write (C:\Users\dshuk4\AppData\Roaming\npm\node_modules\conventional-recommended-bump\node_modules\git-raw-commits\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:236:11)
    at Socket.ondata (stream.js:51:26)
    at Socket.emit (events.js:117:20)

conventional-recommended-bump does not increment versions in a conventional way.

Latest version 0.3.0 should have been 1.0.0

According to SEMVER

Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards-compatible manner, and
PATCH version when you make backwards-compatible bug fixes.

This impacted our ability to ship code for a day while investigating our broken CI which allowed installing minor version of conventional-recommended-bump.

idea: bump patch on "chore"

When semantic-version submits a pull request that bumps a dependency version, it's usually the case that you want to release a new point-release with the dependency update. Should chore along with fix result in a patch bump?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.