- Typing fixes to nylas.drafts and other RestfulModelCollections
- Drop async dependency for smaller package fingerprint. Async is replaced with promises.
- Remove circular dependency in nylas-connection.ts
- Update readme with syntax highlighting
- Fix bug where setting event.start and event.end did not set event.when if event.when didn't exist
- Refactor parameter ordering in
find()anddraft.send()methods [backwards compatible] - Add JobStatus model and collection
- Implement support for GET /contacts/groups
- Update lodash import
- Support GET /resources
- Support POST, PUT and DELETE for calendars, and add location, timezone and isPrimary attributes.
- Add
objectattribute toevent.whenobject
- Fix bug which was overwriting properties on message objects.
- Support recurring events.
- Implement list & update application details endpoints.
- Support free-busy endpoint on Calendars collection.
- [BREAKING] remove
appIdandappSecret. Please useclientIdandclientSecret. - [BREAKING] remove
Thread.folder. Please useThread.folders. - Migrate to Typescript
- Update
exchangeCodeForTokento reject when noaccess_tokenis returned. - Fix unhandled error when response is undefined.
- Fix get contact picture request to correctly use callback, if provided.
- Add iCalUID attribute to Event model
- Update SUPPORTED_API_VERSION to 2.1
- Allow file streaming uploads
- Update Thread.folder to use Folder model, and rename to Thread.folders
- Remove error handling in /connect models
- Update Thread participants to use EmailParticipant
- Bump handlebars version
- Add support for
/connect/tokenendpoint - Fix events so that they support all time subojects
- Update formatting for DeprecationWarnings
- Update package-lock.json
- Add support for
/connect/authorizeendpoint - Fix draft deletion bug
- Improvements to example/webhooks
- Update app id and app secret to client id and client secret
- Add support for
/token-infoendpoint - Add webhooks CRUD functionality
- Add contentDisposition to File
- Add emailAddress to ManagementAccount
- Add provider to ManagementAccount
- Update dependancies
- Add
groupsandsourceto contact attributes - Fix contact birthday type from date to string
- Fix
emailAddressesattribute in Contact model
- Add billingState to Account model
- Fix error to string reassignment bug
- Update webhooks example code
- Enable link tracking
- Add support for
/ip_addressesendpoint
- Add support for
revoke-allendpoint
- Add X-Nylas-Client-Id header for HTTP requests
- Drop unnecessary dependencies: express-session, clone
- Replace Underscore with lodash
- Replace Bluebird promises with native promises
- Upgrade all other dependencies and devDependencies to latest versions
- Reduce package size by only including
libdirectory
- 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.
Note: version 4.2.1 was not released.
- 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.