Skip to content

Releases: dannote/json_codec

v0.2.1

29 Jun 03:14

Choose a tag to compare

  • Avoid redundant struct decoding for fields with cast: that already returns the declared struct type.

v0.2.0

29 Jun 03:09

Choose a tag to compare

  • Remove unbounded atom: :unsafe decoding; use atom: {:enum, values} or atom: :existing.
  • Avoid map decoding for fields with cast: that already produced the declared struct.
  • Recognize nested JSONCodec modules during code generation with Code.ensure_compiled/1.

v0.1.6

29 Jun 02:59

Choose a tag to compare

  • Add strict: true to reject atom-key maps at JSON boundaries.
  • Add cast: field callbacks that run before type decoding.
  • Accept existing structs for declared struct fields during decoding.
  • Include SKILL.md with consumer guidance in the package.

v0.1.4

13 Jun 08:28

Choose a tag to compare

  • Fix defstruct literal defaults so values like %{} remain runtime values instead of escaped AST.

json_codec 0.1.2

09 Jun 00:09

Choose a tag to compare

0.1.2

  • Preserve boolean values as JSON booleans when encoding structs or maps with to_map/1.
  • Refactor map decode AST generation to keep Credo strict checks clean.

v0.1.1

07 Jun 19:13

Choose a tag to compare

  • Improve README formatting for code identifiers in rendered docs.