Skip to content

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • bump sdk versions

Type of Change

  • Bug fix

Testing

N/A

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Dec 1, 2025 3:47am

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 1, 2025

Greptile Overview

Greptile Summary

This PR bumps both the Python and TypeScript SDK versions from 0.1.0 to 0.1.1, and includes a defensive fix in the TypeScript SDK to prevent runtime errors when the File global is not available.

Key Changes:

  • Version incremented consistently across all SDK package files
  • TypeScript SDK now checks typeof File !== 'undefined' before using instanceof File in convertFilesToBase64 method (line 132)
  • This fix prevents errors in Node.js environments where the File constructor is not available by default (prior to Node.js 20 or without polyfills)

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The changes are minimal and focused: version bumps follow semantic versioning (patch increment), and the TypeScript fix is a defensive programming improvement that prevents potential runtime errors without changing existing behavior
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
packages/python-sdk/pyproject.toml 5/5 Version bumped from 0.1.0 to 0.1.1 - straightforward version increment with no other changes
packages/python-sdk/setup.py 5/5 Version bumped from 0.1.0 to 0.1.1 - consistent with pyproject.toml update
packages/ts-sdk/package.json 5/5 Version bumped from 0.1.0 to 0.1.1 - straightforward version increment with no other changes
packages/ts-sdk/src/index.ts 5/5 Added defensive check for File global availability before instanceof check - prevents errors in environments without File constructor (e.g., Node.js without polyfills)

Sequence Diagram

sequenceDiagram
    participant User
    participant SDK as SimStudioClient
    participant Method as convertFilesToBase64
    participant FileCheck as File Global Check
    
    User->>SDK: executeWorkflow(workflowId, {input})
    SDK->>Method: convertFilesToBase64(input)
    Method->>FileCheck: typeof File !== 'undefined'
    alt File global exists
        FileCheck-->>Method: true
        Method->>Method: value instanceof File
        alt Is File instance
            Method->>Method: Convert to base64
            Method-->>SDK: {type, data, name, mime}
        else Not File
            Method->>Method: Process recursively
            Method-->>SDK: Processed value
        end
    else File global missing (old Node.js)
        FileCheck-->>Method: false
        Method->>Method: Skip File check, continue processing
        Method-->>SDK: Original value
    end
    SDK->>User: Return result
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

4 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@waleedlatif1 waleedlatif1 merged commit 7b27921 into staging Dec 1, 2025
9 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/sdk branch December 1, 2025 03:48
waleedlatif1 added a commit that referenced this pull request Dec 1, 2025
… sendgrid, linkedin, more tools (#2148)

* feat(tools): added smtp, sendgrid, mailgun, linkedin, fixed permissions in context menu (#2133)

* feat(tools): added twilio sendgrid integration

* feat(tools): added smtp, sendgrid, mailgun, fixed permissions in context menu

* added top level mocks for sporadically failing tests

* incr type safety

* fix(team-plans): track departed member usage so value not lost (#2118)

* fix(team-plans): track departed member usage so value not lost

* reset usage to 0 when they leave team

* prep merge with stagig

* regen migrations

* fix org invite + ws selection'

---------

Co-authored-by: Waleed <walif6@gmail.com>

* feat(i18n): update translations (#2134)

Co-authored-by: waleedlatif1 <waleedlatif1@users.noreply.github.com>

* feat(creators): add verification for creators (#2135)

* feat(tools): added apify block/tools  (#2136)

* feat(tools): added apify

* cleanup

* feat(i18n): update translations (#2137)

Co-authored-by: waleedlatif1 <waleedlatif1@users.noreply.github.com>

* feat(env): added more optional env var examples (#2138)

* feat(statuspage): added statuspage, updated list of tools in footer, renamed routes (#2139)

* feat(statuspage): added statuspage, updated list of tools in footer, renamed routes

* ack PR comments

* feat(tools): add generic search tool (#2140)

* feat(i18n): update translations (#2141)

* fix(sdks): bump sdk versions (#2142)

* fix(webhooks): count test webhooks towards usage limit (#2143)

* fix(bill): add requestId to webhook processing (#2144)

* improvement(subflow): remove all associated edges when moving a block into a subflow (#2145)

* improvement(subflow): remove all associated edges when moving a block into a subflow

* ack PR comments

* fix(polling): mark webhook failed on webhook trigger errors (#2146)

* fix(deps): declare core transient deps explicitly (#2147)

* fix(deps): declare core transient deps explicitly

* ack PR comments

---------

Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com>
Co-authored-by: waleedlatif1 <waleedlatif1@users.noreply.github.com>
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