Releases: makenotion/notion-sdk-js
Releases · makenotion/notion-sdk-js
v0.2.1
Changes
Adds support for url in returned Page object per this change https://developers.notion.com/changelog/page-objects-now-return-url
v0.2.0
Breaking changes
- The 
HTTPResponseErrorclass is no longer exported, andHTTPResponseError.isHTTPResponseError(error)is replaced byisHTTPResponseError(error). - Most error class constructor signatures have changed. Please see the types for more details. Error class constructors no longer reference the 
gotlibrary. 
New features
- The 
gotlibrary is replaced withnode-fetch. - You may now pass a 
fetchfunction when creating aClientinstance. The client will use this fetch function for all HTTP requests. - Error types have been reworked for improved type safety. No more stringly-typed errors! Inside a 
isNotionClientErrortype guard, botherror.nameanderror.codeare enumerated unions that can be used to further refine the type oferror. error.codeis guaranteed to be in your library'sAPIErrorCodeorClientErrorCodeenum types, even if the API returns a new, unknowncodein a response. In this case,error.codewill beClientErrorCode.ResponseError.- Types have been updated according to the API changes.
 
Public release - v0.1.3
Releasing with initial feature set. Stay tuned - we'd love to evolve this library to meet many more needs.