@nuxtjs/sitemap 8.3.0 → 8.3.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtjs/sitemap",
3
3
  "type": "module",
4
- "version": "8.3.0",
4
+ "version": "8.3.2",
5
5
  "description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -55,62 +55,60 @@
55
55
  }
56
56
  },
57
57
  "dependencies": {
58
- "@nuxt/kit": "^4.5.0",
58
+ "@nuxt/kit": "^4.5.1",
59
59
  "consola": "^3.4.2",
60
60
  "defu": "^6.1.7",
61
- "fast-xml-parser": "^5.10.1",
62
61
  "nuxt-site-config": "^4.1.2",
63
- "nuxtseo-shared": "^5.3.3",
62
+ "nuxtseo-shared": "^5.3.6",
64
63
  "ofetch": "^1.5.1",
65
64
  "pathe": "^2.0.3",
66
65
  "pkg-types": "^2.3.1",
67
66
  "radix3": "^1.1.2",
68
67
  "ufo": "^1.6.4",
69
- "ultrahtml": "^1.7.0"
68
+ "ultrahtml": "^1.7.0",
69
+ "sitemapd": "^0.2.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@antfu/eslint-config": "^9.1.0",
72
+ "@antfu/eslint-config": "^9.2.0",
73
73
  "@arethetypeswrong/cli": "^0.18.5",
74
- "@nuxt/content": "^3.15.0",
75
- "@nuxt/devtools-kit": "4.0.0-alpha.7",
76
- "@nuxt/module-builder": "^1.0.2",
77
- "@nuxt/test-utils": "^4.0.3",
74
+ "@nuxt/content": "^3.15.2",
75
+ "@nuxt/devtools-kit": "4.0.0-alpha.9",
76
+ "@nuxt/module-builder": "^1.0.3",
77
+ "@nuxt/test-utils": "^4.1.0",
78
78
  "@nuxt/ui": "^4.10.0",
79
- "@nuxtjs/i18n": "^10.4.1",
79
+ "@nuxtjs/i18n": "^10.5.0",
80
80
  "@nuxtjs/robots": "^6.1.3",
81
81
  "@vue/test-utils": "^2.4.11",
82
- "better-sqlite3": "^12.11.1",
83
- "bumpp": "^11.1.0",
84
- "eslint": "^10.7.0",
85
- "eslint-plugin-harlanzw": "^0.17.0",
86
- "execa": "^10.0.0",
87
- "happy-dom": "^20.11.0",
88
- "nuxt": "^4.5.0",
82
+ "better-sqlite3": "^13.0.1",
83
+ "bumpp": "^12.1.1",
84
+ "eslint": "^10.8.0",
85
+ "eslint-plugin-harlanzw": "^0.17.1",
86
+ "happy-dom": "^20.11.1",
87
+ "nuxt": "^4.5.1",
89
88
  "nuxt-i18n-micro": "^3.21.4",
90
- "nuxtseo-layer-devtools": "^5.3.3",
91
- "semver": "^7.8.5",
92
- "sirv": "^3.0.2",
89
+ "nuxtseo-layer-devtools": "^5.3.6",
93
90
  "std-env": "^4.2.0",
94
91
  "typescript": "6.0.3",
95
92
  "unbuild": "^3.6.1",
96
93
  "vitest": "^4.1.10",
97
- "vue-tsc": "^3.3.7",
94
+ "vue-tsc": "^3.3.8",
98
95
  "zod": "^4.4.3",
99
- "@nuxtjs/sitemap": "8.3.0"
96
+ "@nuxtjs/sitemap": "8.3.2"
100
97
  },
101
98
  "scripts": {
102
99
  "lint": "eslint .",
103
100
  "lint:fix": "eslint . --fix",
104
101
  "client:build": "node -e \"const { cpSync } = require('fs'); const { sep } = require('path'); cpSync('devtools','dist/devtools',{recursive:true,filter:src=>!src.split(sep).some(p=>['.data','.nuxt','node_modules'].includes(p))})\"",
105
- "build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && npm run client:build",
102
+ "build": "pnpm --filter sitemapd build && nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && npm run client:build",
106
103
  "dev": "nuxt dev playground",
107
104
  "prepare:fixtures": "nuxt prepare test/fixtures/basic && nuxt prepare test/fixtures/i18n && nuxt prepare test/fixtures/i18n-micro",
108
105
  "dev:build": "nuxt build playground",
109
106
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground && pnpm run client:build",
110
107
  "release": "pnpm build && bumpp -x \"npx changelogen --output=CHANGELOG.md\"",
111
- "test": "vitest run && pnpm run test:attw",
108
+ "release:sitemapd": "pnpm --filter sitemapd release",
109
+ "test": "pnpm --filter sitemapd test && vitest run && pnpm run test:attw",
112
110
  "test:unit": "vitest --project=unit",
113
- "test:attw": "attw --pack",
114
- "typecheck": "nuxt typecheck"
111
+ "test:attw": "attw --pack && pnpm --filter sitemapd test:attw",
112
+ "typecheck": "pnpm --filter sitemapd typecheck && nuxt typecheck"
115
113
  }
116
114
  }
@@ -1,2 +0,0 @@
1
- import type { NitroRouteRules } from 'nitropack';
2
- export declare function createNitroRouteRuleMatcher(): (pathOrUrl: string) => NitroRouteRules;
@@ -1,30 +0,0 @@
1
- import { defu } from "defu";
2
- import { useRuntimeConfig } from "nitropack/runtime";
3
- import { createRouter as createRadixRouter, toRouteMatcher } from "radix3";
4
- import { parseURL, withoutBase, withoutTrailingSlash } from "ufo";
5
- function withoutQuery(path) {
6
- const queryIndex = path.indexOf("?");
7
- return queryIndex === -1 ? path : path.slice(0, queryIndex);
8
- }
9
- let cachedRouteRuleMatcher;
10
- export function createNitroRouteRuleMatcher() {
11
- if (!import.meta.dev && cachedRouteRuleMatcher)
12
- return cachedRouteRuleMatcher;
13
- const { nitro, app } = useRuntimeConfig();
14
- const _routeRulesMatcher = toRouteMatcher(
15
- createRadixRouter({
16
- routes: Object.fromEntries(
17
- Object.entries(nitro?.routeRules || {}).map(([path, rules]) => [withoutTrailingSlash(path), rules])
18
- )
19
- })
20
- );
21
- const matcher = (pathOrUrl) => {
22
- const path = pathOrUrl[0] === "/" ? pathOrUrl : parseURL(pathOrUrl, app.baseURL).pathname;
23
- return defu({}, ..._routeRulesMatcher.matchAll(
24
- withoutBase(withoutTrailingSlash(withoutQuery(path)), app.baseURL)
25
- ).reverse());
26
- };
27
- if (!import.meta.dev)
28
- cachedRouteRuleMatcher = matcher;
29
- return matcher;
30
- }