Skip to content

refactor: [#4] drop key-prefix environment, derive env from baseUrl#5

Merged
nahtandev merged 1 commit into
mainfrom
refactor/4
Jun 13, 2026
Merged

refactor: [#4] drop key-prefix environment, derive env from baseUrl#5
nahtandev merged 1 commit into
mainfrom
refactor/4

Conversation

@nahtandev

Copy link
Copy Markdown
Member

Summary

Removed the misleading xedo.environment getter that inferred a live/test
environment from the API key prefix. Xedo keys are opaque (xdk_<hex>) and the
environment is determined solely by baseUrl (Production vs Sandbox).

Changes

  • Removed the environment getter and the now-unused private apiKey field from Xedo
  • Dropped all xdk_live_ / xdk_test_ references in JSDoc, the browser-guard error message, examples and tests
  • Documented Production vs Sandbox selection via baseUrl in the README, linking to the Environments guide
  • Updated test fixtures to opaque xdk_… keys and removed the prefix-inference test

@nahtandev nahtandev merged commit 03b1b0f into main Jun 13, 2026
4 checks 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