Skip to content

v1.1.0 is a breaking change. #38

@CodeMan99

Description

@CodeMan99

Anyone upgrading from v1.0.0 to v1.1.0 needs to be aware that it is a breaking API change.

In v1.0.0 you can get an instance by simply requiring the module.

var wotblitz = require('wotblitz');

In v1.1.0 you need to create an instance with the exported function.

var create = require('wotblitz');
var wotblitz = create('application_id', create.REGION_NA, create.LANGUAGES.English);

All arguments to the create function are optional. If you don't pass an application id, it is pulled from process.env.APPLICATION_ID as it was before. The default region is REGION_NA. The default language is English.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions