Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
benhaney committed Aug 17, 2022
1 parent 0778f46 commit 75a34c5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.0] - 2022-08-14
### Added
- Precompiled binaries via [rustler_precompiled](https://github.com/philss/rustler_precompiled)

## [0.1.6] - 2021-03-11
### Fixed
- Prevent `:ok` and `:error` atoms from being encoded as capitalized strings, inconsistent with other atom encoding

## [0.1.5] - 2021-02-06
### Fixed
- Honor custom encodings in nested structs

## [0.1.4] - 2020-04-02
### Fixed
- Correct typespec in NIF stub that caused issues with Dialyzer

## [0.1.3] - 2019-12-02
### Changed
- Limit nesting depth to 128 again when decoding strings

## [0.1.2] - 2019-12-02
### Changed
- Make `decode` and `decode!` accept a second (unused) options argument for compatibility

## [0.1.1] - 2019-11-08
### Changed
- Support decoding strings with a nesting depth over 128

## [0.1.0] - 2019-11-03
### Added
- Initial release
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ defimpl Jsonrs.Encoder, for: [MapSet, Range, Stream] do
end
```

## Limitations

Inherited from `serde_json`, decoding is limited to a nesting depth of 128. As per RFC 7159, section 9:
> An implementation may set limits on the maximum depth of nesting.
## Credits

Jsonrs is built on the backs of giants. It is connecting the Rust libraries [Serde_rustler](https://github.com/sunny-g/serde_rustler) and [Serde_json](https://github.com/serde-rs/json), exposing them to Elixir through [Rustler](https://github.com/rusterlium/rustler), and wrapping the NIF in an interface inspired by [Jason](https://github.com/michalmuskala/jason). Without these projects, Jsonrs probably wouldn't exist.

0 comments on commit 75a34c5

Please sign in to comment.