changelogs.md


bestbuyapis/bestbuy-sdk-js

Repository  -  API  -  Source

2.1.1

November 18, 2017
  • Added retry logic to ensure streams are more resilient.
    • Show more data when debugging streams.

2.1.0

October 5, 2017
  • Added new endpoint: realTimeAvailability to check the near real-time availability of a sku for a store or postal code.

2.0.1

September 21, 2017
  • Fix error when search query is blank.

2.0.0

September 20, 2017

BREAKING CHANGES

  • The reviews function has been removed as its no longer available in the API.
  • If errors are encountered, functions will now return an Error object instead of a string.
    • This may mean updating existing code to check err.message instead of err.
  • Native Promise is now used instead of bluebird
  • Node version 4 or higher is now required to use this package.
  • We've switched from request/request-promise to axios which is has built-in Promise usage. This means Error objects may look slightly different.
    • For Example. status is returned now instead of statusCode.

With the exception of the reviews function (and returning Errors), the API interface should be nearly identical as the existing test suite was used to ensure the same functionality. The code behind all other funtions has been refactored to make adding some new features a bit easier.

Features:

  • Added version() which returns the current API version and package version.
  • Added the ability pass a custom function via debug for debug information.
  • Added automatic rate limiting to avoid 429 Too Many Requests errors.

    • This can be manually adjusted via the requestsPerSecond option.
  • Added Node stream support as JSON and XML via these new endpoints:

    • availabilityAsStream
    • openBoxAsStream (xml streaming not supported)
    • categoriesAsStream
    • productsAsStream
    • storesAsStream
    • These endpoints will return all results and handle pagination/throttling automatically.
    • Check the README/examples for more details.

1.1.0

May 1, 2017

Features:

  • Added warrany endpoint support. (thanks @troymccabe!)
  • Removing references to the deprecated "similar" endpoint

1.0.1

February 27, 2017
  • Added addtional test coverage.

1.0.0

November 4, 2015

Breaking Changes:

  • Initialization method must be invoked even when setting environment variables
    var bby = require('bestbuy')();
  • Callbacks were changed to correctly implement 'error first' pattern.

Features:

  • Travis CI builds
  • Coveralls code coverage
  • Jasmine-Node integration / unit tests
  • Availability
  • OpenBox (the "Buying Options" part of our API)
  • Categories
  • Products
  • Recommendations
  • Reviews
  • Stores
  • Pass custom headers
  • Toggle request/response debugging
  • Invoke helper using promises