Skip to content

feat: add encode_number_precision#125

Merged
membphis merged 1 commit into
mainfrom
codex/121-encode-number-precision
May 31, 2026
Merged

feat: add encode_number_precision#125
membphis merged 1 commit into
mainfrom
codex/121-encode-number-precision

Conversation

@membphis
Copy link
Copy Markdown
Collaborator

Summary

  • add qjson.encode_number_precision() with module-level precision state and cached float format strings
  • apply configured precision to float encoding while preserving integer and lazy fast paths
  • document the supported cjson migration API and add Lua coverage for bounds, errors, and lazy proxy behavior

Test Plan

  • PATH="$HOME/.luarocks/bin:$PATH" make test
  • cargo test --release --no-default-features
  • cargo test --features test-panic --release
  • make lint

Closes #121

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 31, 2026

Warning

Review limit reached

@membphis, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 18 minutes and 17 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f629c38e-ae1d-4632-b7a5-8d8959f45922

📥 Commits

Reviewing files that changed from the base of the PR and between 9d7a9f3 and 9ac7209.

📒 Files selected for processing (4)
  • docs/migrating-from-cjson.md
  • lua/qjson.lua
  • lua/qjson/table.lua
  • tests/lua/encode_number_precision_spec.lua
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/121-encode-number-precision

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@membphis membphis merged commit 613b5aa into main May 31, 2026
16 checks passed
@membphis membphis deleted the codex/121-encode-number-precision branch May 31, 2026 15:08
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.

encode_number_precision():控制浮点编码输出精度

1 participant