samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.81k stars 94 forks source link

Entirely remake `nestia` for TS 5.2 transform API #347

Open samchon opened 1 year ago

samchon commented 1 year ago

Related issues:

TypeScript team had decided to support formal transform API since v5.2 update.

However, as TS v5.2 transform API provides types of typescript/lib/tsclibrary instead of typescript, typia must be entirely rewritten. In such reason, typiawould be rewritten with break changes. Also, asnestiais utilizing TypeScript API in not only transformation mode(@nestia/core) but also generation (@nestia/sdk) mode,nestia` must be entirely rewritten with major version update.

Release date of TS 5.2 may 2023-08, but nestia v2 would be released a little bit earlier. It's because next nestia will support both ts-patch and TS 5.2 transform API. When you run npx nestia setup, it will configure tsconfig.json file properly considering TS version. If TS version is lower than 5.2, ts-patch would be utilized. Otherwise, pure typescript would be utilized.

ilterugur commented 1 year ago

Hello. Would it be possible to export only types (with SDK generator) but no sdk on nestia's new remaked version?

samchon commented 1 year ago

Hello. Would it be possible to export only types (with SDK generator) but no sdk on nestia's new remaked version?

I didn't understand the question. What are you curious about?