Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.14.1] - 2026-09-14

### Fixed
- Encoding a struct type (a map type with a `__struct__` field, e.g. from Elixir) with non-map data (a string, integer, list, or atom) crashed with a raw `badmap` error instead of returning `{error, [spectra:error()]}`. Plain map types, list types, record types, and decoding were unaffected — only the struct branch of `to_json/4` was missing its `is_map/1` guard.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add spectra to your rebar.config dependencies:

```erlang
{deps, [
{spectra, "~> 0.14.0"}
{spectra, "~> 0.14.1"}
]}.
```

Expand Down
Loading