Tsed: [EPIC] Release v6

Created on 20 Aug 2019  路  8Comments  路  Source: tsedio/tsed

Information

  • Version: 6.x
  • Type: EPIC

Stories

  • [x] Remove all deprecated methods (#620),
  • [x] Platform abstraction (#621):

    • [x] API to develop platform adaptation,

    • [x] Express.js v4

    • [x] Koa (PR merged https://github.com/TypedProject/tsed/pull/924)

  • [x] Exception Filter (replace GlobalErrorHandlerMiddleware)
  • [x] Add @tsed/schema and @tsed/json-mapper (https://github.com/TypedProject/tsed/blob/feat-schema-json-mapper)
  • [x] Deprecate ServerLoader, ServerSettings, etc...
  • [x] Ts.ED CLI v2
  • [x] Update documentation and examples.

Optional stories for v6

  • [ ] Async custom Ajv validator (https://github.com/TypedProject/tsed/issues/698)
  • [ ] Http2 support (https://github.com/TypedProject/tsed/issues/929)
  • [ ] Platform abstraction (#621):

    • [ ] Express.js v5 (https://github.com/TypedProject/tsed/issues/931)

    • [ ] Fastify (https://github.com/TypedProject/tsed/issues/932)

    • [ ] Hapi

  • [ ] Use @tsed/schema and @tsed/ajv to validate Type-graphql models (https://github.com/TypedProject/tsed/issues/930)
  • [ ] Support serialization group (@tsed/json-mapper) (https://github.com/TypedProject/tsed/issues/808)
enhancement

Most helpful comment

All 8 comments

Hello @Romakita
if you will deprecate @ServerSettings then as we will configure all parameters like mount and viewsDir

Thanks

Hello @chiqui3d
ServerSettings will be replaced by an equivalent decorator with the same options and mechanism.

I want to introduce a new decorator which can be use over any class to store a part of the configuration like @Configuration decorator. DI will resolve configuration when app is built by PlatformFactory.

Currently all stories aren鈥檛 described. I鈥檒l doing that this week and see your feedback ;)

See you

@Romakita
Will there be any support for 5.x after 6.x release?

@dlinx
I'll produce a migration page to help developer. A large part of the existing code in v5 will be available on v6. Some v6 features are already available in v5.

The breaking change will be about existing deprecated features in v5:

  • Remove Filters features. Pipe is already out and must be used instead of.
  • Converter the signature of the ArrayConverter, etc... will be simplified. Most projects do not use this feature to change the json mapping behavior.
  • To use express a new package will be release: @tsed/plaftorm-express. Is the same thing for koa with @tsed/platform-koa. The server declaration will change but isn't a big change. Migration documention will explain the differences :)

v6 depreciation:

  • ConverterService will be deprecated in favor of the @tsed/json-mapper package.
  • Some JsonSchema decorators in v5 will be deprecated in favor of @tsed/schema package.

Koa integration is almost done. Some internal small changes are necessary to use Koa with the existing code but globally it works. I planed also to support Express v5 by releasing @tsed/platform-express5, just for fun. Then I want to develop a package to support fastisfy. I still have questions for HAPI. Maybe one of you will do it before me :)

Alpha support koa now. The beta will be out soon.

V6 is released 馃コ馃コ

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomer-amir-vonage picture tomer-amir-vonage  路  7Comments

royibernthal picture royibernthal  路  3Comments

haroon407 picture haroon407  路  4Comments

OskarLebuda picture OskarLebuda  路  4Comments

teusemanuel picture teusemanuel  路  4Comments