Changelog for rest-gen-0.15
Changelog
0.15
- JavaScript/node.js: Clients now use and require Q promises
- JavaScript/web: Will now use Q if available, and otherwise return the normal jQuery objects
Bugfixes:
- JavaScript: Fix propagation of URLs to secure end points
0.14.2
- Generated JavaScript now also works as a Node module
- JavaScript constructors are now named properly instead of "constrWrapper"
- Now generates valid Ruby code again
0.14.1
- Expose modules Rest.Gen.Base.ActionInfo and Rest.Gen.Base.ApiTree again.
- Make test cases compile again.
Revisions
- Allow
Cabal == 1.16.*
0.14
- Abstracted generated code into rest-client, you should regenerate haskell clients
- haskell code generation is now done using
haskell-src-exts
- When using module name rewrites their qualification are now also rewritten.
- Add
hs-source-dirs
andbuild-depends
when generating cabal files - Moved
Rest.Gen.Docs.Happstack
torest-happstack:Rest.Driver.Happstack.Docs
- Expose
Rest.Gen.Base
- Flattened module hierarchy,
Rest.Gen.Haskell.Generate
is nowRest.Gen.Haskell
etc.
0.13.1.2
- Use
json-schema 0.5.*
and addshowExample
cases forMap
andAny
0.13.1.1
- Allow
attoparsec 0.12.*
0.13.1
- Derive
Eq, Show
for all types inRest.Gen.Types
- Haskell: Nub generated imports
0.13
Breaking changes:
- Un-exposes internal modules so we don't have to major bump on every change.
gen
Now accepts AST-like types instead of just strings to make it more obvious how to use it, see types inRest.Gen.Types
Bugfixes:
- Make sure Identifiers are always imported when needed. This is a further improvement on the bugfix in rest-gen-0.11.
- rest-gen-0.12 did not always take arguments in generated methods into account, so the renamed qualification has been reverted for now.
0.12
- Haskell: Module rewrites such as
Data.Text.Internal
->Data.Text
now produces qualified importsimport qualified Data.Text as Data.Text
instead ofimport qualified Data.Text as Data.Text.Lazy
. This prevents building against different versions of the same package that may have moved the internal module (as is the case withtext
) from generating different clients.
0.11
- Bugfix: Haskell: Resources without a getter now generate identifier arguments for other end points
- Shuffles some internal (but exposed) functions around
0.10.0.4
- Drops
aeson-utils
dependency in favor ofscientific >= 0.3.2
0.10.0.3
- Allow
mtl == 2.2.*
0.10.0.1
- Bump
Cabal
upper bound to< 1.22
0.10
- Generate documentation, Javascript and Haskell code for multi-delete
handlers. The name of the generated functions is
removeMany
orremoveManyBy<id>
. - Escape reserved names in Haskell code generation.