diff --git a/changelogs/v1.0.1-changelog.md b/changelogs/v1.0.1-changelog.md new file mode 100644 index 0000000..b8812cf --- /dev/null +++ b/changelogs/v1.0.1-changelog.md @@ -0,0 +1,14 @@ +## Changes + +**User Agent** + +- Added User-Agent header with version info + + +## Breaking Changes + +None. + +## Migration Guide + +No migration needed for this release. diff --git a/package.json b/package.json index 99f16a2..758b435 100644 --- a/package.json +++ b/package.json @@ -80,8 +80,9 @@ "test": "vitest run", "coverage": "vitest run --coverage", "check:state": "git diff --quiet && git diff --cached --quiet || { echo 'Git working directory is not clean. Please commit or stash changes before publishing.'; exit 1; }", - "check:branch": "if [[ $(git symbolic-ref --short HEAD) != 'master' && ! $(git symbolic-ref --short HEAD) =~ ^release/ ]]; then echo 'You must be on the master branch or a release branch (release/...).'; exit 1; fi", - "prepublishOnly": "npm run check:state && npm run check:branch && npm run build" + "check:branch": "if [ $(git symbolic-ref --short HEAD) != 'master' ]; then echo 'You must be on the master branch to publish.'; exit 1; fi", + "check:changelog": "VERSION=$(node -p \"require('./package.json').version\") && if [ ! -f \"changelogs/v${VERSION}-changelog.md\" ]; then echo \"No changelog file found for version ${VERSION}.\"; exit 1; fi", + "prepublishOnly": "npm run check:state && npm run check:branch && npm run check:changelog && npm run build" }, "engines": { "node": ">=20"