Skip to content

bug: VERSION export hardcoded to '0.1.0', out of sync with package.json #61

@stackbilt-admin

Description

@stackbilt-admin

Bug

src/index.ts:445 exports a hardcoded version string that has drifted far from the actual package version:

export const VERSION = '0.1.0';  // src/index.ts:445

package.json is currently at 1.6.2. Any caller relying on VERSION for runtime introspection (logging, telemetry, user-agent strings) gets a stale value.

Root cause

The constant was never wired to the build pipeline — it's a manual string that was last updated at initial setup.

Fix options

  1. Remove the export — if no internal or external caller uses it, delete it. Run grep -r 'VERSION' src/ to check.
  2. Derive at build time — inject via tsup / vite define or a codegen step that reads package.json before compilation.

Acceptance criteria

  • VERSION matches package.json#version at publish time, or the export is removed
  • No manual update needed when bumping the version in future PRs

Found by

Codebase audit (automated) — src/index.ts:445

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions