-
-
Notifications
You must be signed in to change notification settings - Fork 656
Closed
Labels
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
mysqlimport, likecreatePool('uri') - Confusing
maxIdleoption description
Pool Cluster
It doesn't have any tests yet
⚠️
- Missing Connection URI overload, like
poolCluster.add('conn', 'uri') - Missing config option
urlinaddmethod -
end,ofandaddmethods can't be in aPoolClusterconnection -
oftype 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
*.tsfiles intotsconfig.json(except for tests) - Resolve TS
eslinterrors - Remove unused TS tests
- Remove
@types/mocha,@types/chai,mochaandchaidependencies - Then, include every
*.tsfile tolintscript (including the tests)
2) Large refactoring
- Pattern all modules importing and exporting
- Join spread out types
- Create a reusable way for
queryandexecuteoverloads
3) Optional refactoring
- Increasing compatibility with
moduleResolution: nodenext - Remove
strictFunctionTypes: falsefromtsconfig.json