@nuxtjs/sitemap
Advanced tools
Comparing version 5.1.5 to 5.2.0
@@ -1,1 +0,1 @@ | ||
{"id":"9c660240-bc8b-4a63-883d-04cd5c521393","timestamp":1714999410100} | ||
{"id":"eed887b5-8cf6-4ae2-9094-c95111b61a41","timestamp":1716364556401} |
@@ -198,3 +198,2 @@ import * as _nuxt_schema from '@nuxt/schema'; | ||
}); | ||
type ResolvedSitemapUrl = Omit<SitemapUrl, 'url'> & Required<Pick<SitemapUrl, 'loc'>>; | ||
interface SitemapDefinition { | ||
@@ -247,10 +246,2 @@ /** | ||
} | ||
interface SitemapRenderCtx { | ||
sitemapName: string; | ||
urls: ResolvedSitemapUrl[]; | ||
} | ||
interface SitemapOutputHookCtx { | ||
sitemapName: string; | ||
sitemap: string; | ||
} | ||
type Changefreq = 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'; | ||
@@ -349,8 +340,2 @@ interface SitemapUrl { | ||
interface ModuleHooks { | ||
/** | ||
* @deprecated use `sitemap:resolved` or `sitemap:output` | ||
*/ | ||
'sitemap:prerender': (ctx: SitemapRenderCtx) => Promise<void> | void; | ||
'sitemap:resolved': (ctx: SitemapRenderCtx) => Promise<void> | void; | ||
'sitemap:output': (ctx: SitemapOutputHookCtx) => Promise<void> | void; | ||
} | ||
@@ -357,0 +342,0 @@ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>; |
@@ -8,3 +8,3 @@ { | ||
"configKey": "sitemap", | ||
"version": "5.1.4" | ||
"version": "5.1.5" | ||
} |
@@ -0,5 +1,6 @@ | ||
import { type H3Event } from 'h3'; | ||
import type { ModuleRuntimeConfig, SitemapSourceBase, SitemapSourceResolved } from '../../../types'; | ||
export declare function fetchDataSource(input: SitemapSourceBase | SitemapSourceResolved): Promise<SitemapSourceResolved>; | ||
export declare function fetchDataSource(input: SitemapSourceBase | SitemapSourceResolved, event?: H3Event): Promise<SitemapSourceResolved>; | ||
export declare function globalSitemapSources(): Promise<(SitemapSourceBase | SitemapSourceResolved)[]>; | ||
export declare function childSitemapSources(definition: ModuleRuntimeConfig['sitemaps'][string]): Promise<(SitemapSourceBase | SitemapSourceResolved)[]>; | ||
export declare function resolveSitemapSources(sources: (SitemapSourceBase | SitemapSourceResolved)[]): Promise<SitemapSourceResolved[]>; | ||
export declare function resolveSitemapSources(sources: (SitemapSourceBase | SitemapSourceResolved)[], event?: H3Event): Promise<SitemapSourceResolved[]>; |
@@ -259,2 +259,5 @@ import type { FetchOptions } from 'ofetch'; | ||
} | ||
export interface SitemapIndexRenderCtx { | ||
sitemaps: SitemapIndexEntry[]; | ||
} | ||
export interface SitemapRenderCtx { | ||
@@ -261,0 +264,0 @@ sitemapName: string; |
{ | ||
"name": "@nuxtjs/sitemap", | ||
"type": "module", | ||
"version": "5.1.5", | ||
"version": "5.2.0", | ||
"description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.", | ||
@@ -34,4 +34,4 @@ "author": { | ||
"dependencies": { | ||
"@nuxt/devtools-kit": "^1.2.0", | ||
"@nuxt/devtools-ui-kit": "^1.2.0", | ||
"@nuxt/devtools-kit": "^1.3.1", | ||
"@nuxt/devtools-ui-kit": "^1.3.1", | ||
"@nuxt/kit": "^3.11.2", | ||
@@ -47,6 +47,6 @@ "@vueuse/core": "^10.9.0", | ||
"pathe": "^1.1.2", | ||
"pkg-types": "^1.1.0", | ||
"pkg-types": "^1.1.1", | ||
"radix3": "^1.1.2", | ||
"semver": "^7.6.0", | ||
"shiki": "1.3.0", | ||
"semver": "^7.6.2", | ||
"shiki": "1.6.0", | ||
"sirv": "^2.0.4", | ||
@@ -57,13 +57,13 @@ "site-config-stack": "^2.2.12", | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.16.1", | ||
"@antfu/eslint-config": "^2.18.1", | ||
"@nuxt/content": "^2.12.1", | ||
"@nuxt/kit": "^3.11.2", | ||
"@nuxt/module-builder": "0.5.5", | ||
"@nuxt/test-utils": "^3.12.1", | ||
"@nuxt/ui": "^2.15.2", | ||
"@nuxt/test-utils": "^3.13.1", | ||
"@nuxt/ui": "^2.16.0", | ||
"@nuxtjs/eslint-config-typescript": "^12.1.0", | ||
"@nuxtjs/i18n": "8.3.0", | ||
"@nuxtjs/i18n": "8.3.1", | ||
"bumpp": "^9.4.1", | ||
"eslint": "9.1.1", | ||
"execa": "^8.0.1", | ||
"eslint": "9.3.0", | ||
"execa": "^9.1.0", | ||
"nuxt": "^3.11.2", | ||
@@ -70,0 +70,0 @@ "nuxt-icon": "^0.6.10", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8735258
327
50616
+ Added@shikijs/core@1.6.0(transitive)
+ Addedabbrev@3.0.0(transitive)
+ Addedbare-events@2.5.4(transitive)
+ Addedcaniuse-api@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcommander@7.2.0(transitive)
+ Addedcrc-32@1.2.2(transitive)
+ Addedcrc32-stream@6.0.0(transitive)
+ Addedcss-tree@2.3.1(transitive)
+ Addedcssesc@3.0.0(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedmdn-data@2.0.30(transitive)
+ Addedshiki@1.6.0(transitive)
+ Addedstylehacks@7.0.4(transitive)
+ Addedsvgo@3.3.2(transitive)
+ Addedtext-decoder@1.2.3(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removed@shikijs/core@1.3.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedshiki@1.3.0(transitive)
Updated@nuxt/devtools-kit@^1.3.1
Updated@nuxt/devtools-ui-kit@^1.3.1
Updatedpkg-types@^1.1.1
Updatedsemver@^7.6.2
Updatedshiki@1.6.0