@warlock.js/sitemap 5.29.0 → 5.31.0

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +19 -19
  3. package/cjs/index.cjs +16 -16
  4. package/cjs/index.cjs.map +1 -1
  5. package/esm/atomic-publish.mjs +1 -1
  6. package/esm/atomic-publish.mjs.map +1 -1
  7. package/esm/atomic-write-file.mjs +1 -1
  8. package/esm/atomic-write-file.mjs.map +1 -1
  9. package/esm/duplicate-path-tracker.mjs +1 -1
  10. package/esm/duplicate-path-tracker.mjs.map +1 -1
  11. package/esm/errors.d.mts +1 -1
  12. package/esm/errors.mjs +1 -1
  13. package/esm/errors.mjs.map +1 -1
  14. package/esm/generation-manifest.d.mts +1 -1
  15. package/esm/generation-manifest.mjs +1 -1
  16. package/esm/generation-manifest.mjs.map +1 -1
  17. package/esm/lastmod.mjs +1 -1
  18. package/esm/lastmod.mjs.map +1 -1
  19. package/esm/normalize-entry.mjs +1 -1
  20. package/esm/normalize-entry.mjs.map +1 -1
  21. package/esm/route-counter.mjs +1 -1
  22. package/esm/route-counter.mjs.map +1 -1
  23. package/esm/shard-name.mjs +1 -1
  24. package/esm/shard-name.mjs.map +1 -1
  25. package/esm/sitemap-index-options.mjs +1 -1
  26. package/esm/sitemap-index-options.mjs.map +1 -1
  27. package/esm/sitemap-index-types.d.mts +1 -1
  28. package/esm/sitemap-index-xml.mjs +1 -1
  29. package/esm/sitemap-index-xml.mjs.map +1 -1
  30. package/esm/sitemap-index.d.mts +1 -1
  31. package/esm/sitemap-index.mjs +1 -1
  32. package/esm/sitemap-index.mjs.map +1 -1
  33. package/esm/sitemap-shard-writer.mjs +1 -1
  34. package/esm/sitemap-shard-writer.mjs.map +1 -1
  35. package/esm/sitemap.d.mts +1 -1
  36. package/esm/sitemap.mjs +1 -1
  37. package/esm/sitemap.mjs.map +1 -1
  38. package/esm/types.d.mts +1 -1
  39. package/esm/url.d.mts +1 -1
  40. package/esm/url.mjs +1 -1
  41. package/esm/url.mjs.map +1 -1
  42. package/esm/xml.d.mts +1 -1
  43. package/esm/xml.mjs +1 -1
  44. package/esm/xml.mjs.map +1 -1
  45. package/llms-full.txt +15 -15
  46. package/package.json +3 -2
  47. package/skills/sitemap-overview/SKILL.md +15 -15
package/llms-full.txt CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ---
10
10
  name: sitemap-overview
11
- description: 'Front-door orientation for `@warlock.js/sitemap`: framework-blind `Sitemap` and streaming `SitemapIndex` builders, URL metadata, hreflang, Google image entries, sharding, diagnostics, and atomic publication. Use when adding or debugging sitemap output; Warlock page discovery and `/sitemap.xml` routing belong to `@warlock.js/web`.'
11
+ description: "Front-door orientation for `@warlock.js/sitemap`: framework-blind `Sitemap` and streaming `SitemapIndex` builders, URL metadata, hreflang, Google image entries, sharding, diagnostics, and atomic publication. Use when adding or debugging sitemap output; Warlock page discovery and `/sitemap.xml` routing belong to `@warlock.js/web`."
12
12
  ---
13
13
 
14
14
  # `@warlock.js/sitemap` — overview
@@ -74,16 +74,16 @@ boot refusal entirely: the origin is an argument now, so it cannot be missing.
74
74
  Only `path` is required, and it must be a **concrete path** — `/posts/123`,
75
75
  never `/posts/:id`. A pattern is not a URL.
76
76
 
77
- | Field | Meaning |
78
- | --- | --- |
79
- | `path` | Required. Resolved against `baseUrl`; an absolute URL is used as given. |
80
- | `name` | Optional route label, for your own diagnostics. Never serialised. |
81
- | `route` | Optional pattern this URL came from. Feeds `routes()` and `duplicates()`. |
82
- | `lastmod` | `Date` → W3C datetime. A string is passed through UNTOUCHED, never re-parsed. |
83
- | `changefreq` | One of the seven protocol values; anything else throws. |
84
- | `priority` | `0.0`–`1.0`; anything else throws. |
85
- | `alternates` | `{ hreflang, path }[]` — language versions of this page. |
86
- | `images` | `{ loc }[]` — absolute HTTP(S) image URLs, including verified external CDNs. |
77
+ | Field | Meaning |
78
+ | ------------ | ----------------------------------------------------------------------------- |
79
+ | `path` | Required. Resolved against `baseUrl`; an absolute URL is used as given. |
80
+ | `name` | Optional route label, for your own diagnostics. Never serialised. |
81
+ | `route` | Optional pattern this URL came from. Feeds `routes()` and `duplicates()`. |
82
+ | `lastmod` | `Date` → W3C datetime. A string is passed through UNTOUCHED, never re-parsed. |
83
+ | `changefreq` | One of the seven protocol values; anything else throws. |
84
+ | `priority` | `0.0`–`1.0`; anything else throws. |
85
+ | `alternates` | `{ hreflang, path }[]` — language versions of this page. |
86
+ | `images` | `{ loc }[]` — absolute HTTP(S) image URLs, including verified external CDNs. |
87
87
 
88
88
  Invalid entries throw `InvalidSitemapEntryError` from `add()`. Paths are
89
89
  normalised to carry a leading slash, so `a` and `/a` are ONE entry.
@@ -197,10 +197,10 @@ empty, or already carries that marker. A non-empty, unmarked `outDir` gets
197
197
 
198
198
  ## Errors
199
199
 
200
- | Error | When |
201
- | --- | --- |
202
- | `InvalidBaseUrlError` | `baseUrl` missing, relative, or not `http(s)`. From the constructor. |
203
- | `InvalidSitemapEntryError` | No path, priority outside `0.0`–`1.0`, unknown `changefreq`, invalid `Date`, alternate with no `hreflang`. From `add()`. |
200
+ | Error | When |
201
+ | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
202
+ | `InvalidBaseUrlError` | `baseUrl` missing, relative, or not `http(s)`. From the constructor. |
203
+ | `InvalidSitemapEntryError` | No path, priority outside `0.0`–`1.0`, unknown `changefreq`, invalid `Date`, alternate with no `hreflang`. From `add()`. |
204
204
  | `UnownedOutputDirectoryError` | `SitemapIndex.saveTo(outDir)`: `outDir` is non-empty with no `.sitemap-set.json` marker. From `saveTo()`, before anything is written. |
205
205
 
206
206
  ## Also exported
package/package.json CHANGED
@@ -6,9 +6,10 @@
6
6
  },
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/warlockjs/sitemap"
9
+ "url": "git+https://github.com/warlockjs/framework.git",
10
+ "directory": "packages/sitemap"
10
11
  },
11
- "version": "5.29.0",
12
+ "version": "5.31.0",
12
13
  "main": "./cjs/index.cjs",
13
14
  "module": "./esm/index.mjs",
14
15
  "types": "./esm/index.d.mts",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: sitemap-overview
3
- description: 'Front-door orientation for `@warlock.js/sitemap`: framework-blind `Sitemap` and streaming `SitemapIndex` builders, URL metadata, hreflang, Google image entries, sharding, diagnostics, and atomic publication. Use when adding or debugging sitemap output; Warlock page discovery and `/sitemap.xml` routing belong to `@warlock.js/web`.'
3
+ description: "Front-door orientation for `@warlock.js/sitemap`: framework-blind `Sitemap` and streaming `SitemapIndex` builders, URL metadata, hreflang, Google image entries, sharding, diagnostics, and atomic publication. Use when adding or debugging sitemap output; Warlock page discovery and `/sitemap.xml` routing belong to `@warlock.js/web`."
4
4
  ---
5
5
 
6
6
  # `@warlock.js/sitemap` — overview
@@ -66,16 +66,16 @@ boot refusal entirely: the origin is an argument now, so it cannot be missing.
66
66
  Only `path` is required, and it must be a **concrete path** — `/posts/123`,
67
67
  never `/posts/:id`. A pattern is not a URL.
68
68
 
69
- | Field | Meaning |
70
- | --- | --- |
71
- | `path` | Required. Resolved against `baseUrl`; an absolute URL is used as given. |
72
- | `name` | Optional route label, for your own diagnostics. Never serialised. |
73
- | `route` | Optional pattern this URL came from. Feeds `routes()` and `duplicates()`. |
74
- | `lastmod` | `Date` → W3C datetime. A string is passed through UNTOUCHED, never re-parsed. |
75
- | `changefreq` | One of the seven protocol values; anything else throws. |
76
- | `priority` | `0.0`–`1.0`; anything else throws. |
77
- | `alternates` | `{ hreflang, path }[]` — language versions of this page. |
78
- | `images` | `{ loc }[]` — absolute HTTP(S) image URLs, including verified external CDNs. |
69
+ | Field | Meaning |
70
+ | ------------ | ----------------------------------------------------------------------------- |
71
+ | `path` | Required. Resolved against `baseUrl`; an absolute URL is used as given. |
72
+ | `name` | Optional route label, for your own diagnostics. Never serialised. |
73
+ | `route` | Optional pattern this URL came from. Feeds `routes()` and `duplicates()`. |
74
+ | `lastmod` | `Date` → W3C datetime. A string is passed through UNTOUCHED, never re-parsed. |
75
+ | `changefreq` | One of the seven protocol values; anything else throws. |
76
+ | `priority` | `0.0`–`1.0`; anything else throws. |
77
+ | `alternates` | `{ hreflang, path }[]` — language versions of this page. |
78
+ | `images` | `{ loc }[]` — absolute HTTP(S) image URLs, including verified external CDNs. |
79
79
 
80
80
  Invalid entries throw `InvalidSitemapEntryError` from `add()`. Paths are
81
81
  normalised to carry a leading slash, so `a` and `/a` are ONE entry.
@@ -189,10 +189,10 @@ empty, or already carries that marker. A non-empty, unmarked `outDir` gets
189
189
 
190
190
  ## Errors
191
191
 
192
- | Error | When |
193
- | --- | --- |
194
- | `InvalidBaseUrlError` | `baseUrl` missing, relative, or not `http(s)`. From the constructor. |
195
- | `InvalidSitemapEntryError` | No path, priority outside `0.0`–`1.0`, unknown `changefreq`, invalid `Date`, alternate with no `hreflang`. From `add()`. |
192
+ | Error | When |
193
+ | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
194
+ | `InvalidBaseUrlError` | `baseUrl` missing, relative, or not `http(s)`. From the constructor. |
195
+ | `InvalidSitemapEntryError` | No path, priority outside `0.0`–`1.0`, unknown `changefreq`, invalid `Date`, alternate with no `hreflang`. From `add()`. |
196
196
  | `UnownedOutputDirectoryError` | `SitemapIndex.saveTo(outDir)`: `outDir` is non-empty with no `.sitemap-set.json` marker. From `saveTo()`, before anything is written. |
197
197
 
198
198
  ## Also exported