From 82fede7eaea54c738a43eefdc4d32bc4d74059dd Mon Sep 17 00:00:00 2001 From: Erik Hesselink Date: Sat, 10 Oct 2015 17:10:45 +0200 Subject: [PATCH] Bumps and changelogs. --- rest-core/CHANGELOG.md | 16 ++++++++++++++++ rest-core/rest-core.cabal | 2 +- rest-example/rest-example.cabal | 12 ++++++------ rest-gen/CHANGELOG.md | 9 +++++++++ rest-gen/rest-gen.cabal | 6 +++--- rest-happstack/CHANGELOG.md | 5 +++++ rest-happstack/rest-happstack.cabal | 6 +++--- rest-snap/CHANGELOG.md | 5 +++++ rest-snap/rest-snap.cabal | 4 ++-- rest-stringmap/CHANGELOG.md | 1 + rest-types/CHANGELOG.md | 2 +- rest-wai/CHANGELOG.md | 7 ++++++- rest-wai/rest-wai.cabal | 4 ++-- 13 files changed, 60 insertions(+), 19 deletions(-) diff --git a/rest-core/CHANGELOG.md b/rest-core/CHANGELOG.md index 9e6c481..1185ced 100644 --- a/rest-core/CHANGELOG.md +++ b/rest-core/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.37 + +* Allow specifying custom multi-action. Previously there was always a + top-level POST that could perform multiple actions in the API at + once. Now you can customize this handler (e.g. to add logging or + optimisations) , or turn it off completely by returning `NotFound`. + + Because this is an experimental feature, it's exposed through + `Rest.Driver.Routing.Internal` and is subject to future breaking + changes without a major bump. + + There is one breaking change due to this: the signature of `route` + now requires a `Monad` and `Applicative` constraint on `m`. This + propagates to `Rest.Run.apiToHandler(')` and related functions in + the rest-happstack, rest-snap and rest-wai packages. + #### 0.36.0.6 * Security: don't allow newlines in filenames. diff --git a/rest-core/rest-core.cabal b/rest-core/rest-core.cabal index e1e1c0b..6a3df2a 100644 --- a/rest-core/rest-core.cabal +++ b/rest-core/rest-core.cabal @@ -1,5 +1,5 @@ name: rest-core -version: 0.36.0.6 +version: 0.37 description: Rest API library. synopsis: Rest API library. maintainer: code@silk.co diff --git a/rest-example/rest-example.cabal b/rest-example/rest-example.cabal index ef4408b..2d253bf 100644 --- a/rest-example/rest-example.cabal +++ b/rest-example/rest-example.cabal @@ -48,7 +48,7 @@ library , json-schema >= 0.6 && < 0.8 , mtl >= 2.0 && < 2.3 , generic-xmlpickler >= 0.1.0.1 && < 0.2 - , rest-core == 0.36.* + , rest-core >= 0.36 && < 0.38 , safe >= 0.2 && < 0.4 , transformers >= 0.2 && < 0.5 , transformers-compat == 0.4.* @@ -92,7 +92,7 @@ executable rest-example-happstack , happstack-server >= 7.1 && < 7.5 , mtl >= 2.0 && < 2.3 , rest-example - , rest-happstack == 0.2.* + , rest-happstack >= 0.2 && < 0.4 , transformers-compat == 0.4.* else buildable: False @@ -107,7 +107,7 @@ executable rest-example-wai build-depends: base >= 4.6 && < 4.9 , rest-example - , rest-wai == 0.1.* + , rest-wai >= 0.1 && < 0.3 , warp >= 2.1 && < 3.2 else buildable: False @@ -122,9 +122,9 @@ executable rest-example-snap build-depends: base >= 4.6 && < 4.9 , mtl >= 2.0 && < 2.3 - , rest-core == 0.36.* + , rest-core >= 0.36 && < 0.38 , rest-example - , rest-snap == 0.1.* + , rest-snap >= 0.1 && < 0.3 , snap-core == 0.9.* , snap-server == 0.9.* , transformers-compat == 0.4.* @@ -141,6 +141,6 @@ executable rest-example-gen build-depends: base >= 4.6 && < 4.9 , rest-example - , rest-gen >= 0.14 && < 0.19 + , rest-gen >= 0.14 && < 0.20 else buildable: False diff --git a/rest-gen/CHANGELOG.md b/rest-gen/CHANGELOG.md index 6ce60d2..ee5b17b 100644 --- a/rest-gen/CHANGELOG.md +++ b/rest-gen/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.19.0.0 + +* Don't call global `Q` if available. This was an experimental + feature, and didn't work well in practice, since it would fail if + there was something else called `Q` on the window. We're not aware + of anyone depending on `Q`, but if you do, you need to wrap the + results of all API calls in a call to Q. + ## 0.18.0.0 * Javascript: postfix reserved words with an underscore. This is a @@ -8,6 +16,7 @@ match one of the reserved words from [this list](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords) will have to be updated with a trailing underscore. +* (revision) Allow `aeson-0.10.*`. #### 0.17.1.3 diff --git a/rest-gen/rest-gen.cabal b/rest-gen/rest-gen.cabal index 4e8e73a..f943582 100644 --- a/rest-gen/rest-gen.cabal +++ b/rest-gen/rest-gen.cabal @@ -1,5 +1,5 @@ name: rest-gen -version: 0.18.0.0 +version: 0.19.0.0 description: Documentation and client generation from rest definition. synopsis: Documentation and client generation from rest definition. maintainer: code@silk.co @@ -63,7 +63,7 @@ library , json-schema >= 0.6 && < 0.8 , pretty >= 1.0 && < 1.2 , process >= 1.0 && < 1.4 - , rest-core >= 0.35 && < 0.37 + , rest-core >= 0.35 && < 0.38 , safe >= 0.2 && < 0.4 , semigroups >= 0.5 && < 0.18 , scientific >= 0.3.2 && < 0.4 @@ -85,7 +85,7 @@ test-suite rest-gen-tests , HUnit >= 1.2 && < 1.4 , fclabels >= 1.0.4 && < 2.1 , haskell-src-exts >= 1.15.0 && < 1.17 - , rest-core >= 0.35 && < 0.37 + , rest-core >= 0.35 && < 0.38 , rest-gen , test-framework == 0.8.* , test-framework-hunit == 0.3.* diff --git a/rest-happstack/CHANGELOG.md b/rest-happstack/CHANGELOG.md index 92cd7c8..ce3f9fc 100644 --- a/rest-happstack/CHANGELOG.md +++ b/rest-happstack/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.3 + +* Breaking: `Applicative` and `Monad` constraint on `m` in + `apiToHandler'`. See `rest-core-0.37` for more details. + #### 0.2.10.8 * Allow `rest-core 0.36.*` diff --git a/rest-happstack/rest-happstack.cabal b/rest-happstack/rest-happstack.cabal index 57f9d5f..02a1744 100644 --- a/rest-happstack/rest-happstack.cabal +++ b/rest-happstack/rest-happstack.cabal @@ -1,5 +1,5 @@ name: rest-happstack -version: 0.2.10.8 +version: 0.3 description: Rest driver for Happstack. synopsis: Rest driver for Happstack. maintainer: code@silk.co @@ -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 && < 0.37 - , rest-gen >= 0.14 && < 0.19 + , rest-core >= 0.34 && < 0.38 + , rest-gen >= 0.14 && < 0.20 , utf8-string >= 0.3 && < 1.1 diff --git a/rest-snap/CHANGELOG.md b/rest-snap/CHANGELOG.md index ee84ec9..ca4b88a 100644 --- a/rest-snap/CHANGELOG.md +++ b/rest-snap/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2 + +* Breaking: `Applicative` and `Monad` constraint on `m` in + `apiToHandler'`. See `rest-core-0.37` for more details. + #### 0.1.17.18 * Allow `rest-core 0.36.*` diff --git a/rest-snap/rest-snap.cabal b/rest-snap/rest-snap.cabal index 6685c0e..aee0b06 100644 --- a/rest-snap/rest-snap.cabal +++ b/rest-snap/rest-snap.cabal @@ -1,5 +1,5 @@ name: rest-snap -version: 0.1.17.18 +version: 0.2 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 && < 0.37 + , rest-core >= 0.34 && < 0.38 , safe >= 0.2 && < 0.4 , snap-core == 0.9.* , unordered-containers == 0.2.* diff --git a/rest-stringmap/CHANGELOG.md b/rest-stringmap/CHANGELOG.md index 420fc8d..d94290a 100644 --- a/rest-stringmap/CHANGELOG.md +++ b/rest-stringmap/CHANGELOG.md @@ -3,6 +3,7 @@ #### 0.2.0.6 * Fix compilation on GHC-7.6 +* (revision) Allow `aeson 0.10.*` #### 0.2.0.5 diff --git a/rest-types/CHANGELOG.md b/rest-types/CHANGELOG.md index 6b7d3b3..ff25efc 100644 --- a/rest-types/CHANGELOG.md +++ b/rest-types/CHANGELOG.md @@ -2,7 +2,7 @@ #### 1.14.0.1 -* Allow `aeson 0.9.*` +* Allow `aeson 0.9.*` and (revision) `0.10.*` ## 1.14 diff --git a/rest-wai/CHANGELOG.md b/rest-wai/CHANGELOG.md index 34c2603..194e06f 100644 --- a/rest-wai/CHANGELOG.md +++ b/rest-wai/CHANGELOG.md @@ -1,8 +1,13 @@ # Changelog +## 0.2 + +* Breaking: `Applicative` and `Monad` constraint on `m` in + `apiToHandler'`. See `rest-core-0.37` for more details. +* Allow `http-types 0.9.*` + #### 0.1.0.8 -* (revision) Allow `http-types 0.9.*` * Allow `rest-core 0.36.*` #### 0.1.0.7 diff --git a/rest-wai/rest-wai.cabal b/rest-wai/rest-wai.cabal index 653589e..5fe9374 100644 --- a/rest-wai/rest-wai.cabal +++ b/rest-wai/rest-wai.cabal @@ -1,5 +1,5 @@ name: rest-wai -version: 0.1.0.8 +version: 0.2 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 && < 0.10 , mime-types == 0.1.* , mtl >= 2.0 && < 2.3 - , rest-core >= 0.35 && < 0.37 + , rest-core >= 0.35 && < 0.38 , text >= 0.11 && < 1.3 , unordered-containers == 0.2.* , wai >= 2.1 && < 3.1