Skip to content

v0.7.0

Compare
Choose a tag to compare
@ayvi-0001 ayvi-0001 released this 17 Mar 06:16
· 1 commit to main since this release

Full Changelog: v0.6.0...v0.7.0
https://pypi.org/project/notion-api/0.7.0/

Breaking Changes:

Replaced query methods for notion.Database.

  • The old query() method was renamed to _query(), and the query_all() method introduced in v0.6.0 was renamed to query().
  • The old query_pages() method was renamed to _query_pages(), and the query_all_pages() method introduced in v0.6.0 was renamed to query_pages().

Replaced retrieve comment method for notion.Workspace

  • The old retrieve_comments() method was renamed to _retrieve_comments(), and the retrieve_all_comments() method introduced in v0.6.0 was renamed to retrieve_comments().

Changes:

  • Added additional error handling when a response doesn't return a valid json.
    There has been an issue with the Notion API for several months where it returns an html response for a Gateway time-out error.
    This wasn't handled in the http requests and all it did was return a JSONDecodeError. Now it will show what the error actually was.
  • Added the title_column param for notion.Database.create. This is the same as the name_column param, which will remain until it's removed in a future update. The default value was also changed from "Name" to "title".
  • Added a default empty string for the page_title param in notion.Page.create.
  • Updated retrieve_user method for notion.Workspace to return a dictionary instead of UserObject.
  • Removed the optional dependency orjson.
  • Removed cached_properties.
  • Added option/file objects to the properties module that were missing.
  • Added the name param to the ExternalFile object. This was missing and need when using notion.Page.set_files().