Skip to content
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(types): export ConnectionConfiguration type #1609

Merged
merged 2 commits into from Mar 2, 2024

Conversation

WikiRik
Copy link
Contributor

@WikiRik WikiRik commented Mar 1, 2024

Thanks for adding first-party typings! I've noticed that ConnectionConfiguration wasn't exported, while we are using that for sequelize here; https://github.com/sequelize/sequelize/blob/main/packages/core/src/dialects/mssql/connection-manager.ts (@types/tedious calls it ConnectionConfig but the object is basically the same as ConnectionConfiguration)

I went ahead and just exported the type here, but I'm open to hear if you have other suggestions on what type to use.

@WikiRik WikiRik changed the title Export ConnectionConfiguration fix(types): export ConnectionConfiguration Mar 1, 2024
@arthurschreiber arthurschreiber changed the title fix(types): export ConnectionConfiguration fest: export ConnectionConfiguration type Mar 1, 2024
@arthurschreiber
Copy link
Collaborator

Cool, looks good to me! Will get it merged once I'm close to a computer.

@WikiRik WikiRik changed the title fest: export ConnectionConfiguration type feat: export ConnectionConfiguration type Mar 1, 2024
@WikiRik
Copy link
Contributor Author

WikiRik commented Mar 1, 2024

I should have ran tests locally first, but exporting the type should also work. Let's hope CI is green now, otherwise I will run stuff locally

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.25%. Comparing base (1226c20) to head (7b4b75a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1609      +/-   ##
==========================================
- Coverage   78.43%   78.25%   -0.19%     
==========================================
  Files          93       93              
  Lines        4860     4860              
  Branches      934      934              
==========================================
- Hits         3812     3803       -9     
- Misses        751      757       +6     
- Partials      297      300       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@WikiRik
Copy link
Contributor Author

WikiRik commented Mar 1, 2024

CI is mostly green, just codecov is mentioning that coverage has gone down. Feel free to let me know if you want me to add a test (and mention where)

@arthurschreiber
Copy link
Collaborator

CI is mostly green, just codecov is mentioning that coverage has gone down. Feel free to let me know if you want me to add a test (and mention where)

Coverage is very finicky - in this case we're adding a line of code that can't really be tested in any sensible way (remember type definitions are completely stripped at runtime which is when coverage is collected).

Coverage going down is not a problem. Thank you for preparing the change (and fixing the typo in the title lol 🤣).

@arthurschreiber arthurschreiber changed the title feat: export ConnectionConfiguration type feat(types): export ConnectionConfiguration type Mar 2, 2024
@arthurschreiber arthurschreiber merged commit 7e84a2f into tediousjs:master Mar 2, 2024
26 of 30 checks passed
@WikiRik WikiRik deleted the patch-1 branch March 2, 2024 10:40
Copy link

github-actions bot commented Mar 2, 2024

🎉 This PR is included in version 18.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants