npm @notionhq/client 5.25.1
v5.25.1

latest release: 5.25.2
3 hours ago

What’s changed

Fixes

  • isFullDataSource and isFullDatabase no longer accept partial responses (#764)
    • Both guards only checked response.object, so a partial data source or database object passed the guard and was incorrectly narrowed to the full type. They now also require the title field, which is present on full objects and absent from the partial shapes — the same structural check the other guards already do (isFullPage checks url, isFullBlock checks type). isFullPageOrDataSource picks up the fix through isFullDataSource.

Links

Don't miss a new client release

NewReleases is sending notifications on new releases.