npm @notionhq/client 5.25.0
v5.25.0

5 hours ago

What’s changed

New capabilities

  • Filter properties on page writes (#761)
    • client.pages.create() and client.pages.update() now accept the same filter_properties parameter as client.pages.retrieve(), letting you bound which properties are returned in the write response. Pass property IDs (or names) as an array; the response shape is unchanged and the parameter is opt-in per request.

API response types

  • Compact async task error union (#759)
    • The failed-task error type in GetAsyncTaskResponse now factors the shared object, message, and additional_data fields into a single object combined with a correlated status/code union, instead of ~16 repeated variants. Purely representational — every previously valid (status, code) pair remains valid.

Links

Don't miss a new client release

NewReleases is sending notifications on new releases.