Permalink
Commits on Jan 14, 2013
  1. Add Universal Module Loader script

    So that JSZip can be used in CommonJS, require.js and plain
    browser environments
    committed Jan 13, 2013
  2. Merge pull request #28 from dduponchel/issue23

    Add support for Blob, ArrayBuffer, Uint8Array
    committed Jan 14, 2013
Commits on Jan 13, 2013
  1. Update coding style for brackets

    See pull request 28 :
    Change
    if (test)
    {
       doStuff();
    }
    to
    if (test) {
       doStuff();
    }
    
    Also remove an extra (unused) `this` and fix a typo.
    dduponchel committed Jan 13, 2013
  2. PR 28 : feedback from @Stuk

    dduponchel committed Jan 13, 2013
Commits on Jan 4, 2013
  1. issue #23 feedback

    * use type instead of responseType
    * deprecate generate({base64:true})
    * improve documentation
    dduponchel committed Jan 4, 2013
  2. Fix unit tests on older browsers

    Tested browsers :
    IE 6/7/8/9
    Firefox 3/3.6/4/10(esr)/17(esr)
    Chrome latest
    Safari 5.1/6
    
    I updated jQuery because it seems to fix an issue with some zip files...
    
    Add JSZip.support because testing support might be hard.
    Example : typeof Blob !== "undefined" is not enough : Firefox 4 and
    Safari 5 know about Blob but not how to create them (no Blob
    constructor, no BlobBuilder).
    With a JSZip.support.blob, I can use it in the unit tests and the user
    can use generate() or asBlob() without any try/catch blocks.
    dduponchel committed Jan 2, 2013
Commits on Jan 2, 2013
Commits on Jan 1, 2013
  1. example : add timer

    dduponchel committed Dec 31, 2012
Commits on Dec 29, 2012
  1. Fix an issue with base64 and asText()

    When a file is added with a content as a base64 string (with the base64
    attribute), the asText() method didn't decode the text.
    dduponchel committed Dec 29, 2012
  2. Add support for file() and Uint8Array and ArrayBuffer

    We now support
    * file(name, string)
    * file(name, Uint8Array)
    * file(name, ArrayBuffer)
    and
    * file(name).asText()
    * file(name).asBinary()
    * file(name).asUint8Array()
    * file(name).asArrayBuffer()
    dduponchel committed Dec 29, 2012
  3. Apply a 0xFF mask in JSZip.load on the whole input

    Bad news : I added a loop to apply a 0xFF mask. this will slow down a
    bit the method.
    Good news :
     * JSZip.load should be more robust (sometimes the 0xFF wasn't
       used, when using lastIndexOf for example).
     * Now that we are sure that the string is in the right format, we can
       use String.slice to read a string. The old method was :
       foreach byte :
         charCodeAt, & 0xFF, fromCharCode, append to the result string
       This should compensate for the initial loop.
     * Debugging is less painful : the old method triggered 1 call to
       readByte... per byte. With "big" zip files (let say 10M), this would
       lead to 10M method calls. The "with firebug activated" case was on my
       tests 10 times slower than the "without firebug".
       Now that we only do 1 method call (String.slice) to read to content
       of a file, the debugger overhead has been reduced.
     * JSZip.load(Uint8Array|ArrayBuffer) is faster : we avoid the useless
       charCodeAt, & 0xFF, fromCharCode.
    dduponchel committed Dec 28, 2012
Commits on Dec 28, 2012
  1. Fix tests of JSZip.load()

    Bad copy and paste.
    dduponchel committed Dec 28, 2012
Commits on Dec 27, 2012
  1. Add examples with the File API and XHR2 and Blob URLs.

    Now that we support ArrayBuffer, we can do that very easily.
    dduponchel committed Dec 23, 2012
  2. fix the pretty function

    dduponchel committed Dec 23, 2012
Commits on Dec 23, 2012
  1. Merge pull request #24 from dduponchel/issue20

    patch for issue #20 : use ZipObject for this.files
    committed Dec 23, 2012
Commits on Dec 22, 2012
Commits on Nov 2, 2012
  1. Merge pull request #17 from virtru/faster-crc32

    Improved crc32 performance by a factor of 10
    committed Nov 2, 2012
  2. Improved crc32 performance

    ravenac95 committed Nov 2, 2012
Commits on Sep 18, 2012
  1. Correct lint and style errors

    committed Sep 18, 2012
  2. Update tagline in JS files

    committed Sep 18, 2012
Commits on Sep 7, 2012
Commits on Mar 14, 2012
  1. Update web addresses

    Remove donate and amazon links
    committed Mar 14, 2012
  2. Merge pull request #12 from Stuk/readme

    Readme
    committed Mar 14, 2012
  3. Update code somple

    committed Mar 14, 2012
  4. Add small readme

    committed Mar 14, 2012
  5. Merge pull request #11 from dduponchel/develop

    zip parser + updated API
    committed Mar 14, 2012
Commits on Feb 26, 2012
  1. UTF8 : general purpose bit 11 + doc.

    Handle utf8 in names only when this bit is set. Set this bit if the name
    is in utf8.
    
    Updated doc : add toText() and toBinary().
    dduponchel committed Feb 24, 2012
Commits on Feb 21, 2012
  1. Browser support table.

    The first (and only) table with browser compatibility was for the data
    URI scheme (table full of restrictions and issues).
    Now the first thing the user will see is where the library will work :
    everywhere.
    
    TODO : test in older browsers. IE and Firefox are good but
    Opera/Safari/Chrome lack tests with old versions.
    dduponchel committed Feb 21, 2012
  2. Improve utf8 support.

    Now supported : read/write utf8 in files, utf8 in path.
    
    The unit tests all pass in :
    - IE 6 / 7 / 8 / 9
    - the lastest firefox
    - firefox 3.6
    - the lastest opera
    - the lastest chromium
    - the lastest safari
    dduponchel committed Nov 26, 2011
Commits on Feb 5, 2012
  1. Add a checkCRC32 param.

    If true, this will recalculate the crc32 of each read file and check it
    against the recorded value.
    
    Also fix the crc 32 code to handle "" values.
    dduponchel committed Feb 4, 2012