Skip to content

release: 0.54.0#104

Open
stainless-app[bot] wants to merge 3 commits into
mainfrom
release-please--branches--main--changes--next
Open

release: 0.54.0#104
stainless-app[bot] wants to merge 3 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app Bot commented May 13, 2026

Automated Release PR

0.54.0 (2026-05-14)

Full Changelog: v0.53.0...v0.54.0

Features

  • client: optimize json encoder for internal types (e7f4365)

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
Touches request JSON serialization by changing the shim json.Marshal API and altering how json.Marshaler outputs are handled (optionally skipping compaction), which could affect output formatting/validation for edge cases.

Overview
Releases 0.54.0 (manifest, changelog, README, and internal/version.go) and pins GitHub Actions versions in CI.

Optimizes the shimmed internal/encoding/json encoder by adding Options to Marshal and introducing WithSkipCompaction to bypass the costly appendCompact pass for SDK-controlled json.Marshaler implementations; packages/param now uses this optimization for typical object/union encoding while preserving compaction for overrides/extras, with new tests covering nested/non-compacted and invalid-JSON scenarios.

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

Pin all GitHub Actions referenced in generated workflows (both
first-party `actions/*` and third-party) to immutable commit SHAs.
Updating pinned actions is now a deliberate codegen-side bump rather
than implicit on every workflow run.
@firetiger-agent
Copy link
Copy Markdown

Firetiger deploy monitoring skipped

This PR didn't match the auto-monitor filter configured on your GitHub connection:

Any PR that changes the kernel API. Monitor changes to API endpoints (packages/api/cmd/api/) and Temporal workflows (packages/api/lib/temporal) in the kernel repo

Reason: This is an automated release PR with no visible changes to API endpoints or Temporal workflows; it appears to be a version bump only.

To monitor this PR anyway, reply with @firetiger monitor this.

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 886dbc7 to 3e226c1 Compare May 14, 2026 03:19
@stainless-app stainless-app Bot changed the title release: 0.53.1 release: 0.54.0 May 14, 2026
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented May 14, 2026

🧪 Testing

To try out this version of the SDK:

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

Expires at: Sat, 13 Jun 2026 03:19:49 GMT
Updated at: Thu, 14 May 2026 03:19:49 GMT

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 3e226c1 to f544f7a Compare May 14, 2026 03:20
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 2 potential issues.

Fix All in Cursor

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

Reviewed by Cursor Bugbot for commit f544f7a. Configure here.

return func(eos *encOpts) {
eos.skipCompaction = true
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WithSkipCompaction ignores its boolean parameter

Medium Severity

WithSkipCompaction accepts a bool parameter b but never uses it — the closure unconditionally sets eos.skipCompaction = true. Calling WithSkipCompaction(false) would still enable skip compaction, which contradicts the function's API contract. The assignment needs to use b instead of the hard-coded true.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f544f7a. Configure here.

t.Fatalf("didn't expect error %v, expected %s", err, test.expected)
}
if string(b) != test.expected {
t.Logf("expected %s (%s), received %s", test.expected, reflect.TypeOf(test.value), string(b))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Test silently logs assertion failures instead of failing

Medium Severity

The "shimjson-marshal" sub-test uses t.Logf for its assertion check instead of t.Errorf or t.Fatalf. This means the test will silently pass even when the output doesn't match the expected value — it just logs the mismatch without failing. Every other assertion in this file uses t.Fatalf, so this appears to be an accidental use of t.Logf, leaving this test block unable to catch regressions.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f544f7a. Configure here.

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.

0 participants