fix: support default and named exports for useDebounce hook

Ensure compatibility with both default and named exports for useDebounce.

Co-authored-by: null <4804959+fnvtk@users.noreply.github.com>
This commit is contained in:
v0
2025-08-08 11:46:31 +00:00
parent bdf456523b
commit 2ca12179e2
15 changed files with 526 additions and 368 deletions

17
pnpm-lock.yaml generated
View File

@@ -10,7 +10,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: latest
version: 2.0.5(zod@4.0.15)
version: 2.0.6(zod@4.0.15)
'@ant-design/plots':
specifier: latest
version: 2.6.3(react-dom@18.0.0(react@18.0.0))(react@18.0.0)
@@ -92,6 +92,9 @@ importers:
cmdk:
specifier: latest
version: 1.1.1(@types/react-dom@18.0.0)(@types/react@18.0.0)(react-dom@18.0.0(react@18.0.0))(react@18.0.0)
crypto:
specifier: latest
version: 1.0.1
date-fns:
specifier: latest
version: 4.1.0
@@ -177,8 +180,8 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4
'@ai-sdk/openai@2.0.5':
resolution: {integrity: sha512-1oFXNudUNRfl4QXlE2Q0v8GCvGngx8HMwHN6pyOTMBP8SI9VoOcCJzRPVBMLd0SI7dkcAvGVkpSVTnaLaXEtxQ==}
'@ai-sdk/openai@2.0.6':
resolution: {integrity: sha512-YmnhiyqllxnGo0Jo23jfi7NCOK+8BhUPPV/Cm/8MGFgI9oX/s6xGIp6KqSK2GFlAz2vxyy+aAlpt0cv/a0SxYQ==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4
@@ -1439,6 +1442,10 @@ packages:
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'}
crypto@1.0.1:
resolution: {integrity: sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==}
deprecated: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
cssesc@3.0.0:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
@@ -3028,7 +3035,7 @@ snapshots:
'@ai-sdk/provider-utils': 3.0.1(zod@4.0.15)
zod: 4.0.15
'@ai-sdk/openai@2.0.5(zod@4.0.15)':
'@ai-sdk/openai@2.0.6(zod@4.0.15)':
dependencies:
'@ai-sdk/provider': 2.0.0
'@ai-sdk/provider-utils': 3.0.1(zod@4.0.15)
@@ -4459,6 +4466,8 @@ snapshots:
shebang-command: 2.0.0
which: 2.0.2
crypto@1.0.1: {}
cssesc@3.0.0: {}
csstype@3.1.3: {}