| name | cf-temp-mail-version-upgrade |
| description | Upgrade the project version number. Use when the user asks to bump the version, upgrade the version, or prepare a new release version. Supports major, minor, and patch upgrades. |
Version Upgrade
Upgrade the version number of the cloudflare_temp_email project.
Files to modify
frontend/package.json — version field
worker/package.json — version field
worker/src/constants.ts — VERSION constant (format: VERSION: 'v' + '1.4.0')
pages/package.json — version field
vitepress-docs/package.json — version field
CHANGELOG.md — add new version placeholder
CHANGELOG_EN.md — add new version placeholder (English)
Upgrade workflow
- Read
frontend/package.json to get the current version.
- Compute the new version based on the upgrade type:
- major: 1.3.0 → 2.0.0
- minor: 1.3.0 → 1.4.0
- patch: 1.3.0 → 1.3.1
- Update the
version field in every package.json listed above.
- Update the
VERSION constant in worker/src/constants.ts.
- Insert a new version placeholder at the top of
CHANGELOG.md.
- Insert a new version placeholder at the top of
CHANGELOG_EN.md.
- Rename the previous version heading in both changelogs from
## v{OLD_VERSION}(main) to ## v{OLD_VERSION} so only the new active development version keeps (main).
CHANGELOG format
In CHANGELOG.md, insert before the existing ## v{OLD_VERSION}(main) line (i.e. right after the closing </p> of the language-switch link):
## v{VERSION}(main)
### Features
### Bug Fixes
### Improvements
After inserting the new placeholder, update the old heading:
-## v{OLD_VERSION}(main)
+## v{OLD_VERSION}
CHANGELOG_EN.md uses the same format and must receive the same old-heading update.
Commit message format
feat: upgrade version to v{VERSION}
- Update version number to {VERSION} in all package.json files
- Add v{VERSION} placeholder in CHANGELOG.md
- Move (main) marker from v{OLD_VERSION} to v{VERSION}