What's Changed
New capabilities
-
filter.in_trashon search (#748)client.search()can now search trashed content. By default search only returns live content — trashed pages and data sources are excluded, same as before. Passingin_trash: trueswitches the search to return only trashed results (it does not mix trashed results into a normal search).- The filter accepts two shapes: the existing object filter extended with an optional
in_trashboolean ({ property: "object", value: "page", in_trash: true }), or a standalone trash filter ({ in_trash: true }) that doesn't constrain the object type. - If you need to find trashed pages or data sources: pass
filter: { in_trash: true }. Existing searches are unaffected — trash was and remains excluded by default.
-
Bump version to v5.23.2 (#749)
Links
- Full Changelog: v5.23.1...v5.23.2
- NPM Package: https://www.npmjs.com/package/@notionhq/client/v/5.23.2