Skip to content

v5.25.1

Choose a tag to compare

@ksinder ksinder released this 13 Aug 16:28
· 2 commits to main since this release
4b01157

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