[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compress-commons for Node 15 support #28

Merged
merged 2 commits into from
Jun 8, 2021
Merged

Update compress-commons for Node 15 support #28

merged 2 commits into from
Jun 8, 2021

Conversation

etaoins
Copy link
Contributor
@etaoins etaoins commented Jun 8, 2021

Right now we're producing ZIP files with incorrect CRC32s on Node 15+. This has a few effects:

  • macOS Finder gets confused and doesn't detect the ZIP file as password protected. Instead, it unzips everything as a 0 byte file

  • Running unzip from the command line succeeds but warns about incorrect CRC32

  • Our unit tests (correctly) fail

This is ultimately due to archiverjs/node-crc32-stream#31

To pull in the fix for that we need crc32-stream@4.0.2. That requires updating both compress-commons and zip-stream to their latest versions.

The version bumps look scary here but they're mostly due to dropping support for old Node versions. They now require Node 10+; this should be fine considering our Travis config only tests 12+.

Right now we're producing ZIP files with incorrect CRC32s on Node 15+.
This has a few of effects:

- macOS Finder gets confused and doesn't detect the ZIP file as password
  protected. Instead, it unzips everything as a 0 byte file

- Running `unzip` from the command line succeeds but warns about
  incorrect CRC32

- Our unit tests (correctly) fail

This is ultimately due to archiverjs/node-crc32-stream#31

To pull in the fix for that we need `crc32-stream@4.0.2`. That requires
updating both `compress-commons` and `zip-stream` to their latest
versions.

The version bumps look scary here but they're mostly due to dropping
support for old Node versions. They now require Node 10+; this should be
fine considering our Travis config only tests 12+.
@artem-karpenko
Copy link
Owner

Hi @etaoins, thank you for PR. Travis build for node 12&14 does not pass: https://travis-ci.org/github/artem-karpenko/archiver-zip-encrypted/jobs/773897807. It seems to complain about inconsistency between package.json and package-lock.json, even though I do see that package-lock.json is part of this PR. Could it be that it's not of in sync with package.json though?

@etaoins
Copy link
Contributor Author
etaoins commented Jun 8, 2021

@artem-karpenko

Sorry about that! I think I forgot to update it after realising I needed zip-stream as well.

@artem-karpenko artem-karpenko merged commit dda6c14 into artem-karpenko:master Jun 8, 2021
@artem-karpenko
Copy link
Owner

Thanks! Version 1.0.10 has been published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants