The current target (es6) doesn't support async/await, so typescript
polyfills it for us, with a weird mess of __awaiter and yield. If
we target node >= 8, the compiler just emits the async/await code
we wrote, which leads to happier monitoring tools.
sequelize 6 supports node >= 10, and sequelize 5 pins an older version
of this library. We already declare engines >= 10 in package.json.
Pin typescript version to 4.2 (they don't do semver).
The current target (es6) doesn't support async/await, so typescript polyfills it for us, with a weird mess of __awaiter and yield. If we target node >= 8, the compiler just emits the async/await code we wrote, which leads to happier monitoring tools.
sequelize 6 supports node >= 10, and sequelize 5 pins an older version of this library. We already declare engines >= 10 in package.json.
Pin typescript version to 4.2 (they don't do semver).
c.f. https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-10
lib/Pool.js
before:After: