diff --git a/rest-client/CHANGELOG.md b/rest-client/CHANGELOG.md index 328bf5d..5507011 100644 --- a/rest-client/CHANGELOG.md +++ b/rest-client/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +#### 0.5.0.0 + +* Add `ApiStateC ExceptT` instance + +* Add `MonadCatch ApiT` instance. + +* Remove dependency on `exception-transformers` and drop `MonadException` instances. Use `MonadCatch` and `MonadThrow` instead. + + #### 0.4.0.5 * Allow `aeson-utils 0.3.*` diff --git a/rest-client/rest-client.cabal b/rest-client/rest-client.cabal index 0981d11..f618303 100644 --- a/rest-client/rest-client.cabal +++ b/rest-client/rest-client.cabal @@ -1,5 +1,5 @@ name: rest-client -version: 0.4.0.5 +version: 0.5.0.0 description: Utility library for use in generated API client libraries. synopsis: Utility library for use in generated API client libraries. maintainer: code@silk.co @@ -38,7 +38,7 @@ Library , mtl >= 2.0 && < 2.3 , primitive == 0.5.* , resourcet >= 1.1.4 && < 1.2 - , rest-types >= 1.11 && < 1.13 + , rest-types == 1.13.* , tostring == 0.2.* , transformers >= 0.3 && < 0.5 , transformers-base >= 0.4.4 && < 0.5 diff --git a/rest-core/CHANGELOG.md b/rest-core/CHANGELOG.md index 76a17e1..71ce723 100644 --- a/rest-core/CHANGELOG.md +++ b/rest-core/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 0.35 + +* Change input/output dictionaries to indicate separately if there are + dictionaries, and for what type. This is a breaking change. The most + likely problems are where `Reason ()` is explicitly used in handlers + without error dictionaries. Simply replace these with `Reason_`. + Additionally, all `some*` combinators are deprecated now. They are + just the identity function and can be removed. + +* The types of all dictionary combinators have changed, the Dicts + type, the dicts smart constructor, empty, SomeError, Modifier, many + internal (but exported) things in Rest.Driver.Perform, some types in + Rest.Handler, and Void was moved. + +* Switched all usages of `ErrorT` to `ExceptT`. To stay backwards + compatible with older versions of `transformers` and `mtl` you can + use the `transformers-compat` and `mtl-compat` packages. To update + your code: `s/ErrorT/ExceptT` and + `s/Control.Monad.Error/Control.Monad.Except/`. + +* Add `>|<` to `Rest.Error`. It combines two `ExceptT` computations + yielding the last error if both fail. This is a replacement for + using `<|>` with `ErrorT` since the `Alternative ExceptT` instance + needs a `Monoid` instance for the error. + +* Fix typos in haddock for `Param` dictionary. + +* Switch to explicit export lists where missing. + #### 0.34.0.3 * Allow `aeson-utils 0.3.*` diff --git a/rest-core/rest-core.cabal b/rest-core/rest-core.cabal index 9b7d00c..b71534a 100644 --- a/rest-core/rest-core.cabal +++ b/rest-core/rest-core.cabal @@ -1,5 +1,5 @@ name: rest-core -version: 0.34.0.3 +version: 0.35 description: Rest API library. synopsis: Rest API library. maintainer: code@silk.co @@ -14,8 +14,8 @@ extra-source-files: LICENSE source-repository head - Type: Git - Location: https://github.com/silkapp/rest.git + type: git + location: https://github.com/silkapp/rest.git library ghc-options: -Wall @@ -55,7 +55,7 @@ library , multipart >= 0.1.1 && < 0.2 , random >= 1.0 && < 1.2 , rest-stringmap == 0.2.* - , rest-types == 1.12.* + , rest-types == 1.13.* , safe >= 0.2 && < 0.4 , semigroups == 0.16.* , split >= 0.1 && < 0.3 diff --git a/rest-example/CHANGELOG.md b/rest-example/CHANGELOG.md index 9909ff8..862ea15 100644 --- a/rest-example/CHANGELOG.md +++ b/rest-example/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +#### 0.2.0.0 + +* Change to use `ExceptT` and bump rest dependencies + #### 0.1.2.2 * Bump `rest-core`. diff --git a/rest-example/client/restexample-client.cabal b/rest-example/client/restexample-client.cabal index 8c4c4ad..4b28219 100644 --- a/rest-example/client/restexample-client.cabal +++ b/rest-example/client/restexample-client.cabal @@ -3,17 +3,22 @@ version: 0.1.1 cabal-version: >=1.8 build-type: Simple license: AllRightsReserved - + library - build-depends: base ==4.*, rest-types ==1.12.*, - rest-client ==0.4.*, text >=0.10 && <1.3, rest-example -any, - rest-stringmap ==0.2.* - exposed-modules: Restexample.Client.Post - Restexample.Client.Post.Comment Restexample.Client.Test - Restexample.Client.Test.FooBar Restexample.Client.Test.Import - Restexample.Client.User + build-depends: + base ==4.*, + rest-types ==1.13.*, + rest-client ==0.5.*, + text >=0.10 && <1.3, + rest-example ==0.2.*, + rest-stringmap ==0.2.* + exposed-modules: + Restexample.Client.Post + Restexample.Client.Post.Comment + Restexample.Client.Test + Restexample.Client.Test.FooBar + Restexample.Client.Test.Import + Restexample.Client.User exposed: True buildable: True hs-source-dirs: src - - diff --git a/rest-example/rest-example.cabal b/rest-example/rest-example.cabal index 66c04f0..83a8324 100644 --- a/rest-example/rest-example.cabal +++ b/rest-example/rest-example.cabal @@ -1,5 +1,5 @@ name: rest-example -version: 0.1.2.2 +version: 0.2.0.0 synopsis: Example project for rest homepage: http://www.github.com/silkapp/rest license: BSD3 @@ -50,7 +50,7 @@ library , mtl >= 2.0 && < 2.3 , regular == 0.3.* , regular-xmlpickler == 0.2.* - , rest-core >= 0.33 && < 0.35 + , rest-core == 0.35.* , safe >= 0.2 && < 0.4 , transformers >= 0.2 && < 0.5 , transformers-compat == 0.4.* @@ -94,7 +94,7 @@ executable rest-example-happstack base >= 4.6 && < 4.8 , happstack-server >= 7.1 && < 7.5 , mtl >= 2.0 && < 2.3 - , rest-core >= 0.33 && < 0.35 + , rest-core == 0.35.* , rest-example , rest-happstack == 0.2.* , transformers-compat == 0.4.* @@ -111,7 +111,7 @@ executable rest-example-wai build-depends: base >= 4.6 && < 4.8 , mtl >= 2.0 && < 2.3 - , rest-core >= 0.33 && < 0.35 + , rest-core == 0.35.* , rest-example , rest-wai == 0.1.* , wai >= 2.1 && < 3.1 @@ -130,7 +130,7 @@ executable rest-example-snap build-depends: base >= 4.6 && < 4.8 , mtl >= 2.0 && < 2.3 - , rest-core >= 0.33 && < 0.35 + , rest-core == 0.35.* , rest-example , rest-snap == 0.1.* , snap-core == 0.9.* @@ -149,9 +149,9 @@ executable rest-example-gen build-depends: base >= 4.6 && < 4.8 , mtl >= 2.0 && < 2.3 - , rest-core >= 0.33 && < 0.35 + , rest-core == 0.35.* , rest-example - , rest-gen >= 0.14 && < 0.17 + , rest-gen >= 0.14 && < 0.18 , transformers-compat == 0.4.* else buildable: False diff --git a/rest-gen/CHANGELOG.md b/rest-gen/CHANGELOG.md index c2e70ca..b0a6454 100644 --- a/rest-gen/CHANGELOG.md +++ b/rest-gen/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +#### 0.17.0.0 + +* Docs: More exhaustive examples of JSON messages showing each possible node in the schema at least once. +* Docs: Make example popup scrollable. + #### 0.16.1.8 * Remove dependency on hslogger. diff --git a/rest-gen/rest-gen.cabal b/rest-gen/rest-gen.cabal index 55c853f..57bec4a 100644 --- a/rest-gen/rest-gen.cabal +++ b/rest-gen/rest-gen.cabal @@ -1,5 +1,5 @@ name: rest-gen -version: 0.16.1.8 +version: 0.17.0.0 description: Documentation and client generation from rest definition. synopsis: Documentation and client generation from rest definition. maintainer: code@silk.co @@ -62,7 +62,7 @@ library , json-schema >= 0.6 && < 0.8 , pretty >= 1.0 && < 1.2 , process >= 1.0 && < 1.3 - , rest-core >= 0.31 && < 0.35 + , rest-core >= 0.31 && < 0.36 , safe >= 0.2 && < 0.4 , semigroups >= 0.5.0 && < 0.17 , scientific >= 0.3.2 && < 0.4 @@ -83,7 +83,7 @@ test-suite rest-gen-tests , HUnit == 1.2.* , fclabels >= 1.0.4 && < 2.1 , haskell-src-exts >= 1.15.0 && < 1.17 - , rest-core >= 0.31 && < 0.35 + , rest-core >= 0.31 && < 0.36 , rest-gen , test-framework == 0.8.* , test-framework-hunit == 0.3.* diff --git a/rest-happstack/CHANGELOG.md b/rest-happstack/CHANGELOG.md index 9d21d1b..1adc76b 100644 --- a/rest-happstack/CHANGELOG.md +++ b/rest-happstack/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog +#### 0.2.10.7 + +* Bump `rest-core` and `rest-gen` upper bounds. + #### 0.2.10.6 -* Allow utf8-string 1. +* Allow `utf8-string 1.0.*`. #### 0.2.10.5 diff --git a/rest-happstack/rest-happstack.cabal b/rest-happstack/rest-happstack.cabal index f56f153..cbcbd78 100644 --- a/rest-happstack/rest-happstack.cabal +++ b/rest-happstack/rest-happstack.cabal @@ -28,6 +28,6 @@ library , containers >= 0.4 && < 0.6 , happstack-server >= 7.0.5 && < 7.5 , mtl >= 2.0 && < 2.3 - , rest-core == 0.34.* - , rest-gen >= 0.14 && < 0.17 + , rest-core >= 0.34 && < 0.36 + , rest-gen >= 0.14 && < 0.18 , utf8-string >= 0.3 && < 1.1 diff --git a/rest-snap/CHANGELOG.md b/rest-snap/CHANGELOG.md index 40c27d7..0b3d80c 100644 --- a/rest-snap/CHANGELOG.md +++ b/rest-snap/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +#### 0.1.17.17 + +* Bump `rest-core` upper bound. + #### 0.1.17.16 * Allow utf8-string 1. diff --git a/rest-snap/rest-snap.cabal b/rest-snap/rest-snap.cabal index 853baf6..0d8abe9 100644 --- a/rest-snap/rest-snap.cabal +++ b/rest-snap/rest-snap.cabal @@ -1,5 +1,5 @@ name: rest-snap -version: 0.1.17.16 +version: 0.1.17.17 description: Rest driver for Snap. synopsis: Rest driver for Snap. maintainer: code@silk.co @@ -25,7 +25,7 @@ library base == 4.* , bytestring >= 0.9 && < 0.11 , case-insensitive >= 0.4 && < 1.3 - , rest-core == 0.34.* + , rest-core >= 0.34 && < 0.36 , safe >= 0.2 && < 0.4 , snap-core == 0.9.* , unordered-containers == 0.2.* diff --git a/rest-types/CHANGELOG.md b/rest-types/CHANGELOG.md index bb95048..7c25b9a 100644 --- a/rest-types/CHANGELOG.md +++ b/rest-types/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.13 + +* Change the type of `Reason_` from `Reason ()` to `Reason Void` +* Remove the no longer needed `ToResponseCode ()` instance +* Removed `Error` instances for `DataError`, `Reason e`, and `SomeReason`. + ## 1.12 * Add `method` field to `Resource`, allowing you to use different diff --git a/rest-types/rest-types.cabal b/rest-types/rest-types.cabal index ab4234a..1ae6cff 100644 --- a/rest-types/rest-types.cabal +++ b/rest-types/rest-types.cabal @@ -1,5 +1,5 @@ name: rest-types -version: 1.12 +version: 1.13 description: Silk Rest Framework Types synopsis: Silk Rest Framework Types maintainer: code@silk.co diff --git a/rest-wai/CHANGELOG.md b/rest-wai/CHANGELOG.md index 92044e5..a6e7234 100644 --- a/rest-wai/CHANGELOG.md +++ b/rest-wai/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +#### 0.1.0.7 + +* Make header comparison case-insensitive. + +* Bump `rest-core` upper bound. + #### 0.1.0.6 * Remove unneeded dependency on utf8-string. diff --git a/rest-wai/rest-wai.cabal b/rest-wai/rest-wai.cabal index 7729f6d..d8d8a6a 100644 --- a/rest-wai/rest-wai.cabal +++ b/rest-wai/rest-wai.cabal @@ -1,5 +1,5 @@ name: rest-wai -version: 0.1.0.6 +version: 0.1.0.7 description: Rest driver for WAI applications. synopsis: Rest driver for WAI applications. maintainer: code@silk.co @@ -29,7 +29,7 @@ library , http-types == 0.8.* , mime-types == 0.1.* , mtl >= 2.0 && < 2.3 - , rest-core == 0.34.* + , rest-core >= 0.34 && < 0.36 , text >= 0.11 && < 1.3 , unordered-containers == 0.2.* , wai >= 2.1 && < 3.1