nuxt-seo-utils 7.0.6 → 7.0.7

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,9 +5,9 @@
5
5
  "nuxt": ">=3.16.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "7.0.5",
8
+ "version": "7.0.6",
9
9
  "builder": {
10
- "@nuxt/module-builder": "1.0.0",
10
+ "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
12
12
  }
13
13
  }
@@ -26,6 +26,7 @@ function titleCase(s) {
26
26
  }
27
27
  const BreadcrumbCtx = Symbol("BreadcrumbCtx");
28
28
  export function useBreadcrumbItems(_options = {}) {
29
+ const nuxtApp = useNuxtApp();
29
30
  const vm = getCurrentInstance();
30
31
  const id = `${vm?.uid || 0}:${_options.id || "breadcrumb"}`;
31
32
  const parentChain = [];
@@ -34,7 +35,7 @@ export function useBreadcrumbItems(_options = {}) {
34
35
  parentChain.push(parent.uid);
35
36
  parent = parent.parent;
36
37
  }
37
- const pauseUpdates = ref(import.meta.client);
38
+ const pauseUpdates = ref(import.meta.client && !nuxtApp.isHydrating);
38
39
  let stateRef = null;
39
40
  if (vm) {
40
41
  stateRef = inject(BreadcrumbCtx, null);
@@ -51,7 +52,6 @@ export function useBreadcrumbItems(_options = {}) {
51
52
  stateRef.value = state2;
52
53
  });
53
54
  if (import.meta.client) {
54
- const nuxtApp = useNuxtApp();
55
55
  const _ = [];
56
56
  _.push(nuxtApp.hooks.hook("page:start", () => {
57
57
  pauseUpdates.value = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-seo-utils",
3
3
  "type": "module",
4
- "version": "7.0.6",
4
+ "version": "7.0.7",
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,26 +33,26 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@nuxt/kit": "^3.16.2",
36
- "@unhead/addons": "^2.0.4",
36
+ "@unhead/addons": "^2.0.5",
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.1.7",
41
+ "nuxt-site-config": "^3.1.9",
42
42
  "pathe": "^2.0.3",
43
43
  "pkg-types": "^2.1.0",
44
44
  "scule": "^1.3.0",
45
45
  "semver": "^7.7.1",
46
- "ufo": "^1.5.4"
46
+ "ufo": "^1.6.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@antfu/eslint-config": "4.11.0",
50
- "@nuxt/module-builder": "^1.0.0",
50
+ "@nuxt/module-builder": "^1.0.1",
51
51
  "@nuxt/schema": "3.16.2",
52
52
  "@nuxt/test-utils": "^3.17.2",
53
53
  "@nuxt/ui": "^3.0.2",
54
54
  "@nuxtjs/eslint-config-typescript": "^12.1.0",
55
- "@nuxtjs/i18n": "^9.5.2",
55
+ "@nuxtjs/i18n": "^9.5.3",
56
56
  "@types/node": "^22.14.0",
57
57
  "@unhead/vue": "2.0.4",
58
58
  "@vue/test-utils": "^2.4.6",