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

Migrate tar.gz to targz #316

Merged
merged 2 commits into from
Oct 31, 2016
Merged

Migrate tar.gz to targz #316

merged 2 commits into from
Oct 31, 2016

Conversation

matteofigus
Copy link
Member

@matteofigus matteofigus commented Oct 27, 2016

This solves #277

Specifically, tar.gz

  • has vulnerability issues (patched in the npm-shrinkwrap but still not great)
  • doesn't work with node>6
  • is not maintained anymore and latest version has known bugs

targz is minimal, works great, and keeps the tests green.

Note for reviewer: apart from the little difference in the interface, the old module used by default to compress a folder by including the folder too, while the new one includes just the files. If you look at the implementation, the tar.map is for solving that exact problem and keeping the format identical (so that cli and api keep talking with the same format).

Note that there is an integration test too to verify compressing/decompressing actually work with a real file.

@ArnoldZokas ArnoldZokas merged commit d47ba6c into master Oct 31, 2016
@matteofigus matteofigus deleted the targz branch October 31, 2016 11:10
This was referenced Nov 4, 2016
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.

2 participants