Skip to content

v2.0.0-rc.0

Pre-release
Pre-release

Choose a tag to compare

@JozefFlakus JozefFlakus released this 03 Feb 12:57
· 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.0 version.
  • New, up to date marblejs.com documentation for Marble.js v2 is on the way!
  • Visit next branch 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 - createServer bootstrapping function #89 #91
  • @marblejs/core - improved type declaration of combineRoutes function
  • @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-ts library
  • @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.query are by default of unknown type instead of any #88
  • @marblejs/core - httpListener config properties renaming #92
  • @marblejs/core - The third argument is a common EffectMetadata object 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 -> HttpEffect
    • Middleware -> HttpMiddlewareEffect
    • ErrorEffect -> HttpErrorEffect

Deprecation warnings

  • Deprecated @marblejs/middleware-joi package. Use @marblejs/middleware-io instead. #99
  • Deprecated @marblejs/middleware-logger loggerWithOpts$ entrypoint. #98