Add explicit ES type libs for public typings while keeping ES5 runtime target#500
Add explicit ES type libs for public typings while keeping ES5 runtime target#500Copilot wants to merge 7 commits into
Conversation
Agent-Logs-Url: https://github.com/nevware21/ts-async/sessions/1f8223a6-705f-4fbc-82d0-c90d803bf965 Co-authored-by: nev21 <82737406+nev21@users.noreply.github.com>
|
@copilot This is only addressing the local test resources and not the actual reported issue. |
Agent-Logs-Url: https://github.com/nevware21/ts-async/sessions/f6321dc0-0a3d-49a0-941c-47f6a22f2a53 Co-authored-by: nev21 <82737406+nev21@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nevware21/ts-async/sessions/f6321dc0-0a3d-49a0-941c-47f6a22f2a53 Co-authored-by: nev21 <82737406+nev21@users.noreply.github.com>
Updated the fix to target Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
Pull request overview
This PR updates package-level TypeScript configuration and documentation so public typings can reference newer built-in TypeScript definitions while keeping the emitted runtime target at ES5.
Changes:
- Adds explicit
es2021anddomlibs tolib/tsconfig.json. - Documents consumer
tsconfig.jsonlib requirements in the README. - Adds the fix to the unreleased changelist.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
README.md |
Adds guidance for consumers compiling with ES5-only TypeScript libs. |
lib/tsconfig.json |
Adds explicit TypeScript libs while preserving target: "es5". |
CHANGELIST.md |
Records the package tsconfig/documentation fix under Unreleased. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #500 +/- ##
=======================================
Coverage 97.56% 97.56%
=======================================
Files 27 27
Lines 1439 1439
Branches 339 339
=======================================
Hits 1404 1404
Misses 35 35 🚀 New features to boost your workflow:
|
Agent-Logs-Url: https://github.com/nevware21/ts-async/sessions/aa1009c1-0568-4f76-b2a9-d8befbd8c165 Co-authored-by: nev21 <82737406+nev21@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Agent-Logs-Url: https://github.com/nevware21/ts-async/sessions/3a8e6886-d1c0-44a5-926f-c707599b2b50 Co-authored-by: nev21 <82737406+nev21@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
| "lib": [ | ||
| "dom", | ||
| "es2015.promise", | ||
| "es2015.iterable", | ||
| "es2018.asynciterable" | ||
| ], |
|
@copilot nevware21/ts-utils#558 has an additional script to populate the api-generated generated *.d.ts should this have the same |
I don’t think this PR needs that. This repo already runs API Extractor via |
@copilot that is not correct! This project does have a docsgen script that is run which uses api-generator |
You’re right — my previous reply was incorrect about that part. This repo does use API Extractor via |
@copilot But if we don't add it to the generated *.d.ts, then we are not fixing the isssue right? |
Agent-Logs-Url: https://github.com/nevware21/ts-async/sessions/f4563d82-e957-45c0-ab04-4f4f5c04f7f7 Co-authored-by: nev21 <82737406+nev21@users.noreply.github.com>
Right — to fully fix it, the change needs to cover the build path that feeds the generated typings. I updated Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
.d.tsartifacts are produced in this repo and whether this fix must update committed generated outputnpm run lint,npm run build,npm test)