nuxt-seo-utils 7.0.10 → 7.0.11
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
package/dist/module.mjs
CHANGED
|
@@ -83,11 +83,13 @@ const MetaTagFileGlobs = [
|
|
|
83
83
|
"**/*og-image.{png,jpg,jpeg,gif}",
|
|
84
84
|
"**/*opengraph-image.{png,jpg,jpeg,gif}",
|
|
85
85
|
"**/*twitter-image.{png,jpg,jpeg,gif}",
|
|
86
|
-
"**/*icon.{ico,jpg,jpeg,png,svg}",
|
|
87
|
-
"**/*icon-*.{ico,jpg,jpeg,png,svg}",
|
|
88
86
|
"**/*apple-icon.{jpg,jpeg,png}",
|
|
89
87
|
"**/*apple-touch.{jpg,jpeg,png}",
|
|
90
|
-
"**/*apple-touch
|
|
88
|
+
"**/*apple-touch-*.{jpg,jpeg,png}",
|
|
89
|
+
"**/*apple-touch-icon.{jpg,jpeg,png}",
|
|
90
|
+
"**/*apple-touch-icon-*.{jpg,jpeg,png}",
|
|
91
|
+
"**/*icon.{ico,jpg,jpeg,png,svg}",
|
|
92
|
+
"**/*icon-*.{ico,jpg,jpeg,png,svg}"
|
|
91
93
|
];
|
|
92
94
|
|
|
93
95
|
function generateNuxtPageFromFile(file, pagesDir) {
|
|
@@ -303,7 +305,7 @@ async function generateTagsFromPublicFiles(nuxt = useNuxt()) {
|
|
|
303
305
|
});
|
|
304
306
|
}
|
|
305
307
|
const isIcon = (file) => file.includes("icon") && !file.endsWith(".ico");
|
|
306
|
-
const isAppleTouchIcon = (file) => file.
|
|
308
|
+
const isAppleTouchIcon = (file) => file.includes("apple-icon") || file.includes("apple-touch-icon") || file.includes("apple-touch");
|
|
307
309
|
headConfig.link.push(
|
|
308
310
|
...await Promise.all([
|
|
309
311
|
...rootPublicFiles.filter((file) => isIcon(file) && !isAppleTouchIcon(file)).sort().map(async (iconFile) => {
|
|
@@ -61,6 +61,14 @@ export interface BreadcrumbProps {
|
|
|
61
61
|
* Should the root breadcrumb be shown.
|
|
62
62
|
*/
|
|
63
63
|
hideRoot?: MaybeRefOrGetter<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* Should breadcrumb items with non-existing path be shown.
|
|
66
|
+
*
|
|
67
|
+
* By default, every path segments will be present in breadcrumb list even if there is no corresponding page for such segment.
|
|
68
|
+
*
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
hideNonExisting?: MaybeRefOrGetter<boolean>;
|
|
64
72
|
/**
|
|
65
73
|
* The root segment of the breadcrumb list.
|
|
66
74
|
*
|
|
@@ -96,6 +96,7 @@ export function useBreadcrumbItems(_options = {}) {
|
|
|
96
96
|
});
|
|
97
97
|
acc.hideRoot = typeof cur.hideRoot === "undefined" ? acc.hideRoot : cur.hideRoot;
|
|
98
98
|
acc.hideCurrent = typeof cur.hideCurrent === "undefined" ? acc.hideCurrent : cur.hideCurrent;
|
|
99
|
+
acc.hideNonExisting = typeof cur.hideNonExisting === "undefined" ? acc.hideNonExisting : cur.hideNonExisting;
|
|
99
100
|
acc.rootSegment = acc.rootSegment || cur.rootSegment;
|
|
100
101
|
acc.path = acc.path || cur.path;
|
|
101
102
|
acc.overrides = acc.overrides || [];
|
|
@@ -155,6 +156,8 @@ export function useBreadcrumbItems(_options = {}) {
|
|
|
155
156
|
fallbackLabel = routeMeta.breadcrumbLabel || routeMeta.breadcrumbTitle || routeMeta.title || fallbackLabel;
|
|
156
157
|
fallbackLabel = i18n.t(`breadcrumb.items.${routeName}.label`, fallbackLabel, { missingWarn: false });
|
|
157
158
|
fallbackAriaLabel = i18n.t(`breadcrumb.items.${routeName}.ariaLabel`, fallbackAriaLabel, { missingWarn: false });
|
|
159
|
+
} else if (flatOptions.hideNonExisting) {
|
|
160
|
+
return false;
|
|
158
161
|
}
|
|
159
162
|
item.label = item.label || fallbackLabel;
|
|
160
163
|
item.ariaLabel = item.ariaLabel || fallbackAriaLabel || item.label;
|
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
|
+
"version": "7.0.11",
|
|
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,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxt/kit": "^3.17.
|
|
35
|
+
"@nuxt/kit": "^3.17.1",
|
|
36
36
|
"@unhead/addons": "^2.0.8",
|
|
37
37
|
"defu": "^6.1.4",
|
|
38
38
|
"escape-string-regexp": "^5.0.0",
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@antfu/eslint-config": "^4.12.0",
|
|
50
50
|
"@nuxt/module-builder": "^1.0.1",
|
|
51
|
-
"@nuxt/schema": "^3.17.
|
|
52
|
-
"@nuxt/test-utils": "^3.
|
|
53
|
-
"@nuxt/ui": "^3.1.
|
|
51
|
+
"@nuxt/schema": "^3.17.1",
|
|
52
|
+
"@nuxt/test-utils": "^3.18.0",
|
|
53
|
+
"@nuxt/ui": "^3.1.1",
|
|
54
54
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
55
|
-
"@nuxtjs/i18n": "^9.5.
|
|
56
|
-
"@types/node": "^22.15.
|
|
55
|
+
"@nuxtjs/i18n": "^9.5.4",
|
|
56
|
+
"@types/node": "^22.15.3",
|
|
57
57
|
"@unhead/vue": "^2.0.8",
|
|
58
58
|
"@vue/test-utils": "^2.4.6",
|
|
59
59
|
"bumpp": "^10.1.0",
|
|
60
60
|
"case-police": "^2.0.0",
|
|
61
61
|
"cheerio": "1.0.0",
|
|
62
|
-
"eslint": "^9.
|
|
63
|
-
"happy-dom": "^17.4.
|
|
62
|
+
"eslint": "^9.26.0",
|
|
63
|
+
"happy-dom": "^17.4.6",
|
|
64
64
|
"markdownlint-cli": "^0.44.0",
|
|
65
|
-
"nuxt": "^3.17.
|
|
65
|
+
"nuxt": "^3.17.1",
|
|
66
66
|
"nuxt-content-twoslash": "^0.1.2",
|
|
67
67
|
"playwright-core": "^1.52.0",
|
|
68
68
|
"sass": "^1.87.0",
|