@power-seo/sitemap 1.0.7 → 1.0.10
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/LICENSE +21 -0
- package/README.md +13 -7
- package/package.json +13 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CCBD SEO Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @power-seo/sitemap
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
XML sitemap generation for TypeScript — streaming output, automatic index splitting, image/video/news extensions, and URL validation — works in Next.js, Remix, Express, and edge runtimes with zero runtime dependencies.
|
|
6
|
+
|
|
3
7
|
[](https://www.npmjs.com/package/@power-seo/sitemap)
|
|
4
8
|
[](https://www.npmjs.com/package/@power-seo/sitemap)
|
|
5
9
|
[](https://socket.dev/npm/package/@power-seo/sitemap)
|
|
@@ -8,8 +12,6 @@
|
|
|
8
12
|
[](https://www.typescriptlang.org/)
|
|
9
13
|
[](https://bundlephobia.com/package/@power-seo/sitemap)
|
|
10
14
|
|
|
11
|
-
XML sitemap generation for TypeScript — streaming output, automatic index splitting, image/video/news extensions, and URL validation — works in Next.js, Remix, Express, and edge runtimes with zero runtime dependencies.
|
|
12
|
-
|
|
13
15
|
`@power-seo/sitemap` produces standards-compliant `<urlset>` and `<sitemapindex>` XML from typed URL arrays. Provide a hostname and URL list — get back a valid XML string ready to serve as `Content-Type: application/xml`. For large catalogs, stream chunks with constant memory usage or auto-split at the 50,000-URL spec limit with a generated index file. All five functions are independently importable and tree-shakeable.
|
|
14
16
|
|
|
15
17
|
> **Zero runtime dependencies** — only `@power-seo/core` as a peer.
|
|
@@ -29,6 +31,8 @@ XML sitemap generation for TypeScript — streaming output, automatic index spli
|
|
|
29
31
|
| Hostname handling | ❌ Hardcode absolute URLs everywhere | ✅ Pass `hostname` once; use relative `loc` paths |
|
|
30
32
|
| Validation | ❌ Silent bad data reaches Google | ✅ `validateSitemapUrl()` returns errors + warnings |
|
|
31
33
|
|
|
34
|
+

|
|
35
|
+
|
|
32
36
|
---
|
|
33
37
|
|
|
34
38
|
## Features
|
|
@@ -49,6 +53,8 @@ XML sitemap generation for TypeScript — streaming output, automatic index spli
|
|
|
49
53
|
- **Zero runtime dependencies** — pure TypeScript, no external XML libraries
|
|
50
54
|
- **Tree-shakeable** — import only the functions you use
|
|
51
55
|
|
|
56
|
+

|
|
57
|
+
|
|
52
58
|
---
|
|
53
59
|
|
|
54
60
|
## Comparison
|
|
@@ -68,6 +74,8 @@ XML sitemap generation for TypeScript — streaming output, automatic index spli
|
|
|
68
74
|
| Tree-shakeable | ✅ | ❌ | ❌ | ❌ |
|
|
69
75
|
| Next.js `app/sitemap.ts` adapter | ✅ | ✅ | ❌ | ❌ |
|
|
70
76
|
|
|
77
|
+

|
|
78
|
+
|
|
71
79
|
---
|
|
72
80
|
|
|
73
81
|
## Installation
|
|
@@ -84,10 +92,6 @@ yarn add @power-seo/sitemap
|
|
|
84
92
|
pnpm add @power-seo/sitemap
|
|
85
93
|
```
|
|
86
94
|
|
|
87
|
-
```bash
|
|
88
|
-
bun add @power-seo/sitemap
|
|
89
|
-
```
|
|
90
|
-
|
|
91
95
|
---
|
|
92
96
|
|
|
93
97
|
## Quick Start
|
|
@@ -112,6 +116,8 @@ const xml = generateSitemap({
|
|
|
112
116
|
|
|
113
117
|
`hostname` is required — it is prepended to any `loc` value that is a relative path. Absolute `loc` values (starting with `http`) are used as-is.
|
|
114
118
|
|
|
119
|
+

|
|
120
|
+
|
|
115
121
|
---
|
|
116
122
|
|
|
117
123
|
## Usage
|
|
@@ -481,7 +487,7 @@ All 17 packages are independently installable — use only what you need.
|
|
|
481
487
|
| [`@power-seo/core`](https://www.npmjs.com/package/@power-seo/core) | `npm i @power-seo/core` | Framework-agnostic utilities, types, validators, and constants |
|
|
482
488
|
| [`@power-seo/react`](https://www.npmjs.com/package/@power-seo/react) | `npm i @power-seo/react` | React SEO components — meta, Open Graph, Twitter Card, breadcrumbs |
|
|
483
489
|
| [`@power-seo/meta`](https://www.npmjs.com/package/@power-seo/meta) | `npm i @power-seo/meta` | SSR meta helpers for Next.js App Router, Remix v2, and generic SSR |
|
|
484
|
-
| [`@power-seo/schema`](https://www.npmjs.com/package/@power-seo/schema) | `npm i @power-seo/schema` | Type-safe JSON-LD structured data —
|
|
490
|
+
| [`@power-seo/schema`](https://www.npmjs.com/package/@power-seo/schema) | `npm i @power-seo/schema` | Type-safe JSON-LD structured data — 23 builders + 21 React components |
|
|
485
491
|
| [`@power-seo/content-analysis`](https://www.npmjs.com/package/@power-seo/content-analysis) | `npm i @power-seo/content-analysis` | Yoast-style SEO content scoring engine with React components |
|
|
486
492
|
| [`@power-seo/readability`](https://www.npmjs.com/package/@power-seo/readability) | `npm i @power-seo/readability` | Readability scoring — Flesch-Kincaid, Gunning Fog, Coleman-Liau, ARI |
|
|
487
493
|
| [`@power-seo/preview`](https://www.npmjs.com/package/@power-seo/preview) | `npm i @power-seo/preview` | SERP, Open Graph, and Twitter/X Card preview generators |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-seo/sitemap",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "XML sitemap generation, streaming, and validation with image, video, and news support",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,18 +17,8 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsup",
|
|
22
|
-
"dev": "tsup --watch",
|
|
23
|
-
"test": "vitest run",
|
|
24
|
-
"test:watch": "vitest",
|
|
25
|
-
"typecheck": "tsc --noEmit",
|
|
26
|
-
"lint": "eslint src/",
|
|
27
|
-
"lint:fix": "eslint src/ --fix",
|
|
28
|
-
"clean": "rimraf dist"
|
|
29
|
-
},
|
|
30
20
|
"dependencies": {
|
|
31
|
-
"@power-seo/core": "
|
|
21
|
+
"@power-seo/core": "1.0.10"
|
|
32
22
|
},
|
|
33
23
|
"devDependencies": {
|
|
34
24
|
"rimraf": "^6.1.3",
|
|
@@ -60,5 +50,15 @@
|
|
|
60
50
|
"funding": {
|
|
61
51
|
"type": "github",
|
|
62
52
|
"url": "https://github.com/sponsors/cybercraftbd"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsup",
|
|
56
|
+
"dev": "tsup --watch",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"test:watch": "vitest",
|
|
59
|
+
"typecheck": "tsc --noEmit",
|
|
60
|
+
"lint": "eslint src/",
|
|
61
|
+
"lint:fix": "eslint src/ --fix",
|
|
62
|
+
"clean": "rimraf dist"
|
|
63
63
|
}
|
|
64
|
-
}
|
|
64
|
+
}
|