@dargmuesli/nuxt-vio 13.2.0 → 13.2.2

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/.config/lint.js CHANGED
@@ -1,6 +1,5 @@
1
1
  // @ts-check
2
2
 
3
- import { fixupConfigRules } from '@eslint/compat'
4
3
  // @ts-ignore
5
4
  import vueI18n from '@intlify/eslint-plugin-vue-i18n'
6
5
  import eslintPluginCompat from 'eslint-plugin-compat'
@@ -14,15 +13,13 @@ const JITI = jiti(moduleFileUrl.pathname)
14
13
  const POLYFILLS = JITI('../utils/constants.ts').POLYFILLS
15
14
 
16
15
  const vueI18nConfiguration = vueI18n.configs['flat/recommended']
17
- const compatConfiguration = fixupConfigRules(
18
- eslintPluginCompat.configs['flat/recommended'],
19
- )
16
+ const compatConfiguration = eslintPluginCompat.configs['flat/recommended']
20
17
  const ymlConfiguration = eslintPluginYml.configs['flat/recommended']
21
18
  const prettierConfiguration = eslintPluginPrettierRecommended
22
19
 
23
20
  export const VIO_ESLINT_CONFIG = [
24
21
  ...vueI18nConfiguration,
25
- ...compatConfiguration,
22
+ compatConfiguration,
26
23
  ...ymlConfiguration,
27
24
  prettierConfiguration, // must be last
28
25
 
@@ -11,7 +11,8 @@ export const useAppLayout = () => {
11
11
  })
12
12
 
13
13
  // TODO: convert to `useServerHeadSafe` (https://github.com/unjs/unhead/issues/221)
14
- useServerSeoMeta({
14
+ // adding `Server` leads incorrect title template on hydration
15
+ useSeoMeta({
15
16
  titleTemplate: (title) =>
16
17
  TITLE_TEMPLATE({
17
18
  siteName: siteConfig.name,
@@ -4,14 +4,13 @@ export const useHeadDefault = (input: UseSeoMetaInput) => {
4
4
  const siteConfig = useSiteConfig()
5
5
 
6
6
  const description = input.description || siteConfig.description
7
- const title = input.title
8
- ? TITLE_TEMPLATE({
9
- siteName: siteConfig.name,
10
- title: input.title.toString(),
11
- })
12
- : siteConfig.name
7
+ const title = TITLE_TEMPLATE({
8
+ siteName: siteConfig.name,
9
+ title: input.title?.toString(),
10
+ })
13
11
 
14
- useServerSeoMeta({
12
+ // can't be server side or it won't update on the client
13
+ useSeoMeta({
15
14
  ...(description
16
15
  ? {
17
16
  description,
package/nuxt.config.ts CHANGED
@@ -29,6 +29,7 @@ export default defineNuxtConfig(
29
29
  name: 'layout',
30
30
  },
31
31
  },
32
+ compatibilityDate: '2024-04-03',
32
33
  ...(process.env.NUXT_PUBLIC_SITE_URL
33
34
  ? {}
34
35
  : {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
- "@dargmuesli/nuxt-cookie-control": "8.4.4",
4
- "@eslint/compat": "1.1.0",
5
- "@heroicons/vue": "2.1.4",
3
+ "@dargmuesli/nuxt-cookie-control": "8.4.5",
4
+ "@eslint/compat": "1.1.1",
5
+ "@heroicons/vue": "2.1.5",
6
6
  "@http-util/status-i18n": "0.8.1",
7
7
  "@intlify/eslint-plugin-vue-i18n": "3.0.0",
8
8
  "@nuxt/devtools": "1.3.9",
@@ -11,8 +11,8 @@
11
11
  "@nuxtjs/color-mode": "3.4.2",
12
12
  "@nuxtjs/html-validator": "1.8.2",
13
13
  "@nuxtjs/i18n": "8.3.0",
14
- "@nuxtjs/seo": "2.0.0-rc.11",
15
- "@nuxtjs/tailwindcss": "6.12.0",
14
+ "@nuxtjs/seo": "2.0.0-rc.15",
15
+ "@nuxtjs/tailwindcss": "6.12.1",
16
16
  "@pinia/nuxt": "0.5.1",
17
17
  "@tailwindcss/forms": "0.5.7",
18
18
  "@tailwindcss/typography": "0.5.13",
@@ -22,42 +22,42 @@
22
22
  "@vuelidate/validators": "2.0.4",
23
23
  "clipboardy": "4.0.0",
24
24
  "dayjs": "2.0.0-alpha.4",
25
- "eslint": "9.6.0",
25
+ "eslint": "9.7.0",
26
26
  "eslint-config-prettier": "9.1.0",
27
- "eslint-plugin-compat": "5.0.0",
28
- "eslint-plugin-prettier": "5.1.3",
27
+ "eslint-plugin-compat": "6.0.0",
28
+ "eslint-plugin-prettier": "5.2.1",
29
29
  "eslint-plugin-yml": "1.14.0",
30
30
  "globals": "15.8.0",
31
31
  "jose": "5.6.3",
32
- "nuxt-gtag": "2.0.6",
32
+ "nuxt-gtag": "2.0.7",
33
33
  "nuxt-security": "2.0.0-rc.9",
34
- "sweetalert2": "11.12.2",
34
+ "sweetalert2": "11.12.3",
35
35
  "vue-tsc": "2.0.26"
36
36
  },
37
37
  "devDependencies": {
38
- "@unhead/vue": "1.9.15",
38
+ "@unhead/vue": "1.9.16",
39
39
  "@urql/devtools": "2.0.3",
40
40
  "@urql/exchange-graphcache": "7.1.2",
41
41
  "@urql/vue": "1.3.2",
42
42
  "consola": "3.2.3",
43
- "cookie-es": "1.1.0",
43
+ "cookie-es": "1.2.1",
44
44
  "defu": "6.1.4",
45
45
  "h3": "1.12.0",
46
46
  "jiti": "1.21.6",
47
47
  "lodash-es": "4.17.21",
48
- "nuxt": "3.12.2",
48
+ "nuxt": "3.12.4",
49
49
  "pinia": "2.1.7",
50
- "prettier": "3.3.2",
50
+ "prettier": "3.3.3",
51
51
  "prettier-plugin-tailwindcss": "0.6.5",
52
52
  "serve": "14.2.3",
53
53
  "sharp": "0.33.4",
54
- "stylelint": "16.6.1",
54
+ "stylelint": "16.7.0",
55
55
  "stylelint-config-recommended-vue": "1.5.0",
56
56
  "stylelint-config-standard": "36.0.1",
57
57
  "stylelint-no-unsupported-browser-features": "8.0.1",
58
- "tailwindcss": "3.4.4",
59
- "unhead": "1.9.15",
60
- "vue": "3.4.31",
58
+ "tailwindcss": "3.4.6",
59
+ "unhead": "1.9.16",
60
+ "vue": "3.4.33",
61
61
  "vue-router": "4.4.0"
62
62
  },
63
63
  "engines": {
@@ -86,8 +86,8 @@
86
86
  "main": "nuxt.config.ts",
87
87
  "name": "@dargmuesli/nuxt-vio",
88
88
  "peerDependencies": {
89
- "nuxt": "3.12.2",
90
- "vue": "3.4.31",
89
+ "nuxt": "3.12.4",
90
+ "vue": "3.4.33",
91
91
  "vue-router": "4.4.0"
92
92
  },
93
93
  "publishConfig": {
@@ -116,5 +116,5 @@
116
116
  "start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
117
117
  },
118
118
  "type": "module",
119
- "version": "13.2.0"
119
+ "version": "13.2.2"
120
120
  }