TheSadMidDeveloper
TheSadMidDeveloper
Explore posts from servers
NNuxt
Created by TheSadMidDeveloper on 11/13/2024 in #❓・help
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',
},
},
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?
5 replies
NNuxt
Created by TheSadMidDeveloper on 11/12/2024 in #❓・help
Module authoring with tsup
No description
5 replies
NNuxt
Created by TheSadMidDeveloper on 10/11/2024 in #❓・help
Server middleware ordering with modules
I think this message by @BracketJohn was ignored by @pi0 and @danielroe and other Nuxt core team mebers a lot of times - https://discord.com/channels/473401852243869706/473406169306890240/1046427324691787877 There are plenty of cases where you're authoring a module and installing a server middleware that attaches a context so that userland can access it as well when they have their own custom middleware - but this isnt the case. The custom middlewares you put inside server/middlewares will run first before the middleware added by modules. Before anyone answers "just add a number to your custom middleware so it runs last", no it does not work. It only works on the middlewares you put inside server/middlewares but not middlewares installed by modules. Is this something that will be tackled in the future? If not, is there a way to make sure middlewares added by modules (addServerMiddleware) will run first? Thank you so much!
8 replies