[JSZip v3] Blob, Promise and more. #275

Merged
merged 7 commits into from Apr 11, 2016

Projects

None yet

1 participant

@dduponchel
Collaborator

This pull request adds several things:

On features,

  • Blob and Promise support in loadAsync() and file()
  • support and tests for JSZip.external
  • support for async("array")

On

  • enforcing rules in JSHint
  • some documentation fixes
  • upgrade some dependencies
  • improve an error message

This should cover the remaining bullet points of #224.

dduponchel added some commits Apr 9, 2015
@dduponchel dduponchel Accept Blob and Promise.
The methods `.file(name, data)` and `.loadAsync(data)` now accept Blob
and promises of supported types (string, Uint8Array, etc).
0babbc1
@dduponchel dduponchel Test and fix JSZip.external.
Now, users can override the `JSZip.external.Promise` object and use
their own.
607ded7
@dduponchel dduponchel Nodejs stream and loadAsync: add an error.
A zip file is designed to be read backward so a stream is not suited
for this task. We could read the whole stream in memory but that would
be very counter-intuitive. The previous message is too generic ("The
data of [...] is in an unsupported format") and a better message will
save hours of debugging.
5e17fa4
@dduponchel dduponchel JSHint: add enforcing rules.
JSHint wasn't configured correctly. This commit adds enforcing rules
and apply them on production files, test files and documentation files.
Also fix offending lines.
ba062b0
@dduponchel dduponchel Upgrade dependencies.
- es6-promise is kept in 3.0 until
  stefanpenner/es6-promise#177 is released
- grunt-contrib-connect is kept in 1.0.0 until
  gruntjs/grunt-contrib-connect#213 is resolved
031dfaa
@dduponchel dduponchel Documentation: fix examples. 5b06e87
@dduponchel dduponchel Add array support in async().
It almost worked, we just needed a concat fix.
823c29b
@dduponchel dduponchel merged commit cb28f5e into Stuk:jszip_v3 Apr 11, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@dduponchel dduponchel deleted the dduponchel:blob branch Apr 11, 2016
@dduponchel dduponchel referenced this pull request Apr 12, 2016
Merged

Release 3.0.0 #278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment