nuxt-seo-utils 7.0.4 → 7.0.5

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.16.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "7.0.3",
8
+ "version": "7.0.4",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "2.0.0"
@@ -9,7 +9,7 @@ import { defu } from "defu";
9
9
  import { fixSlashes } from "nuxt-site-config/urls";
10
10
  import { useNuxtApp, useRoute, useRouter, useState } from "nuxt/app";
11
11
  import { withoutTrailingSlash } from "ufo";
12
- import { computed, getCurrentInstance, inject, onScopeDispose, onUnmounted, provide, ref, toRaw, toValue } from "vue";
12
+ import { computed, getCurrentInstance, watch, inject, onScopeDispose, onUnmounted, provide, ref, toRaw, toValue } from "vue";
13
13
  import { pathBreadcrumbSegments } from "../../shared/breadcrumbs.js";
14
14
  function withoutQuery(path) {
15
15
  return path.split("?")[0];
@@ -118,7 +118,7 @@ export function useBreadcrumbItems(_options = {}) {
118
118
  segments.unshift(...allPrepends);
119
119
  if (allAppends.length)
120
120
  segments.push(...allAppends);
121
- lastBreadcrumbs.value = segments.filter(Boolean).map((item) => {
121
+ return segments.filter(Boolean).map((item) => {
122
122
  let fallbackLabel = titleCase(String((item.to || "").split("/").pop()));
123
123
  let fallbackAriaLabel = "";
124
124
  const route2 = item.to ? router.resolve(item.to)?.matched?.[0] : null;
@@ -152,8 +152,12 @@ export function useBreadcrumbItems(_options = {}) {
152
152
  }
153
153
  return m;
154
154
  }).filter(Boolean);
155
- return lastBreadcrumbs.value;
156
155
  });
156
+ watch(items, (newItems) => {
157
+ if (!pauseUpdates.value) {
158
+ lastBreadcrumbs.value = newItems;
159
+ }
160
+ }, { immediate: true });
157
161
  const schemaOrgEnabled = typeof _options.schemaOrg === "undefined" ? true : _options.schemaOrg;
158
162
  if ((import.meta.dev || import.meta.server || import.meta.env?.NODE_ENV === "test") && schemaOrgEnabled) {
159
163
  useSchemaOrg([
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-seo-utils",
3
3
  "type": "module",
4
- "version": "7.0.4",
4
+ "version": "7.0.5",
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",
@@ -34,13 +34,13 @@
34
34
  ]
35
35
  },
36
36
  "dependencies": {
37
- "@nuxt/kit": "^3.16.0",
38
- "@unhead/addons": "^2.0.0-rc.12",
37
+ "@nuxt/kit": "^3.16.2",
38
+ "@unhead/addons": "^2.0.2",
39
39
  "defu": "^6.1.4",
40
40
  "escape-string-regexp": "^5.0.0",
41
41
  "fast-glob": "^3.3.3",
42
- "image-size": "^2.0.0",
43
- "nuxt-site-config": "^3.1.5",
42
+ "image-size": "^2.0.1",
43
+ "nuxt-site-config": "^3.1.7",
44
44
  "pathe": "^2.0.3",
45
45
  "pkg-types": "^2.1.0",
46
46
  "scule": "^1.3.0",
@@ -48,31 +48,30 @@
48
48
  "ufo": "^1.5.4"
49
49
  },
50
50
  "devDependencies": {
51
- "@antfu/eslint-config": "4.10.1",
51
+ "@antfu/eslint-config": "4.11.0",
52
52
  "@nuxt/module-builder": "^0.8.4",
53
- "@nuxt/schema": "3.16.0",
53
+ "@nuxt/schema": "3.16.2",
54
54
  "@nuxt/test-utils": "^3.17.2",
55
- "@nuxt/ui": "^3.0.0",
55
+ "@nuxt/ui": "^3.0.2",
56
56
  "@nuxtjs/eslint-config-typescript": "^12.1.0",
57
- "@nuxtjs/i18n": "^9.3.1",
58
- "@unhead/vue": "2.0.0-rc.12",
57
+ "@nuxtjs/i18n": "^9.4.0",
58
+ "@unhead/vue": "2.0.2",
59
59
  "@vue/test-utils": "^2.4.6",
60
60
  "bumpp": "^10.1.0",
61
- "case-police": "^1.0.0",
61
+ "case-police": "^2.0.0",
62
62
  "cheerio": "1.0.0",
63
- "eslint": "^9.22.0",
63
+ "eslint": "^9.23.0",
64
64
  "happy-dom": "^17.4.4",
65
65
  "markdownlint-cli": "^0.44.0",
66
- "nuxt": "^3.16.0",
66
+ "nuxt": "3.16.2",
67
67
  "nuxt-content-twoslash": "^0.1.2",
68
- "playwright-core": "^1.51.0",
69
- "sass": "^1.85.1",
68
+ "playwright-core": "^1.51.1",
69
+ "sass": "^1.86.1",
70
70
  "typescript": "5.8.2",
71
- "vitest": "^3.0.8",
71
+ "vitest": "^3.1.1",
72
72
  "vue-tsc": "^2.2.8"
73
73
  },
74
74
  "resolutions": {
75
- "nuxt": "3.16.0",
76
75
  "typescript": "5.6.3"
77
76
  },
78
77
  "scripts": {