{"name":"conventional-changelog-core","version":"4.1.1","description":"conventional-changelog core","repository":{"type":"git","url":"git+https://github.com/conventional-changelog/conventional-changelog.git"},"keywords":["conventional-changelog","conventional","changelog","log"],"engines":{"node":">=6.9.0"},"license":"MIT","bugs":{"url":"https://github.com/conventional-changelog/conventional-changelog/issues"},"homepage":"https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-core#readme","dependencies":{"conventional-changelog-writer":"^4.0.11","conventional-commits-parser":"^3.0.8","dateformat":"^3.0.0","get-pkg-repo":"^1.0.0","git-raw-commits":"2.0.0","git-remote-origin-url":"^2.0.0","git-semver-tags":"^3.0.1","lodash":"^4.17.15","normalize-package-data":"^2.3.5","q":"^1.5.1","read-pkg":"^3.0.0","read-pkg-up":"^3.0.0","through2":"^3.0.0"},"scripts":{"test-windows":"mocha --timeout 30000"},"gitHead":"79217815a7ce5f3d3f833961ce9a14bd454e5789","_id":"conventional-changelog-core@4.1.1","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.18.4/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-fBre5P6U9n914Da6Cj82vIfRU2DhTLGr1eDPXWA7AamxTpd4cd0jgdS7Aieas5Vn5WXOJNFRDNl6PrYLEonImg==","shasum":"956f1a2fb476ef2f66c93f673ac040a4159de167","tarball":"http://registry-npm.ywwl.com/conventional-changelog-core/download/conventional-changelog-core-4.1.1.tgz","fileCount":9,"unpackedSize":41535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzdBwCRA9TVsSAnZWagAARLcP/30WJCjSMAmEPl42QQO6\namihbsAbOhejY0XopfNiaZY9+MjNoKkHRnyAd3fqLaG5AobMgLYnaW/Z2UAP\njlcLKaiFbQJ038RUDUNNoocxeGtbs/qplxTNiSI+omc9smk4DuxonJTixZ4Q\n72HSd7w9mz7mqTkiOcDuEm+dETw42M+a864f7Uoz8yggn2CIcbLwG398sL27\nSCMtLd/ea8n2CxvQaxi8/3ni2WlVw+LkyzL1phoNrkLiMwoN/NXbePb3GWrM\n/4+mNCVZIsw/GQ6LxLwgXxVAfY0qur0B4/AFZj/icJN8n8g3yz1CslmD4iTK\npbjIt0+7RPl9Zmn1KZPGK93cn7RoB1YpqMly13JAPdNeZnoo14NLdSykAUO/\nOuIyvLyyi6PKWzx3HWPwDFPc3JX7qKLAR0A4zfa4JryUP1Ym/d3gY6XauRNc\noJNXHO4Pn3Z4AjeBhrw4MlweTm8IHxj0NvaGXQuHykEo9xUApijj2k+jEPjb\nQc/AK03C8o2UJ3dUZL2p69ohQbouROD2ZrpyB0/IixuDHV+Ar4ZcF06dY4RK\ndmo8NQe90xhXeit/cVQVhay+B60B+K6xKquSp8oNIcX4NQEx0N03NAlwEpJD\nbuSz/sQ4g4txZk/sJUnboWJYUNCGwMNTIS0ynuGC6PtYQzI4l8R9FHm4aIfC\nwsWU\r\n=8he+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAOtw2FTSCfvxKyKavkTdal42hGk3jNHo0Ow9CuHXgngIhAOQnrLoxHo4LtvZTcYDbefoFNOZhHueJU5cUDO/FSRHh"}],"size":9921,"noattachment":false,"key":"/conventional-changelog-core/-/conventional-changelog-core-4.1.1.tgz"},"maintainers":[{"email":"bencoe@gmail.com","name":"bcoe"},{"email":"gustaf.dalemar@gmail.com","name":"dlmr"},{"email":"hutson@hyper-expanse.net","name":"hutson"},{"email":"hello@mario-nebl.de","name":"marionebl"},{"email":"maochenyan@gmail.com","name":"stevemao"},{"email":"moilanen.tapani@gmail.com","name":"tapppi"},{"email":"tommywo@o2.pl","name":"tommywo"}],"_npmUser":{"name":"tommywo","email":"tommywo@o2.pl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/conventional-changelog-core_4.1.1_1573769327652_0.6071028145086359"},"_hasShrinkwrap":false,"readme":"#  [![NPM version][npm-image]][npm-url] [![Build Status: Linux][travis-image]][travis-url] [![Build Status: Windows][appveyor-image]][appveyor-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coverage-image]][coverage-url]\n\n> [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) core\n\nYou are probably looking for the [cli](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli) module. Or use one of the plugins if you are already using the tool:  [grunt](https://github.com/btford/grunt-conventional-changelog)/[gulp](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/gulp-conventional-changelog)/[atom](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-atom).\n\n## Usage\n\n```sh\n$ npm install --save conventional-changelog-core\n```\n\n```js\nimport conventionalChangelogCore from 'conventional-changelog-core';\n\nconventionalChangelogCore()\n  .pipe(process.stdout); // or any writable stream\n```\n\n## API\n\n### conventionalChangelogCore([options, [context, [gitRawCommitsOpts, [parserOpts, [writerOpts]]]]])\n\nReturns a readable stream.\n\n*Note:* [`options.transform`](#transform-1), [`options.pkg.transform`](#transform) and [`writerOpts.transform`](https://github.com/conventional-changelog/conventional-changelog-writer#transform) are different. If you have a better naming suggestion, please send a PR.\n\n#### options\n\n##### config\n\nType: `promise`, `function` or `object`\n\nThis should serve as default values for other arguments of `conventionalChangelogCore` so you don't need to rewrite the same or similar config across your projects. Any value in this could be overwritten.\nIf this is a promise (recommended if async), it should resolve with the config.\nIf this is a function, it expects a node style callback with the config object.\nIf this is an object, it is the config object. The config object should include `context`, `gitRawCommitsOpts`, `parserOpts` and `writerOpts`.\n\n##### pkg\n\nType: `object`\n\n###### path\n\nType: `string` Default: [closest package.json](https://github.com/sindresorhus/read-package-up).\n\nThe location of your \"package.json\".\n\n###### transform\n\nType: `function` Default: pass through.\n\nA function that takes `package.json` data as the argument and returns the modified data. Note this is performed before normalizing package.json data. Useful when you need to add a leading 'v' to your version or modify your repository url, etc.\n\n##### append\n\nType: `boolean` Default: `false`\n\nShould the log be appended to existing data.\n\n##### releaseCount\n\nType: `number` Default: `1`\n\nHow many releases of changelog you want to generate. It counts from the upcoming release. Useful when you forgot to generate any previous changelog. Set to `0` to regenerate all.\n\n##### skipUnstable\n\nType: `boolean` Default: `false`\n\nIf set, unstable release tags will be skipped, e.g., x.x.x-rc.\n\n##### debug\n\nType: `function` Default: `function() {}`\n\nA debug function. EG: `console.debug.bind(console)`\n\n##### warn\n\nType: `function` Default: `options.debug`\n\nA warn function. EG: `grunt.verbose.writeln`\n\n##### transform\n\nType: `function` Default: get the version (without leading 'v') from tag and format date.\n\n###### function(commit, cb)\n\nA transform function that applies after the parser and before the writer.\n\nThis is the place to modify the parsed commits.\n\n####### commit\n\nThe commit from conventional-commits-parser.\n\n####### cb\n\nCallback when you are done.\n\n####### this\n\n`this` arg of transform handler of a stream.\n\n##### outputUnreleased\n\nType: `boolean` Default: `true` if a different version than last release is given. Otherwise `false`.\n\nIf this value is `true` and `context.version` equals last release then `context.version` will be changed to `'Unreleased'`.\n\n**NOTE:** You may want to combine this option with `releaseCount` set to `0` to always overwrite the whole CHANGELOG. `conventional-changelog` only outputs a CHANGELOG but doesn't read any existing one.\n\n##### lernaPackage\n\nSpecify a package in lerna-style monorepo that the CHANGELOG should be generated for.\n\nLerna tags releases in the format `foo-package@1.0.0` and assumes that packages\nare stored in the directory structure `./packages/foo-package`.\n\n##### tagPrefix\n\nSpecify a prefix for the git tag that will be taken into account during the comparison.\nFor instance if your version tag is prefixed by `version/` instead of `v` you would specify `--tagPrefix=version/`\n\n#### context\n\nSee the [conventional-changelog-writer](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-writer) docs. There are some defaults or changes:\n\n##### host\n\nDefault: normalized host found in `package.json`.\n\n##### version\n\nDefault: version found in `package.json`.\n\n##### owner\n\nDefault: extracted from normalized `package.json` `repository.url` field.\n\n##### repository\n\nDefault: extracted from normalized `package.json` `repository.url` field.\n\n##### repoUrl\n\nDefault: The whole normalized repository url in `package.json`.\n\n##### gitSemverTags\n\nType: `array`\n\nAll git semver tags found in the repository. You can't overwrite this value.\n\n##### previousTag\n\nType: `string` Default: previous semver tag or the first commit hash if no previous tag.\n\n##### currentTag\n\nType: `string` Default: current semver tag or `'v'` + version if no current tag.\n\n##### packageData\n\nType: `object`\n\nYour `package.json` data. You can't overwrite this value.\n\n##### linkCompare\n\nType: `boolean` Default: `true` if `previousTag` and `currentTag` are truthy.\n\nShould link to the page that compares current tag with previous tag?\n\n#### gitRawCommitsOpts\n\nSee the [git-raw-commits](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-raw-commits) docs. There are some defaults:\n\n##### format\n\nDefault: `'%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci'`\n\n##### from\n\nDefault: based on `options.releaseCount`.\n\n##### reverse\n\nDefault: `true` if `options.append` is truthy.\n\n##### debug\n\nType: `function` Default: `options.debug`\n\n#### parserOpts\n\nSee the [conventional-commits-parser](https://github.com/conventional-changelog/conventional-commits-parser) docs.\n\n##### warn\n\nDefault: `options.warn`\n\n#### writerOpts\n\nSee the [conventional-changelog-writer](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-writer) docs. There are some defaults:\n\n##### finalizeContext\n\nFinalize context is used for generating above context.\n\n**NOTE:** If you overwrite this value the above context defaults will be gone.\n\n##### debug\n\nType: `function` Default: `options.debug`\n\n##### reverse\n\nDefault: `options.append`\n\n##### doFlush\n\nDefault: `options.outputUnreleased`\n\n\n## Notes for parent modules\n\nThis module has options `append` and `releaseCount`. However, it doesn't read your previous changelog. Reasons being:\n\n1. The old logs is just to be appended or prepended to the newly generated logs, which is a very simple thing that could be done in the parent module.\n2. We want it to be very flexible for the parent module. You could create a readable stream from the file or you could just read the file.\n3. We want the duty of this module to be very minimum.\n\nSo, when you build a parent module, you need to read the old logs and append or prepend to them based on `options.append`. However, if `options.releaseCount` is `0` you need to ignore any previous logs. Please see [conventional-github-releaser](https://github.com/conventional-changelog/conventional-github-releaser) as an example.\n\nArguments passed to `conventionalChangelogCore` will be mutated.\n\n\n## License\n\nMIT\n\n\n[npm-image]: https://badge.fury.io/js/conventional-changelog-core.svg\n[npm-url]: https://npmjs.org/package/conventional-changelog-core\n[travis-image]: https://travis-ci.org/conventional-changelog/conventional-changelog-core.svg?branch=master\n[travis-url]: https://travis-ci.org/conventional-changelog/conventional-changelog-core\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/baoumm34w8c5o0hv/branch/master?svg=true\n[appveyor-url]: https://ci.appveyor.com/project/stevemao/conventional-changelog-core/branch/master\n[daviddm-image]: https://david-dm.org/conventional-changelog/conventional-changelog-core.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog-core\n[coverage-image]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master\n[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master\n","publish_time":1573769327868,"deprecated":"Deprecated and no longer maintained. Please use conventional-changelog instead.","_cnpm_publish_time":1573769327868,"dist-tags":{"latest":"9.0.0","next":"4.2.1"}}