# [2021-06-10] Nylas Node.js SDK v5.5.0

Source: https://developer.nylas.com/docs/new/v2-changelogs/2021-06-10-node-sdk-v5-5-0/

## New

- We added a custom error class `NylasApiError` to add more error details returned from the API.
- We added support for read-only fields.
- We enabled Nylas API version 2.2 support.

## Bug Fixes

- We fixed a bug where saving a `draft` object with an undefined `filesIds` would throw an error.
- We replaced the deprecated `request` library with `node-fetch`.
- We fixed typings for classes that extend `RestfulModelCollection` or `RestfulModelInstance`.