Skip to content

Releases: Touffy/client-zip

UNIX permissions

16 Mar 09:40
def6a33
Compare
Choose a tag to compare

1.3.1

  • Set UNIX permissions in the external attributes to 664 (instead of zero)

ServiceWorker streaming

10 Feb 16:56
f977469
Compare
Choose a tag to compare

1.3.0

  • The Response returned by downloadZip now has a Content-Disposition: attachment header ; this is a very small improvement but useful when combined with a form action intercepted by a Service Worker (because forms don't have a download attribute like links). The new Service Worker streaming demo happens to do just that.

Fix typings

10 Sep 15:41
a752e96
Compare
Choose a tag to compare

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 proposed ForAwaitable type

ready for importScripts

10 Sep 10:11
b7296d7
Compare
Choose a tag to compare

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

22 Apr 16:34
dd2a29f
Compare
Choose a tag to compare

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

21 Apr 08:02
9278711
Compare
Choose a tag to compare

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

28 Mar 23:51
7568b67
Compare
Choose a tag to compare

No changes from 0.3, just decided it was ready to release as a stable 1.0.

Better input

11 Mar 10:48
028d39c
Compare
Choose a tag to compare

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)!

23 Feb 10:48
Compare
Choose a tag to compare

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 to lastModification