From ace8d6194cbe3935072f45e19e1e6dd6bb0e557a Mon Sep 17 00:00:00 2001 From: Paul Asjes Date: Wed, 15 Jan 2025 15:34:19 +0100 Subject: [PATCH 1/2] Bump to v1.0.2 and fix test --- __tests__/authkit-provider.spec.tsx | 2 +- package.json | 2 +- src/workos.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/authkit-provider.spec.tsx b/__tests__/authkit-provider.spec.tsx index f26218c..f53b05f 100644 --- a/__tests__/authkit-provider.spec.tsx +++ b/__tests__/authkit-provider.spec.tsx @@ -188,7 +188,7 @@ describe('useAuth', () => { await waitFor(() => { expect(getAuthAction).toHaveBeenCalledTimes(2); - expect(getAuthAction).toHaveBeenLastCalledWith(true); + expect(getAuthAction).toHaveBeenLastCalledWith({ ensureSignedIn: true }); expect(getByTestId('email')).toHaveTextContent('test@example.com'); }); }); diff --git a/package.json b/package.json index dba763a..ac71dd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@workos-inc/authkit-nextjs", - "version": "1.0.1", + "version": "1.0.2", "description": "Authentication and session helpers for using WorkOS & AuthKit with Next.js", "sideEffects": false, "type": "module", diff --git a/src/workos.ts b/src/workos.ts index d31309d..e67f739 100644 --- a/src/workos.ts +++ b/src/workos.ts @@ -1,7 +1,7 @@ import { WorkOS } from '@workos-inc/node'; import { WORKOS_API_HOSTNAME, WORKOS_API_KEY, WORKOS_API_HTTPS, WORKOS_API_PORT } from './env-variables.js'; -export const VERSION = '1.0.1'; +export const VERSION = '1.0.2'; const options = { apiHostname: WORKOS_API_HOSTNAME, From 2b48e9fe0bc1ea8aa1502269651af0da8d5a6ff8 Mon Sep 17 00:00:00 2001 From: Paul Asjes Date: Wed, 15 Jan 2025 17:34:34 +0100 Subject: [PATCH 2/2] Update package-lock.json --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index d3c845e..8317db5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@workos-inc/authkit-nextjs", - "version": "0.17.0", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@workos-inc/authkit-nextjs", - "version": "0.17.0", + "version": "1.0.2", "license": "MIT", "dependencies": { "@workos-inc/node": "^7.33.0",