From 2354da79b77741893d1e35270d7406ae76cc75c7 Mon Sep 17 00:00:00 2001 From: Arash <38922203+arashsheyda@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:01:16 -0600 Subject: [PATCH] fix(modules): update compatibility check for Nuxt 3 and 4 (#689) --- packages/devtools/client/composables/state-modules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devtools/client/composables/state-modules.ts b/packages/devtools/client/composables/state-modules.ts index 8c3977f3a..8e3f660bf 100644 --- a/packages/devtools/client/composables/state-modules.ts +++ b/packages/devtools/client/composables/state-modules.ts @@ -14,7 +14,7 @@ export function useModulesList() { return useAsyncState('getModulesList', async () => { const m = await $fetch<{ modules: ModuleStaticInfo[] }>('https://api.nuxt.com/modules?version=3') return m.modules - .filter((item: ModuleStaticInfo) => !ignoredModules.includes(item.npm) && item.compatibility.nuxt.includes('^3')) + .filter((item: ModuleStaticInfo) => !ignoredModules.includes(item.npm) && item.compatibility.nuxt.includes('>=3')) }) }