Merge branch 'devel' into improve-field-documentation

This commit is contained in:
Jan Dvorak
2021-05-21 16:30:01 +02:00
committed by GitHub
3 changed files with 6 additions and 12 deletions

View File

@@ -14,6 +14,9 @@
* Released `id-map@1.1.1` removing unused dependencies and modernizing the code
* `http@1.4.4`
- Used the new deprecation package flag instead of loud console warning.
## v2.2, 2021-04-15
#### Highlights

View File

@@ -1,10 +1,6 @@
var MAX_LENGTH = 500; // if you change this, also change the appropriate test
var slice = Array.prototype.slice;
var deprecationMessage = function() {
Log.debug('The http package has been deprecated, please migrate to the fetch package and new web standards.');
};
exports.makeErrorByStatus = function(statusCode, content) {
var message = "failed [" + statusCode + "]";
@@ -56,7 +52,6 @@ var HTTP = exports.HTTP = {};
* @deprecated
*/
HTTP.get = function (/* varargs */) {
deprecationMessage();
return HTTP.call.apply(this, ["GET"].concat(slice.call(arguments)));
};
@@ -69,7 +64,6 @@ HTTP.get = function (/* varargs */) {
* @deprecated
*/
HTTP.post = function (/* varargs */) {
deprecationMessage();
return HTTP.call.apply(this, ["POST"].concat(slice.call(arguments)));
};
@@ -82,7 +76,6 @@ HTTP.post = function (/* varargs */) {
* @deprecated
*/
HTTP.put = function (/* varargs */) {
deprecationMessage();
return HTTP.call.apply(this, ["PUT"].concat(slice.call(arguments)));
};
@@ -95,7 +88,6 @@ HTTP.put = function (/* varargs */) {
* @deprecated
*/
HTTP.del = function (/* varargs */) {
deprecationMessage();
return HTTP.call.apply(this, ["DELETE"].concat(slice.call(arguments)));
};
@@ -108,6 +100,5 @@ HTTP.del = function (/* varargs */) {
* @deprecated
*/
HTTP.patch = function (/* varargs */) {
deprecationMessage();
return HTTP.call.apply(this, ["PATCH"].concat(slice.call(arguments)));
};

View File

@@ -1,6 +1,7 @@
Package.describe({
summary: "Make HTTP calls to remote servers",
version: '1.4.3'
version: '1.4.4',
deprecated: 'Please use fetch'
});
Npm.depends({
@@ -14,8 +15,7 @@ Package.onUse(function (api) {
// This package intentionally does not depend on ecmascript, so that
// ecmascript and its dependencies can depend on http without creating
// package dependency cycles.
'modules',
'logging' // For deprecation message
'modules'
]);
api.mainModule('httpcall_client.js', 'client');