Skip to content

release: 0.49.0 - #91

Merged
arbianst merged 1 commit into
mainfrom
release-please--branches--main
Nov 12, 2026
Merged

arbianst merged 1 commit into
mainfrom
release-please--branches--main

Conversation

@sent-dm-sdk-pipeline

Copy link
Copy Markdown
Contributor

Automated Release PR

0.49.0 (2026-11-12)

Features

  • api: methods for the US 10DLC campaigns, numbers and market compliance (c08a176)

This PR was generated with Release Please. See documentation.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread src/Version.php

// x-release-please-start-version
const VERSION = '0.48.0';
const VERSION = '0.49.0';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 (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.

@arbianst
arbianst merged commit 660e276 into main Nov 12, 2026
5 checks passed
@arbianst
arbianst deleted the release-please--branches--main branch November 12, 2026 18:09
@sent-dm-sdk-pipeline

Copy link
Copy Markdown
Contributor Author

🤖 Created releases:

🌻

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