Changelog History
Page 4
-
v6.0.0-beta.1 Changes
September 28, 20206.0.0-beta.1 (2020-09-28)
๐ Bug Fixes
- common: Fix @useafter and @UseBefore decorators when it was used twice or more on the same class or method (3bd0d32)
- common: Fix some issues on Platform API (c6348f3)
- common: Fix typescript issue (db9f93b)
- common: Refactoring exceptions handlers (dc95357)
- common: Remove default application/json acceptMimes options (e96d167)
- common,express,koa: Fix handlers management (4a98feb)
- koa: fix koa statics middleware (904eb42)
- swagger: Fix swagger doc rendering (d2188a4)
- Compilation issues (9ec1d92)
- ๐ Fix typescript compilation issue (0799255)
- mongoose,swagger: Fix typings issues (74af7b4)
- schema,common: Fix issue on @example decorator (aa4fce1)
- swagger: Remove decorators and refactoring @tsed/swagger module (bb271a6)
chore
- common: Refactoring Metadata to use @tsed/schema (a84cd23)
- common: Remove EndpointMetadata.contentType method (4417db1)
- common: Remove ExpressRouter, ParseService and RouterService (400d37a)
- common: Remove Filter features (1de2d72)
- common: Remove ServerLoader, ExpressApplication, ServerSetting, etc... (c4adf2b)
- common: Remove ValidationService (20d2a3c)
- common: Rename ServerSettingsService by PlatformConfiguration (daf137b)
- common: Update deprecated message (7203f6c)
- common: Use @tsed/json-mapper (2355e8f)
- common,di: Remove minor deprecated options or methods (087e5d5)
- di: Remove aroundInvoke method (c082d01)
- di,common: Remove OverrideService, OverrideMiddleware and MiddlewareError decorators (b813248)
- di,common: Remove unused interfaces. (6a91d9b)
- mongoose: Remove IMDBOptions interface. (cbc9981)
- multer: Remove @tsed/multipartfiles packages (69afcd8)
- typeorm: Remove @entityrepository decorator (3e46980)
- ๐ Move decorators CaseSensitive, MergeParams, RouterSettings, Strict to @tsed/platform-express (cb47d00)
- ๐ Prepare alpha, beta, rc release channel (81df462)
- ๐จ Refactoring PlatformHandler, PlatformContext, (9ee8fb8)
- โ Remove @tsed/testing and ts-express-decorators (50ed981)
- โ Remove RequestContext class (dd9fe5d)
- โ Remove ServeStaticService class (737b191)
- โ Remove unused IErrorSettings interface. (5ccb8d6)
- typeorm: Remove TypeORMService.instances getter (66936bb)
๐ Features
- common: Add a way to inject Node/Framework/Platform request or response in endpoint method. (61b30e5)
- common: Add ErrorFilter and ExceptionFilter to catch errors and send json response (b20f484)
- common: Add getReq, getRes, getApp on PlatformContext (0caeded)
- common: Add PlatformViews class to manage views (3ec66e2)
- common: Manage 404 resource node found with ExceptionFilter instead of let express managing it (d34da0a)
- common: Multer is now embed in the @tsed/common (1cb4823)
- common: Refactoring platform architecture. (528b819)
- core: Add proxyDelegation function to create a Trap with a class (e5bb662)
- koa: Add @tsed/platform-koa (7a6db5d)
๐ฅ BREAKING CHANGES
- typeorm: EntityRepository have been removed. Use EntityRepository from typeorm directly.
- common: Remove @ResponseView decorator. Use @view instead.
common: If you use UseBefore or UseAfter as following:
class MyController { @UseBefore(Middleware1) @UseBefore(Middleware2)test(){}}
You have to inverse the middlewares:
class MyController { @UseBefore(Middleware2) @UseBefore(Middleware1)test(){}}
The calls order was wrong in v5. v6 fix this problem.
- multer: @tsed/multipartfiles have been removed. Use @MultipartFile decorator from @tsed/common
- common: EndpointMetadata.contentType has been removed.
OnRequest and OnResponse interface signature have changed
- โ Remove PlatformContextMiddleware
๐จ chore: Refactoring PlatformContext and
- ๐ Use PlatformContext instead of RequestContext
di,common: - IServerMountDirectories have been removed.
๐ ILoggerSettings have been removed.
๐ IResponseError have been removed.
๐ IHook have been removed.
๐ IInterceptorNextHandler have been removed.
๐ IInterceptorContext have been removed.
๐ IInterceptor have been removed.
common: ServerSettingsService have been renamed by PlatformConfiguration
๐ Decorators CaseSensitive, MergeParams, RouterSettings, Strict must be imported from @tsed/platform-express instead of @tsed/common.
- ๐ ServeStaticService have been removed. PlatformApplication.statics() method instead.
remove unused server.errors options.
- common: - LogIncomingRequest is replaced by PlatformLogMiddleware
- ๐ GlobalErrorHandlerMiddleware have been removed.
- di: - Remove deprecated aroundInvoke method. Use intercept to create your interceptor.
- common: - OnServerReady hook has been removed. No replacement available
- ๐ ExpressApplication has been removed. Use PlatformApplication.callback() or PlatformApplication.raw instead of.
- ๐ IServerSettings interface has been removed. Use IDIConfiguration instead of.
- ๐ง ServerSettings decorator has been removed. Use Configuration decorator instead of.
- ๐ ServerLoader class has been removed. Use Platform API instead of to bootstrap your application.
- ๐ $onMountingMiddlewares has been removed. Use $beforeRoutesInit hook instead of.
- common: - ExpressRouter class has been removed in favor of PlatformRouter class.
- ๐ RouteService service has been removed in favor of Platform
- ๐ ParseService has been removed. Use getValue or lodash library
- โ Remove MvcModule.
- common: ValidationService has been removed. Override ValidationPipe to change the Validation behavior
- typeorm: TypeORMService.instances getter has been removed. Use TypeORMService.connectionManager or
getConnectionManager from TypeORM itself. - mongoose: Use new mongoose options based on MDBConnection
- common,di: - Store.decorate has been removed. Use StoreFn instead of.
- โ Remove HandlerMetadata.methodClassName and HandlerMetadata.method
- ๐ req.log has been removed. Use req.ctx.logger instead of.
- โ Remove unused interface on HttpServer and HttpsServer
- ๐ ControllerOptions.dependencies option has been removed. Use ControllerOptions.children instead of.
- โ Remove ProviderStorable (not used)
- di,common: -
OverrideService
decorator has been removed. UseOverrideProvider
decorator instead of. - ๐
OverrideMiddleware
decorator has been removed. UseOverrideProvider
decorator instead of. - ๐
MiddlewareError
decorator has been removed. UseMiddleware
decorator instead of. - common: Use Pipe feature instead of
- schema,common: Example accept multiple parameters and create an array examples.
- swagger: Use @tsed/schema and his decorators to generate your swagger API documentation.
- ๐ @BaseParameter have been removed. No replacement.
- ๐ Use @Consumes from @tsed/schema
- ๐ Use @deprecated from @tsed/schema
- ๐ Use @description from @tsed/schema
- ๐ Use @example from @tsed/schema
- ๐ Use @name from @tsed/schema
- ๐ Use @operation
- ๐ Use @produces from @tsed/schema
- ๐ Use @Responses
- ๐ Use @returns from @tsed/schema
- ๐ @ReturnsArray have been removed. Use @returns from @tsed/schema.
- ๐ Use @Security from @tsed/schema
- ๐ Use @Summary from @tsed/schema
- ๐ Use @title from @tsed/schema
- common: Use @tsed/json-mapper and @JsonMapper decorator to declare a new mapper type
- common: Use @tsed/schema to describe your models.
- โ Remove @tsed/testing and ts-express-decorators packages
- V6 preparation
-
v6.0.0-alpha.25 Changes
September 28, 20206.0.0-alpha.25 (2020-09-28)
chore
- common: Update deprecated message (7203f6c)
- typeorm: Remove @entityrepository decorator (3e46980)
๐ Features
- common: Add a way to inject Node/Framework/Platform request or response in endpoint method. (61b30e5)
๐ฅ BREAKING CHANGES
- typeorm: EntityRepository have been removed. Use EntityRepository from typeorm directly.
- common: Remove @ResponseView decorator. Use @view instead.
-
v6.0.0-alpha.24 Changes
September 26, 2020 -
v6.0.0-alpha.23 Changes
September 26, 2020 -
v6.0.0-alpha.22 Changes
September 26, 20206.0.0-alpha.22 (2020-09-26)
๐ Bug Fixes
- common,express,koa: Fix handlers management (4a98feb)
๐ Features
- common: Add PlatformViews class to manage views (3ec66e2)
-
v6.0.0-alpha.21 Changes
September 21, 2020 -
v6.0.0-alpha.20 Changes
September 19, 20206.0.0-alpha.20 (2020-09-19)
๐ Bug Fixes
- common: Fix @useafter and @UseBefore decorators when it was used twice or more on the same class or method (3bd0d32)
๐ Features
- koa: Add @tsed/platform-koa (7a6db5d)
๐ฅ BREAKING CHANGES
common: If you use UseBefore or UseAfter as following:
class MyController { @UseBefore(Middleware1) @UseBefore(Middleware2)test(){}}
You have to inverse the middlewares:
class MyController { @UseBefore(Middleware2) @UseBefore(Middleware1)test(){}}
The calls order was wrong in v5. v6 fix this problem.
-
v6.0.0-alpha.19 Changes
September 18, 20206.0.0-alpha.19 (2020-09-18)
๐ Bug Fixes
- ๐ Fix dependencies configuration issues with typeorm, graphql (9e84eb0)
chore
- multer: Remove @tsed/multipartfiles packages (69afcd8)
๐ฅ BREAKING CHANGES
- multer: @tsed/multipartfiles have been removed. Use @MultipartFile decorator from @tsed/common
-
v6.0.0-alpha.18 Changes
September 17, 20206.0.0-alpha.18 (2020-09-17)
๐ Bug Fixes
- common: Fix some issues on Platform API (c6348f3)
- common: Remove default application/json acceptMimes options (e96d167)
chore
- common: Remove EndpointMetadata.contentType method (4417db1)
๐ Features
- common: Add getReq, getRes, getApp on PlatformContext (0caeded)
- common: Manage 404 resource node found with ExceptionFilter instead of let express managing it (d34da0a)
- core: Add proxyDelegation function to create a Trap with a class (e5bb662)
๐ฅ BREAKING CHANGES
- common: EndpointMetadata.contentType has been removed.
-
v6.0.0-alpha.17 Changes
September 13, 2020