Skip to content

v1.0.0-rc.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@JozefFlakus JozefFlakus released this 10 Sep 10:51
· 832 commits to master since this release

Whats new?

  • Fixed problem with incorrectly concatenated wildcard endpoint when combined with parametrized route.
const notFound$ = EffectFactory
  .matchPath('*')
  .matchType('*')
  .use(req$ => req$.pipe(
    switchMap(() =>
      throwError(new HttpError('Route not found', HttpStatus.NOT_FOUND))
    )
  ));

export const api$ = combineRoutes(
  '/api/:version',
  [ notFound$ ],
);
  • For non-TypeScript developers there was no validation made during app startup, eg. EffectFactory methods were not validated if developer provided wrong HTTP method to the matchType. Going to the expectations we introduced dedicated CoreError type used for throwing an package related error messages, eg. for notifying non-TypeScript developers if they made a mistake in the method arguments.

45175504-e9b3e500-b20d-11e8-8e9a-7eebec47ea55

  • TypeScript v.3.0.x support
  • RxJS v6.2.2 support
  • Lerna v3.3.0 support
  • Introduced Webpack based build process - from now builds are optimized and properly compressed