From 6f5458afe8896815d574e9071be338630e27eb99 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Mon, 11 May 2026 11:32:54 -0500 Subject: [PATCH] fix: add @workos-inc/node as a peer dependency 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. --- package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 0bdd59b..fdbf4a5 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "@workos/authkit-session": "^0.5.1" }, "peerDependencies": { + "@workos-inc/node": "^8.0.0 || ^9.0.0", "@tanstack/react-router": ">=1.0.0", "@tanstack/react-start": ">=1.0.0", "react": "^18.0 || ^19.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b4bf8e0..27ceb85 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + '@workos-inc/node': + specifier: ^8.0.0 || ^9.0.0 + version: 8.13.0 '@workos/authkit-session': specifier: ^0.5.1 version: 0.5.1(typescript@5.9.3)