fix(js-sdk): return from iterateEvents on end instead of break
Summary
- Replace
breakwithreturnin the"end"case ofCommandHandle.iterateEvents()so the async generator exits immediately once the command result is captured, instead of continuing to wait for the transport-level gRPC stream to close.
Test plan
- [x]
pnpm run typecheckpasses - [x]
pnpm run lintpasses - [x]
pnpm run formatpasses (no changes)
⚠️ No Changeset found
Latest commit: 6815c8ff1b484df383a8bc9fec47b5f55a752af5
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Package Artifacts
Built from 128f096. Download artifacts from this workflow run.
JS SDK ([email protected]):
npm install ./e2b-2.13.1-fix-iterate-events-return.0.tgz
CLI (@e2b/[email protected]):
npm install ./e2b-cli-2.7.2-fix-iterate-events-return.0.tgz
Python SDK (e2b==2.14.0+fix-iterate-events-return):
pip install ./e2b-2.14.0+fix.iterate.events.return-py3-none-any.whl
I would need a test case here to be able to compare current/breaking vs proposed version