Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 27 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,26 +187,42 @@ docker build -f apps/web/Dockerfile -t voca-web .

We use manual versioning and GitHub Releases to publish packages:

1. **Bump versions** in all package.json files:
- `packages/voca-client/package.json`
- `packages/voca-react/package.json`
- `packages/voca-svelte/package.json`
1. **Bump versions** across the codebase (e.g., to `0.4.1`):
- `packages/voca-client/package.json` (update `version`)
- `packages/voca-react/package.json` (update `version` + `@treyorr/voca-client` dependency)
- `packages/voca-svelte/package.json` (update `version` + `@treyorr/voca-client` dependency)
- `apps/web/package.json` (update `@treyorr/voca-svelte` dependency)
- `services/signaling/Cargo.toml` (update `version`)

2. **Update Protocol Versions** in source files (these must match the version to ensure client/server handshake compatibility):
- `packages/voca-client/src/index.ts` (update `version` in the `hello` message)
- `services/signaling/src/handlers.rs` (update `version` in the `welcome` message)

3. **Update Lockfiles & Build**:
```bash
# Update Bun lockfile
bun install
# Update Cargo lockfile
cd services/signaling && cargo check && cd ../..
# Verify builds
mise run build-packages
```

2. **Commit and push**:
4. **Commit and push**:
```bash
git add packages/*/package.json
git commit -m "chore: bump version to 0.1.0"
git add .
git commit -m "chore: bump version to 0.4.1"
git push origin main
```

3. **Create GitHub Release**:
5. **Create GitHub Release**:
- Go to https://github.com/treyorr/voca/releases/new
- Create a new tag (e.g., `v0.1.0`)
- Title: `v0.1.0`
- Create a new tag (e.g., `v0.4.1`)
- Title: `v0.4.1`
- Describe what changed
- Click "Publish release"

4. **Automatic npm publish**:
6. **Automatic npm publish**:
- GitHub Actions will automatically build and publish to npm
- Check the Actions tab to monitor progress

Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"vite": "^7.3.0"
},
"dependencies": {
"@treyorr/voca-svelte": "^0.4.0",
"@treyorr/voca-svelte": "^0.4.1",
"@lucide/svelte": "^0.574.0"
}
}
10 changes: 5 additions & 5 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/voca-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treyorr/voca-client",
"version": "0.4.0",
"version": "0.4.1",
"description": "Voca WebRTC Client SDK",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/voca-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class VocaClient {

this.ws.onopen = () => {
// Send hello message with version info
this.send({ type: 'hello', version: '0.3.0', client: '@treyorr/voca-client' });
this.send({ type: 'hello', version: '0.4.1', client: '@treyorr/voca-client' });
this.status = 'connected';
this.events.emit('status', 'connected');
// Reset reconnect attempts on successful connection
Expand Down
4 changes: 2 additions & 2 deletions packages/voca-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treyorr/voca-react",
"version": "0.4.0",
"version": "0.4.1",
"description": "React hooks for Voca WebRTC voice chat",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down Expand Up @@ -39,7 +39,7 @@
"react": ">=18.0.0"
},
"dependencies": {
"@treyorr/voca-client": "^0.4.0"
"@treyorr/voca-client": "^0.4.1"
},
"devDependencies": {
"@types/react": "^19.2.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/voca-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treyorr/voca-svelte",
"version": "0.4.0",
"version": "0.4.1",
"description": "Svelte 5 Runes wrapper for Voca Client SDK",
"svelte": "./dist/index.svelte.js",
"types": "./dist/index.svelte.d.ts",
Expand Down Expand Up @@ -37,7 +37,7 @@
"access": "public"
},
"dependencies": {
"@treyorr/voca-client": "^0.4.0"
"@treyorr/voca-client": "^0.4.1"
},
"devDependencies": {
"@sveltejs/package": "^2.3.7",
Expand Down
2 changes: 1 addition & 1 deletion services/signaling/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/signaling/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "signaling"
version = "0.4.0"
version = "0.4.1"
authors = ["Trey Orr"]
edition = "2024"

Expand Down
2 changes: 1 addition & 1 deletion services/signaling/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ async fn handle_socket(socket: WebSocket, key: RoomKey, state: AppState) {
let welcome = SignalMessage {
from: "server".to_string(),
payload: SignalPayload::Welcome {
version: "0.4.0".to_string(),
version: "0.4.1".to_string(),
peer_id: peer_id.clone(),
},
};
Expand Down