{"_id":"@dyrkow/conventional-recommended-bump","_rev":"2-62f5369294ec9e7e65c2008ed41ad272","name":"@dyrkow/conventional-recommended-bump","dist-tags":{"latest":"6.2.0"},"versions":{"6.2.0":{"name":"@dyrkow/conventional-recommended-bump","version":"6.2.0","keywords":["conventional-recommended-bump","recommend","conventional","bump"],"author":{"url":"https://github.com/stevemao","name":"Steve Mao","email":"maochenyan@gmail.com"},"license":"MIT","_id":"@dyrkow/conventional-recommended-bump@6.2.0","maintainers":[{"name":"webworkdeveloper","email":"webworkdeveloper@gmail.com"}],"homepage":"https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-recommended-bump#readme","bugs":{"url":"https://github.com/conventional-changelog/conventional-changelog/issues"},"bin":{"conventional-recommended-bump":"cli.js"},"dist":{"shasum":"4837449c7b66a9bcbc2a330b43ac122184fb8518","tarball":"https://registry.npmjs.org/@dyrkow/conventional-recommended-bump/-/conventional-recommended-bump-6.2.0.tgz","fileCount":6,"integrity":"sha512-GerWasAgDWkFgv0ofLvTyGqsVJAFlr66g4c89Mt+zbGwJCQuGUcpLfsMh8L1jYkfJNgz7e7ry3E+7MyIOlkJyg==","signatures":[{"sig":"MEQCIHLsnjfk4D7XQTkZylEBfe0EdnTSegyMHgpTZckQU/PzAiBklqmMDEvQ+ULMrS2pJNECy9kP6611z9MCpKQ8Eig9FA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDMVhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpe/w/8DEmyBjqkX4HiZazz9jxr/vTRIQ4Tk5keuh7GV4yW4Ihybc3L\r\nfJBMM7y2oNzdTNFZ3A2WNAxz0VL0xdbeB9kVbgVwwh8I38t0C6LekSZ09UsB\r\njR9AupQZPa7MBSuhrePVmxjZ6nluDk0dZtOyOGdmFhKtY9nHwhQXHKS3JK7v\r\nxqGEwEWUfyPyQYpkX/AbtmvIefPbitkK1oskAHar8QGEGV2KYa9m9skNvQas\r\nuHR7msnmaqVz6CliliWYpbjvD4y324kYXQMQJhU0s3C2oM5eeJ6+nCRd6tvD\r\n7MomN/LV2C2fGYKM9dRRn5JM2WGG4lWLrxCALSmsTJ8CZ6KPOOHwtkjtj1cY\r\nSpqkv2c20X+oiMgU/xGLI9NEkrS7d1bnEeKepkr5cg5h6tB0c1RNBU1SK+F0\r\nGhqlOsuZc1l+6jhhGdjGKR6VPXGWl2hcN1Bjb1604FAoDUbW88d1MFnwrpqk\r\nOFkOa7RJduKEmQHkWqDh9U62XOLN/lBLdrBXaJh2xJYIr8hEDeP2SUODrvaC\r\no+dDLD6FQYPGbBW4WyeLZp9QKRwX9vHGwgm5KJrtOx9l3sOkcvAmS3CVoEF8\r\nsV4fc6JijSW2B9d0ZwLQu0TkRgXvUB10BGYR8vyytFwvYuLdewouGp1lZOj3\r\nRv3P90E70XeJyGw/5c2gzf0n7lxjIeNgNvY=\r\n=2j9+\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=14"},"gitHead":"b39386387bdd3888ed6635838394f44ccf715009","scripts":{"test-windows":"mocha --timeout 30000 ./test/preset-resolver.spec.js"},"_npmUser":{"name":"webworkdeveloper","email":"webworkdeveloper@gmail.com"},"repository":{"url":"git+https://github.com/conventional-changelog/conventional-changelog.git","type":"git"},"_npmVersion":"8.5.5","description":"Get a recommended version bump based on conventional commits","directories":{},"_nodeVersion":"16.15.0","dependencies":{"meow":"^8.0.0","concat-stream":"^2.0.0","git-semver-tags":"^4.1.1","@dyrkow/git-raw-commits":"^2.1.11","conventional-commits-filter":"^2.0.7","conventional-commits-parser":"^3.2.0","conventional-changelog-preset-loader":"^2.3.4"},"_hasShrinkwrap":false,"devDependencies":{"conventional-changelog-conventionalcommits":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/conventional-recommended-bump_6.2.0_1678558560830_0.5609861288782609","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2023-03-11T18:16:00.762Z","modified":"2026-02-19T21:05:12.283Z","6.2.0":"2023-03-11T18:16:00.991Z"},"bugs":{"url":"https://github.com/conventional-changelog/conventional-changelog/issues"},"author":{"url":"https://github.com/stevemao","name":"Steve Mao","email":"maochenyan@gmail.com"},"license":"MIT","homepage":"https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-recommended-bump#readme","keywords":["conventional-recommended-bump","recommend","conventional","bump"],"repository":{"url":"git+https://github.com/conventional-changelog/conventional-changelog.git","type":"git"},"description":"Get a recommended version bump based on conventional commits","maintainers":[{"name":"webworkdeveloper","email":"webworkdeveloper@gmail.com"}],"readme":"# conventional-recommended-bump\n\n> Get a recommended version bump based on conventional commits.\n\nGot the idea from https://github.com/conventional-changelog/conventional-changelog/pull/29\n\n## Table of Contents\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n    - [options](#options)\n      - [ignoreReverted](#ignorereverted)\n      - [preset](#preset)\n      - [config](#config)\n      - [whatBump](#whatbump)\n      - [tagPrefix](#tagprefix)\n      - [skipUnstable](#skipunstable)\n      - [lernaPackage](#lernapackage)\n      - [path](#path)\n    - [parserOpts](#parseropts)\n    - [callback](#callback)\n- [License](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## Install\n\n```bash\nnpm install conventional-recommended-bump\n```\n\n## Usage\n\n```javascript\nconst conventionalRecommendedBump = require(`conventional-recommended-bump`);\n\nconventionalRecommendedBump({\n  preset: `angular`\n}, (error, recommendation) => {\n  console.log(recommendation.releaseType); // 'major'\n});\n```\n\n```bash\nnpm install --global conventional-recommended-bump\nconventional-recommended-bump --help\n```\n\n## API\n\n```javascript\nconventionalRecommendedBump(options, [parserOpts,] callback);\n```\n\n`parserOpts` is optional.\n\nIn the case you don't want to provide `parserOpts`, then `callback` must be provided as the second argument.\n\n#### options\n\n`options` is an object with the following properties:\n\n* ignoreReverted\n* preset\n* config\n* whatBump\n\n##### ignoreReverted\n\n**Type:** `boolean` **Default:** `true`\n\nIf `true`, reverted commits will be ignored.\n\n##### preset\n\n**Type:** `string`\n\nIt's recommended to use a preset so you don't have to define everything yourself.\n\nThe value is passed to [`conventional-changelog-preset-loader`](https://www.npmjs.com/package/conventional-changelog-preset-loader).\n\n##### config\n\n**Type:** `object`\n\nThis should serve as default values for other arguments of `conventional-recommended-bump` so you don't need to rewrite the same or similar config across your projects.\n\n**NOTE:** `config` option will be overwritten by the value loaded by `conventional-changelog-preset-loader` if the `preset` options is set.\n\n##### whatBump\n\n**Type:** `function`\n\nA function that takes parsed commits as an argument.\n\n```javascript\nwhatBump(commits) {};\n```\n\n`commits` is an array of all commits from last semver tag to `HEAD` as parsed by [conventional-commits-parser](https://github.com/conventional-changelog/conventional-commits-parser)\n\nThis should return an object including but not limited to `level` and `reason`. `level` is a `number` indicating what bump it should be and `reason` is the reason of such release.\n\n##### tagPrefix\n\n**Type:** `string`\n\nSpecify a prefix for the git tag that will be taken into account during the comparison.\n\nFor instance if your version tag is prefixed by `version/` instead of `v` you would specifying `--tagPrefix=version/` using the CLI, or `version/` as the value of the `tagPrefix` option.\n\n##### skipUnstable\n\n**Type:** `boolean`\n\nIf true, unstable tags will be skipped, e.g., x.x.x-alpha.1, x.x.x-rc.2\n\n##### lernaPackage\n\n**Type:** `string`\n\nSpecify the name of a package in a [Lerna](https://lernajs.io/)-managed repository. The package name will be used when fetching all changes to a package since the last time that package was released.\n\nFor instance if your project contained a package named `conventional-changelog`, you could have only commits that have happened since the last release of `conventional-changelog` was tagged by specifying `--lernaPackage=conventional-changelog` using the CLI, or `conventional-changelog` as the value of the `lernaPackage` option.\n\n##### path\n\n**Type:** `string`\n\nSpecify the path to only calculate with git commits related to the path. If you want to calculate recommended bumps of packages in a [Lerna](https://lernajs.io/)-managed repository, `path` should be use along with `lernaPackage` for each of the package.\n\n#### parserOpts\n\n**Type:** `object`\n\nSee the [conventional-commits-parser](https://github.com/conventional-changelog/conventional-commits-parser) documentation for available options.\n\n#### callback\n\n**Type:** `function`\n\n```javascript\ncallback(error, recommendation) {};\n```\n\n`recommendation` is an `object` with a single property, `releaseType`.\n\n`releaseType` is a `string`: Possible values: `major`, `minor` and `patch`, or `undefined` if `whatBump` does not return sa valid `level` property, or the `level` property is not set by `whatBump`.\n\n## Debugging\n\nTo assist users of `conventional-recommended-bump` with debugging the behavior of this module we use the [debug](https://www.npmjs.com/package/debug) utility package to print information about the release process to the console. To enable debug message printing, the environment variable `DEBUG`, which is the variable used by the `debug` package, must be set to a value configured by the package containing the debug messages to be printed.\n\nTo print debug messages on a unix system set the environment variable `DEBUG` with the name of this package prior to executing `conventional-recommended-bump`:\n\n```bash\nDEBUG=conventional-recommended-bump conventional-recommended-bump\n```\n\nOn the Windows command line you may do:\n\n```bash\nset DEBUG=conventional-recommended-bump\nconventional-recommended-bump\n```\n\n## Node Support Policy\n\nWe only support [Long-Term Support](https://github.com/nodejs/Release) versions of Node.\n\nWe specifically limit our support to LTS versions of Node, not because this package won't work on other versions, but because we have a limited amount of time, and supporting LTS offers the greatest return on that investment.\n\nIt's possible this package will work correctly on newer versions of Node. It may even be possible to use this package on older versions of Node, though that's more unlikely as we'll make every effort to take advantage of features available in the oldest LTS version we support.\n\nAs each Node LTS version reaches its end-of-life we will remove that version from the `node` `engines` property of our package's `package.json` file. Removing a Node version is considered a breaking change and will entail the publishing of a new major version of this package. We will not accept any requests to support an end-of-life version of Node. Any merge requests or issues supporting an end-of-life version of Node will be closed.\n\nWe will accept code that allows this package to run on newer, non-LTS, versions of Node. Furthermore, we will attempt to ensure our own changes work on the latest version of Node. To help in that commitment, our continuous integration setup runs against all LTS versions of Node in addition the most recent Node release; called _current_.\n\nJavaScript package managers should allow you to install this package with any version of Node, with, at most, a warning if your version of Node does not fall within the range specified by our `node` `engines` property. If you encounter issues installing this package, please report the issue to your package manager.\n\n## Contributing\n\nPlease read our [contributing guide](https://github.com/conventional-changelog/conventional-changelog/blob/master/CONTRIBUTING.md) to see how you may contribute to this project.\n\n## License\n\nMIT © [Steve Mao](https://github.com/stevemao)\n","readmeFilename":"README.md"}