{"name":"changelogen","version":"0.6.2","description":"Generate Beautiful Changelogs using Conventional Commits","repository":{"type":"git","url":"git+https://github.com/unjs/changelogen.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"bin":{"changelogen":"dist/cli.mjs"},"types":"./dist/index.d.mts","dependencies":{"c12":"^3.0.4","confbox":"^0.2.2","consola":"^3.4.2","convert-gitmoji":"^0.1.5","mri":"^1.2.0","node-fetch-native":"^1.6.6","ofetch":"^1.4.1","open":"^10.1.2","pathe":"^2.0.3","pkg-types":"^2.2.0","scule":"^1.3.0","semver":"^7.7.2","std-env":"^3.9.0"},"devDependencies":{"@types/node":"^24.0.10","@types/semver":"^7.7.0","@vitest/coverage-v8":"^3.2.4","eslint":"^9.30.1","eslint-config-unjs":"^0.5.0","jiti":"^2.4.2","prettier":"^3.6.2","standard-version":"^9.5.0","typescript":"^5.8.3","unbuild":"^3.5.0","vitest":"^3.2.4"},"scripts":{"build":"unbuild","changelogen":"jiti ./src/cli.ts","dev":"vitest dev","lint":"eslint . && prettier -c src test","lint:fix":"eslint --fix . && prettier -w src test","release":"pnpm test && pnpm changelogen --release --push && pnpm publish","test":"pnpm lint && vitest run --coverage"},"_id":"changelogen@0.6.2","bugs":{"url":"https://github.com/unjs/changelogen/issues"},"homepage":"https://github.com/unjs/changelogen#readme","_integrity":"sha512-QtC7+r9BxoUm+XDAwhLbz3CgU134J1ytfE3iCpLpA4KFzX2P1e6s21RrWDwUBzfx66b1Rv+6lOA2nS2btprd+A==","_resolved":"/private/var/folders/hq/c07mx_4n6tg50tlvwps5l8600000gn/T/c2f65437ef971cc070335aa01b4b477b/changelogen-0.6.2.tgz","_from":"file:changelogen-0.6.2.tgz","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QtC7+r9BxoUm+XDAwhLbz3CgU134J1ytfE3iCpLpA4KFzX2P1e6s21RrWDwUBzfx66b1Rv+6lOA2nS2btprd+A==","shasum":"53161a6d83a20027e0186c92af9392dfd4f14ae9","tarball":"http://registry-npm.ywwl.com/changelogen/download/changelogen-0.6.2.tgz","fileCount":10,"unpackedSize":43089,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCWj8i+FaXZj8L9qplOJTDn0/gHsCRKJ1vx4eNqHheiNgIhALmdmQi99SdPzvl/3Qs8Gr24C54/oa59oEAh68yJEu46"}],"size":13137,"noattachment":false,"key":"/changelogen/-/changelogen-0.6.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com","actor":{"name":"pi0","email":"pyapar@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/changelogen_0.6.2_1751794802550_0.5716065682462597"},"_hasShrinkwrap":false,"readme":"# changelogen\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Codecov][codecov-src]][codecov-href]\n[![License][license-src]][license-href]\n\nGenerate Beautiful Changelogs using [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)\n\n## Quick Start\n\nGenerate a changelog in Markdown format and display in the console:\n\n```sh\nnpx changelogen@latest\n```\n\nGenerate a changelog, bump the version in `package.json` and update `CHANGELOG.md` (without commit):\n\n```sh\nnpx changelogen@latest --bump\n```\n\nBump the version, update `CHANGELOG.md` and make a git commit and tag:\n\n```sh\nnpx changelogen@latest --release\n```\n\n## CLI Usage\n\n```sh\nnpx changelogen@latest [...args] [--dir <dir>]\n```\n\n**Arguments:**\n\n- `--from`: Start commit reference. When not provided, **latest git tag** will be used as default.\n- `--to`: End commit reference. When not provided, **latest commit in HEAD** will be used as default.\n- `--dir`: Path to git repository. When not provided, **current working directory** will be used as as default.\n- `--clean`: Determine if the working directory is clean and if it is not clean, exit.\n- `--output`: Changelog file name to create or update. Defaults to `CHANGELOG.md` and resolved relative to dir. Use `--no-output` to write to console only.\n- `--noAuthors`: Skip contributors section in changelog.\n- `--bump`: Determine semver change and update version in `package.json`.\n- `--release`. Bumps version in `package.json` and creates commit and git tags using local `git`. You can disable commit using `--no-commit` and tag using `--no-tag`. You can enable the automatic push of the new tag and release commit to your git repository by adding `--push`.\n- `--publish`. Publishes package as a new version on `npm`. You will need to set authorisation tokens separately via `.npmrc` or environment variables.\n- `--publishTag` Use custom npm tag for publishing (Default is `latest`)\n- `--nameSuffix`: Adds suffix to package name (Example: `--nameSuffix canary` renames `foo` to `foo-canary`)\n- `--versionSuffix`: Adds suffix to package version. When set without value or to `true`, uses date + commit hash as commit\n- `--canary`. Shortcut to `--bump --versionSuffix` (`--nameSuffix` will be also added if arg has a string value).\n- `-r`: Release as specific version.\n- `--major`: Bump as a semver-major version\n- `--minor`: Bump as a semver-minor version\n- `--patch`: Bump as a semver-patch version\n- `--premajor`: Bump as a semver-premajor version, can set id with string.\n- `--preminor`: Bump as a semver-preminor version, can set id with string.\n- `--prepatch`: Bump as a semver-prepatch version, can set id with string.\n- `--prerelease`: Bump as a semver-prerelease version, can set id with string.\n- `--hideAuthorEmail`: Do not include author email in changelog if github username cannot be found.\n\n> [!NOTE]\n> Version numbers starting with `0.` or `0.0.` follow different rules.\n>\n> In these cases, the second or third digit is treated as the major version. They use the formats `0.major.minor` and `0.0.major` instead of the standard `major.minor.patch`.\n>\n> To ensure consistent semantic versioning, start version numbering at `1.0.0`.\n\n### `changelogen gh release`\n\nChangelogen has built-in functionality to sync with Github releases.\n\nIn order to manually sync a release, you can use `changelogen gh release`. It will parse current `CHANGELOG.md` from current repository (local, then remote) and create or update releases.\n\nUsage:\n\n```sh\nnpx changelogen@latest gh release [all|versions...] [--dir] [--token]\n```\n\nTo enable this integration, make sure there is a valid `repository` field in `package.json` or `repo` is set in `.changelogenrc`.\n\nBy default in unauthenticated mode, changelogen will open a browser link to make manual release. By providing github token, it can be automated.\n\n- Using environment variables or `.env`, use `CHANGELOGEN_TOKENS_GITHUB` or `GITHUB_TOKEN` or `GH_TOKEN`\n- Using CLI args, use `--token <token>`\n- Using global configuration, put `tokens.github=<token>` inside `~/.changlogenrc`\n- Using [GitHub CLI](https://cli.github.com/) token when authenticated with `gh auth login`\n\n## Configuration\n\nConfiguration is loaded by [unjs/c12](https://github.com/unjs/c12) from cwd. You can use either `changelog.config.json`, `changelog.config.{ts,js,mjs,cjs}`, `.changelogrc` or use the `changelog` field in `package.json`.\n\nSee [./src/config.ts](./src/config.ts) for available options and defaults.\n\n## 💻 Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\n## License\n\nMade with 💛\n\nPublished under [MIT License](./LICENSE).\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/changelogen?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-version-href]: https://npmjs.com/package/changelogen\n[npm-downloads-src]: https://img.shields.io/npm/dm/changelogen?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/changelogen\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/changelogen/main?style=flat&colorA=18181B&colorB=F0DB4F\n[codecov-href]: https://codecov.io/gh/unjs/changelogen\n[license-src]: https://img.shields.io/github/license/unjs/changelogen.svg?style=flat&colorA=18181B&colorB=F0DB4F\n[license-href]: https://github.com/unjs/changelogen/blob/main/LICENSE\n","publish_time":1751794802737,"_cnpm_publish_time":1751794802737,"dist-tags":{"latest":"0.6.2"}}