Skip to content

release: 0.46.0#91

Merged
stainless-app[bot] merged 4 commits intomainfrom
release-please--branches--main--changes--next
Apr 6, 2026
Merged

release: 0.46.0#91
stainless-app[bot] merged 4 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app bot commented Apr 1, 2026

Automated Release PR

0.46.0 (2026-04-06)

Full Changelog: v0.45.0...v0.46.0

Features

  • Add optional url parameter to proxy check endpoint (084975a)

Bug Fixes

  • fix issue with unmarshaling in some cases (6f721ac)

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
Medium risk because it changes the public Proxies.Check method signature to require a request body and adjusts JSON unmarshaling for several param wrappers, which could break compilation or subtly change request/response decoding behavior.

Overview
Bumps the SDK release to v0.46.0 (manifest, internal/version.go, README install snippet, changelog, and OpenAPI metadata).

Updates the POST /proxies/{id}/check client API to accept a new ProxyCheckParams body with an optional url to test reachability, and updates docs/tests accordingly.

Fixes param wrapper unmarshaling by switching several *Params types (auth connections, credentials, credential providers) from encoding/json.Unmarshal into nested fields to apijson.UnmarshalRoot, addressing edge-case decoding failures.

Reviewed by Cursor Bugbot for commit e5584c3. Bugbot is set up for automated code reviews on this repo. Configure here.

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app bot commented Apr 1, 2026

🧪 Testing

To try out this version of the SDK:

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

Expires at: Wed, 06 May 2026 18:48:59 GMT
Updated at: Mon, 06 Apr 2026 18:48:59 GMT

Copy link
Copy Markdown

@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.

Fix All in Cursor

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

}
func (r *AuthConnectionNewParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.ManagedAuthCreateRequest)
return apijson.UnmarshalRoot(data, r)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Untagged fields silently ignored during JSON unmarshaling

High Severity

The UnmarshalJSON methods were changed from json.Unmarshal(data, &r.InnerField) to apijson.UnmarshalRoot(data, r), but the inner fields (e.g. ManagedAuthCreateRequest, CreateCredentialRequest, SubmitFieldsRequest, etc.) have no JSON struct tags. The apijson struct decoder explicitly skips fields without JSON tags, so these primary data fields will never be populated during unmarshaling. The MarshalJSON still serializes the inner field's contents directly, making marshal/unmarshal asymmetric — data serialized by MarshalJSON cannot be recovered by UnmarshalJSON.

Additional Locations (2)
Fix in Cursor Fix in Web

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 61be6d5 to 540837a Compare April 1, 2026 23:18
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 540837a to b83cf3c Compare April 6, 2026 18:48
@stainless-app stainless-app bot changed the title release: 0.45.1 release: 0.46.0 Apr 6, 2026
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from b83cf3c to e5584c3 Compare April 6, 2026 18:49
Copy link
Copy Markdown
Contributor

@masnwilliams masnwilliams left a comment

Choose a reason for hiding this comment

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

lgtm

@stainless-app stainless-app bot merged commit 91f2aa6 into main Apr 6, 2026
7 checks passed
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app bot commented Apr 6, 2026

🤖 Release is at https://github.com/kernel/kernel-go-sdk/releases/tag/v0.46.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