Skip to content

release: 0.32.0#76

Merged
masnwilliams merged 3 commits intomainfrom
release-please--branches--main--changes--next--components--sdk
Feb 7, 2026
Merged

release: 0.32.0#76
masnwilliams merged 3 commits intomainfrom
release-please--branches--main--changes--next--components--sdk

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Feb 7, 2026

Automated Release PR

0.32.0 (2026-02-07)

Full Changelog: v0.31.2...v0.32.0

Features

  • auth: add reauth circuit breaker logic (917dc3d)

Chores

  • switch npm publish to OIDC auth in stainless config (403d222)

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
Changes the release/publish pipeline and authentication method for npm publishing, which can break releases if misconfigured. SDK type change is additive and low risk.

Overview
Bumps the SDK release to 0.32.0 (manifest, package.json, src/version.ts, and changelog) and refreshes generated stats/spec metadata.

Publishing is switched to support npm OIDC: GitHub Actions now requests id-token permission, the workflows stop injecting NPM_TOKEN, bin/check-release-environment no longer requires a token, and bin/publish-npm can publish via OIDC (falling back to NPM_TOKEN when not running in Actions) using an OIDC-compatible npm binary.

The auth models add an optional can_reauth_reason field on both AuthAgent and ManagedAuth to explain why automatic re-auth is or isn’t possible.

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

@stainless-app
Copy link
Contributor Author

stainless-app bot commented Feb 7, 2026

🧪 Testing

To try out this version of the SDK, run:

npm install 'https://pkg.stainless.com/s/kernel-typescript/917dc3d4ed691b16b969fb4f723d45dc0324d896/dist.tar.gz'

Expires at: Mon, 09 Mar 2026 18:16:34 GMT
Updated at: Sat, 07 Feb 2026 18:16:34 GMT

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 3e6fdb9 to 2a8f691 Compare February 7, 2026 18:16
@stainless-app stainless-app bot changed the title release: 0.31.3 release: 0.32.0 Feb 7, 2026
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 2a8f691 to 6a8bd0c Compare February 7, 2026 18:16
Copy link
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

@masnwilliams masnwilliams merged commit 30dab93 into main Feb 7, 2026
8 checks passed
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Feb 7, 2026

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 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

# Publish with the appropriate tag
yarn publish --tag "$TAG"
export npm_config_registry='https://registry.npmjs.org'
../oidc/node_modules/.bin/npm publish --tag "$TAG"
Copy link

Choose a reason for hiding this comment

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

Missing --provenance flag breaks OIDC npm publishing

High Severity

The npm publish command is missing the --provenance flag required for OIDC-based authentication. When NPM_TOKEN is not set, the script falls through to OIDC mode but the publish command on line 70 doesn't include --provenance. Without this flag, npm won't use the OIDC token for authentication, causing the publish to fail with an authentication error. The comment on line 65 says "Install OIDC compatible npm version" but the actual publish command doesn't enable OIDC authentication.

Fix in Cursor Fix in Web

if [ -z "${NPM_TOKEN}" ]; then
errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

Copy link

Choose a reason for hiding this comment

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

Release environment check script now performs no validation

Low Severity

The check-release-environment script now creates an empty errors array, checks if it has elements (it never will), and always outputs "The environment is ready to push releases!" without validating anything. This is dead code that provides false assurance. The release doctor workflow still invokes this script expecting it to catch configuration issues, but it will always succeed regardless of the actual environment state. The script either needs OIDC-related checks or removal.

Fix in Cursor Fix in Web

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