Skip to content

feat: wasm, http, std, async module changes for workflows#942

Merged
thesayyn merged 4 commits intomainfrom
axel-f-modules
Feb 27, 2026
Merged

feat: wasm, http, std, async module changes for workflows#942
thesayyn merged 4 commits intomainfrom
axel-f-modules

Conversation

@thesayyn
Copy link
Member

Changes are visible to end-users: yes

  • Searched for relevant documentation and updated as needed: yes
  • Breaking change (forces users to change their own code or config): yes
  • Suggested release notes appear below: yes

Changes

  • http now supports get, put, patch, and delete methods (previously only get and post existed)
  • All http methods accept an optional unix_socket parameter to route requests through a Unix domain
    socket
  • http.post(), http.put(), and http.patch() accept a Readable or file as the request body, enabling
    streaming uploads
  • fs.open(path) opens a file and returns a Readable stream
  • Readable now has a File variant, participating in the same read/iterate interface as stdin and child
    process streams
  • Future gains map_ok, map_err, and map_ok_or_else methods for chaining Result-style transforms before
    .block()

New APIs

  • ctx.http().put(url=, headers=, data=, unix_socket=)
  • ctx.http().patch(url=, headers=, data=, unix_socket=)
  • ctx.http().delete(url=, headers=, unix_socket=)
  • ctx.fs().open(path) → Readable
  • future.map_ok(callable) → Future
  • future.map_err(callable) → Future
  • future.map_ok_or_else(map_ok=, map_err=) → Future

Breaking Changes

  • http.get() and http.post() parameters are now keyword-only (url=, headers=, data=)
  • http.post() data is now optional (previously required as a positional string argument)

Test plan

  • Covered by existing test cases

@thesayyn
Copy link
Member Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2be86935fa

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@thesayyn thesayyn merged commit 2d5232c into main Feb 27, 2026
2 checks passed
@thesayyn thesayyn deleted the axel-f-modules branch February 27, 2026 01:09
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.

1 participant