You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Stop publishing package.json and inject the version instead
Seam\Utils\PackageVersion read package.json from the package root at
runtime to set the seam-sdk-version header, which forced a development
manifest into every published package.
Replace it with a VERSION constant, and inject that constant from
package.json in the version lifecycle script, which npm runs after the
bump but before the commit, so the value is part of the tagged commit.
Packagist publishes the tag with no build step in between, so unlike the
JavaScript SDK, which injects at pack time, the version has to be
committed before the tag, as the Ruby SDK does with lib/seam/version.rb.
Add export-ignore rules to .gitattributes so development files are kept
out of the archives Composer downloads as dist, which composer.json's
archive exclude list does not govern, and exclude package.json from
composer archive as well.
Cover the constant with tests asserting it matches package.json and is
what SeamClient sends, so a hand edit or a missed injection fails.
Removes Seam\Utils\PackageVersionException, which only signalled an
unreadable package.json and has no remaining purpose.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RFK47311nWtbd3gHmjdknR
0 commit comments