npm @notionhq/client 5.23.2
v5.23.2

4 hours ago

What's Changed

New capabilities

  • filter.in_trash on 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. Passing in_trash: true switches 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_trash boolean ({ 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

Don't miss a new client release

NewReleases is sending notifications on new releases.