Remove deprecated interpolateWith method

Version bump dependencies
This commit is contained in:
Lovell Fuller 2016-07-25 16:11:50 +01:00
parent 4f1472d4ff
commit 7a9a4127a0
6 changed files with 9 additions and 21 deletions

View File

@ -43,6 +43,7 @@ Any change that modifies the existing public API should be added to the relevant
| ------: | :--------- | | ------: | :--------- |
| v0.16.0 | pencil | | v0.16.0 | pencil |
| v0.17.0 | quill | | v0.17.0 | quill |
| v0.18.0 | ridge |
Please squash your changes into a single commit using a command like `git rebase -i upstream/<wip-branch>`. Please squash your changes into a single commit using a command like `git rebase -i upstream/<wip-branch>`.

View File

@ -6,6 +6,8 @@ Requires libvips v8.3.2
#### v0.16.0 - TBD #### v0.16.0 - TBD
* Remove deprecated interpolateWith method - use resize(w, h, { interpolator: ... })
* Ensure boolean, bandbool, extractChannel ops occur before sRGB conversion. * Ensure boolean, bandbool, extractChannel ops occur before sRGB conversion.
[#504](https://github.com/lovell/sharp/pull/504) [#504](https://github.com/lovell/sharp/pull/504)
[@mhirsch](https://github.com/mhirsch) [@mhirsch](https://github.com/mhirsch)

View File

@ -876,13 +876,6 @@ Sharp.prototype.resize = function(width, height, options) {
} }
return this; return this;
}; };
Sharp.prototype.interpolateWith = util.deprecate(function(interpolator) {
return this.resize(
this.options.width > 0 ? this.options.width : null,
this.options.height > 0 ? this.options.height : null,
{ interpolator: interpolator }
);
}, 'interpolateWith: Please use resize(w, h, { interpolator: ... }) instead');
/* /*
Limit the total number of pixels for input images Limit the total number of pixels for input images

View File

@ -62,11 +62,11 @@
"color": "^0.11.3", "color": "^0.11.3",
"nan": "^2.4.0", "nan": "^2.4.0",
"semver": "^5.2.0", "semver": "^5.2.0",
"request": "^2.73.0", "request": "^2.74.0",
"tar": "^2.2.1" "tar": "^2.2.1"
}, },
"devDependencies": { "devDependencies": {
"async": "^1.5.2", "async": "^2.0.1",
"bufferutil": "^1.2.1", "bufferutil": "^1.2.1",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"exif-reader": "^1.0.0", "exif-reader": "^1.0.0",
@ -75,7 +75,7 @@
"mocha": "^2.5.3", "mocha": "^2.5.3",
"mocha-jshint": "^2.3.1", "mocha-jshint": "^2.3.1",
"node-cpplint": "^0.4.0", "node-cpplint": "^0.4.0",
"rimraf": "^2.5.3", "rimraf": "^2.5.4",
"unzip": "^0.1.11" "unzip": "^0.1.11"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",

View File

@ -8,14 +8,14 @@
"test": "VIPS_WARNING=0 node perf && node random && node parallel" "test": "VIPS_WARNING=0 node perf && node random && node parallel"
}, },
"devDependencies": { "devDependencies": {
"async": "^1.5.2", "async": "^2.0.1",
"benchmark": "^2.1.0", "benchmark": "^2.1.1",
"gm": "^1.22.0", "gm": "^1.22.0",
"imagemagick": "^0.1.3", "imagemagick": "^0.1.3",
"imagemagick-native": "^1.9.2", "imagemagick-native": "^1.9.2",
"jimp": "^0.2.24", "jimp": "^0.2.24",
"lwip": "^0.0.9", "lwip": "^0.0.9",
"semver": "^5.1.0" "semver": "^5.3.0"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"engines": { "engines": {

View File

@ -60,12 +60,4 @@ describe('Interpolators and kernels', function() {
}); });
}); });
describe('deprecated interpolateWith method still works', function() {
it('resize then interpolateWith', function() {
sharp().resize(1, 1).interpolateWith('bicubic');
});
it('interpolateWith then resize', function() {
sharp().interpolateWith('bicubic').resize(1, 1);
});
});
}); });