Skip to content

feat(adapters): widen @relayfile/sdk peer range across all adapters#23

Merged
khaliqgant merged 3 commits intomainfrom
khaliq/widen-sdk-peer-range
Apr 21, 2026
Merged

feat(adapters): widen @relayfile/sdk peer range across all adapters#23
khaliqgant merged 3 commits intomainfrom
khaliq/widen-sdk-peer-range

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented Apr 21, 2026

Summary

Unblocks consumers (sage, cloud, nightcto, MSD) that are bumping `@relayfile/sdk` to `^0.3.0` for contentIdentity support. Without this PR, each consumer has to add an `overrides` block to their `package.json` because adapters pin SDK at `^0.1.7` (either via peerDependencies or nested dependencies).

Changes

  • github — widen existing `peerDependencies` from `^0.1.7` to `>=0.1.7 <1`. Already declared peer; just widening the range.
  • linear, notion, slack, gitlab, teams — move `@relayfile/sdk` from `dependencies` → `peerDependencies` with the widened range. This stops each adapter from pulling its own nested `@relayfile/sdk@0.1.x` copy alongside the consumer's chosen 0.3.x. Added `@relayfile/sdk: ^0.3.1` to each adapter's `devDependencies` so typecheck + test keep working in CI.
  • All six adapters bumped by one patch version (0.1.6 → 0.1.7 or 0.1.7 → 0.1.8).
  • `.gitignore` tweak to stop accidentally committing `.claude/`.

No runtime code changes. Pure packaging update.

Why patch bumps (not minor)

Strictly speaking, converting a regular dep to a peer dep is a breaking change since consumers who relied on auto-install now need to install `@relayfile/sdk` themselves. In practice, every known consumer already declares `@relayfile/sdk` at the top level (sage, cloud, nightcto, MSD, relayfile itself), so this is behaviorally no-op for them. Going with patch to keep the churn minimal — happy to re-cut as minors if you'd rather.

Publish

After merge, publish all six updated packages via whatever workflow_dispatch you use. Consumers can then:

  1. Drop any `overrides` blocks that were added for this issue.
  2. Bump adapter deps to the new versions in their package.json.

Test plan

  • All six adapters build clean (`npm run build -ws`).
  • Downstream sage #89 install succeeds without `overrides` after pointing at new adapter versions (will verify after publish).

Related:


Open in Devin Review

Consumers (sage, cloud, nightcto, msd) are bumping @relayfile/sdk to
^0.3.0 for contentIdentity support. Adapters' pinned ^0.1.7 declaration
forced npm overrides in every consumer as a workaround.

Changes:
- github: widen existing peerDependencies from ^0.1.7 to >=0.1.7 <1
- linear, notion, slack, gitlab, teams: move @relayfile/sdk from
  dependencies to peerDependencies (with the same widened range) so
  adapters use the consumer's chosen SDK rather than pulling a nested
  0.1.x copy. Added @relayfile/sdk: ^0.3.1 to each adapter's
  devDependencies so typecheck + test keep working in CI.
- All six adapters bumped by one patch (0.1.6→0.1.7 or 0.1.7→0.1.8).

No runtime code changes. Pure packaging update.

After merge + publish, consumers can drop their overrides blocks:
- sage: #89 overrides block
- cloud: (none added yet)
- nightcto: (none added yet)
- msd: (none added yet)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
devin-ai-integration[bot]

This comment was marked as resolved.

Previous commit ignored the entire .claude/ directory, which is too broad —
skills, commands, and other shared config belong in the repo.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
devin-ai-integration[bot]

This comment was marked as resolved.

Addresses Devin review comment on #23: github's devDependency on
@relayfile/sdk was left at ^0.1.7 while every other adapter got bumped
to ^0.3.1, leaving github building/testing against stale SDK types.

Also widens @relayfile/adapter-core's peer range (and devDep) — core is
depended on by github, and its pinned ^0.1.7 peer forced a nested
@relayfile/sdk@0.1.7 install that conflicted with github's own nested
0.3.x, producing "two identities for RelayFileClient" type errors.

Now all six adapters + core dedupe on @relayfile/sdk@0.3.2.
adapter-core bumped 0.1.6 → 0.1.7.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@khaliqgant khaliqgant merged commit 077a6c1 into main Apr 21, 2026
1 check passed
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