nuxt-seo-utils 7.0.17 → 7.0.18

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "7.0.17",
7
+ "version": "7.0.18",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -544,10 +544,11 @@ export {}
544
544
  nuxt: true
545
545
  });
546
546
  const appRuntimeDir = resolve(runtimeDir, "./app");
547
- if (config.treeShakeUseSeoMeta)
547
+ if (config.treeShakeUseSeoMeta) {
548
548
  addVitePlugin(UnheadVite(), {
549
549
  prepend: true
550
550
  });
551
+ }
551
552
  if (config.automaticOgAndTwitterTags)
552
553
  addPlugin({ src: resolve(appRuntimeDir, "plugins", "inferSeoMetaPlugin") });
553
554
  if (config.mergeWithSiteConfig)
@@ -9,7 +9,10 @@ export function applyDefaults() {
9
9
  const siteConfig = useSiteConfig({
10
10
  resolveRefs: false
11
11
  });
12
- const resolveCurrentLocale = () => toValue(siteConfig.currentLocale) || toValue(siteConfig.defaultLocale) || "en";
12
+ const resolveCurrentLocale = () => {
13
+ const locale = toValue(siteConfig.currentLocale) || toValue(siteConfig.defaultLocale) || "en";
14
+ return locale.replace(/_/g, "-");
15
+ };
13
16
  const head = injectHead();
14
17
  head.use(TemplateParamsPlugin);
15
18
  const { canonicalQueryWhitelist, canonicalLowercase } = useRuntimeConfig().public["seo-utils"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-seo-utils",
3
3
  "type": "module",
4
- "version": "7.0.17",
4
+ "version": "7.0.18",
5
5
  "description": "SEO utilities to improve your Nuxt sites discoverability and shareability",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -32,43 +32,43 @@
32
32
  ]
33
33
  },
34
34
  "dependencies": {
35
- "@nuxt/kit": "^4.1.2",
36
- "@unhead/addons": "^2.0.14",
35
+ "@nuxt/kit": "^4.1.3",
36
+ "@unhead/addons": "^2.0.19",
37
37
  "defu": "^6.1.4",
38
38
  "escape-string-regexp": "^5.0.0",
39
39
  "fast-glob": "^3.3.3",
40
40
  "image-size": "^2.0.2",
41
- "nuxt-site-config": "^3.2.8",
41
+ "nuxt-site-config": "^3.2.10",
42
42
  "pathe": "^2.0.3",
43
43
  "pkg-types": "^2.3.0",
44
44
  "scule": "^1.3.0",
45
- "semver": "^7.7.2",
45
+ "semver": "^7.7.3",
46
46
  "ufo": "^1.6.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@antfu/eslint-config": "^5.3.0",
49
+ "@antfu/eslint-config": "^6.0.0",
50
50
  "@nuxt/module-builder": "^1.0.2",
51
- "@nuxt/schema": "^4.1.2",
51
+ "@nuxt/schema": "^4.1.3",
52
52
  "@nuxt/test-utils": "^3.19.2",
53
- "@nuxt/ui": "^3.3.4",
53
+ "@nuxt/ui": "^3.3.6",
54
54
  "@nuxtjs/eslint-config-typescript": "^12.1.0",
55
- "@nuxtjs/i18n": "^10.1.0",
56
- "@types/node": "^24.5.1",
57
- "@unhead/vue": "^2.0.14",
55
+ "@nuxtjs/i18n": "^10.1.1",
56
+ "@types/node": "^24.7.2",
57
+ "@unhead/vue": "^2.0.19",
58
58
  "@vue/test-utils": "^2.4.6",
59
- "bumpp": "^10.2.3",
59
+ "bumpp": "^10.3.1",
60
60
  "case-police": "^2.0.0",
61
61
  "cheerio": "^1.1.2",
62
- "eslint": "^9.35.0",
63
- "happy-dom": "^18.0.1",
62
+ "eslint": "^9.37.0",
63
+ "happy-dom": "^20.0.2",
64
64
  "markdownlint-cli": "^0.45.0",
65
- "nuxt": "^4.1.2",
65
+ "nuxt": "^4.1.3",
66
66
  "nuxt-content-twoslash": "^0.1.2",
67
- "playwright-core": "^1.55.0",
68
- "sass": "^1.92.1",
69
- "typescript": "^5.9.2",
67
+ "playwright-core": "^1.56.0",
68
+ "sass": "^1.93.2",
69
+ "typescript": "^5.9.3",
70
70
  "vitest": "^3.2.4",
71
- "vue-tsc": "^3.0.7"
71
+ "vue-tsc": "^3.0.9"
72
72
  },
73
73
  "scripts": {
74
74
  "lint": "eslint . --fix",