Skip to content

Commit f83bdf4

Browse files
committed
Release v0.5.0
1 parent f1eec2a commit f83bdf4

File tree

11 files changed

+32
-12
lines changed

11 files changed

+32
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Version 0.5.0-alpha1
3+
## Version 0.5.0
44

55
* **Attachment Decoupling Architecture** (Complete refactor): Fully decoupled attachment storage from notification backends, enabling any backend to work with any attachment manager:
66
* **StorageIdentifiers Type System**: Introduced `StorageIdentifiers` base interface with implementation-specific types (`MedplumStorageIdentifiers`, `S3StorageIdentifiers`, etc.) for type-safe attachment identification

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vintasend",
3-
"version": "0.5.0-alpha2",
3+
"version": "0.5.0",
44
"main": "dist/index.js",
55
"files": [
66
"dist"
@@ -20,6 +20,7 @@
2020
"release:bump:patch": "node scripts/release-bump.js --bump=patch",
2121
"release:bump:minor": "node scripts/release-bump.js --bump=minor",
2222
"release:bump:alpha": "node scripts/release-bump.js --bump=alpha",
23+
"release:bump:promote": "node scripts/release-bump.js --bump=promote",
2324
"release:publish": "node scripts/release-publish.js"
2425
},
2526
"devDependencies": {

scripts/release-bump.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ async function main() {
108108
// Check if current version is an alpha version
109109
const isCurrentAlpha = /^(\d+\.\d+\.\d+)-alpha(\d+)$/.test(highestVersion);
110110
const currentAlphaMatch = highestVersion.match(/^(\d+\.\d+\.\d+)-alpha(\d+)$/);
111+
112+
if (selectedBumpType === 'promote' && !isCurrentAlpha) {
113+
logError('Cannot promote alpha: current version is not an alpha version');
114+
process.exit(1);
115+
}
111116

112117
// If --bump=alpha was passed and current version is already alpha, ask if user wants to increment
113118
if (selectedBumpType === 'alpha' && isCurrentAlpha) {
@@ -131,10 +136,11 @@ async function main() {
131136

132137
if (isCurrentAlpha) {
133138
console.log(` 4) increment alpha (e.g., ${highestVersion}${currentAlphaMatch[1]}-alpha${parseInt(currentAlphaMatch[2]) + 1})`);
139+
console.log(` 5) promote alpha to stable (e.g., ${highestVersion}${currentAlphaMatch[1]})`);
134140
}
135141

136-
const maxChoice = isCurrentAlpha ? 4 : 3;
137-
const choice = await question(`\nEnter choice (1, 2, ${isCurrentAlpha ? '3, or 4' : 'or 3'}): `);
142+
const maxChoice = isCurrentAlpha ? 5 : 3;
143+
const choice = await question(`\nEnter choice (1, 2, ${isCurrentAlpha ? '3, 4, or 5' : 'or 3'}): `);
138144

139145
if (choice === '2') {
140146
selectedBumpType = 'minor';
@@ -143,6 +149,8 @@ async function main() {
143149
} else if (choice === '4' && isCurrentAlpha) {
144150
selectedBumpType = 'alpha-iteration';
145151
alphaIteration = parseInt(currentAlphaMatch[2]) + 1;
152+
} else if (choice === '5' && isCurrentAlpha) {
153+
selectedBumpType = 'promote';
146154
} else {
147155
selectedBumpType = 'patch';
148156
}

scripts/utils/version-bumper.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
/**
22
* Bump a version number
33
* @param {string} version - Current version (e.g., "0.4.14" or "0.4.14-alpha1")
4-
* @param {'patch' | 'minor' | 'major' | 'alpha' | 'alpha-iteration'} bumpType - Type of version bump
4+
* @param {'patch' | 'minor' | 'major' | 'alpha' | 'alpha-iteration' | 'promote'} bumpType - Type of version bump
55
* @param {number} alphaIteration - Alpha iteration number (used when bumpType is 'alpha' or 'alpha-iteration')
66
* @param {'patch' | 'minor'} alphaBaseBumpType - Base bump type for alpha (patch or minor, defaults to patch)
77
* @returns {string} - New version
88
*/
99
function bumpVersion(version, bumpType, alphaIteration = 1, alphaBaseBumpType = 'patch') {
10+
if (bumpType === 'promote') {
11+
const alphaMatch = version.match(/^(\d+\.\d+\.\d+)(-alpha\d+)?$/);
12+
if (!alphaMatch) {
13+
throw new Error('Cannot promote alpha: invalid version format');
14+
}
15+
if (!alphaMatch[2]) {
16+
throw new Error('Cannot promote alpha: current version is not an alpha version');
17+
}
18+
return alphaMatch[1];
19+
}
20+
1021
// Handle alpha iteration bump (just increment the alpha number without changing base version)
1122
if (bumpType === 'alpha-iteration') {
1223
const alphaMatch = version.match(/^(\d+\.\d+\.\d+)-alpha(\d+)$/);

src/implementations/vintasend-pug

0 commit comments

Comments
 (0)