Skip to content

fix: JSONC config loading, clarify cost.rate docs (v0.7.1) - #10

Merged
zhumengzhu merged 1 commit into
mainfrom
feat/jsonc-config
Aug 20, 2026
Merged

fix: JSONC config loading, clarify cost.rate docs (v0.7.1)#10
zhumengzhu merged 1 commit into
mainfrom
feat/jsonc-config

Conversation

@zhumengzhu

Copy link
Copy Markdown
Owner

Closes #9

What

  • rate (cost display exchange rate) confusion from question about rate field. #9: clarified in cache-hit.config.example.json ($comment-rate) and both READMEs — it is a manual snapshot (USD→CNY), omitted → built-in default 6.77, USD users can skip it, non-USD users should set the current rate (Xe / Wise / OANDA links added).
  • Config loading now accepts JSONC (line/block comments, trailing commas) via existing src/jsonc.ts. Previously a config with // comments failed to parse silently and fell back to all defaults.
  • Version bump 0.7.0 → 0.7.1 (patch, per CONTRIBUTING.md versioning table).

Tests

bun test: 408 pass / 0 fail (+2 JSONC load tests in tests/load-config.test.ts).

@zhumengzhu
zhumengzhu merged commit b777c3d into main Aug 20, 2026
1 check passed
@zhumengzhu
zhumengzhu deleted the feat/jsonc-config branch August 20, 2026 16:07
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.

question about rate field.

1 participant