From cb57a5e32d9387f1e62f112b8352e63d267de238 Mon Sep 17 00:00:00 2001 From: vstremnitzer Date: Fri, 16 Aug 2024 10:13:48 +0200 Subject: [PATCH] fix: remove import from dev dependency (#776) * fix: remove import from dev dependency Signed-off-by: vstremnitzer * fix: add changeset Signed-off-by: vstremnitzer * fix(js): use Nullable import from silverhand essentials package --------- Signed-off-by: vstremnitzer Co-authored-by: Charles Zhao --- .changeset/perfect-rabbits-tap.md | 5 +++++ packages/js/src/core/user-info.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/perfect-rabbits-tap.md diff --git a/.changeset/perfect-rabbits-tap.md b/.changeset/perfect-rabbits-tap.md new file mode 100644 index 00000000..df10bc3f --- /dev/null +++ b/.changeset/perfect-rabbits-tap.md @@ -0,0 +1,5 @@ +--- +"@logto/js": patch +--- + +fix an incorrect `Nullable` import in js core diff --git a/packages/js/src/core/user-info.ts b/packages/js/src/core/user-info.ts index d99d7d4f..c1ba9d24 100644 --- a/packages/js/src/core/user-info.ts +++ b/packages/js/src/core/user-info.ts @@ -1,4 +1,4 @@ -import { type Nullable } from 'vitest'; +import { type Nullable } from '@silverhand/essentials'; import { type IdTokenClaims } from '../index.js'; import type { Requester } from '../types/index.js';