What’s changed
New capabilities
- Filter properties on page writes (#761)
client.pages.create()andclient.pages.update()now accept the samefilter_propertiesparameter asclient.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
errortype inGetAsyncTaskResponsenow factors the sharedobject,message, andadditional_datafields into a single object combined with a correlatedstatus/codeunion, instead of ~16 repeated variants. Purely representational — every previously valid(status, code)pair remains valid.
- The failed-task
Links
- Full Changelog: v5.24.0...v5.25.0
- NPM Package: https://www.npmjs.com/package/@notionhq/client/v/5.25.0