Skip to content

fix: depend on zod by range in the published packages - #816

Merged
alongubkin merged 2 commits into
mainfrom
alon/alien-1150-published-packages-pin-zod-exactly
Oct 4, 2026
Merged

alongubkin merged 2 commits into
mainfrom
alon/alien-1150-published-packages-pin-zod-exactly

Conversation

@alongubkin

Copy link
Copy Markdown
Member

Fixes ALIEN-1150.

Problem

@alienplatform/core, @alienplatform/sdk, @alienplatform/ai-gateway and @alienplatform/testing depended on "zod": "4.5.2" exactly; every other runtime dependency of these packages uses a caret range. An app on any other zod 4.x got a second zod installed just for the Alien packages, and schemas and types from one copy don't match the other. An app on zod ^4.6.5 failed its type check and needed a pnpm override ("@alienplatform/core>zod": "4.6.5") to install at all cleanly.

Fix

"zod": "^4.5.2" in those four packages' dependencies, so the app's zod 4.x satisfies them. The lockfile changes only those four specifiers; resolved versions are unchanged. bindings and commands keep their exact zod devDependency, which doesn't reach apps.

Testing

  • pnpm install --frozen-lockfile passes.
  • Packed @alienplatform/core and installed it into a scratch app that depends on zod 4.6.5: exactly one zod (4.6.5) is installed, shared by the app and core. With the exact pin, npm nests a separate 4.5.2 under core.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[High risk] Changes dependency version constraints across published packages.

The PR appears safe to merge.

Summary

The PR changes Zod from an exact dependency to ^4.5.2 in four published packages and updates their lockfile specifiers without changing resolved versions.

  • No new issue was identified in the PR changes.

Reviews (2) · Last reviewed commit: "Merge branch 'main' into alon/alien-1150..."

Comment thread packages/core/package.json
@alongubkin

Copy link
Copy Markdown
Member Author

@greptileai review

@alongubkin
alongubkin merged commit 23c0d0a into main Oct 4, 2026
23 checks passed
@alongubkin
alongubkin deleted the alon/alien-1150-published-packages-pin-zod-exactly branch October 4, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant