From df7797ed780368bd81c4734e320221ac9b4894d7 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Thu, 18 Jun 2026 08:30:42 -0600 Subject: [PATCH 1/2] fix!: require @workos-inc/node >=10.4.0 (eventemitter3 Vite dev crash #106) @workos-inc/node 8.11.1-10.3.x bundles eventemitter3, whose CJS module breaks Vite's dev server when @workos-inc/node is served as raw ESM: the browser throws "does not provide an export named 'default'" (#106). @workos-inc/node@10.4.0 dropped eventemitter3 for an internal emitter. Pin the transitive peer floor so consumers can't resolve a eventemitter3-carrying version. Intersects with authkit-session's `^8 || ^9 || ^10` peer to an effective `>=10.4.0 <11`. engines.node bumped to >=22.11 to match @workos-inc/node 10's requirement. BREAKING CHANGE: requires @workos-inc/node >=10.4.0 and Node >=22.11. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a07e79..40c5f37 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "license": "MIT", "sideEffects": false, "engines": { - "node": ">=20.0.0" + "node": ">=22.11.0" }, "homepage": "https://github.com/workos/authkit-tanstack-start#readme", "repository": { @@ -70,6 +70,7 @@ "peerDependencies": { "@tanstack/react-router": ">=1.0.0", "@tanstack/react-start": ">=1.168.25", + "@workos-inc/node": ">=10.4.0", "react": "^18.0 || ^19.0", "react-dom": "^18.0 || ^19.0" }, From a6e5ae2a60f8546929f88be77fc8c541c1c7b5a5 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Thu, 18 Jun 2026 08:36:45 -0600 Subject: [PATCH 2/2] chore: pnpm-lock --- pnpm-lock.yaml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2ebd8c5..b7d4dc7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,12 @@ importers: .: dependencies: + '@workos-inc/node': + specifier: '>=10.4.0' + version: 10.4.0 '@workos/authkit-session': specifier: ^0.6.0 - version: 0.6.0(@workos-inc/node@8.13.0)(typescript@5.9.3) + version: 0.6.0(@workos-inc/node@10.4.0)(typescript@5.9.3) devDependencies: '@tanstack/react-router': specifier: ^1.170.15 @@ -2132,9 +2135,9 @@ packages: '@vitest/utils@4.0.15': resolution: {integrity: sha512-HXjPW2w5dxhTD0dLwtYHDnelK3j8sR8cWIaLxr22evTyY6q8pRCjZSmhRWVjBaOVXChQd6AwMzi9pucorXCPZA==} - '@workos-inc/node@8.13.0': - resolution: {integrity: sha512-NgQKHpwh8AbT4KvAsW91Y+4f4jja2IvFPQ5atcy5NUxUMVRgXzRFEee3erawfXrTmiCVqJjd9PljHySKBXmHKQ==} - engines: {node: '>=20.15.0'} + '@workos-inc/node@10.4.0': + resolution: {integrity: sha512-mrrjFYQsYGbY/rGLqUN9IIwzoCa3aIg9gXViIRpzfXkH2mozJ1NBcxSivN3SpqLgoGDuyp3Wg3Mg5UgTJU4FYQ==} + engines: {node: '>=22.11.0'} '@workos/authkit-session@0.6.0': resolution: {integrity: sha512-AaDt34h4XF5BTF5ShN+W+8OOHxj+n0KmkX+e89OVNaeZJKwqao0b/S3m3BiAylNHdZGM95tsvRUKeoEXp5qERQ==} @@ -2318,9 +2321,6 @@ packages: estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - eventemitter3@5.0.4: - resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} - expect-type@1.3.0: resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==} engines: {node: '>=12.0.0'} @@ -4998,13 +4998,11 @@ snapshots: '@vitest/pretty-format': 4.0.15 tinyrainbow: 3.0.3 - '@workos-inc/node@8.13.0': - dependencies: - eventemitter3: 5.0.4 + '@workos-inc/node@10.4.0': {} - '@workos/authkit-session@0.6.0(@workos-inc/node@8.13.0)(typescript@5.9.3)': + '@workos/authkit-session@0.6.0(@workos-inc/node@10.4.0)(typescript@5.9.3)': dependencies: - '@workos-inc/node': 8.13.0 + '@workos-inc/node': 10.4.0 iron-webcrypto: 2.0.0 jose: 6.1.3 valibot: 1.3.1(typescript@5.9.3) @@ -5194,8 +5192,6 @@ snapshots: dependencies: '@types/estree': 1.0.8 - eventemitter3@5.0.4: {} - expect-type@1.3.0: {} exsolve@1.0.8: {}