Update TypeScript compilation target years
Delapouite opened this issue · 2 comments
Delapouite commented
Hello
While debugging an application and stepping through the statements I found that some the cache packages are using TypeScript __adwaiter
runtime helpers, which are quite old and not needed anymore on modern JS runtimes.
Here's a recap:
cache-manager
is targeting ES2020 https://github.com/jaredwray/cache-manager/blob/main/packages/cache-manager/tsconfig.jsoncache-manager-redis-yet
is targeting ES2015 https://github.com/jaredwray/cache-manager/blob/main/packages/cache-manager-redis-yet/tsconfig.jsoncache-manager-ioredis-yet
is targeting ES2021 https://github.com/jaredwray/cache-manager/blob/main/packages/cache-manager-ioredis-yet/tsconfig.json
What about synchronizing all the packages to the same version, preferably a fairly recent one like ES2021 or ES2022?
Thanks.
jaredwray commented
@Delapouite - thanks and we have merged the update moving to ES2022. This should be released today.