nuxt-seo-utils 6.0.3 → 6.0.4

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
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.6.1",
6
6
  "bridge": false
7
7
  },
8
- "version": "6.0.2",
8
+ "version": "6.0.3",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "2.0.0"
@@ -6,8 +6,8 @@ import {
6
6
  useSiteConfig
7
7
  } from "#imports";
8
8
  import { defu } from "defu";
9
- import { useRouter } from "nuxt/app";
10
9
  import { fixSlashes } from "nuxt-site-config/urls";
10
+ import { useRouter } from "nuxt/app";
11
11
  import { withoutTrailingSlash } from "ufo";
12
12
  import { computed, toValue } from "vue";
13
13
  import { pathBreadcrumbSegments } from "../../shared/breadcrumbs.js";
@@ -51,7 +51,7 @@ export function useBreadcrumbItems(options = {}) {
51
51
  return segments.filter(Boolean).map((item) => {
52
52
  const route = router.resolve(item.to)?.matched?.[0] || router.currentRoute.value;
53
53
  const routeMeta = route?.meta || {};
54
- const routeName = route ? String(route.name.split("___")) : item.to === "/" ? "index" : null;
54
+ const routeName = route ? String(route.name?.split("___")) : item.to === "/" ? "index" : null;
55
55
  const fallbackLabel = titleCase(routeName === "index" ? "Home" : (item.to || "").split("/").pop() || "");
56
56
  if (routeMeta.breadcrumb) {
57
57
  item = {
@@ -11,10 +11,10 @@ export default defineNuxtPlugin({
11
11
  if (event.context._nitro.routeRules.head)
12
12
  head.push(event.context._nitro.routeRules.head, { mode: "server", tagPriority: -9 });
13
13
  if (event.context._nitro.routeRules.seoMeta) {
14
- const meta = unpackMeta({ ...event.context._nitro.routeRules.seoMeta, tagPriority: -9 });
14
+ const meta = unpackMeta({ ...event.context._nitro.routeRules.seoMeta });
15
15
  head.push({
16
16
  meta
17
- }, { mode: "server" });
17
+ }, { mode: "server", tagPriority: -9 });
18
18
  }
19
19
  }
20
20
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-seo-utils",
3
3
  "type": "module",
4
- "version": "6.0.3",
4
+ "version": "6.0.4",
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",
@@ -33,39 +33,39 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@nuxt/kit": "^3.14.1592",
36
- "@unhead/addons": "^1.11.11",
37
- "@unhead/schema": "^1.11.11",
36
+ "@unhead/addons": "^1.11.13",
37
+ "@unhead/schema": "^1.11.13",
38
38
  "defu": "^6.1.4",
39
39
  "escape-string-regexp": "^5.0.0",
40
40
  "fast-glob": "^3.3.2",
41
41
  "image-size": "^1.1.1",
42
42
  "mlly": "^1.7.3",
43
- "nuxt-site-config": "^3.0.3",
43
+ "nuxt-site-config": "^3.0.4",
44
44
  "pathe": "^1.1.2",
45
45
  "scule": "^1.3.0",
46
46
  "ufo": "^1.5.4"
47
47
  },
48
48
  "devDependencies": {
49
- "@antfu/eslint-config": "3.9.2",
49
+ "@antfu/eslint-config": "3.11.2",
50
50
  "@nuxt/module-builder": "^0.8.4",
51
- "@nuxt/test-utils": "^3.14.4",
51
+ "@nuxt/test-utils": "^3.15.1",
52
52
  "@nuxt/ui": "^2.19.2",
53
53
  "@nuxtjs/eslint-config-typescript": "^12.1.0",
54
- "@nuxtjs/i18n": "^9.1.0",
55
- "@unhead/shared": "^1.11.11",
54
+ "@nuxtjs/i18n": "^9.1.1",
55
+ "@unhead/shared": "^1.11.13",
56
56
  "@vue/test-utils": "^2.4.6",
57
57
  "bumpp": "^9.8.1",
58
- "case-police": "^0.7.0",
58
+ "case-police": "^0.7.2",
59
59
  "cheerio": "1.0.0",
60
- "eslint": "^9.15.0",
61
- "happy-dom": "^15.11.6",
60
+ "eslint": "^9.16.0",
61
+ "happy-dom": "^15.11.7",
62
62
  "markdownlint-cli": "^0.43.0",
63
63
  "nuxt": "^3.14.1592",
64
- "nuxt-content-twoslash": "^0.1.1",
64
+ "nuxt-content-twoslash": "^0.1.2",
65
65
  "playwright-core": "^1.49.0",
66
- "sass": "^1.81.0",
66
+ "sass": "^1.82.0",
67
67
  "typescript": "5.6.3",
68
- "vitest": "^2.1.5"
68
+ "vitest": "^2.1.8"
69
69
  },
70
70
  "resolutions": {
71
71
  "typescript": "5.6.3"