Repository navigation
release: 0.49.0 - #91
Conversation
|
|
||
| // x-release-please-start-version | ||
| const VERSION = '0.48.0'; | ||
| const VERSION = '0.49.0'; |
There was a problem hiding this comment.
🟡 (optional) Once 0.49.0 ships, every request reports two different SDK versions: the User-Agent says 0.49.0 but X-Stainless-Package-Version still says 0.48.0. This release bumps VERSION, but src/Client.php:132 hardcodes '0.48.0' instead of reading VERSION. release-please-config.json lists only README.md and src/Version.php in extra-files, so the release never updates that line. Fix: the header must always match VERSION in every release. Have the SDK configuration emit VERSION for X-Stainless-Package-Version rather than a literal. That line is generated, so a hand edit here would conflict on the next regeneration.
Why this was flagged
Every API call builds its headers in src/Client.php:127-137. At line 130 the User-Agent is sprintf('Sent/PHP %s', VERSION), which after this diff gives 'Sent/PHP 0.49.0'. At line 132 'X-Stainless-Package-Version' is the literal '0.48.0'. On the base branch both values were 0.48.0, so the headers agreed. The release now bumps the manifest, README.md:16 and src/Version.php:8 but leaves Client.php alone, because release-please-config.json:63-66 lists only README.md and src/Version.php in extra-files. The 0.49.0 package published from this release PR therefore labels its own requests as 0.48.0 in that header. Anyone who reads the header for version analytics or support triage gets the wrong SDK version for 0.49.0 installs. The later 'sync generated files after the release' commit cannot fix artifacts that have already been published.
Verification: src/Version.php:8 reads const VERSION = '0.49.0';, and src/Client.php:130 sends 'User-Agent' => sprintf('Sent/PHP %s', VERSION). But src/Client.php:132 still hardcodes 'X-Stainless-Package-Version' => '0.48.0'. release-please-config.json:63-66 lists only "README.md" and "src/Version.php" in extra-files, so the release commit leaves Client.php alone.
|
🤖 Created releases: 🌻 |
Automated Release PR
0.49.0 (2026-11-12)
Features
This PR was generated with Release Please. See documentation.