Skip to content

[59706] Replace deprecated 'request' library (Rebased)#234

Merged
mrashed-dev merged 3 commits intomainfrom
deprecate-request-library
May 31, 2021
Merged

[59706] Replace deprecated 'request' library (Rebased)#234
mrashed-dev merged 3 commits intomainfrom
deprecate-request-library

Conversation

@mrashed-dev
Copy link
Copy Markdown
Contributor

Description

The requests library has been deprecated for a while now. We've since moved on to node-fetch as it's supported elsewhere in the SDK. Test suite has been updated as well to make sure that we don't fail because of this change.

Please see #233 for reviewer comments.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

The test cases were using the `requests` library that was removed in the previous commit. Now they are updated to use the new `node-fetch` library.
@mrashed-dev mrashed-dev merged commit ad2233d into main May 31, 2021
@mrashed-dev mrashed-dev linked an issue May 31, 2021 that may be closed by this pull request
mrashed-dev added a commit that referenced this pull request Jun 9, 2021
New `nylas` v5.5.0 release bringing in the following new features:
* Replaced deprecated `request` library with `node-fetch` (#234)
* Add custom error class `NylasApiError` to add more error details returned from the API (#236)
* Add support for read only fields (#237)
* Enabled Nylas API v2.2 support (#237)

The new release also fixes the following:
* Fix bug where saving a `draft` object with an undefined `filesIds` would throw an error (#230)
* Fix typings for classes that extend `RestfulModelCollection` or `RestfulModelInstance` (#238)
@TrySound
Copy link
Copy Markdown
Contributor

TrySound commented Jun 9, 2021

@mrashed-dev Looks like request wasn't removed from package.json

TrySound added a commit to TrySound/nylas-nodejs that referenced this pull request Jun 10, 2021
Request package was left in dependencies here nylas#234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated "request"

3 participants