- 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.0
and 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 defaultoffset
with user’s - BREAKING CHANGE: Changed models for
Contact
,Draft
,Event
,File
,Folder
,Message
, andThread
to accurately reflect the attribute that the API returns - Return headers correctly for
expanded
view forMessage
objects - BREAKING CHANGE: Return
Message
object instead ofDraft
object 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
draft
attribute onMessage
andDraft
objects, since the object type is already distinguished - BREAKING CHANGE: Removed support for
Tag
objects, which has been deprecated, and instance methods onThread
forTag
changes - BREAKING CHANGE: Removed support for
generateCursor()
, which has been deprecated - BREAKING CHANGE: Removed support for the
trial
option 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
DeltaStream
retry 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=expanded
option. 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:
DeltaStream
now also supportsview=expanded
,exclude_types
, andinclude_types
, as well as any arbitrary query string param.Delta::startStream
now takes an object as a second argument for query string params, instead of anexclude_types
array.