{"id":32556183,"url":"https://github.com/vineyardbovines/calver","last_synced_at":"2026-07-02T20:01:40.968Z","repository":{"id":321086289,"uuid":"1084425562","full_name":"vineyardbovines/calver","owner":"vineyardbovines","description":"calver plugin for release-it and auto-changelog template","archived":false,"fork":false,"pushed_at":"2026-01-01T16:59:14.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-06T16:32:37.059Z","etag":null,"topics":["auto-changelog","calver","release-it","release-it-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vineyardbovines.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-27T16:59:29.000Z","updated_at":"2026-01-01T16:59:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"72927649-cf46-46fc-b550-eaac6d15424d","html_url":"https://github.com/vineyardbovines/calver","commit_stats":null,"previous_names":["vineyardbovines/calver"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vineyardbovines/calver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vineyardbovines%2Fcalver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vineyardbovines%2Fcalver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vineyardbovines%2Fcalver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vineyardbovines%2Fcalver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vineyardbovines","download_url":"https://codeload.github.com/vineyardbovines/calver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vineyardbovines%2Fcalver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35060913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-changelog","calver","release-it","release-it-plugin"],"created_at":"2025-10-28T22:52:55.504Z","updated_at":"2026-07-02T20:01:40.962Z","avatar_url":"https://github.com/vineyardbovines.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @vineyardbovines/calver\n\nCalendar Versioning (CalVer) plugin for [release-it](https://github.com/release-it/release-it) and template for [auto-changelog](https://github.com/release-it/auto-changelog). Uses a fork of [node-calver](https://github.com/muratgozel/node-calver) that modifies the version calculation to expect a format NPM will accept.\n\n## Usage\n\nThis package has 3 functionalities: release-it plugin, auto-changelog template, and a fork of [node-calver](https://github.com/muratgozel/node-calver) that modifies the version calculation to expect a format NPM will accept.\n\n```bash\n# with package manager of choice\nnpm add -D @vineyardbovines/calver\n# install peers\nnpm add -D release-it auto-changelog\n```\n\n### calver\n\nTo use just the fork of node-calver, you can import the `calver` module and use the functions directly.\n\n```js\nimport { clean, suffix, prefix, initial, nt, ot, cycle, valid, toCalVerString } from \"@vineyardbovines/calver/calver\";\n```\n\n### release-it\n\nIn your release-it configuration:\n\n```jsonc\n// .release-it.json\n{\n  \"plugins\": {\n    \"@vineyardbovines/calver/plugin\": {\n      \"cycle\": \"month\"\n    }\n  }\n}\n```\n\nIf publishing to NPM:\n\n```jsonc\n{\n  \"npm\": {\n    \"publish\": true,\n    \"ignoreVersion\": true\n  }\n}\n```\n\nFor full-fledged usage reference, look at this repo's own [release-it config](./.release-it.json).\n\n**The format of version is always separated by `.` (dot)**. This is so that NPM will accept the version; versions split with other delimiters like `-` are invalid. The exception is prereleases, which are separated by `-` (dash).\n\nThe plugin will automatically increment the tag version if you've set `prerelease: true` in your release-it config.\n\n**If the date has changed between releases**, the version will get reset to the next appropraite calver version, and minor/prerelease tags will be reset to `1`.\n\n### auto-changelog\n\nIn your auto-changelog configuration, you can reference the template from this package by using the raw github URL. You'll also want to set the `tagPattern` to recognize calver tags.\n\n```jsonc\n// .auto-changelog\n{\n  \"template\": \"https://raw.githubusercontent.com/vineyardbovines/calver/refs/heads/main/template/changelog-template.hbs\",\n  // important so auto-changelog recognizes calver tags\n  \"tagPattern\": \"^\\\\d{4}\\\\.\\\\d{1,2}\\\\.\\\\d+(-[a-zA-Z0-9.-]+)?$\",\n  // sort in the date descending order\n  \"sortCommits\": \"date-desc\",\n\n  // other recommended options\n  \"package\": \"./package.json\",\n  \"unreleased\": true,\n  \"commitLimit\": false,\n  \"ignoreCommitPattern\": \"^release:\",\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvineyardbovines%2Fcalver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvineyardbovines%2Fcalver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvineyardbovines%2Fcalver/lists"}