Releases: Touffy/client-zip
Releases · Touffy/client-zip
UNIX permissions
1.3.1
- Set UNIX permissions in the external attributes to 664 (instead of zero)
ServiceWorker streaming
1.3.0
- The Response returned by
downloadZip
now has aContent-Disposition: attachment
header ; this is a very small improvement but useful when combined with aform
action intercepted by a Service Worker (because forms don't have adownload
attribute like links). The new Service Worker streaming demo happens to do just that.
Fix typings
1.2.1
- fixed: the TypeScript declaration incorrectly asserted that only async iterables could be passed to
downloadZip
; as stated in the README, plain old sync iterables like arrays work just fine, so this is now reflected in the declaration using the proposedForAwaitable
type
ready for importScripts
1.2.0
- this release includes a new script suitable for ServiceWorkers, that exposes the
downloadZip
function as a global var and only accepts Responses as input
Fixed Dates
1.1.1
- DOS date/time encoding is now correct and uses local time
- Responses with no Last-Modified header get now() instead of an Invalid Date by default
more autonomous WebAssembly
1.1.0
- the WebAssembly Memory is now created by wasm instead of JS, so the module no longer imports anything
- removed a little bit of duplicate code in
normalizeInput
's Response name handling
Officially stable
No changes from 0.3, just decided it was ready to release as a stable 1.0.
Better input
0.3.0
input.lastModification
is now optional in all cases- if possible, get file name from the "filename" option in the "Content-Disposition" header in a Request
Fixed (for real this time)!
0.2.4
- fixed an infinite loop in a function that was trying to chunk large files for crc32
- added some tests to avoid breaking things so much
0.2.3 (broken for large files)
- fixed a critical bug introduced in 0.2.2 where computed file size was NaN when reading from a stream
0.2.2 (broken release)
- renamed input property
modDate
tolastModification