Skip to content

fix(function): access to response#707

Merged
Kikobeats merged 1 commit intomasterfrom
function
Mar 17, 2026
Merged

fix(function): access to response#707
Kikobeats merged 1 commit intomasterfrom
function

Conversation

@Kikobeats
Copy link
Member

@Kikobeats Kikobeats commented Mar 17, 2026

Note

Medium Risk
Touches the isolated-function template and invocation options to plumb a new response object through, which could subtly affect user function argument shaping and runtime behavior.

Overview
Adds support for accessing the initial navigation HTTPResponse from browserless functions via a new response argument.

goto now returns { device, response }; the response is serialized in index.js and passed into the isolated runtime as _response, and template.js reconstructs it into a Puppeteer-like API (callable methods) while ensuring _response isn’t leaked into user opts.

Extends the test suite to cover response access with and without page, correct serialization/reconstruction behavior, and the undefined case when no response is returned.

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

@Kikobeats Kikobeats merged commit 5c853b7 into master Mar 17, 2026
22 checks passed
@Kikobeats Kikobeats deleted the function branch March 17, 2026 10:50
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