Skip to content

Conversation

jakubno
Copy link
Member

@jakubno jakubno commented Oct 3, 2025

Note

Upgrade openapi-fetch to v0.14 and openapi-typescript to v7.9 with required API/middleware changes, adjust multipart upload, and extend Bun test with file I/O.

  • JS SDK:
    • Dependencies: Bump openapi-fetch to ^0.14.1 and openapi-typescript to ^7.9.1.
    • API Client (src/envd/api.ts):
      • Update handleEnvdApiError to accept { error, response } per new client response shape; remove FetchResponse generic import.
    • Logging (src/logs.ts):
      • Update Middleware usage to new signatures: onRequest({ request }) and onResponse({ response }) and return request/response.
    • Filesystem (src/sandbox/filesystem/index.ts):
      • Adjust POST /files multipart upload: use bodySerializer() with FormData; remove manual Content-Type headers; minor comment typo fix.
    • Tests:
      • Extend Bun runtime test to write/read a file via sbx.files.
    • Release: Add patch changeset.

Written by Cursor Bugbot for commit 03afbac. This will update automatically on new commits. Configure here.

Copy link

changeset-bot bot commented Oct 3, 2025

🦋 Changeset detected

Latest commit: 03afbac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
e2b Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jakubno jakubno marked this pull request as ready for review October 14, 2025 11:01
@jakubno jakubno merged commit bec5b14 into main Oct 14, 2025
8 checks passed
@jakubno jakubno deleted the update-openapi-fetch branch October 14, 2025 12:31
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