Skip to content

Commit

Permalink
deprecate Client.remote in favour of Client.call
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneWeird committed Mar 8, 2015
1 parent bd8a2a0 commit a81a7a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hudson-taylor",
"version": "2.4.2",
"version": "2.4.3",
"description": "Library for building services.",
"main": "index.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Client.prototype.call = function(service, method, data, callback) {
};

// For backwards compatibility with HT1.x
Client.prototype.remote = Client.prototype.call;
Client.prototype.remote = util.deprecate(Client.prototype.call, "Client.remote() has been deprecated, use Client.call() instead.");

Client.prototype.before = function(fn, opts = {}) {
let { service, method } = opts;
Expand Down

0 comments on commit a81a7a9

Please sign in to comment.