Permalink
Commits on Aug 24, 2017
  1. Merge pull request #450 from dduponchel/release_3.1.4

    dduponchel committed Aug 24, 2017
    Release 3.1.4
Commits on Aug 23, 2017
  1. JSZip 3.1.4

    dduponchel committed Aug 23, 2017
  2. update the generated files

    dduponchel committed Aug 23, 2017
  3. Merge pull request #449 from dduponchel/memory

    dduponchel committed Aug 23, 2017
    Lower the memory consumption
Commits on Aug 22, 2017
  1. Lower the memory consumption

    dduponchel committed Aug 22, 2017
    A pako object contains a 64k buffer. We create a `FlateWorker` for each zip
    entry, meaning a zip file with a lot of entries would take **a lot** of memory.
    
    Lazy-loading the pako object isn't the best solution but it's the quickest.
    The best solution is to lazy-load the worker list.
    
    Mitigate the issue #446.
Commits on Aug 19, 2017
  1. Merge pull request #400 from dduponchel/api_documentation

    dduponchel committed Aug 19, 2017
    Improve documentation (code panes, examples)
Commits on Mar 5, 2017
  1. Merge pull request #395 from ZackMFleischman/FixingUtilsRequirePath

    dduponchel committed Mar 5, 2017
    Fixing broken require: require('util') -> require('../utils')
Commits on Mar 1, 2017
  1. Improve documentation (code panes, examples)

    dduponchel committed Mar 28, 2016
    Code panes
    ==========
    
    The message "Tip : check the source of the page !" wasn't really
    friendly and the html source code isn't the best place to display
    the code of our examples.
    
    Now, the js fragment and the html fragment are separated from the main
    page and are included (using jekyll includes) two times:
    
    - as html or js content, to render the result
    - inside jekyll's `highlight` tag to pretty print its content
    
    Using a tab for each block, we keep the page length under control.
    
    Argument and option examples
    ============================
    
    In the API documentation pages, the return type moved just below the
    description and a new line, "since", appeared.
    
    (Almost) all arguments / options now have an example, illustrating (if
    possible) what the option does.
    For example, `createFolders` in `loadAsync()`: the explanation about
    "virtual folders" helps only if you know how a zip file works. The
    example will help a lot as it's what people usually see: sub folders or
    not sub folders.
    
    Next steps
    ==========
    
    This commit helps with the options but doesn't lower the learning
    curve. The next (documentation) step should be to add more (simple) examples
    with real world use cases: with blob urls, canvas, list of promises,
    etc.
Commits on Feb 6, 2017
Commits on Oct 6, 2016
  1. Merge pull request #365 from dduponchel/release_3.1.3

    dduponchel committed Oct 6, 2016
    Release v3.1.3
Commits on Oct 5, 2016
  1. JSZip 3.1.3

    dduponchel committed Oct 5, 2016
  2. update the generated files

    dduponchel committed Oct 5, 2016
  3. Merge pull request #363 from dduponchel/opera

    dduponchel committed Oct 5, 2016
    Fix tests on Opera.
Commits on Oct 1, 2016
  1. Fix tests on Opera.

    dduponchel committed Oct 1, 2016
    On Opera, using `Uint8Array#set` with an empty source leads to a
    "Offset larger than array size" (see
    https://saucelabs.com/beta/tests/3e431fc46cdb4d2b8af024fc56abcb0d).
    
    The saucelabs tests are all green.
  2. Merge pull request #362 from dduponchel/fix_build

    dduponchel committed Oct 1, 2016
    Fix test and test error reporting.
Commits on Sep 28, 2016
  1. Fix test and test error reporting.

    dduponchel committed Sep 28, 2016
    The pull request #350 introduced a bug but the automated tests didn't
    catch it:
    
    > ReferenceError: Blob is not defined
    >     at /home/travis/build/Stuk/jszip/lib/utils.js:425:38
    >     at Array.1 (/home/travis/build/Stuk/jszip/node_modules/lie/lib/index.js:88:21)
    >     at nextTick (/home/travis/build/Stuk/jszip/node_modules/lie/node_modules/immediate/lib/index.js:61:18)
    >     at process._tickCallback (node.js:458:13)
    >
    > The command "npm run $COMMAND" exited with 0.
    >
    > Done. Your build exited with 0.
    
    This commit fixes:
    - the bug: check if Blobs are supported before actually using them
    - the build: if an uncaught error/rejection happens, exit with a non
      zero code.
  2. Merge pull request #357 from dduponchel/blob_output

    dduponchel committed Sep 28, 2016
    Remove a copy with blob output.
  3. Merge pull request #358 from dduponchel/crc32

    dduponchel committed Sep 28, 2016
    Fix crc32 check for empty entries.
  4. Merge pull request #359 from dduponchel/base64

    dduponchel committed Sep 28, 2016
    Fix the base64 error message with data uri.
  5. Merge pull request #360 from dduponchel/lint

    dduponchel committed Sep 28, 2016
    Travis build: lint before building.
Commits on Sep 25, 2016
  1. Travis build: lint before building.

    dduponchel committed Sep 5, 2016
    The default task of `grunt` does lint before building but the travis
    configuration directly went for `grunt build`. This commit adds the
    lint task.
  2. Fix the base64 error message with data uri.

    dduponchel committed Sep 25, 2016
    A special message is displayed when we find a data uri instead of a real
    base64 string. The check was false, the test checking it was false.
  3. Fix crc32 check for empty entries.

    dduponchel committed Sep 25, 2016
    With entries with no content (folders for example) the crc32 attribute
    wasn't initialized: `undefined === 0` was false, an error was triggered.
  4. Remove a copy with blob output.

    dduponchel committed Aug 27, 2016
    The actual memory consumption will actually depends on the
    implementation but this fix could avoid a copy of the result.
    To build the final Blob, instead of List[Uint8Array] -> ArrayBuffer -> Blob,
    we can directly do List[ArrayBuffer] -> Blob.
Commits on Sep 5, 2016
  1. Merge pull request #350 from ddxdental/master

    dduponchel committed Sep 5, 2016
    instanceof failing in window / iframe contexts
  2. Update utils.js

    ddxdental committed Sep 5, 2016
Commits on Sep 2, 2016
  1. Merge pull request #1 from ddxdental/ddxdental-instanceof-contexts

    ddxdental committed Sep 2, 2016
    instanceof failing in window / iframe contexts
  2. instanceof failing in window / iframe contexts

    ddxdental committed Sep 2, 2016
    instanceof fails with data passed in from other contexts
Commits on Aug 27, 2016
  1. Merge pull request #344 from jimmywarting/patch-1

    dduponchel committed Aug 27, 2016
    corrected a link
Commits on Aug 25, 2016
  1. corrected a link

    jimmywarting committed Aug 25, 2016
    I think you should use https wherever possible
Commits on Aug 23, 2016
  1. Merge pull request #340 from dduponchel/release_3.1.2

    dduponchel committed Aug 23, 2016
    Release v3.1.2
  2. JSZip 3.1.2

    dduponchel committed Aug 22, 2016
  3. update the generated files

    dduponchel committed Aug 22, 2016
  4. Merge pull request #342 from dduponchel/issue_339

    dduponchel committed Aug 23, 2016
    Don't stream folders.