nuxtseo-shared 6.0.0 → 6.0.2

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/brand.d.mts CHANGED
@@ -9,7 +9,7 @@ import { NuxtSEOModule } from './const.mjs';
9
9
  * nuxtseo.com, the devtools client, READMEs and favicons all draw from here.
10
10
  */
11
11
  /** Every module with a hand-drawn icon. The meta `nuxt-seo` module uses the summit mark instead. */
12
- type ModuleIconName = Exclude<NuxtSEOModule['slug'], 'nuxt-seo' | 'ai-kit'>;
12
+ type ModuleIconName = Exclude<NuxtSEOModule['slug'], 'nuxt-seo'>;
13
13
  type BrandIconName = ModuleIconName | 'mcp';
14
14
  /** Colour of the landing dot. `free`: a module shipped it. `pro`: Pro read it back. */
15
15
  type BrandLanding = 'free' | 'pro' | 'ink' | 'none';
package/dist/brand.d.ts CHANGED
@@ -9,7 +9,7 @@ import { NuxtSEOModule } from './const.js';
9
9
  * nuxtseo.com, the devtools client, READMEs and favicons all draw from here.
10
10
  */
11
11
  /** Every module with a hand-drawn icon. The meta `nuxt-seo` module uses the summit mark instead. */
12
- type ModuleIconName = Exclude<NuxtSEOModule['slug'], 'nuxt-seo' | 'ai-kit'>;
12
+ type ModuleIconName = Exclude<NuxtSEOModule['slug'], 'nuxt-seo'>;
13
13
  type BrandIconName = ModuleIconName | 'mcp';
14
14
  /** Colour of the landing dot. `free`: a module shipped it. `pro`: Pro read it back. */
15
15
  type BrandLanding = 'free' | 'pro' | 'ink' | 'none';
@@ -49,6 +49,11 @@ interface SetupChecklistContext {
49
49
  nitroPreset?: string;
50
50
  sitemapPrerendered?: boolean;
51
51
  hasSitemapOutputHook?: boolean;
52
+ /**
53
+ * OG Image signs runtime URLs with Nuxt's `appSecret`. `missing` means only Nuxt's generated
54
+ * development secret exists. Unset when production does not sign runtime URLs.
55
+ */
56
+ ogImageSecret?: 'configured' | 'missing';
52
57
  optOuts?: Partial<Record<NuxtSEOModule['slug'], string[]>>;
53
58
  moduleOptions?: Partial<Record<NuxtSEOModule['slug'], Record<string, unknown>>>;
54
59
  }
@@ -49,6 +49,11 @@ interface SetupChecklistContext {
49
49
  nitroPreset?: string;
50
50
  sitemapPrerendered?: boolean;
51
51
  hasSitemapOutputHook?: boolean;
52
+ /**
53
+ * OG Image signs runtime URLs with Nuxt's `appSecret`. `missing` means only Nuxt's generated
54
+ * development secret exists. Unset when production does not sign runtime URLs.
55
+ */
56
+ ogImageSecret?: 'configured' | 'missing';
52
57
  optOuts?: Partial<Record<NuxtSEOModule['slug'], string[]>>;
53
58
  moduleOptions?: Partial<Record<NuxtSEOModule['slug'], Record<string, unknown>>>;
54
59
  }
@@ -38,6 +38,8 @@ function parseSetupChecklistContext(value) {
38
38
  context.nuxtMajor = data.nuxtMajor;
39
39
  if (typeof data.nitroPreset === "string" && /^[\w-]+$/.test(data.nitroPreset))
40
40
  context.nitroPreset = data.nitroPreset;
41
+ if (data.ogImageSecret === "configured" || data.ogImageSecret === "missing")
42
+ context.ogImageSecret = data.ogImageSecret;
41
43
  for (const [slug, paths] of Object.entries(OPTION_PATHS)) {
42
44
  const options = record(record(data.moduleOptions)?.[slug]);
43
45
  const selected = {};
@@ -285,8 +287,25 @@ const SETUP_ACTIONS = {
285
287
  "site-name": "Set site.name to your site name.",
286
288
  "renderer": "Install your OG Image renderer dependencies, or set ogImage: false.",
287
289
  "no-validation-errors": "Correct the robots.txt errors shown in DevTools.",
288
- "no-source-errors": "Correct the failing sitemap sources shown in DevTools."
290
+ "no-source-errors": "Correct the failing sitemap sources shown in DevTools.",
291
+ "app-secret": "Run npx nuxt-og-image generate-secret. Set NUXT_APP_SECRET in .env and in production, 32 characters or more."
289
292
  };
293
+ function evaluateContextChecks(slug, context) {
294
+ if (slug !== "og-image" || !context?.ogImageSecret)
295
+ return [];
296
+ const passed = context.ogImageSecret === "configured";
297
+ return [{
298
+ id: "app-secret",
299
+ label: "Signing secret set",
300
+ description: "OG Image signs runtime image URLs with NUXT_APP_SECRET. Without it, production pages return a 500 error.",
301
+ level: "required",
302
+ docsUrl: "https://nuxtseo.com/docs/og-image/guides/security#url-signing",
303
+ status: passed ? "passed" : "failed",
304
+ passed,
305
+ detail: passed ? "Configured" : "Nuxt generated a development secret. Production builds do not generate one.",
306
+ action: SETUP_ACTIONS["app-secret"]
307
+ }];
308
+ }
290
309
  function hasEvidence(slug, item, data) {
291
310
  if (!data)
292
311
  return false;
@@ -320,6 +339,8 @@ function evaluateSetupChecklist(input) {
320
339
  const result = detect(data, ctx);
321
340
  return { ...definition, ...result, status: result.passed ? "passed" : "failed", action: SETUP_ACTIONS[def.id] };
322
341
  });
342
+ if (!disabled)
343
+ items.push(...evaluateContextChecks(slug, input.context));
323
344
  const requiredPending = items.filter((item) => item.level === "required" && item.status === "failed").length;
324
345
  const status = disabled ? "disabled" : requiredPending ? "needs-setup" : items.some((item) => item.status === "unavailable") ? "unavailable" : !items.length || items.every((item) => item.status === "not-applicable") ? "automatic" : "configured";
325
346
  if (status === "configured" || status === "automatic")
package/dist/const.d.mts CHANGED
@@ -11,7 +11,7 @@ interface ChecklistItemDefinition {
11
11
  docsUrl: string;
12
12
  }
13
13
  interface NuxtSEOModule {
14
- slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org' | 'skew-protection' | 'ai-ready' | 'ai-kit';
14
+ slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org' | 'skew-protection' | 'ai-ready';
15
15
  label: string;
16
16
  icon: string;
17
17
  description: string;
@@ -31,9 +31,6 @@ declare const SkewProtectionModule: NuxtSEOModule;
31
31
  declare const AiReadyModule: NuxtSEOModule;
32
32
  declare const modules: NuxtSEOModule[];
33
33
  declare const bundledModules: NuxtSEOModule[];
34
- declare const standaloneModules: NuxtSEOModule[];
35
- /** @deprecated Use `bundledModules` */
36
- declare const normalModules: NuxtSEOModule[];
37
34
 
38
- export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, bundledModules, modules, normalModules, standaloneModules };
35
+ export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, bundledModules, modules };
39
36
  export type { ChecklistItemDefinition, ChecklistItemLevel, NuxtSEOModule };
package/dist/const.d.ts CHANGED
@@ -11,7 +11,7 @@ interface ChecklistItemDefinition {
11
11
  docsUrl: string;
12
12
  }
13
13
  interface NuxtSEOModule {
14
- slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org' | 'skew-protection' | 'ai-ready' | 'ai-kit';
14
+ slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org' | 'skew-protection' | 'ai-ready';
15
15
  label: string;
16
16
  icon: string;
17
17
  description: string;
@@ -31,9 +31,6 @@ declare const SkewProtectionModule: NuxtSEOModule;
31
31
  declare const AiReadyModule: NuxtSEOModule;
32
32
  declare const modules: NuxtSEOModule[];
33
33
  declare const bundledModules: NuxtSEOModule[];
34
- declare const standaloneModules: NuxtSEOModule[];
35
- /** @deprecated Use `bundledModules` */
36
- declare const normalModules: NuxtSEOModule[];
37
34
 
38
- export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, bundledModules, modules, normalModules, standaloneModules };
35
+ export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, bundledModules, modules };
39
36
  export type { ChecklistItemDefinition, ChecklistItemLevel, NuxtSEOModule };
package/dist/const.mjs CHANGED
@@ -108,7 +108,10 @@ const SkewProtectionModule = {
108
108
  repo: "harlan-zw/nuxt-skew-protection",
109
109
  description: "Solve Nuxt version skews with persistent assets and instant updates.",
110
110
  label: "Skew Protection",
111
- icon: "i-carbon-version"
111
+ icon: "i-carbon-version",
112
+ playgrounds: {
113
+ basic: "https://stackblitz.com/github/harlan-zw/nuxt-skew-protection/tree/main/examples/basic"
114
+ }
112
115
  };
113
116
  const AiReadyModule = {
114
117
  slug: "ai-ready",
@@ -116,7 +119,10 @@ const AiReadyModule = {
116
119
  repo: "harlan-zw/nuxt-ai-ready",
117
120
  description: "Best practice AI & LLM discoverability for Nuxt sites.",
118
121
  label: "AI Ready",
119
- icon: "i-carbon-ai-label"
122
+ icon: "i-carbon-ai-label",
123
+ playgrounds: {
124
+ basic: "https://stackblitz.com/github/harlan-zw/nuxt-ai-ready/tree/main/examples/basic"
125
+ }
120
126
  };
121
127
  const modules = [
122
128
  NuxtSEO,
@@ -140,7 +146,5 @@ const bundledModules = [
140
146
  SkewProtectionModule,
141
147
  AiReadyModule
142
148
  ];
143
- const standaloneModules = [];
144
- const normalModules = bundledModules;
145
149
 
146
- export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, bundledModules, modules, normalModules, standaloneModules };
150
+ export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, bundledModules, modules };
package/dist/devtools.mjs CHANGED
@@ -6,7 +6,7 @@ import { pathToFileURL } from 'node:url';
6
6
  import { useNuxt, useLogger, getAddDependencyCommand } from '@nuxt/kit';
7
7
 
8
8
  const UNIFIED_CLIENT_ROUTE = "/__nuxt-seo-devtools";
9
- const HOST_PACKAGE = "nuxtseo-devtools-host@1.0.0";
9
+ const HOST_PACKAGE = "nuxtseo-devtools-host@^1.0.1";
10
10
  function loadHost(nuxt) {
11
11
  const require = createRequire(join(nuxt.options.rootDir, "package.json"));
12
12
  let entry;
package/dist/module.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "nuxtseo-shared",
3
3
  "configKey": "nuxtSeoShared",
4
4
  "compatibility": {
5
- "nuxt": "^4.6.0 || ^5.0.0"
5
+ "nuxt": "^4.6.0 || ^5.0.0-0"
6
6
  },
7
- "version": "6.0.0",
7
+ "version": "6.0.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -13,7 +13,7 @@ const module$1 = defineNuxtModule({
13
13
  name: "nuxtseo-shared",
14
14
  configKey: "nuxtSeoShared",
15
15
  compatibility: {
16
- nuxt: "^4.6.0 || ^5.0.0"
16
+ nuxt: "^4.6.0 || ^5.0.0-0"
17
17
  }
18
18
  },
19
19
  setup() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxtseo-shared",
3
3
  "type": "module",
4
- "version": "6.0.0",
4
+ "version": "6.0.2",
5
5
  "description": "Shared utilities for Nuxt SEO modules.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -106,7 +106,7 @@
106
106
  }
107
107
  },
108
108
  "dependencies": {
109
- "@nuxt/kit": "^4.6.0",
109
+ "@nuxt/kit": "^4.6.1",
110
110
  "consola": "^3.4.2",
111
111
  "defu": "^6.1.7",
112
112
  "ofetch": "^1.5.1",
@@ -119,13 +119,13 @@
119
119
  "@harlan-zw/comark-content": "^0.2.0",
120
120
  "@nuxt/content": "^3.16.1",
121
121
  "@nuxt/module-builder": "^1.0.3",
122
- "@nuxt/schema": "^4.6.0",
122
+ "@nuxt/schema": "^4.6.1",
123
123
  "@nuxt/test-utils": "^4.3.3",
124
124
  "@nuxtjs/i18n": "^10.6.0",
125
125
  "h3": "^2.0.1",
126
126
  "nitropack": "^2.13.4",
127
- "nuxt": "^4.6.0",
128
- "nuxt-site-config": "^5.0.0",
127
+ "nuxt": "^4.6.1",
128
+ "nuxt-site-config": "^5.0.1",
129
129
  "typescript": "6.0.3",
130
130
  "vitest": "^5.0.3",
131
131
  "vue": "^3.5.43",