Closed
Description
Please, don't use this area to indicate new Issues, give preference to opening a new Issue.
Known Issues
Pool
- Missing Connection URI overload in
mysql
import, likecreatePool('uri')
- Confusing
maxIdle
option description
Pool Cluster
It doesn't have any tests yet
⚠️
- Missing Connection URI overload, like
poolCluster.add('conn', 'uri')
- Missing config option
url
inadd
method -
end
,of
andadd
methods can't be in aPoolCluster
connection -
of
type can't be aPoolCluster
- Pool Cluster is missing in
promise.d.ts
Constants
Notes
- All fixes need to be covered by tests (see practical examples here)
- If new issues are identified, they will be added here
🔬 About TypeScript Tests
The tests are based on TypeScript compilation and not executes the compiled code.
Reason: Given that the main codebase and its entire maintenance are carried out in JavaScript, creating tests in TypeScript could potentially hinder development in its primary language. It allows the development of the main driver and its types in parallel.
See: #1957 and #1995 (comment).
ℹ️ About refactoring
The PR #2067 solves all the following refactoring, but it has become too long and hard to review. Then, I plan to split it into smaller tasks and submit them again.
The idea behind the refactoring revolves around:
- Organizing and patterning the code for better readability and maintenance
- Improving the performance of the code editor when compiling the types in its display
- Increasing compatibility across multiple TypeScript configurations (
tsconfig
)
1) Small refactoring
- Include all
*.ts
files intotsconfig.json
(except for tests) - Resolve TS
eslint
errors - Remove unused TS tests
- Remove
@types/mocha
,@types/chai
,mocha
andchai
dependencies - Then, include every
*.ts
file tolint
script (including the tests)
2) Large refactoring
- Pattern all modules importing and exporting
- Join spread out types
- Create a reusable way for
query
andexecute
overloads
3) Optional refactoring
- Increasing compatibility with
moduleResolution: nodenext
- Remove
strictFunctionTypes: false
fromtsconfig.json