-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(instrumentation-tedious): support tedious@18 #2381
Conversation
tedious@18 adds its own .d.ts files. Compiling with them requires TypeScript v5, and either target:'es2022' for 'AggregateError' or using skipLibCheck:true in tsconfig.json. This change limits the update to TypeScript v5 to just while testing tedious@18 via test-all-versions' support for 'peerDependencies'. THis also drops ts-mocha in favour of 'mocha --require ts-node/register' as was done on opentelemetry-js.git in open-telemetry/opentelemetry-js#4840 Closes: open-telemetry#2266
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2381 +/- ##
==========================================
- Coverage 90.97% 90.56% -0.42%
==========================================
Files 146 157 +11
Lines 7492 7631 +139
Branches 1502 1574 +72
==========================================
+ Hits 6816 6911 +95
- Misses 676 720 +44
|
For the record: some earlier skipLibCheck discussion here: #2165 |
This package does not have an assigned component owner and is considered unmaintained. As such this package is in feature-freeze and this PR will be closed with 14 days unless a new owner or a sponsor (a member of @open-telemetry/javascript-approvers) for the feature is found. It is the responsibility of the author to find a sponsor for this feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This builds on work by @kirrg001 in #2267.
tedious@18 added its own types, dropping the need to use
@types/tedious. However, it requires TypeScript v5 to use with TS,
which was challenging.
install TS 5 when testing tedious@18.
as is being used in the core repo.
the tests when using tedious@18. It was that or bump to
target:es2022, which could impact the published code. JS SIG
discussion decided using skipLibCheck is probably fine.
More discussion here: #2267 (comment)
Obsoletes: #2267
Closes: #2266