Skip to content

Commit

Permalink
fix(modules): update compatibility check for Nuxt 3 and 4 (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda authored Jul 2, 2024
1 parent ecf6f40 commit 2354da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools/client/composables/state-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
})
}

Expand Down

0 comments on commit 2354da7

Please sign in to comment.