Skip to content

feat: add package version to /up, /status, and /health responses#42

Merged
noahsaso merged 1 commit intomainfrom
feat/version-in-status-routes
Apr 13, 2026
Merged

feat: add package version to /up, /status, and /health responses#42
noahsaso merged 1 commit intomainfrom
feat/version-in-status-routes

Conversation

@noahsaso
Copy link
Copy Markdown
Owner

Summary

Adds the deployed package version (from package.json) to the /up, /status, and /health API responses. This makes it easy to verify which version of argus is running in any environment.

Changes

  • src/version.ts — New utility that reads the version from package.json at startup
  • src/server/routes/indexer/getStatus.ts — Added version field to /status response
  • src/server/routes/indexer/up.ts — Added version field to /up response (both success and error cases)
  • src/server/routes/index.ts — Added version field to /health response

Tests

  • Updated existing getStatus.test.ts and health.test.ts to assert version is present
  • Added new version.test.ts that verifies all endpoints include the correct version

All tests pass (npm run docker:test).

@noahsaso noahsaso merged commit 48d7796 into main Apr 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant