Changelog for aeson-1.4.6.0

For the latest version of this document, please see [https://github.com/bos/aeson/blob/master/changelog.md](https://github.com/bos/aeson/blob/master/changelog.md).

1.4.6.0

1.4.5.0

1.4.4.0

New features:

data Foo = Bar
  deriving Generic

opts :: JSONKeyOptions
opts = defaultJSONKeyOptions { keyModifier = toLower }

instance ToJSONKey Foo where
  toJSONKey = genericToJSONKey opts

instance FromJSONKey Foo where
  fromJSONKey = genericFromJSONKey opts

Minor:

Internal changes:

1.4.3.0

1.4.2.0

1.4.1.0

1.4.0.0

This release introduces bounds on the size of Scientific numbers when they are converted to other arbitrary precision types that do not represent them efficiently in memory.

This means that trying to decode a number such as 1e1000000000 into an Integer will now fail instead of using a lot of memory. If you need to represent large numbers you can add a newtype (preferably over Scientific) and providing a parser using withScientific.

The following instances are affected by this:

For the same reasons the following instances & functions have been removed:

Finally, encoding integral values with large exponents now uses scientific notation, this saves space for large numbers.

1.3.1.1

1.3.1.0

1.3.0.0

Breaking changes:

Other improvements:

1.2.4.0

1.2.3.0

1.2.2.0

1.2.1.0

1.2.0.0

1.1.2.0

1.1.1.0

1.1.0.0

JSONTestSuite cleanups, all motivated by tighter RFC 7159 compliance:

Over 90% of JSONTestSuite tests currently pass. The remainder can be categorised as follows:

1.0.2.1

1.0.2.0

Thanks to Sean Leather for fixing this, and to Ryan Scott for helping out.

1.0.1.0

1.0.0.0

Major enhancements:

Other enhancements:

flags:
  aeson:
    fast: true

Other changes:

0.11.2.0

0.11.1.4

0.11.1.3

0.11.1.2

0.11.1.1

0.11.1.0

The only changes are added instances.

These are new:

These are now available for older GHCs:

0.11.0.0

This release should be close to backwards compatible with aeson 0.9.

If you are upgrading from aeson 0.10 it might be easier to go back in history to the point you were still using 0.9.

Breaking changes:

Additions:

Bug fixes:

Compatibility:

0.10.0.0

Performance improvements

SUBTLE API CHANGES, READ CAREFULLY

With the exception of long-deprecated code, the API changes below should be upwards compatible from older versions of aeson. If you run into upgrade problems, please file an issue with details.

0.9.0.1

0.9.0.0

0.8.1.1

0.8.1.0

0.8.0.2

0.8.0.1

0.8.0.0

0.7.1.0

0.7.0.0

0.6 series

0.5 to 0.6

0.4 to 0.5

0.3 to 0.4