This latest release of the Nylas Node SDK brings a few new features.
Release Notes
Added
- Add missing generic type in
RestfulModelCollection
for better type safety (#424) - Add 409 to error mapping (#430)
- Add
startTimezone
,endTimezone
andtimezone
fields toWhen
(#429) - Allow configurable timeout for API calls (#427)
Security
- Bump
minimist
sub-dependency from 1.2.0 to 1.2.6 (#425) - Bump
mkdirp
sub-dependency from 0.5.1 to 0.5.6 (#425)
Usage
Configuring request timeout
You can now add a request timeout as part of the initial Nylas SDK configuration, as in the example below.
const Nylas = require('nylas');
// Initialize an instance of the Nylas SDK using the client credentials and timeout
Nylas.config({
clientId: "CLIENT_ID",
clientSecret: "CLIENT_SECRET",
timeout: 60 // 60 second timeout
});
Contributors 🎉
- @johndiazyembo made their first contribution in #430
- @Fylax made their first contribution in #429
- @philiiiiiipp made a contribution in #424