Skip to content

v1.1.0

Compare
Choose a tag to compare
@mneudert mneudert released this 06 Jul 12:19
· 130 commits to master since this release
4f4cb51
  • Enhancements

    • Maps can be decoded with a custom key type by passing :map_keys in the options of lookup/5
      • default is :atoms (keeping current behaviour, uses String.to_atom/1)
      • :atoms! uses String.to_existing_atom/1
      • :strings to perform no conversion (future default)
    • Precision for :double data can be defined by passing :double_precision in the options of lookup/5
      • default is 8 (keeping current behaviour)
      • nil will deactivate rounding (future default)
    • Precision for :float data can be defined by passing :float_precision in the options of lookup/5
      • default is 4 (keeping current behaviour)
      • nil will deactivate rounding (future default)
  • Bug fixes

    • Max values for :double and :float datatypes (magic 'Inf' string in Perl) should now properly decode
  • Deprecations

    • The function MMDB2Decoder.Data.value/2 is no longer documented as it should not be called directly. It will be made fully private in the next major release