v1.0.0-rc.2
Pre-release
Pre-release
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 thematchType
. Going to the expectations we introduced dedicatedCoreError
type used for throwing an package related error messages, eg. for notifying non-TypeScript developers if they made a mistake in the method arguments.
- 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