Skip to content

v1.0.0-rc.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@JozefFlakus JozefFlakus released this 07 Jul 18:31
· 886 commits to master since this release

Breaking changes

  • In order to factorize the routing table statically, we need to introduce the breaking change in Effect API definition.

Old Effect API:

const getUsers$: Effect = request$ =>
  request$.pipe(
    matchPath('/'),
    matchType('GET'),
    // ...
  );

New Effect API:

const getUsers$ = EffectFactory
  .matchPath('/')
  .matchType('GET')
  .use(req$ => req$.pipe(
    // ...
  ));
  • separately imported matchPath and matchType stream operators are removed and are part of EffectFactory instead.

Whats new?

  • @marblejs/core - internals - refactored + rebuilt routing resolving mechanism. Thanks to the latest changes we gained hudge performance boost.
  • @marblejs/core - internals - improved performance for middleware resolving flow
  • @marblejs/core - internals - rewritten URL params intercepting mechanism
  • @marblejs/middleware-body - added support for x-www-form-urlencoded Content-Type