You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure predictable and stable output, map encoding is now deterministic by default. This is critical for use cases like generating content hashes, digital signatures, and reliable caching.
The new default behavior guarantees that encoding the same map will always produce the exact same binary output, regardless of the map's internal key order or the underlying Elixir/OTP version.
For performance-critical applications where byte-for-byte determinism is not required, the previous non-deterministic behavior can be restored by passing the `deterministic: false` option.
BREAKING CHANGE: The binary output for all maps now uses sorted keys and will differ from the output generated in v1.x of this library. To migrate and retain the old behavior, explicitly pass the `deterministic: false` option to the `encode/2` function.
0 commit comments