Comparing version 2.2.0 to 2.3.0
'use strict'; | ||
var zlib = require('zlib'); | ||
if (!zlib.deflateSync) { | ||
// Backwards compatibility with 0.10. | ||
zlib = require('node-zlib-backport'); | ||
} | ||
var constants = require('./constants'); | ||
@@ -5,0 +9,0 @@ var Packer = require('./packer'); |
'use strict'; | ||
var zlib = require('zlib'); | ||
if (!zlib.inflateSync) { | ||
// Backwards compatibility with 0.10. | ||
zlib = require('node-zlib-backport'); | ||
} | ||
var SyncReader = require('./sync-reader'); | ||
@@ -6,0 +9,0 @@ var FilterSync = require('./filter-parse-sync'); |
{ | ||
"name": "pngjs", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "PNG encoder/decoder in pure JS, supporting any bit size & interlace, async & sync with full test suite.", | ||
@@ -52,8 +52,11 @@ "contributors": [ | ||
}, | ||
"optionalDependencies": { | ||
"node-zlib-backport": "^0.11.15" | ||
}, | ||
"devDependencies": { | ||
"buffer-equal": "0.0.1", | ||
"buffer-equal": "1.0.0", | ||
"connect": "^3.4.0", | ||
"eslint": "^1.0.0", | ||
"istanbul": "^0.3.17", | ||
"phantomjs": "^1.9.17", | ||
"eslint": "^2.5.0", | ||
"istanbul": "^0.4.1", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"serve-static": "^1.10.0", | ||
@@ -60,0 +63,0 @@ "tap-dot": "^1.0.0", |
@@ -26,3 +26,3 @@ [![Build Status](https://travis-ci.org/lukeapage/pngjs.svg?branch=master)](https://travis-ci.org/lukeapage/pngjs) [![Build status](https://ci.appveyor.com/api/projects/status/tb8418jql1trkntd/branch/master?svg=true)](https://ci.appveyor.com/project/lukeapage/pngjs2/branch/master) [![Coverage Status](https://coveralls.io/repos/lukeapage/pngjs2/badge.svg?branch=master&service=github)](https://coveralls.io/github/lukeapage/pngjs2?branch=master) [![npm version](https://badge.fury.io/js/pngjs.svg)](http://badge.fury.io/js/pngjs) | ||
* Async - Node.js 0.10 / 0.12 / IO.js | ||
* Sync - Node.js 0.12 / IO.js | ||
* Sync - Node.js 0.12 / IO.js (0.10 with [node-zlib-backport](https://www.npmjs.com/package/node-zlib-backport) dependency) | ||
@@ -52,6 +52,5 @@ Comparison Table | ||
Tested using [PNG Suite](http://www.schaik.com/pngsuite/). We read every file into pngjs, output it in standard 8bit colour, synchronously and asynchronously, then compare the original | ||
with the newly saved images. | ||
Tested using [PNG Suite](http://www.schaik.com/pngsuite/). We read every file into pngjs, output it in standard 8bit colour, synchronously and asynchronously, then compare the original with the newly saved images. | ||
To run the tests, run `node test`. | ||
To run the tests, fetch the repo (tests are not distributed via npm) and install with `npm i`, run `npm test`. | ||
@@ -274,2 +273,5 @@ The only thing not converted is gamma correction - this is because multiple vendors will do gamma correction differently, so the tests will have different results on different browsers. | ||
### 2.3.0 - 22/04/2016 | ||
- Support for sync in node 0.10 | ||
### 2.2.0 - 04/12/2015 | ||
@@ -276,0 +278,0 @@ - Add sync write api |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
709952
2553
339
1