{"name":"changelogen","version":"0.6.0","license":"MIT","_id":"changelogen@0.6.0","maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/unjs/changelogen#readme","bugs":{"url":"https://github.com/unjs/changelogen/issues"},"bin":{"changelogen":"dist/cli.mjs"},"dist":{"shasum":"d44ef9fd288260d887219151b3bcec3b843675a7","tarball":"http://registry-npm.ywwl.com/changelogen/download/changelogen-0.6.0.tgz","fileCount":10,"integrity":"sha512-bw9NbPIpPxZbjbIxvXqs39qKwPIV3VsFbRdXPCphWsEp84mBCAEszBj67AqBXN719zPs/x5ABFFRoLoANMJSeQ==","signatures":[{"sig":"MEUCIQD5Pkpgv50TuZOmx2lPeKFZ2d+J4oUfVyqiZzbs/XLliQIgBPCqGpNCj3k59FXOOyMGNm9F9XX+hpLsBgkWbTM/JEQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42557,"size":12944,"noattachment":false,"key":"/changelogen/-/changelogen-0.6.0.tgz"},"type":"module","_from":"file:changelogen-0.6.0.tgz","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"dev":"vitest dev","lint":"eslint . && prettier -c src test","test":"pnpm lint && vitest run --coverage","build":"unbuild","release":"pnpm test && pnpm changelogen --release --push && pnpm publish","lint:fix":"eslint --fix . && prettier -w src test","changelogen":"jiti ./src/cli.ts"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"_resolved":"/tmp/2112be75574e7c304a5547e7b73cce27/changelogen-0.6.0.tgz","_integrity":"sha512-bw9NbPIpPxZbjbIxvXqs39qKwPIV3VsFbRdXPCphWsEp84mBCAEszBj67AqBXN719zPs/x5ABFFRoLoANMJSeQ==","repository":{"url":"git+https://github.com/unjs/changelogen.git","type":"git"},"_npmVersion":"10.9.2","description":"Generate Beautiful Changelogs using Conventional Commits","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"c12":"3.0.1","mri":"^1.2.0","open":"^10.1.0","pathe":"^2.0.3","scule":"^1.3.0","ofetch":"^1.4.1","semver":"^7.7.1","confbox":"^0.1.8","consola":"^3.4.0","std-env":"^3.8.0","pkg-types":"^2.0.0","convert-gitmoji":"^0.1.5","node-fetch-native":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.4.2","eslint":"^9.21.0","vitest":"^3.0.7","unbuild":"^3.3.1","prettier":"^3.5.2","typescript":"^5.7.3","@types/node":"^22.13.5","@types/semver":"^7.5.8","standard-version":"^9.5.0","eslint-config-unjs":"^0.4.2","@vitest/coverage-v8":"^3.0.7"},"_npmOperationalInternal":{"tmp":"tmp/changelogen_0.6.0_1740568147065_0.22088457023406227","host":"s3://npm-registry-packages-npm-production"},"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":1740568147289,"_cnpm_publish_time":1740568147289,"dist-tags":{"latest":"0.6.2"}}