Skip to content
12 changes: 10 additions & 2 deletions lib/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import dotenv from 'dotenv'

import { categories } from './categories'
import type { ModuleInfo } from './types'
import { fetchGithubPkg, modulesDir, distDir, distFile, rootDir } from './utils'
import { fetchGithubPkg, fetchModuleJson, modulesDir, distDir, distFile, rootDir } from './utils'

const maintainerSocialCache: Record<string, null | { user: { name: string, email: string, socialAccounts: { nodes: Array<{ displayName: string, provider: string, url: string }> } } }> = {}

Expand Down Expand Up @@ -208,7 +208,15 @@ export async function sync(name: string, repo?: string, isNew: boolean = false)
mod.description = pkg.description
}

// Compatibility
const moduleJson = await fetchModuleJson(mod.npm, pkg.version)
if (moduleJson) {
if (moduleJson.compatibility?.nuxt) {
mod.compatibility.nuxt = moduleJson.compatibility.nuxt
}
if (moduleJson.docs) {
mod.website = moduleJson.docs
}
}

// Write module
await writeModule(mod)
Expand Down
11 changes: 11 additions & 0 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ export function fetchGithubPkg(repo: string) {
return fetchRawGithub(repo + '/' + path + '/' + 'package.json')
}

export async function fetchModuleJson(npmPackage: string, version: string) {
try {
return await ofetch(`https://unpkg.com/${npmPackage}@${version}/dist/module.json`, {
responseType: 'json',
})
}
catch {
return null
}
}

export function uniq<T>(items: T[]) {
return Array.from(new Set(items))
}
2 changes: 1 addition & 1 deletion modules/algolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ maintainers:
github: yassilah
avatar: https://avatars.githubusercontent.com/u/13403295?v=4
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0-rc.9 || ^2.16.0'
requires:
bridge: true
2 changes: 1 addition & 1 deletion modules/animejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
github: ivodolenc
twitter: ivodolenc
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/api-party.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
twitter: jschopplich
avatar: https://avatars.githubusercontent.com/johannschopplich?v=4
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.18'
requires: {}
2 changes: 1 addition & 1 deletion modules/apollo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
twitter: Diizzayy
avatar: https://avatars.githubusercontent.com/diizzayy?v=4
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: ^3.0.0 || ^4.0.0
requires: {}
2 changes: 1 addition & 1 deletion modules/ark-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ maintainers:
github: iamdin
twitter: iamdinq
compatibility:
nuxt: '>=3.0.0'
nuxt: ^3.0.0
requires: {}
2 changes: 1 addition & 1 deletion modules/bugsnag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ maintainers:
github: JulianMar
twitter: julian_martin96
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0'
requires:
bridge: true
2 changes: 1 addition & 1 deletion modules/chatwoot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ maintainers:
twitter: productdevbook
bluesky: productdevbook.com
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.3.1'
requires: {}
2 changes: 1 addition & 1 deletion modules/cloudflare-analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ maintainers:
github: madebyfabian
twitter: madebyfabian
compatibility:
nuxt: '>=3.0.0'
nuxt: ^3.0.0
requires: {}
2 changes: 1 addition & 1 deletion modules/content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ maintainers:
twitter: atinux
bluesky: atinux.com
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=4.1.0 || ^3.19.0'
requires: {}
mcp: https://content.nuxt.com/mcp
4 changes: 2 additions & 2 deletions modules/contentstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repo: timbenniks/nuxt-contentstack
npm: nuxt-contentstack
icon: contentstack.png
github: https://github.com/timbenniks/nuxt-contentstack
website: https://nuxt-contentstack-docs.eu-contentstackapps.com/
website: https://github.com/timbenniks/nuxt-contentstack
learn_more: https://community.contentstack.com/
category: CMS
type: 3rd-party
Expand All @@ -15,6 +15,6 @@ maintainers:
avatar: https://avatars.githubusercontent.com/u/121096
bluesky: timbenniks.dev
compatibility:
nuxt: ^3.16.0
nuxt: '>=3.20.1'
requires: {}
devtools: ^0.0.0
2 changes: 1 addition & 1 deletion modules/dayjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
github: acidjazz
twitter: appfume
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3'
requires: {}
2 changes: 1 addition & 1 deletion modules/delay-hydration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
github: harlan-zw
twitter: harlan_zw
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.5.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
github: dotneet
twitter: santa128bit
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/directus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ maintainers:
bluesky: sandros94.com
twitter: _sandros94
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.0.0-rc.9 || ^2.16.0'
requires: {}
devtools: ^0.0.0
2 changes: 1 addition & 1 deletion modules/dragon-editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: lovefield
github: lovefields
compatibility:
nuxt: ^3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/drupal-ce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ maintainers:
github: TurtlBbx
avatar: https://avatars.githubusercontent.com/u/29594309?v=4
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.7.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/echarts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
github: kingyue737
twitter: kingyue737
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.2.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/element-plus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ maintainers:
- name: qiang
github: tolking
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3'
requires:
bridge: optional
2 changes: 1 addition & 1 deletion modules/fontaine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
twitter: danielcroe
bluesky: danielroe.dev
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.0.0-rc.6 || ^4.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/form-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
github: Hebilicious
twitter: its_hebilicious
compatibility:
nuxt: '>=3.7.0'
nuxt: '>=3'
requires: {}
2 changes: 1 addition & 1 deletion modules/formkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ maintainers:
github: andrew-boyd
twitter: 0xBOYD
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.0.0 <5.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/google-adsense.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ maintainers:
- name: Troy Morehouse
github: tmorehouse
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/graphql-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ maintainers:
github: diizzayy
twitter: Diizzayy
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.7.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/graphql-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
github: gomah
twitter: Gomah
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/gtag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
twitter: jschopplich
avatar: https://avatars.githubusercontent.com/johannschopplich?v=4
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.7'
requires: {}
2 changes: 1 addition & 1 deletion modules/html-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ maintainers:
twitter: danielcroe
bluesky: danielroe.dev
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0-rc.7'
requires:
bridge: optional
2 changes: 1 addition & 1 deletion modules/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ maintainers:
twitter: bobbiegoede
bluesky: goede.dev
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0-rc.11'
requires: {}
2 changes: 1 addition & 1 deletion modules/icon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ maintainers:
bluesky: antfu.me
twitter: antfu7
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=4.0.0'
requires: {}
devtools: ^0.0.0
2 changes: 1 addition & 1 deletion modules/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ maintainers:
twitter: atinux
bluesky: atinux.com
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.1.0'
requires:
bridge: optional
mcp: https://image.nuxt.com/mcp
2 changes: 1 addition & 1 deletion modules/ionic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
twitter: danielcroe
bluesky: danielroe.dev
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.0.0-rc.12'
requires: {}
2 changes: 1 addition & 1 deletion modules/izi-toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ maintainers:
github: stephenjason89
twitter: stephenjason89
compatibility:
nuxt: ^3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/jsonapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: Patrick Cate
github: patrickcate
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: ^3.0.0
requires: {}
2 changes: 1 addition & 1 deletion modules/keen-slider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: modbender
github: modbender
compatibility:
nuxt: ^3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/kql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
twitter: jschopplich
avatar: https://avatars.githubusercontent.com/johannschopplich?v=4
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=4.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/lettermint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
twitter: lettermintco
bluesky: lettermint.co
compatibility:
nuxt: ^3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ maintainers:
twitter: harlan_zw
avatar: https://avatars.githubusercontent.com/harlan-zw?v=4
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.9.0'
requires: {}
devtools: ^0.0.0
2 changes: 1 addition & 1 deletion modules/lodash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: Michal Čípa
github: cipami
compatibility:
nuxt: '>=3.0.0'
nuxt: ^3.0.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note - we need to open a PR upstream

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repo is archived: https://github.com/cipami/nuxt-lodash

What do you think of removing it instead?

requires: {}
2 changes: 1 addition & 1 deletion modules/lucide-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
- name: Jasper Zonneveld
github: JaZo
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=4.1.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/mcp-toolkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ npm: '@nuxtjs/mcp-toolkit'
icon: mcp-toolkit.png
github: >-
https://github.com/nuxt-modules/mcp-toolkit/tree/main/packages/nuxt-mcp-toolkit
website: https://mcp-toolkit.nuxt.dev
website: https://mcp-toolkit.nuxt.dev/getting-started/installation
learn_more: ''
category: AI
type: community
Expand Down
2 changes: 1 addition & 1 deletion modules/mojocss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: mojocss
github: mojocss
compatibility:
nuxt: ^2.0.0 || >=3.0.0
nuxt: '>=3.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/nuxt-booster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ maintainers:
github: StephanGerbeth
avatar: https://avatars.githubusercontent.com/u/3775511?v=4
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.13.1'
requires: {}
devtools: ^0.0.0
2 changes: 1 addition & 1 deletion modules/nuxt-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
avatar: https://avatars.githubusercontent.com/dennisadriaans
twitter: DennisAdriaans
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3'
requires: {}
2 changes: 1 addition & 1 deletion modules/nuxt-chatgpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: Oliver Trajceski
github: schnapsterdog
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=3.0.0 <5.0.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened SchnapsterDog/nuxt-chatgpt#36 to avoid having this <5

requires: {}
2 changes: 1 addition & 1 deletion modules/nuxt-facebook-chat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
- name: superdev-tech
github: superdev-tech
compatibility:
nuxt: '>=3.0.0'
nuxt: ^3.6.0
requires: {}
2 changes: 1 addition & 1 deletion modules/nuxt-feedme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: Helltraitor
github: helltraitor
compatibility:
nuxt: '>=3.0.0'
nuxt: '>=4.0.0'
requires: {}
2 changes: 1 addition & 1 deletion modules/nuxt-google-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ maintainers:
- name: go-fireball
github: go-fireball
compatibility:
nuxt: ^3.0.0
nuxt: ^3.0.0 || ^4.0.0
requires: {}
2 changes: 1 addition & 1 deletion modules/nuxt-gpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- name: Lukas HofstΓ€tter
github: holux-design
compatibility:
nuxt: '>=3.0.0'
nuxt: ^3.0.0
requires: {}
Loading