{"name":"conventional-changelog-core","version":"4.2.4","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":">=10"},"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":{"add-stream":"^1.0.0","conventional-changelog-writer":"^5.0.0","conventional-commits-parser":"^3.2.0","dateformat":"^3.0.0","get-pkg-repo":"^4.0.0","git-raw-commits":"^2.0.8","git-remote-origin-url":"^2.0.0","git-semver-tags":"^4.1.1","lodash":"^4.17.15","normalize-package-data":"^3.0.0","q":"^1.5.1","read-pkg":"^3.0.0","read-pkg-up":"^3.0.0","through2":"^4.0.0"},"scripts":{"test-windows":"mocha --timeout 30000"},"devDependencies":{"conventional-changelog-angular":"^5.0.12"},"_id":"conventional-changelog-core@4.2.4","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg==","shasum":"e50d047e8ebacf63fac3dc67bf918177001e1e9f","tarball":"http://registry-npm.ywwl.com/conventional-changelog-core/download/conventional-changelog-core-4.2.4.tgz","fileCount":9,"unpackedSize":49255,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOhxjCRA9TVsSAnZWagAAsR0QAI1kkeENQBqEOYriZHQI\nbPe9UO9/97SHOdydh4quGj5gJ3tf1iaA6+mOrXH9ofNi9RNF07SG+0ifp2z2\no7jPSk0GXThgzqAbO9PGmHyOVyn95reyzvia2+7orRGqDNGJQio6bKu4jg2A\n6sBNJ727kGJmuJiGqrX2XWql85CMdExSl+LsHb2F2BD2P1FfPHWCFupU9WIR\nj36I5GaORiCbqAcsnSjgy8JNes7QH0lURN6HuUxgD8tO4r+f17rErCDuSVsv\nCMIrxoOaQhkBwOcLyywZXiV29+IQgj9ePO/0pJkZTzXJTL3qeCCO0bmOsDQH\njtW7CmWw7TgXTZyvMUHSwC9QzRfq67tbJp1NGt2Vs+OpzeYhHF+Skw3t8xO0\nxINY4UZ4xcnfPVtHEwRBWmBox+qg8Rnb8V8j/7b2D4NP2kvq+myIcejynjC5\nNV9RCwYaKw7Q2c9QH5OKi7lGi5G2yJeqhIrIWH5TwN7+t8XoZYMRC9D4f8/x\nKVxnph9B46RXjevAIVa3+WLxtobSL4VR1t+4w199UVX1z9YsS10nPrwEUyI9\nUj4r0PVf5/vjneaQjtbGTN1kKFtsHlAwnvOB3+wfnwdOZZrQDSs9DPe1IMf7\nhvMuO7TDanPvz53Ey1w8XVS7gWD2NQGAagGv2/CzKd4SXJa+AOBlWift5WhX\nG0Np\r\n=SzdK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA1JTpsfoEFtEmblmsF2j2mgHR2Cr6OX6HaxJhjmgp0bAiAxP545M3aU7GZbFv3XdTIG/hOMOgN7Ort5GqX/WRr0VQ=="}],"size":11489,"noattachment":false,"key":"/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz"},"_npmUser":{"name":"oss-bot","email":"bencoe+oss-bot@gmail.com"},"directories":{},"maintainers":[{"name":"bcoe","email":"bencoe@gmail.com"},{"name":"oss-bot","email":"bencoe+oss-bot@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"},{"name":"tapppi","email":"moilanen.tapani@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/conventional-changelog-core_4.2.4_1631198307194_0.2406720584228006"},"_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":1631198307352,"deprecated":"Deprecated and no longer maintained. Please use conventional-changelog instead.","_cnpm_publish_time":1631198307352,"dist-tags":{"latest":"9.0.0","next":"4.2.1"}}