Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"undef": true,
"globals": {
"Uint8Array": false,
"Buffer": false,
"ArrayBuffer": false,
"strict": true,
"sub": true,

"TextEncoder": false
}
"globals": {
"TextEncoder": false,
"TextDecoder": false
},
"browser": true,
"node": true
}
21 changes: 21 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# v2.0.0, 2013-10-12

- `JSZipBase64` has been renamed to `JSZip.base64`.
- The `data` attribute on the object returned by `zip.file(name)` has been removed. Use `asText()`, `asBinary()`, `asUint8Array()`, `asArrayBuffer()` or `asNodeBuffer()`.

- [Fix issue with Android browser](https://github.com/Stuk/jszip/pull/60)

- The compression/decompression methods now give their input type with the `compressInputType` and `uncompressInputType` attributes.
- Lazily decompress data when needed and [improve performance in general](https://github.com/Stuk/jszip/pull/56)
- [Add support for `Buffer` in Node.js](https://github.com/Stuk/jszip/pull/57).
- Package for CommonJS/npm.

### v1.0.1, 2013-03-04

- Fixed an issue when generating a compressed zip file with empty files or folders, see #33.
- With bad data (null or undefined), asText/asBinary/asUint8Array/asArrayBuffer methods now return an empty string, see #36.

# v1.0.0, 2013-02-14

- First release after a long period without version.

31 changes: 31 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,33 @@ module.exports = function(grunt) {
tags: tags
}
}
},
jshint: {
options: {
jshintrc: "./.jshintrc"
},
all: ['./lib/*.js']
},
browserify: {
all: {
files: {
'dist/jszip.js': ['lib/index.js'],
},
options: {
standalone: 'JSZip'
}
}
},
uglify: {
options: {
report: 'gzip',
mangle: true
},
all: {
src: 'dist/jszip.js',
dest: 'dist/jszip.min.js'
}
}
});

// Loading dependencies
Expand All @@ -77,6 +103,11 @@ module.exports = function(grunt) {
// }
grunt.loadNpmTasks("grunt-saucelabs");
grunt.loadNpmTasks("grunt-contrib-connect");
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask("test", ["connect", "saucelabs-qunit"]);
grunt.registerTask("build", ["browserify", "uglify"]);
grunt.registerTask("default", ["jshint", "build"]);
};
Loading