The Archived properties defined for Block, Page, and Database objects have been deprecated and replaced with new InTrash properties. The API reference has not yet been edited to the new InTrash in some places (block update page), but all API responses seem to have been adapted to InTrash.Migration from Archived to InTrash properties has no functional differences other than the name change, so simply replacing them will cause all existing APIs to work properly.
I have also modified the test code for the areas applicable to the change.
Fixes #410
Type of change
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
How Has This Been Tested?
Unit testing was successfully completed and the various APIs (query, update, search) affected by the change were tested in Notion.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings
Comment
If you need to maintain backward compatibility and support both Archived and InTrash properties, please contact us again!
Description
The Archived properties defined for Block, Page, and Database objects have been deprecated and replaced with new InTrash properties. The API reference has not yet been edited to the new InTrash in some places (block update page), but all API responses seem to have been adapted to InTrash.Migration from Archived to InTrash properties has no functional differences other than the name change, so simply replacing them will cause all existing APIs to work properly. I have also modified the test code for the areas applicable to the change.
Fixes #410
Type of change
How Has This Been Tested?
Unit testing was successfully completed and the various APIs (query, update, search) affected by the change were tested in Notion.
Checklist:
Comment
If you need to maintain backward compatibility and support both Archived and InTrash properties, please contact us again!