Skip to content

fix: bump @zeplin/sdk to 1.40.0 to fix get_screen crash on typeless annotations#6

Merged
aykutbulca merged 1 commit into
mainfrom
upgrade-sdk-version
Jul 8, 2026
Merged

fix: bump @zeplin/sdk to 1.40.0 to fix get_screen crash on typeless annotations#6
aykutbulca merged 1 commit into
mainfrom
upgrade-sdk-version

Conversation

@aykutbulca

@aykutbulca aykutbulca commented Jul 8, 2026

Copy link
Copy Markdown
Member

Description

Annotations without note type or whose note type was deleted are returned by the API with an empty type: {}. The SDK's generated deserializer read color.name unconditionally and threw "Cannot read properties of undefined (reading 'name')" inside getScreenAnnotations, failing the whole get_screen call.

@zeplin/sdk@1.40.0 regenerates the note-type deserializer with guarded field access, so degenerate/partial annotation types deserialize safely.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Zeplin SDK dependency to address a get_screen crash when annotations have incomplete/degenerate type data during deserialization.

Changes:

  • Bump @zeplin/sdk dependency from ^1.25.0 to ^1.40.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
@aykutbulca aykutbulca merged commit fcedf5f into main Jul 8, 2026
1 check passed
@aykutbulca aykutbulca deleted the upgrade-sdk-version branch July 8, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants