smartcar / node-sdk

Smartcar Node.js SDK
MIT License
49 stars 14 forks source link

BREAKING CHANGE: Update and streamline SDK #133

Closed s-ashwinkumar closed 3 years ago

s-ashwinkumar commented 3 years ago

BREAKING CHANGE: Update and streamline SDK This is a major release consisting of multiple usability improvements and additional features.

We have aimed to streamline the SDK with the Smartcar API interfaces in a way that the objects returned are closer to the API interface documented in API Docs. For ex. vehicle.odometer() will now return an object that looks like the response in the documentation and additionally the body will contain response headers defined in the documentation as a part of a meta attribute.

The methods to be used are broadly divided into three namespaces :

Features

Improvements

Following are the improvements made to the interfaces by namespace. For in-depth details of the interface please refer to the SDK documentation.

AuthClient

Smartcar

Vehicle

SmartcarError

All the errors have been converged to a single SmartcarError class. This class can now support the error fields returned by v2.0 and v1.0. For detailed breakdown of both the error types, refer to the to the API Reference Errors section.

codecov[bot] commented 3 years ago

Codecov Report

Merging #133 (200ba42) into master (78bd052) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #133   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          220       220           
=========================================
  Hits           220       220           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 78bd052...200ba42. Read the comment docs.