Published by almawang over 3 years ago
Adds support for url
in returned Page object per this change https://developers.notion.com/changelog/page-objects-now-return-url
HTTPResponseError
class is no longer exported, and HTTPResponseError.isHTTPResponseError(error)
is replaced by isHTTPResponseError(error)
.got
library.got
library is replaced with node-fetch
.fetch
function when creating a Client
instance. The client will use this fetch function for all HTTP requests.isNotionClientError
type guard, both error.name
and error.code
are enumerated unions that can be used to further refine the type of error
.error.code
is guaranteed to be in your library's APIErrorCode
or ClientErrorCode
enum types, even if the API returns a new, unknown code
in a response. In this case, error.code
will be ClientErrorCode.ResponseError
.Published by aoberoi over 3 years ago
Releasing with initial feature set. Stay tuned - we'd love to evolve this library to meet many more needs.