You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would break backwards compatibility for anyone currently using this library without a lot of code in place to check for the old multiple-parameter style functions being used; that's a lot of work for a style issue.
Full Disclosure: I wrote and maintain the following library; if you'd prefer single-parameter functions, you might want to check it out: https://www.npmjs.com/package/jira-connector
Its really difficult to pass parameters to the functions as the parameters are defined individually.
For example the method search has 6 to 7 parameters and I want to only pass the first and 6th parameter then I will have to pass
search(param1, undefined, undefined, undefined, undefined, undefined, param6);
These is really very inconvenient as one will have to pass unecessary parameters with value undefined.
Using objects here would be very handy as one could simple code its something like as follows
var params = {
param1: value,
param6: value
};
search(params);
The code is short and readable.
The text was updated successfully, but these errors were encountered: