Skip to content

fix(core): inner @relayauth/sdk dep stuck at ^0.1.0 (republish 0.2.1)#24

Merged
khaliqgant merged 1 commit intomainfrom
fix/relayauth-core-inner-sdk-dep
Apr 23, 2026
Merged

fix(core): inner @relayauth/sdk dep stuck at ^0.1.0 (republish 0.2.1)#24
khaliqgant merged 1 commit intomainfrom
fix/relayauth-core-inner-sdk-dep

Conversation

@kjgbot
Copy link
Copy Markdown
Contributor

@kjgbot kjgbot commented Apr 23, 2026

Summary

`@relayauth/core@0.2.0` was published with `@relayauth/sdk: "^0.1.0"` as its dep, a stale caret range from the 0.1.x line. Since npm's highest-match of `^0.1.0` is 0.1.9, consumers install a nested `node_modules/@relayauth/core/node_modules/@relayauth/sdk@0.1.9` alongside the top-level 0.2.0.

Spotted when bumping cloud to 0.2.0 (see AgentWorkforce/cloud#285) — confirmed not routed-through in cloud, but it's dead weight + a real footgun for any future core re-export of the SDK.

Fix

  • `packages/core/package.json` dep `"@relayauth/sdk": "^0.1.0"` → `"@relayauth/sdk": ""`, matching the pattern used by `@relayauth/server` and `@relayauth/sdk` (both of which use `""` so publish-time version substitution tracks the actual workspace version).
  • Bump `@relayauth/core` to `0.2.1`.

After merge

Republish:
```
npm publish -w @relayauth/core
npm view @relayauth/core@0.2.1
```

On next `npm install` in any downstream consumer, the nested-sdk diamond disappears.

Test plan

  • `npx turbo typecheck test --filter=@relayauth/core` passes locally
  • CI passes
  • After merge + republish, `npm view @relayauth/core@0.2.1` shows the sdk dep resolving to 0.2.x

🤖 Generated with Claude Code

@relayauth/core@0.2.0 was published with "@relayauth/sdk": "^0.1.0"
in its dependency list — a stale caret range from before the 0.2.x
line. npm dutifully installs the latest matching version (0.1.9) into
a nested node_modules/@relayauth/core/node_modules/@relayauth/sdk,
so downstream consumers end up with both 0.2.0 (top-level) and 0.1.9
(nested under core) at the same time.

Nothing routes through the nested copy from cloud today — every
cloud package resolves the top-level 0.2.0 directly — but it is
dead weight, wasted install size, and a real bug if any future code
path reaches @relayauth/sdk via the core re-export.

Fix: change the inner dep to "*" to match the pattern used by
@relayauth/server and @relayauth/sdk (both of which use "*" for
their sibling workspace deps so publish-time version substitution
follows the actual workspace). Bump core to 0.2.1 so the fix can be
published and picked up.

After merge, republish @relayauth/core@0.2.1 and the nested-sdk
diamond disappears on next npm install.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@khaliqgant khaliqgant merged commit aa232b8 into main Apr 23, 2026
2 checks passed
@khaliqgant khaliqgant deleted the fix/relayauth-core-inner-sdk-dep branch April 23, 2026 05:09
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.

2 participants