fix(wasm)!: camelCase option keys #455

Merged
jqueuniet merged 1 commit from fix/452-wasm-camel-options into main 2026-10-31 10:20:22 +01:00
Owner

Closes #452. First of four stacked PRs for the editor issues.

wasm options take camelCase keys, mapped to the Rust field names in opts, so later options follow without per-field renames:

  • IconOptions.frameMs replaces frame_ms;
  • a snake_case key is refused;
  • serde errors name fields in camelCase (expected \frameMs` or `transparent``).

C JSON options and Python keyword arguments keep frame_ms. Output JSON fields, such as an item's frame_ms, are unchanged.

https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7

Closes #452. First of four stacked PRs for the editor issues. wasm options take camelCase keys, mapped to the Rust field names in `opts`, so later options follow without per-field renames: - `IconOptions.frameMs` replaces `frame_ms`; - a snake_case key is refused; - serde errors name fields in camelCase (`expected \`frameMs\` or \`transparent\``). C JSON options and Python keyword arguments keep `frame_ms`. Output JSON fields, such as an item's `frame_ms`, are unchanged. https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
fix(wasm)!: camelCase option keys
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 28s
CI / audit (pull_request) Successful in 20s
CI / stable (pull_request) Successful in 57s
CI / python bindings (3.11) (pull_request) Successful in 29s
CI / msrv (1.90) (push) Successful in 29s
CI / audit (push) Successful in 19s
CI / stable (push) Successful in 56s
CI / python bindings (3.11) (push) Successful in 26s
e5a5db7988
wasm options take camelCase keys, mapped to the Rust field names, so
IconOptions has frameMs instead of the lone snake_case frame_ms; a
snake_case key is refused, and serde's errors name fields in
camelCase. C JSON options and Python keyword arguments keep frame_ms.

Closes #452

Claude-Session: https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
jqueuniet deleted branch fix/452-wasm-camel-options 2026-10-31 10:20:22 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools!455
No description provided.