Skip to content

Releases: dmcquay/node-apac

Fix throttle machanism

23 Jun 20:31
Compare
Choose a tag to compare

When throttling was active, there was a bug causing requests to not execute and return the callback functions instead of the resulting values. This release fixes that problem and makes the throttle mechanism consistent return a Promise as well.

v2.0.0

22 Apr 05:01
Compare
Choose a tag to compare

Gets rid of annoying extra arrays in results.

More specifically, xml2js (which we use to convert XML response into a JS object) has an option called explicitArray which defaults to true and causes just about everything to get wrapped in an array, making it a bit annoying to navigate results. We are now overriding this default and setting it to false to get rid of those annoying arrays everywhere.

This is a BREAKING CHANGE! If you want to upgrade, but don't want to upgrade all your code, you can set the parsing options back to the old way like this:

var opHelper = new OperationHelper({
    awsId:     '[YOUR AWS ID HERE]',
    awsSecret: '[YOUR AWS SECRET HERE]',
    assocId:   '[YOUR ASSOCIATE TAG HERE]',
    xml2jsOptions: { explicitArray: true }
});

v1.5.0

22 Apr 04:58
Compare
Choose a tag to compare

Allow endpoint to be auto-configured by providing desired locale.

Example:

var opHelper = new OperationHelper({
    awsId:     '[YOUR AWS ID HERE]',
    awsSecret: '[YOUR AWS SECRET HERE]',
    assocId:   '[YOUR ASSOCIATE TAG HERE]',
    locale: 'IT'
});

This will automatically set your endpoint to the correct endpoint for Italy (webservices.amazon.it). You can also provide the endpoint directly as before:

var opHelper = new OperationHelper({
    awsId:     '[YOUR AWS ID HERE]',
    awsSecret: '[YOUR AWS SECRET HERE]',
    assocId:   '[YOUR ASSOCIATE TAG HERE]',
    endPoint: 'webservices.amazon.it'
});

v1.2.0

22 Apr 04:53
Compare
Choose a tag to compare

Added support for automatic throttling. See https://github.com/dmcquay/node-apac#throttling--request-limits.

v1.1.0

22 Apr 04:15
Compare
Choose a tag to compare
  • Errors are now returned as the first parameter of the callback function, instead of being processed by a separate OnError function. Note: This breaks backwards compatibility with previous versions where errors are processed by a separate function. If you still need the old OnError function, you'll need to grab an old version from git.
  • OperationHelper.execute now supports promises
  • Internal improvements such as more robust testing

Initial release

22 Apr 04:17
Compare
Choose a tag to compare
0.0.1

Add reference to quick start article.