fix: add @workos-inc/node as a peer dependency#83
Conversation
This package re-exports types from @workos-inc/node (User, Impersonator) via authkit-session. Making the SDK an explicit peer dependency ensures consumers have a single copy at runtime and avoids type mismatches when using @workos-inc/node v9. Companion to workos/authkit-session#32.
Greptile SummaryThis PR adds
Confidence Score: 4/5Safe to merge; the peer dependency declaration is correct and all tests pass. A minor inconsistency in how devDependencies is managed is worth a follow-up but does not affect the published package. The change correctly declares
Important Files Changed
|
Summary
@workos-inc/nodewith range^8.0.0 || ^9.0.0topeerDependenciesContext
Companion to workos/authkit-session#32.
This package re-exports types that originate from
@workos-inc/node(e.g.,User,Impersonatorviaauthkit-session). Declaring the SDK as an explicit peer dependency makes the requirement visible at install time and ensures a single copy at runtime — preventing type mismatches for consumers on@workos-inc/node@9.x.Test plan
pnpm run buildpassespnpm test— 217/217 tests pass