- Add status code to error to allow it to bubble up from API request errors
- Improvements to example/sample-app
- Move version mismatch warning to only print if both API and SDK versions are present. This will decrease unhelpful spamming.
- Add linkedAt to the account model
- Parse response into JSON if it is a string.
- Bump supported Nylas API version to 2.0
- Add support for new contact fields and functionality
- Added variable for supported version of Nylas API - set to
1.0and will be updated when the SDK supports later versions of the API - Added warnings when the version of the API that the SDK supports differs from the version of the API that the application is using
- Converted Coffeescript to ES6
- Added ESLint and Prettier for linting
- Updated test framework from Jasmine 1.0 to Jest
- Changed Travis to run Node 8 and lint, build, and test code in CI
- Updated docs and example code
- Added
search()for messages and threads - Added
upgrade()anddowngrade()for account management - Added
getRaw()for retrieving raw messages - BREAKING CHANGE: Changed API for sending raw messages to use
draft.send()instead ofMessage.sendRaw() - Changed
list()to override defaultoffsetwith user’s - BREAKING CHANGE: Changed models for
Contact,Draft,Event,File,Folder,Message, andThreadto accurately reflect the attribute that the API returns - Return headers correctly for
expandedview forMessageobjects - BREAKING CHANGE: Return
Messageobject instead ofDraftobject after send - Return sending failures for partial sends
- Return server errors for SMTP exceptions on send
- BREAKING CHANGE: Privatized
_range(),_getModel(), and_getModelCollection()(not documented) - BREAKING CHANGE: Removed
draftattribute onMessageandDraftobjects, since the object type is already distinguished - BREAKING CHANGE: Removed support for
Tagobjects, which has been deprecated, and instance methods onThreadforTagchanges - BREAKING CHANGE: Removed support for
generateCursor(), which has been deprecated - BREAKING CHANGE: Removed support for the
trialoption for auth, which has been deprecated
- No longer throw an error after successful calls to
Message.sendRaw() - Add status to event model
- Don't require secret for
urlForAuthentication(), allowing client-side usage without leaking or faking the app secret - Catch rejected promises in some missing cases
- Emit
DeltaStreamretry status as an event - Don't
console.log(), ever (callers should instrument desired logging) - Fix missing fields and typos in message and thread models
- Add support for
view=expandedoption. Now all methods on that hit the API can take querystring params as objects. Additionally, you can pass in{expanded: true}for convenience. - BREAKING CHANGE:
DeltaStreamnow also supportsview=expanded,exclude_types, andinclude_types, as well as any arbitrary query string param.Delta::startStreamnow takes an object as a second argument for query string params, instead of anexclude_typesarray.