Skip to content

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Jan 24, 2026

Automated Release PR

0.29.0 (2026-01-29)

Full Changelog: v0.28.0...v0.29.0

Features

  • add support for 1280x800@60 viewport (0e0add6)
  • client: add a convenient param.SetJSON helper (00e86b2)

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

Low Risk
Mostly a versioned release with doc/comment updates; the only behavioral change is an additive helper (param.SetJSON) that reuses existing override/metadata plumbing.

Overview
Bumps the SDK version to v0.29.0 (release manifest, internal/version.go, README install snippet) and updates release metadata (CHANGELOG.md, .stats.yml).

Adds param.SetJSON to allow sending request params from pre-built raw JSON (bypassing struct field serialization), and expands the documented list of supported browser viewport presets to include 1280x800@60 across browser/session and browser-pool types.

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

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 15540e4 to 594c98d Compare January 26, 2026 20:10
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.

// Note: The struct's existing fields will be ignored; only the provided JSON is serialized.
func SetJSON(rawJSON []byte, ptr anyParamStruct) {
ptr.setMetadata(json.RawMessage(rawJSON))
}
Copy link

Choose a reason for hiding this comment

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

Nil input causes inconsistent null detection behavior

Low Severity

When SetJSON receives a nil byte slice, it converts it to json.RawMessage(nil) (a typed nil) rather than treating it as a null value. This causes param.IsNull() to return false on the resulting struct, yet the struct serializes to "null". The inconsistency arises because setMetadata only recognizes untyped nil for setting metadataNull{}, while json.RawMessage(nil) is a typed nil that passes the override == nil check. This differs from Override[T](nil) which works correctly.

Fix in Cursor Fix in Web

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 594c98d to 2bfdc52 Compare January 29, 2026 18:53
@stainless-app stainless-app bot merged commit 192aa0a into main Jan 30, 2026
5 checks passed
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Jan 30, 2026

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

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