From b2d6ca76f6d9d783183b7c394f465bc834d79493 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Mon, 11 May 2026 11:26:34 -0500 Subject: [PATCH 1/2] fix: move @workos-inc/node from dependencies to peerDependencies The SDK was listed as a regular dependency, which caused npm to install a separate copy nested inside authkit-session. Consumers using v9 of the SDK ended up with two copies (v8 bundled here, v9 at root), leading to type mismatches and requiring resolutions/overrides as a workaround. Moving to peerDependencies with range ^8.0.0 || ^9.0.0 ensures a single copy at runtime controlled by the consumer. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cb9999c..fdd9b6f 100644 --- a/package.json +++ b/package.json @@ -38,12 +38,15 @@ "test:watch": "vitest --watch" }, "dependencies": { - "@workos-inc/node": "^8.0.0", "iron-webcrypto": "^2.0.0", "jose": "^6.1.3", "valibot": "^1.3.1" }, + "peerDependencies": { + "@workos-inc/node": "^8.0.0 || ^9.0.0" + }, "devDependencies": { + "@workos-inc/node": "^9.2.0", "@types/node": "^20.17.0", "@vitest/coverage-v8": "^4.0.17", "oxfmt": "^0.42.0", From f91b1bda770cda48607f6fd38f5106ac9cbd5676 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Mon, 11 May 2026 11:41:17 -0500 Subject: [PATCH 2/2] fix: run pnpm i --- package.json | 8 ++++---- pnpm-lock.yaml | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index fdd9b6f..e5f7420 100644 --- a/package.json +++ b/package.json @@ -42,18 +42,18 @@ "jose": "^6.1.3", "valibot": "^1.3.1" }, - "peerDependencies": { - "@workos-inc/node": "^8.0.0 || ^9.0.0" - }, "devDependencies": { - "@workos-inc/node": "^9.2.0", "@types/node": "^20.17.0", "@vitest/coverage-v8": "^4.0.17", + "@workos-inc/node": "^9.2.0", "oxfmt": "^0.42.0", "oxlint": "^1.57.0", "typescript": "^5.9.3", "vitest": "^4.0.17" }, + "peerDependencies": { + "@workos-inc/node": "^8.0.0 || ^9.0.0" + }, "engines": { "node": ">=20.0.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f3bd08e..b6b937c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ importers: .: dependencies: - '@workos-inc/node': - specifier: ^8.0.0 - version: 8.13.0 iron-webcrypto: specifier: ^2.0.0 version: 2.0.0 @@ -27,6 +24,9 @@ importers: '@vitest/coverage-v8': specifier: ^4.0.17 version: 4.1.4(vitest@4.1.4) + '@workos-inc/node': + specifier: ^9.2.0 + version: 9.2.0 oxfmt: specifier: ^0.42.0 version: 0.42.0 @@ -467,9 +467,9 @@ packages: '@vitest/utils@4.1.4': resolution: {integrity: sha512-13QMT+eysM5uVGa1rG4kegGYNp6cnQcsTc67ELFbhNLQO+vgsygtYJx2khvdt4gVQqSSpC/KT5FZZxUpP3Oatw==} - '@workos-inc/node@8.13.0': - resolution: {integrity: sha512-NgQKHpwh8AbT4KvAsW91Y+4f4jja2IvFPQ5atcy5NUxUMVRgXzRFEee3erawfXrTmiCVqJjd9PljHySKBXmHKQ==} - engines: {node: '>=20.15.0'} + '@workos-inc/node@9.2.0': + resolution: {integrity: sha512-JAEjrwgr8aETOS7YzHmSlPj+1LCXonAKGX1/B89hIZ+l+YgQGJrdFZnBqBSlDnqUaOtxDZkGwg7V3LFNkF+evg==} + engines: {node: '>=22.11.0'} assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} @@ -1110,7 +1110,7 @@ snapshots: convert-source-map: 2.0.0 tinyrainbow: 3.1.0 - '@workos-inc/node@8.13.0': + '@workos-inc/node@9.2.0': dependencies: eventemitter3: 5.0.4