v0.7.0
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 thequery_all()
method introduced in v0.6.0 was renamed toquery()
. - The old
query_pages()
method was renamed to_query_pages()
, and thequery_all_pages()
method introduced in v0.6.0 was renamed toquery_pages()
.
Replaced retrieve comment method for notion.Workspace
- The old
retrieve_comments()
method was renamed to_retrieve_comments()
, and theretrieve_all_comments()
method introduced in v0.6.0 was renamed toretrieve_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 aJSONDecodeError
. Now it will show what the error actually was. - Added the
title_column
param fornotion.Database.create
. This is the same as thename_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 innotion.Page.create
. - Updated
retrieve_user
method fornotion.Workspace
to return a dictionary instead ofUserObject
. - Removed the optional dependency
orjson
. - Removed cached_properties.
- Added option/file objects to the
properties
module that were missing. - Added the
name
param to theExternalFile
object. This was missing and need when usingnotion.Page.set_files()
.