Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- [#488](https://github.com/nevware21/ts-async/issues/488) [CHORE] Drop Node.js 16 from CI matrix and add Node.js 24
- Node.js 16 is end-of-life and is no longer supported by key tooling dependencies (for example `puppeteer` and `@pnpm/error` require Node.js >= 18)
- [#499](https://github.com/nevware21/ts-async/issues/499) [BUG] Add the required ES Promise / Iterable / AsyncIterable libs to the package tsconfig and document the consumer ES2018 lib requirement

# v0.5.5 Jan 5th, 2026

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ Install the npm packare: `npm install @nevware21/ts-async --save`
> "@nevware21/ts-async": ">= 0.5.5 < 2.x"
> ```

This package still targets ES5 at runtime, but its public TypeScript types use later built-in definitions such as `Promise`, `Iterable`, and `AsyncIterable`. If your project currently compiles with only ES5 libs, update your `tsconfig.json` to include a later ES lib, for example:

- Browser / mixed environments: `"lib": ["ES2018", "DOM"]`
- Node-only environments: `"lib": ["ES2018"]`

And then just import the helpers and use them.

### Simple Examples
Expand Down
7 changes: 6 additions & 1 deletion lib/tsconfig.es6.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": [
"dom",
"es6",
"es2018.asynciterable"
],
"target": "es6",
"outDir": "./build/es6"
}
}
}
8 changes: 7 additions & 1 deletion lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": [
"dom",
"es2015.promise",
"es2015.iterable",
"es2018.asynciterable"
],
Comment on lines +4 to +9
"target": "es5",
"declaration": true,
"declarationDir": "./build/types",
"removeComments": false,
"outDir": "./build/es5"
}
}
}