Skip to content

Releases: smartcar/javascript-sdk

v2.3.0

18 Jul 00:14
cb80bd3
Compare
Choose a tag to compare

2.3.0 (2019-07-18)

Features

v2.2.2

10 Jul 17:19
270c880
Compare
Choose a tag to compare

2.2.2 (2019-07-10)

Bug Fixes

v2.2.1

03 Jul 20:06
adce861
Compare
Choose a tag to compare

2.2.1 (2019-07-03)

Bug Fixes

  • fixes IE11 support, Connect popup sizing, and method documentation (#44) (adce861)

v2.2.0

21 Jun 18:33
fe174d3
Compare
Choose a tag to compare

2.2.0 (2019-06-21)

Features

v2.1.1

01 Apr 16:24
98aecf9
Compare
Choose a tag to compare

2.1.1 (2019-04-01)

Bug Fixes

  • fixes the wording of vehicleInfo.make docs (#42) (98aecf9)

v2.1.0

29 Mar 17:45
f32e248
Compare
Choose a tag to compare

2.1.0 (2019-03-29)

Features

  • adds support for vehicleInfo make param (#41) (f32e248)

v2.0.0

02 Nov 07:50
Compare
Choose a tag to compare

2.0.0 (2018-11-02)

Bug Fixes

  • openDialog: move return false to event listener (769a69f)

Code Refactoring

  • rename generateLink to getAuthUrl (6ec19a6)
  • constructor: replace development with testMode (#36) (1836399)

Features

  • Add AccessDenied error class (a048e14)
  • ci: setup semantic-release for publishing to NPM (f18cd14)
  • ci: verify readme and package.json in CI (cf8eb00)
  • constructor: ensure that clientId and redirectUri are passed (fc4d3c2)
  • gulp: add command to template version into README (f4fc3ac)
  • redirect: modify callback.js to use postMessage (74b06a2)
  • sdk: handle messages posted by redirect.js (f0db1eb)

BREAKING CHANGES

  • constructor: The constructor no longer takes the development flag,
    but instead takes the testMode flag. For most purposes the switch from
    the development flag to the testMode flag will be a drop in
    replacement.

    The development flag (now depcreated) instructs the
    Smartcar authorization flow (https://smartcar.com/docs#authentication)
    to display the special 'Mock' brand. The new 'mode' flag on the other
    hand, puts the entire authorization flow into a test mode meaning every
    brand now behaves in a manner similar to the special 'Mock' brand.

    See https://smartcar.com/docs#testing for more information

  • redirect: callback.js now uses the postMessage Web API to
    interact with the parent window instead of using window.opener. This
    makes it much easier to use the SDK with single page applications where
    it is common for the application and the back-end to live on different
    origins. To upgrade all that needs to be done is to switch from
    callback.js to redirect.js.

    As a note this breaks compatibility for all browsers that do not support
    postMessage. See https://caniuse.com/#feat=x-doc-messaging for more
    details on supported browsers.

  • #generateLink is now #getAuthUrl, nothing changes
    otherwise