-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
What is the feature/improvement you would like?
The following APIs are promisified at the module scope of compression.ts
Unable to find source-code formatter for language: typescript. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
const zlibInflate = promisify(zlib.inflate.bind(zlib)); const zlibDeflate = promisify(zlib.deflate.bind(zlib)); gunZipSync(...)
But they could be moved into the code path that needs them.
Saslprep
Saslprep unzips code-point data upon importing using the gunZipSync API. We should at least nest the usage into the functions that need it (cache the result).
Consider a follow-up or alternative to using zlib for salsprep so it can work in other JS environments.
What use case would this feature/improvement enable?
Moving the usage into the compression path that utilizes these APIs allows for one less module needing to exist in order to have a functioning driver.
- related to
-
NODE-5121 Validate modules can be missing and a MongoClient can still run operations
- Backlog