v2.0.0-rc.0
Pre-release
Pre-release
·
706 commits
to master
since this release
Before you'll read
- Marble.js v2 is currently in pre-release stage. Its API can change in the meantime while reaching the desired
2.0.0version. - New, up to date marblejs.com documentation for Marble.js v2 is on the way!
- Visit
nextbranch integration package for more detailed use cases and implementation examples
Whats new?
- @marblejs/core - improved type-inference of combined middlewares #88
- @marblejs/core - Effect response output stream #96
- @marblejs/core -
createServerbootstrapping function #89 #91 - @marblejs/core - improved type declaration of
combineRoutesfunction - @marblejs/websockets - WebSockets module #89
- @marblejs/middlware-joi - improved middleware type inference #88
- @marblejs/middlware-io - introducing new effect validation middleware based on the @gcanti
io-tslibrary - @marblejs/middlware-body - entrypoint allows to pass configuration object
- TypeScript v3.3.x support
Breaking changes
- @marblejs/core - Improved request type inference.
req.params,req.body,req.queryare by default ofunknowntype instead ofany#88 - @marblejs/core -
httpListenerconfig properties renaming #92 - @marblejs/core - The third argument is a common
EffectMetadataobject which can contain eventual error object or contextual injector. #94 #95 - @marblejs/middlware-body - should be
bodyParser$()should be invoked as a function - @marblejs/core #97
Effect->HttpEffectMiddleware->HttpMiddlewareEffectErrorEffect->HttpErrorEffect