on master help sign in
Bump to 1.4.4.0
1fe3b8eAdam Bergmark
aeson.cabal+1−1
@@ -1,5 +1,5 @@
1name: aeson
1name: aeson
2−version: 1.4.3.0
2+version: 1.4.4.0
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5category: Text, Web, JSON
5category: Text, Web, JSON
changelog.md+35
@@ -1,5 +1,40 @@
1For 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).
1For 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).
2
2
3+### 1.4.4.0
4+
5+**New features**:
6+
7+* Adds a parameterized parser `jsonWith` that can be used to choose how to handle duplicate keys in objects, thanks to Xia Li-Yao.
8+
9+* Add generic implementations of `FromJSONKey` and `ToJSONKey`, thanks to Xia Li-Yao. Example:
10+
11+```haskell
12+data Foo = Bar
13+ deriving Generic
14+
15+opts :: JSONKeyOptions
16+opts = defaultJSONKeyOptions { keyModifier = toLower }
17+
18+instance ToJSONKey Foo where
19+ toJSONKey = genericToJSONKey opts
20+
21+instance FromJSONKey Foo where
22+ fromJSONKey = genericFromJSONKey opts
23+```
24+
25+**Minor**:
26+* aeson now uses `time-compat` instead of `time-locale-compat`, thanks to Oleg Grenrus.
27+* Prepare for `MonadFail` breakages in GHC 8.8, thanks to Oleg Grenrus.
28+* Require `bytestring >= 0.10.8.1` for newer GHCs to avoid build failures, thanks to Oleg Grenrus.
29+* Support `primitive 0.7.*`, thanks to Adam Bergmark.
30+* Allow `semigroups 0.19.*` and `hashable 1.3.*`, thanks to Oleg Grenrus.
31+* Fix a typo in the error message when parsing `NonEmpty`, thanks to Colin Woodbury.
32+* Document surprising behavior when using `omitNothingFields` with type variables, thanks to Xia Li-Yao.
33+
34+**Internal changes**:
35+* Code cleanup by Oleg Grenrus
36+* Fix dependencies of the benchmarks on older GHC's, thanks to Xia Li-Yao.
37+
3### 1.4.3.0
38### 1.4.3.0
4* Improve error messages for FromJSON in existing instances and GHC Generic implementation. Thanks to Xia Li-Yao & Igor Pashev.
39* Improve error messages for FromJSON in existing instances and GHC Generic implementation. Thanks to Xia Li-Yao & Igor Pashev.
5* Tweak error-reporting combinators and their documentation. Thanks to Xia Li-Yao.
40* Tweak error-reporting combinators and their documentation. Thanks to Xia Li-Yao.