Repository navigation
Commit 41966b7
fix(deps): bump ijson-jcs to 03df9ed for RFC 8785 number ties (#261)
Closes the "ijson-jcs tie case" follow-up from #237/#247.
## Problem
The pinned `ijson-jcs` (3a9a4ee) built ECMAScript number output by
rearranging Rust's float formatting. Rust doesn't guarantee ECMAScript's
choice on a decimal tie, so RFC 8785 Appendix B vector
`0x43143ff3c1cb0959` came out as `1424953923781206.3`. JCS requires
`1424953923781206.2`. A report or attestation holding such a float would
hash differently from other JCS implementations.
## Fix
Bump to ijson-jcs `main` (03df9ed). It now formats numbers with
`ryu-js`, which implements ECMAScript `Number::toString`, and passes
every Appendix B vector (`cargo test --test rfc8785` in ijson-jcs: 5/5).
The fix was already upstream, so only the pin needed to move. The
lockfile was updated with `cargo update -p ijson-jcs`.
## Validation
- **New test `json::tests::numbers_follow_rfc_8785_on_decimal_ties`**
pins the vector. It **fails on the old pin** with `left:
"1424953923781206.3\n"` and passes on the new one.
- `cargo fmt --check`, plus `cargo clippy --locked --all-targets -D
warnings` with and without `--all-features`: clean.
- `cargo test --locked --all-features`: all suites green (lib: 524
passed).
- `cargo audit`: no new advisories; only the four known upstream
`unmaintained` warnings remain, tracked as W1/W2 in standards'
upstream-dependency watch.
- **New transitive dependency:** `ryu-js` 1.0.3, licensed `Apache-2.0 OR
BSL-1.0`, which is compatible with MPL-2.0.
Existing golden fixtures are unchanged: none of them hold a tie-case
float.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01PFaqv6iBXrt3W5Akd1Fq5k)_
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0a4159b commit 41966b7
4 files changed
Lines changed: 25 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| |||
0 commit comments