Skip to content

release: 0.42.1#85

Merged
stainless-app[bot] merged 5 commits intomainfrom
release-please--branches--main--changes--next
Mar 5, 2026
Merged

release: 0.42.1#85
stainless-app[bot] merged 5 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Mar 3, 2026

Automated Release PR

0.42.1 (2026-03-05)

Full Changelog: v0.42.0...v0.42.1

Features

  • [kernel-1028] add api clipboard support (12e68a1)
  • add force flag to viewport resize to bypass live view/recording check (d387238)
  • expose smooth mouse movement via public API (0e0f2ac)

Bug Fixes

  • use indices:dots arrayFmt in MarshalRoot for correct multipart array encoding (11a7720)

Chores

  • internal: codegen related update (3c706a4)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions


Note

Medium Risk
Introduces new/changed SDK request/response types for browser control (BrowserUpdateParamsViewport, smooth mouse params, clipboard endpoints), which may affect callers at compile time and change runtime behavior when resizing viewports. CI also gains an artifact upload step using OIDC, which could impact build reliability if the upload script or dependencies fail.

Overview
Bumps the SDK to v0.42.1 and updates release metadata/docs (CHANGELOG.md, README.md, internal/version.go, .stats.yml, api.md).

Adds browser-computer clipboard support via new ReadClipboard/WriteClipboard methods and request/response types, and extends mouse movement params with optional smooth/duration_ms controls.

Updates Browsers.Update viewport handling to accept a new viewport wrapper (BrowserUpdateParamsViewport) that includes a force flag to allow resizing even during live view/recording.

CI gains a build job that packages Go sources and uploads the artifact to Stainless storage using a GitHub OIDC token (scripts/utils/upload-artifact.sh).

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

@stainless-app
Copy link
Contributor Author

stainless-app bot commented Mar 3, 2026

🧪 Testing

To try out this version of the SDK:

Download and unzip: 'https://pkg.stainless.com/s/kernel-go/d387238e5da1f24f8b54a4be84d484da90fe1226/source.zip'. Run 'go mod edit -replace github.com/kernel/kernel-go-sdk=/path/to/unzipped_directory'.

Expires at: Sat, 04 Apr 2026 15:43:28 GMT
Updated at: Thu, 05 Mar 2026 15:43:28 GMT

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from ba8aa26 to e9fe820 Compare March 3, 2026 18:32
@stainless-app stainless-app bot changed the title release: 0.42.1 release: 0.43.0 Mar 3, 2026
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from e9fe820 to eca8532 Compare March 3, 2026 18:33
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from eca8532 to c9ab673 Compare March 3, 2026 22:02
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from c9ab673 to 9ff3532 Compare March 3, 2026 22:37
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 9ff3532 to 6094084 Compare March 5, 2026 15:43
@hiroTamada hiroTamada changed the title release: 0.43.0 release: 0.42.1 Mar 5, 2026
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Mar 5, 2026

Release version edited manually

The Pull Request version has been manually set to 0.42.1 and will be used for the release.

If you instead want to use the version number 0.43.0 generated from conventional commits, just remove the label autorelease: custom version from this Pull Request.

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 6094084 to a7b55bc Compare March 5, 2026 15:47
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

MarshalJSON bool `json:"-"` // Prevent inheriting [json.Marshaler] from the embedded field
}
return param.MarshalObject(r, shadow{&r, false})
}
Copy link

Choose a reason for hiding this comment

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

Missing UnmarshalJSON silently drops Force field

Medium Severity

BrowserUpdateParamsViewport lacks its own UnmarshalJSON method, unlike every other param type in the codebase. Because it embeds shared.BrowserViewportParam which has an UnmarshalJSON, Go promotes that method. The promoted method's receiver is *BrowserViewportParam, so apijson.UnmarshalRoot only sees Height, Width, RefreshRate — the Force field is silently dropped during any JSON deserialization (e.g., when BrowserUpdateParams.UnmarshalJSON deserializes nested viewport data, or when using param.Override).

Fix in Cursor Fix in Web

@stainless-app stainless-app bot merged commit 3f5454b into main Mar 5, 2026
7 checks passed
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Mar 5, 2026

🤖 Release is at https://github.com/kernel/kernel-go-sdk/releases/tag/v0.42.1 🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant