@dargmuesli/nuxt-vio 23.0.0-beta.9 → 23.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nuxt.config.ts +3 -26
- package/package.json +14 -14
- package/server/utils/site.ts +5 -0
- package/.config/certificates/.gitignore +0 -2
package/nuxt.config.ts
CHANGED
|
@@ -59,10 +59,12 @@ export default defineNuxtConfig(
|
|
|
59
59
|
experimental: {
|
|
60
60
|
early404: true,
|
|
61
61
|
inlineErrorRendering: true,
|
|
62
|
+
prefetchPreloadTags: true,
|
|
62
63
|
prerenderErrorPages: true,
|
|
63
64
|
routeTypedFetch: true,
|
|
64
65
|
strictRouteTypes: true,
|
|
65
66
|
typedPages: true,
|
|
67
|
+
watcher: 'builder',
|
|
66
68
|
},
|
|
67
69
|
hooks: {
|
|
68
70
|
// consumers' generated tsconfigs exclude `node_modules`, so this layer's type augmentations need explicit references
|
|
@@ -210,32 +212,7 @@ export default defineNuxtConfig(
|
|
|
210
212
|
// },
|
|
211
213
|
},
|
|
212
214
|
vite: {
|
|
213
|
-
plugins: [
|
|
214
|
-
tailwindcss(),
|
|
215
|
-
{
|
|
216
|
-
// This plugin suppresses false-positive sourcemap warnings from Tailwind's Vite plugin
|
|
217
|
-
// TODO: remove once tailwind generates sourcemaps for their transforms (https://github.com/tailwindlabs/tailwindcss/discussions/16119)
|
|
218
|
-
apply: 'build',
|
|
219
|
-
name: 'vite-plugin-ignore-sourcemap-warnings',
|
|
220
|
-
configResolved(config) {
|
|
221
|
-
const originalOnWarn = config.build.rollupOptions.onwarn
|
|
222
|
-
config.build.rollupOptions.onwarn = (warning, warn) => {
|
|
223
|
-
if (
|
|
224
|
-
warning.code === 'SOURCEMAP_BROKEN' &&
|
|
225
|
-
warning.plugin === '@tailwindcss/vite:generate:build'
|
|
226
|
-
) {
|
|
227
|
-
return
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (originalOnWarn) {
|
|
231
|
-
originalOnWarn(warning, warn)
|
|
232
|
-
} else {
|
|
233
|
-
warn(warning)
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
],
|
|
215
|
+
plugins: [tailwindcss()],
|
|
239
216
|
},
|
|
240
217
|
|
|
241
218
|
// modules
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@dargmuesli/nuxt-cookie-control": "9.3.
|
|
3
|
+
"@dargmuesli/nuxt-cookie-control": "9.3.9",
|
|
4
4
|
"@eslint/compat": "2.1.1",
|
|
5
5
|
"@heroicons/vue": "2.2.0",
|
|
6
6
|
"@http-util/status-i18n": "0.9.1",
|
|
7
7
|
"@intlify/eslint-plugin-vue-i18n": "4.5.1",
|
|
8
|
-
"@lucide/vue": "1.
|
|
9
|
-
"@nuxt/devtools": "3.4.
|
|
8
|
+
"@lucide/vue": "1.57.0",
|
|
9
|
+
"@nuxt/devtools": "3.4.3",
|
|
10
10
|
"@nuxt/eslint": "1.17.0",
|
|
11
11
|
"@nuxt/image": "2.1.0",
|
|
12
12
|
"@nuxtjs/color-mode": "4.0.1",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"@nuxtjs/i18n": "10.6.0",
|
|
15
15
|
"@nuxtjs/seo": "6.0.1",
|
|
16
16
|
"@nuxtjs/turnstile": "1.1.3",
|
|
17
|
-
"@pinia/nuxt": "1.0.
|
|
18
|
-
"@sentry/nuxt": "10.
|
|
17
|
+
"@pinia/nuxt": "1.0.3",
|
|
18
|
+
"@sentry/nuxt": "10.76.2",
|
|
19
19
|
"@tailwindcss/forms": "0.5.11",
|
|
20
20
|
"@tailwindcss/typography": "0.5.20",
|
|
21
21
|
"@tailwindcss/vite": "4.3.3",
|
|
22
|
-
"@takumi-rs/core": "2.
|
|
22
|
+
"@takumi-rs/core": "2.16.2",
|
|
23
23
|
"@types/lodash-es": "4.17.12",
|
|
24
24
|
"@types/nodemailer": "8.0.2",
|
|
25
25
|
"@urql/core": "6.0.3",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"eslint": "10.12.0",
|
|
33
33
|
"eslint-config-prettier": "10.1.8",
|
|
34
34
|
"eslint-plugin-compat": "7.0.2",
|
|
35
|
-
"eslint-plugin-prettier": "5.5.
|
|
35
|
+
"eslint-plugin-prettier": "5.5.7",
|
|
36
36
|
"eslint-plugin-yml": "3.9.0",
|
|
37
37
|
"globals": "17.13.0",
|
|
38
38
|
"jiti": "2.7.0",
|
|
39
39
|
"jose": "6.2.12",
|
|
40
|
-
"nodemailer": "10.
|
|
40
|
+
"nodemailer": "10.1.1",
|
|
41
41
|
"nuxt-gtag": "5.0.0",
|
|
42
42
|
"nuxt-security": "2.6.0",
|
|
43
43
|
"reka-ui": "2.11.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vue-tsc": "3.3.11"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/node": "24.19.
|
|
52
|
+
"@types/node": "24.19.2",
|
|
53
53
|
"@urql/devtools": "2.0.3",
|
|
54
54
|
"@urql/exchange-graphcache": "9.0.2",
|
|
55
55
|
"@vueuse/core": "15.0.0",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"defu": "6.1.7",
|
|
58
58
|
"lodash-es": "4.18.1",
|
|
59
59
|
"nuxt": "4.6.1",
|
|
60
|
-
"nuxtseo-devtools-host": "1.0.
|
|
61
|
-
"pinia": "4.0
|
|
60
|
+
"nuxtseo-devtools-host": "1.0.2",
|
|
61
|
+
"pinia": "4.1.0",
|
|
62
62
|
"postcss-html": "2.0.0",
|
|
63
|
-
"prettier": "3.9.
|
|
63
|
+
"prettier": "3.9.10",
|
|
64
64
|
"prettier-plugin-tailwindcss": "0.8.1",
|
|
65
65
|
"serve": "14.2.6",
|
|
66
66
|
"sharp": "0.35.5",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"stylelint-config-standard": "40.0.0",
|
|
72
72
|
"stylelint-no-unsupported-browser-features": "8.1.2",
|
|
73
73
|
"tailwindcss": "4.3.3",
|
|
74
|
-
"vue": "3.5.
|
|
74
|
+
"vue": "3.5.44",
|
|
75
75
|
"vue-router": "5.4.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"url": "git+https://github.com/dargmuesli/vio.git"
|
|
105
105
|
},
|
|
106
106
|
"type": "module",
|
|
107
|
-
"version": "23.
|
|
107
|
+
"version": "23.1.0",
|
|
108
108
|
"scripts": {
|
|
109
109
|
"build": "pnpm run build:node",
|
|
110
110
|
"build:node": "NUXT_PUBLIC_I18N_BASE_URL=https://app.localhost:3001 nuxt build playground",
|
package/server/utils/site.ts
CHANGED
|
@@ -2,6 +2,11 @@ export const useSiteUrl = () => {
|
|
|
2
2
|
const runtimeConfig = useRuntimeConfig()
|
|
3
3
|
const siteUrl = runtimeConfig.public.i18n.baseUrl
|
|
4
4
|
|
|
5
|
+
// consumers see the i18n module's wider type, which also allows a resolver function
|
|
6
|
+
if (typeof siteUrl !== 'string') {
|
|
7
|
+
throw new Error('`runtimeConfig.public.i18n.baseUrl` must be a string')
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
return {
|
|
6
11
|
siteUrl,
|
|
7
12
|
siteUrlTyped: new URL(siteUrl),
|