mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge branch 'devel' into remove-compat-bellow-1.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)));
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Package.describe({
|
||||
summary: "Make HTTP calls to remote servers",
|
||||
version: '1.4.3',
|
||||
version: '1.4.4',
|
||||
deprecated: 'Migrate to fetch when possible'
|
||||
});
|
||||
|
||||
@@ -15,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');
|
||||
|
||||
Reference in New Issue
Block a user