You are reading a single comment by @Wilberforce and its replies. Click here to read the full conversation.
  • Is there a way of making this backward compatible with the existing library?

    So instead of:

    DS18B20.prototype.getTemp = function(callback,verify) {   if ((verify && !this.isPresent()) || !this.sCode) {
    

    Will this work with older code:

    console.log(sensor.getTemp());
    

    So if the callback is missing, it will wait and return?

    Which leads to this question.. There is no versioning in modules, so if the library code was updated there is no easy way to tell if an update has been made.

    Would a simple 1.2 type version number in the module header suffice?

About

Avatar for Wilberforce @Wilberforce started