NuxtN
Nuxt14mo ago
4 replies
Donald Biden

Nuxt Fontaine redundant compatibility version?

I looked up at fontaine's Nuxt compat here and it says

meta: {
  configKey: 'fontMetrics',
  name: '@nuxtjs/fontaine',
  compatibility: {
    nuxt: '>=3.0.0-rc.6 || ^4.0.0',
  },
},


The current semver range >=3.0.0-rc.6 || ^4.0.0 is redundant since >=3.0.0-rc.6 already includes all versions of v4.x.x and higher. This can be simplified to just >=3.0.0-rc.6. However, if the intent is to only support v3 and v4, consider using ^3.0.0-rc.6 || ^4.0.0 instead to properly bound the major versions. What do you think?
Was this page helpful?