You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When first released, @sounisi5011/encrypted-archive was designed for Node.js.
Therefore, the value of the compress option was also designed to be the same as the option in the Node.js zlib module.
However, for @sounisi5011/encrypted-archive to support browsers, Deno and React Native, the value of the compress option would have to be changed.
Possible solutions are either:
Use Node.js compliant compress options at all runtimes for compatibility
Adopting this plan requires a deep understanding of the behavior of the compression modules provided by each runtime.
So far we do not even understand the internal workings of the zlib module provided by Node.js (So we wrote a test of compression for all combination).
Use different compress options at each runtime.
Users can use the compression options they are familiar with.
However, it is currently not possible to use different type declarations at different runtimes.
Remove the compress option.
It is the easiest way. However, it is a breaking change.
It should also continue to support decompression for backward compatibility.
The text was updated successfully, but these errors were encountered:
When first released,
@sounisi5011/encrypted-archive
was designed for Node.js.Therefore, the value of the
compress
option was also designed to be the same as the option in the Node.js zlib module.However, for
@sounisi5011/encrypted-archive
to support browsers, Deno and React Native, the value of thecompress
option would have to be changed.Possible solutions are either:
Use Node.js compliant
compress
options at all runtimes for compatibilityAdopting this plan requires a deep understanding of the behavior of the compression modules provided by each runtime.
So far we do not even understand the internal workings of the
zlib
module provided by Node.js (So we wrote a test of compression for all combination).Use different
compress
options at each runtime.Users can use the compression options they are familiar with.
However, it is currently not possible to use different type declarations at different runtimes.
Remove the
compress
option.It is the easiest way. However, it is a breaking change.
It should also continue to support decompression for backward compatibility.
The text was updated successfully, but these errors were encountered: