-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Use Case
As a Developer
I want the driver to be able to use injected fs adapter to work with filesystem.
So that I can work with files (like TLS certificates) in JS environments where node fs module is not availble.
User Experience
- Driver uses provided fs adapter instead of require('fs').
Risks/Unknowns
- N/A
Acceptance Criteria
Implementation Requirements
- Remove import: remove require('fs') from all places inside src folder.
- Use fs adapter provided with the mongo client options.
Testing Requirements
- Existing integration tests should pass when custom fs adapter is provided, no node:fs should be imported.
Documentation Requirements
- DOCSP ticket, API docs, etc
Follow Up Requirements
- additional tickets to file, required releases, etc
- if node behavior differs/will differ from other drivers, confirm with dbx devs what standard to aim for and what plan, if any, exists to reconcile the diverging behavior moving forward