Bot releases are visible (Hide)
Decorate
replacing class parametergetAdapter
to HttpModule
@Disconnecting
eventgetAdapter
to SocketsModule
adapter.disconnect
if error occurs on connection
Published by serhiisol about 1 year ago
ApiOperation
usagePublished by serhiisol about 1 year ago
paramDecoratorFactory
adds callIndex
to the param, in case if few decorators are used for the same methodHandlerCreator
abstract classMetadataScanner
moved to the coreHandlerCreator
class for handlersadapter.close
method updated for all the adaptersHandlerCreator
class for handlersPublished by serhiisol about 1 year ago
Published by serhiisol about 1 year ago
const app = await Application.create(AppModule, server);
HttpModule.create(new ExpressAdapter(app));
adapter.listen
no longer receives port:number
param, port will be forwarded to the server.listen
instance.Published by serhiisol about 1 year ago
Published by serhiisol about 1 year ago
adapter.route
was removed in favor of adapter.routes
, adapters can now register all routes at once (for example using routers) instead of one at a time.Published by serhiisol about 1 year ago
createParamDecorator
and adapter.getParam
factory will return function instead, promise-like params are causing delays in execution while awaiting for them in the handler.Published by serhiisol about 1 year ago
Published by serhiisol about 1 year ago
Published by serhiisol about 1 year ago
post(@Params('id', (id) => !IsNaN(Number(id))) id: number) {}
Resolves #183
Published by serhiisol about 1 year ago
@decorators/di
to 3.1.0
with support of root containerPublished by serhiisol about 1 year ago
Injectable
options with providedIn='root'
option in it to register root provider.RootContainer
is exported out of di
package.Published by serhiisol about 1 year ago
adapter.IsHeadersSent
- returns now booleanPublished by serhiisol about 1 year ago
*
)Published by serhiisol about 1 year ago
1.0.0-beta.4 release:
render
process (#173, #175)Published by serhiisol about 1 year ago
Published by serhiisol about 1 year ago
undefined
instead of null
so default values can be usedPublished by serhiisol about 1 year ago
Fixed missing typeVersions and exports in package.json
Published by serhiisol about 1 year ago
Features:
Package is router library agnostic so it's possible to use express
, fastify
or koa
.
In this release only ExpressAdapter is included, more to come.
Reimagined middleware. Supports both running code before and after main handler.
There are three types of pipes: global
, controller
and method
at the moment.
Order of Execution:
Global => Controller => Method => Route Handler => Method => Controller => Global
Based on class-validator and class-transformer system supports payload validation. Standard type validation (i.e. string
, object
, boolean
etc.) is also supported.
@Post('', 200)
create(@Body() post: PostType) {
return post;
}
@Get(':id', 200)
post(@Params('id') id: string) {
return { id, name: 'hello world' };
}
Modules keep providers scoped. Resolved via update of @decorators/[email protected]
version that supports nesting of containers. With 3.0.0 update is also possible to use multi
providers (available through the same injection token).