Skip to content

Commit

Permalink
finally remove long-deprecated 'Client' initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
tdumitrescu committed Aug 29, 2023
1 parent 600d6ab commit f36b1d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/mixpanel-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,5 @@ var create_client = function(token, config) {

// module exporting
module.exports = {
Client: function(token) {
console.warn("The function `Client(token)` is deprecated. It is now called `init(token)`.");
return create_client(token);
},
init: create_client
init: create_client,
};

0 comments on commit f36b1d6

Please sign in to comment.