Releases: dmcquay/node-apac
Fix throttle machanism
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
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
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
Added support for automatic throttling. See https://github.com/dmcquay/node-apac#throttling--request-limits.
v1.1.0
- 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
0.0.1 Add reference to quick start article.