@ebitex/content-sdk 0.16.79 → 0.17.80
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/sitemap/documents.d.ts +65 -0
- package/dist/sitemap/documents.d.ts.map +1 -0
- package/dist/sitemap/documents.js +0 -0
- package/dist/sitemap/documents.js.map +1 -0
- package/dist/sitemap/index.d.ts +15 -6
- package/dist/sitemap/index.d.ts.map +1 -1
- package/dist/sitemap/index.js +15 -6
- package/dist/sitemap/index.js.map +1 -1
- package/dist/sitemap/xml.d.ts +80 -2
- package/dist/sitemap/xml.d.ts.map +1 -1
- package/dist/sitemap/xml.js +103 -19
- package/dist/sitemap/xml.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { SitemapResult } from '../types.js';
|
|
2
|
+
import { type BuildSitemapXmlOptions } from './xml.js';
|
|
3
|
+
/** One document the consumer must serve, at exactly the path given. */
|
|
4
|
+
export interface SitemapDocument {
|
|
5
|
+
/**
|
|
6
|
+
* Site-relative path this document has to be served at.
|
|
7
|
+
*
|
|
8
|
+
* For a shard this is **not advisory**: it is the path the index writes into its own `<loc>`, so
|
|
9
|
+
* serving it anywhere else produces an index full of 404s — which nothing local catches, and which
|
|
10
|
+
* surfaces only as a crawler quietly giving up.
|
|
11
|
+
*/
|
|
12
|
+
path: string;
|
|
13
|
+
kind: 'index' | 'urlset';
|
|
14
|
+
xml: string;
|
|
15
|
+
}
|
|
16
|
+
export interface BuildSitemapDocumentsOptions extends BuildSitemapXmlOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Where the index — or, when everything fits in one file, the single document — is served.
|
|
19
|
+
* The URL `robots.txt` should advertise. Defaults to `/sitemap.xml`.
|
|
20
|
+
*/
|
|
21
|
+
indexPath?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The path of shard `n`, 1-based. Defaults to `/sitemap-1.xml`, `/sitemap-2.xml`, …
|
|
24
|
+
*
|
|
25
|
+
* May return an absolute URL — used as-is, exactly as `localeUrl` may — for a consumer serving
|
|
26
|
+
* shards from a CDN or another host.
|
|
27
|
+
*
|
|
28
|
+
* **A sitemap may only contain URLs at or below its own location**, so a shard served at
|
|
29
|
+
* `/sitemaps/a.xml` may not list `/about`. The defaults sit at the root and are always safe;
|
|
30
|
+
* changing this can break that rule. It is documented rather than enforced because the rule has a
|
|
31
|
+
* legitimate exemption — a verified-ownership cross-submission, which search engines accept — so
|
|
32
|
+
* validating it would reject working setups in order to catch a mistake this sentence can name.
|
|
33
|
+
*/
|
|
34
|
+
shardPath?: (index: number) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Lower the per-shard URL cap. Defaults to the protocol's {@link MAX_SITEMAP_URLS}.
|
|
37
|
+
*
|
|
38
|
+
* Shapes the shards only. The index is always held to the protocol's own limits.
|
|
39
|
+
*/
|
|
40
|
+
maxUrls?: number;
|
|
41
|
+
/** Lower the per-shard byte cap. Defaults to the protocol's {@link MAX_SITEMAP_BYTES}. */
|
|
42
|
+
maxBytes?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Renders a site's sitemap as the set of documents it actually needs — one when it fits, an index
|
|
46
|
+
* plus shards when it does not.
|
|
47
|
+
*
|
|
48
|
+
* **Prefer this to `buildSitemapXml` as the default.** Under the caps it returns exactly one
|
|
49
|
+
* document whose `xml` is byte-identical to that function's output, so nothing is given up by
|
|
50
|
+
* reaching for it first; past them it is the difference between a sitemap and an exception. A
|
|
51
|
+
* function only large sites call is a function only large sites discover, and they discover it by
|
|
52
|
+
* failing.
|
|
53
|
+
*
|
|
54
|
+
* **Pure**: data in, documents out. No I/O, no `fetch`, no environment access — so it is equally
|
|
55
|
+
* callable from a request handler and from a static build script, which is what keeps this feature
|
|
56
|
+
* untiered. Serving the documents at their paths is still the consumer's own job; what changed with
|
|
57
|
+
* this function (spec 699) is only that an index, unlike a single sitemap, is not self-contained —
|
|
58
|
+
* it names the URLs its shards are served at, so those paths have to be agreed here.
|
|
59
|
+
*
|
|
60
|
+
* @throws {SitemapTooLargeError} when a single node's own URLs exceed one file, or when the index
|
|
61
|
+
* itself would need to reference more sitemaps than the protocol allows. Neither is reachable at
|
|
62
|
+
* the default caps.
|
|
63
|
+
*/
|
|
64
|
+
export declare function buildSitemapDocuments(result: SitemapResult, options: BuildSitemapDocumentsOptions): SitemapDocument[];
|
|
65
|
+
//# sourceMappingURL=documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../src/sitemap/documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAWL,KAAK,sBAAsB,EAE5B,MAAM,UAAU,CAAA;AAEjB,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB;IAC1E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAErC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,4BAA4B,GACpC,eAAe,EAAE,CAiDnB"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../src/sitemap/documents.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,YAAY,E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AAC,EAAE,CAAC;QACpB,OAAO,KAAK,CAAA;IACd,CAAC;IAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACjC,CAAC;AAED;;;;;;GAMG;AACH,SAAS,WAAW,CAAC,OAA2D;IAC9E,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrC,MAAM,KAAK,GAAG,CAAC,aAAa,EAAE,YAAY,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACvE,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YAC3B,KAAK,CAAC,IAAI,CAAC,gBAAgB,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;QAClE,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACzB,CAAC,CAAC,CAAA;IAEF,OAAO;;EAEP,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;;CAEpB,CAAA;AACD,CAAC"}
|
package/dist/sitemap/index.d.ts
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@ebitex/content-sdk/sitemap` — spec 544-content-sdk-sitemap.
|
|
2
|
+
* `@ebitex/content-sdk/sitemap` — spec 544-content-sdk-sitemap, widened by spec 699-sitemap-index.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Pure functions, and nothing else. There is deliberately no route, handler, CLI, or runtime here:
|
|
5
|
+
* serving is hosting, and hosting is the one thing this package cannot supply. See
|
|
6
|
+
* `docs/content-sdk.md` §7f for the two worked examples — a request handler and a static build
|
|
7
|
+
* script — which are each a few lines on top of these.
|
|
8
|
+
*
|
|
9
|
+
* Spec 699 added `buildSitemapDocuments` and reversed exactly one part of that boundary, on a fact
|
|
10
|
+
* rather than a preference: a single sitemap is self-contained, so where it is served is none of
|
|
11
|
+
* this package's business, whereas an **index references its shards by URL** and cannot be rendered
|
|
12
|
+
* correctly without knowing the paths they will be served at. Serving them is still the consumer's.
|
|
13
|
+
*
|
|
14
|
+
* Reach for `buildSitemapDocuments` by default; under the caps its single document is byte-identical
|
|
15
|
+
* to `buildSitemapXml`'s output, and past them it is the difference between a sitemap and a throw.
|
|
8
16
|
*/
|
|
9
|
-
export { buildSitemapXml, MAX_SITEMAP_URLS, SitemapTooLargeError, type BuildSitemapXmlOptions } from './xml.js';
|
|
17
|
+
export { buildSitemapXml, MAX_SITEMAP_BYTES, MAX_SITEMAP_INDEX_ENTRIES, MAX_SITEMAP_URLS, SitemapTooLargeError, type BuildSitemapXmlOptions, type SitemapTooLargeReason, } from './xml.js';
|
|
18
|
+
export { buildSitemapDocuments, type BuildSitemapDocumentsOptions, type SitemapDocument, } from './documents.js';
|
|
10
19
|
export type { SitemapLocalePath, SitemapNode, SitemapResult } from '../types.js';
|
|
11
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sitemap/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sitemap/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,qBAAqB,EACrB,KAAK,4BAA4B,EACjC,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA"}
|
package/dist/sitemap/index.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@ebitex/content-sdk/sitemap` — spec 544-content-sdk-sitemap.
|
|
2
|
+
* `@ebitex/content-sdk/sitemap` — spec 544-content-sdk-sitemap, widened by spec 699-sitemap-index.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Pure functions, and nothing else. There is deliberately no route, handler, CLI, or runtime here:
|
|
5
|
+
* serving is hosting, and hosting is the one thing this package cannot supply. See
|
|
6
|
+
* `docs/content-sdk.md` §7f for the two worked examples — a request handler and a static build
|
|
7
|
+
* script — which are each a few lines on top of these.
|
|
8
|
+
*
|
|
9
|
+
* Spec 699 added `buildSitemapDocuments` and reversed exactly one part of that boundary, on a fact
|
|
10
|
+
* rather than a preference: a single sitemap is self-contained, so where it is served is none of
|
|
11
|
+
* this package's business, whereas an **index references its shards by URL** and cannot be rendered
|
|
12
|
+
* correctly without knowing the paths they will be served at. Serving them is still the consumer's.
|
|
13
|
+
*
|
|
14
|
+
* Reach for `buildSitemapDocuments` by default; under the caps its single document is byte-identical
|
|
15
|
+
* to `buildSitemapXml`'s output, and past them it is the difference between a sitemap and a throw.
|
|
8
16
|
*/
|
|
9
|
-
export { buildSitemapXml, MAX_SITEMAP_URLS, SitemapTooLargeError } from './xml.js';
|
|
17
|
+
export { buildSitemapXml, MAX_SITEMAP_BYTES, MAX_SITEMAP_INDEX_ENTRIES, MAX_SITEMAP_URLS, SitemapTooLargeError, } from './xml.js';
|
|
18
|
+
export { buildSitemapDocuments, } from './documents.js';
|
|
10
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sitemap/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sitemap/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,GAGrB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,qBAAqB,GAGtB,MAAM,gBAAgB,CAAA"}
|
package/dist/sitemap/xml.d.ts
CHANGED
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
import type { SitemapNode, SitemapResult } from '../types.js';
|
|
2
2
|
/**
|
|
3
|
-
* The sitemap protocol's
|
|
3
|
+
* The sitemap protocol's cap on how many URLs one file may contain. Past it a document is invalid,
|
|
4
4
|
* not merely large.
|
|
5
5
|
*/
|
|
6
6
|
export declare const MAX_SITEMAP_URLS = 50000;
|
|
7
|
+
/**
|
|
8
|
+
* The protocol's *other* cap, on the same file: 50 MB, and specifically **uncompressed** — so
|
|
9
|
+
* serving the document gzipped does not buy any room.
|
|
10
|
+
*
|
|
11
|
+
* Both halves have to be checked, and this is the one that goes unchecked, because it is not the
|
|
12
|
+
* number the obvious loop counter is already tracking. It binds first far sooner than it looks:
|
|
13
|
+
* with `localeUrl` supplied every `<url>` carries the *complete* alternate set, so bytes grow with
|
|
14
|
+
* the square of the locale count while URLs grow only linearly. Measured (spec 699): 3,200 pages in
|
|
15
|
+
* ten locales is 51.0 MB at 32,000 URLs — invalid, with 18,000 URLs of the other cap still unused.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MAX_SITEMAP_BYTES = 52428800;
|
|
18
|
+
/**
|
|
19
|
+
* A sitemap index may reference at most this many sitemaps, and may not reference another index —
|
|
20
|
+
* the protocol allows exactly one level. Unreachable at the default caps (50,000 shards of 50,000
|
|
21
|
+
* URLs is 2.5 billion URLs) and defined anyway, because an unreachable case with no stated
|
|
22
|
+
* behaviour is how the next person finds out there wasn't one.
|
|
23
|
+
*/
|
|
24
|
+
export declare const MAX_SITEMAP_INDEX_ENTRIES = 50000;
|
|
25
|
+
/** Which cap a document breached. `sitemaps` is an index that would reference too many of them. */
|
|
26
|
+
export type SitemapTooLargeReason = 'urls' | 'bytes' | 'sitemaps';
|
|
7
27
|
/** Thrown rather than emitting a silently invalid or silently truncated document — see `buildSitemapXml`. */
|
|
8
28
|
export declare class SitemapTooLargeError extends Error {
|
|
29
|
+
readonly reason: SitemapTooLargeReason;
|
|
9
30
|
readonly urlCount: number;
|
|
10
|
-
|
|
31
|
+
readonly byteCount: number;
|
|
32
|
+
/** Only meaningful for `reason: 'sitemaps'`; zero otherwise. */
|
|
33
|
+
readonly sitemapCount: number;
|
|
34
|
+
constructor(reason: SitemapTooLargeReason, urlCount: number, byteCount: number, sitemapCount?: number);
|
|
11
35
|
}
|
|
12
36
|
export interface BuildSitemapXmlOptions {
|
|
13
37
|
/**
|
|
@@ -59,4 +83,58 @@ export interface BuildSitemapXmlOptions {
|
|
|
59
83
|
* recoverable; an invalid sitemap discovered months later in Search Console is not.
|
|
60
84
|
*/
|
|
61
85
|
export declare function buildSitemapXml(result: SitemapResult, options: BuildSitemapXmlOptions): string;
|
|
86
|
+
/**
|
|
87
|
+
* Every selected node's `<url>` blocks, **grouped by node** — one array per node, in document order.
|
|
88
|
+
*
|
|
89
|
+
* Shared with `buildSitemapDocuments`, and grouped rather than flattened because a shard has to be
|
|
90
|
+
* able to keep a node's own alternate set together. `buildSitemapXml` simply flattens it, which is
|
|
91
|
+
* what makes the two functions' single-document output byte-identical by construction rather than
|
|
92
|
+
* by two implementations agreeing with each other.
|
|
93
|
+
*
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
export declare function renderSelectedUrls(result: SitemapResult, options: BuildSitemapXmlOptions): RenderedNode[];
|
|
97
|
+
/** The `<urlset>` envelope. One implementation, for the byte-identity reason above. @internal */
|
|
98
|
+
export declare function wrapUrlset(urls: readonly string[], withAlternates: boolean): string;
|
|
99
|
+
/**
|
|
100
|
+
* Both halves of the protocol's limit, checked against the **final serialized string** rather than a
|
|
101
|
+
* running estimate — the two have to agree, and this is the one that actually ships.
|
|
102
|
+
*
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
export declare function assertWithinCaps(urlCount: number, xml: string, maxUrls: number, maxBytes: number): void;
|
|
106
|
+
/**
|
|
107
|
+
* UTF-8 byte length. `TextEncoder` rather than `Buffer`, which does not exist in a browser — this
|
|
108
|
+
* module is bundled for one — and the protocol's limit is on bytes rather than on UTF-16 code
|
|
109
|
+
* units, so `String.length` would understate it for any non-ASCII path.
|
|
110
|
+
*
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
export declare function byteLengthOf(value: string): number;
|
|
114
|
+
/** One node's rendered `<url>` blocks, kept with the node so a shard can read its `lastmod`. @internal */
|
|
115
|
+
export interface RenderedNode {
|
|
116
|
+
node: SitemapNode;
|
|
117
|
+
urls: string[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Percent-encodes each path segment per RFC 3986 (the sitemap protocol requires it) and joins to the
|
|
121
|
+
* origin. The site root yields a trailing slash; every other path yields none.
|
|
122
|
+
*
|
|
123
|
+
* A value that is already absolute — which a consumer's `localeUrl` may legitimately return, e.g. for
|
|
124
|
+
* a per-locale subdomain — is passed through untouched.
|
|
125
|
+
*/
|
|
126
|
+
export declare function absolute(origin: string, path: string): string;
|
|
127
|
+
/**
|
|
128
|
+
* XML-escaping, which is a separate step from percent-encoding and neither subsumes the other:
|
|
129
|
+
* percent-encoding does not escape `&`, and XML-escaping does not encode a space.
|
|
130
|
+
*/
|
|
131
|
+
export declare function escapeXml(value: string): string;
|
|
132
|
+
/**
|
|
133
|
+
* `absolute` under the name the index renderer uses. Exported so a `<loc>` inside `<sitemapindex>`
|
|
134
|
+
* is absolutized and encoded by the *same* code as a `<loc>` inside `<urlset>` — two spellings of
|
|
135
|
+
* one path is exactly how an index comes to reference a shard that is served somewhere else.
|
|
136
|
+
*
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
export { absolute as joinToOrigin };
|
|
62
140
|
//# sourceMappingURL=xml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../src/sitemap/xml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE7D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAS,CAAA;AAEtC,6GAA6G;AAC7G,qBAAa,oBAAqB,SAAQ,KAAK;IAK7C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../src/sitemap/xml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE7D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAS,CAAA;AAEtC;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,WAAa,CAAA;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,QAAS,CAAA;AAE/C,mGAAmG;AACnG,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAEjE,6GAA6G;AAC7G,qBAAa,oBAAqB,SAAQ,KAAK;IAK7C,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAA;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,gEAAgE;IAChE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;gBAEjB,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,SAAI;CAwBjG;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;I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56 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The sitemap protocol's
|
|
2
|
+
* The sitemap protocol's cap on how many URLs one file may contain. Past it a document is invalid,
|
|
3
3
|
* not merely large.
|
|
4
4
|
*/
|
|
5
5
|
export const MAX_SITEMAP_URLS = 50_000;
|
|
6
|
+
/**
|
|
7
|
+
* The protocol's *other* cap, on the same file: 50 MB, and specifically **uncompressed** — so
|
|
8
|
+
* serving the document gzipped does not buy any room.
|
|
9
|
+
*
|
|
10
|
+
* Both halves have to be checked, and this is the one that goes unchecked, because it is not the
|
|
11
|
+
* number the obvious loop counter is already tracking. It binds first far sooner than it looks:
|
|
12
|
+
* with `localeUrl` supplied every `<url>` carries the *complete* alternate set, so bytes grow with
|
|
13
|
+
* the square of the locale count while URLs grow only linearly. Measured (spec 699): 3,200 pages in
|
|
14
|
+
* ten locales is 51.0 MB at 32,000 URLs — invalid, with 18,000 URLs of the other cap still unused.
|
|
15
|
+
*/
|
|
16
|
+
export const MAX_SITEMAP_BYTES = 52_428_800;
|
|
17
|
+
/**
|
|
18
|
+
* A sitemap index may reference at most this many sitemaps, and may not reference another index —
|
|
19
|
+
* the protocol allows exactly one level. Unreachable at the default caps (50,000 shards of 50,000
|
|
20
|
+
* URLs is 2.5 billion URLs) and defined anyway, because an unreachable case with no stated
|
|
21
|
+
* behaviour is how the next person finds out there wasn't one.
|
|
22
|
+
*/
|
|
23
|
+
export const MAX_SITEMAP_INDEX_ENTRIES = 50_000;
|
|
6
24
|
/** Thrown rather than emitting a silently invalid or silently truncated document — see `buildSitemapXml`. */
|
|
7
25
|
export class SitemapTooLargeError extends Error {
|
|
8
|
-
// Declared and assigned explicitly rather than as
|
|
26
|
+
// Declared and assigned explicitly rather than as constructor parameter properties: this package
|
|
9
27
|
// compiles under `erasableSyntaxOnly`, which rejects the shorthand (TS1294) because emitting it
|
|
10
28
|
// requires synthesizing an assignment the source never wrote. Caught by `npm run build`, never by
|
|
11
29
|
// `vitest`, which transpiles without type-checking.
|
|
30
|
+
reason;
|
|
12
31
|
urlCount;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
32
|
+
byteCount;
|
|
33
|
+
/** Only meaningful for `reason: 'sitemaps'`; zero otherwise. */
|
|
34
|
+
sitemapCount;
|
|
35
|
+
constructor(reason, urlCount, byteCount, sitemapCount = 0) {
|
|
36
|
+
const breached = reason === 'urls'
|
|
37
|
+
? `A sitemap may contain at most ${MAX_SITEMAP_URLS} URLs; this one would contain ${urlCount}.`
|
|
38
|
+
: reason === 'sitemaps'
|
|
39
|
+
? `A sitemap index may reference at most ${MAX_SITEMAP_INDEX_ENTRIES} sitemaps and may not` +
|
|
40
|
+
` reference another index; this one would reference ${sitemapCount}.`
|
|
41
|
+
: `A sitemap may be at most ${MAX_SITEMAP_BYTES} bytes uncompressed; this one would be ${byteCount}` +
|
|
42
|
+
` (across ${urlCount} URLs).`;
|
|
43
|
+
// Names a remedy that exists. Until spec 699 this said "reference them from a sitemap index"
|
|
44
|
+
// and the package shipped no way to build one.
|
|
45
|
+
const remedy = reason === 'sitemaps'
|
|
46
|
+
? 'Raise maxUrls, or narrow the site with exclude or filter.'
|
|
47
|
+
: 'Use buildSitemapDocuments to split it across several sitemaps behind an index.';
|
|
48
|
+
super(`${breached} ${remedy}`);
|
|
16
49
|
this.name = 'SitemapTooLargeError';
|
|
50
|
+
this.reason = reason;
|
|
17
51
|
this.urlCount = urlCount;
|
|
52
|
+
this.byteCount = byteCount;
|
|
53
|
+
this.sitemapCount = sitemapCount;
|
|
18
54
|
}
|
|
19
55
|
}
|
|
20
56
|
/**
|
|
@@ -30,26 +66,41 @@ export class SitemapTooLargeError extends Error {
|
|
|
30
66
|
* recoverable; an invalid sitemap discovered months later in Search Console is not.
|
|
31
67
|
*/
|
|
32
68
|
export function buildSitemapXml(result, options) {
|
|
69
|
+
const withAlternates = options.localeUrl !== undefined;
|
|
70
|
+
const urls = renderSelectedUrls(result, options).flatMap((rendered) => rendered.urls);
|
|
71
|
+
const xml = wrapUrlset(urls, withAlternates);
|
|
72
|
+
assertWithinCaps(urls.length, xml, MAX_SITEMAP_URLS, MAX_SITEMAP_BYTES);
|
|
73
|
+
return xml;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Every selected node's `<url>` blocks, **grouped by node** — one array per node, in document order.
|
|
77
|
+
*
|
|
78
|
+
* Shared with `buildSitemapDocuments`, and grouped rather than flattened because a shard has to be
|
|
79
|
+
* able to keep a node's own alternate set together. `buildSitemapXml` simply flattens it, which is
|
|
80
|
+
* what makes the two functions' single-document output byte-identical by construction rather than
|
|
81
|
+
* by two implementations agreeing with each other.
|
|
82
|
+
*
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
export function renderSelectedUrls(result, options) {
|
|
33
86
|
const origin = options.origin.replace(/\/+$/, '');
|
|
34
|
-
const nodes = selectNodes(result.nodes, options);
|
|
35
87
|
const withAlternates = options.localeUrl !== undefined;
|
|
36
|
-
|
|
37
|
-
for (const node of nodes) {
|
|
88
|
+
return selectNodes(result.nodes, options).map((node) => {
|
|
38
89
|
if (!withAlternates) {
|
|
39
|
-
urls
|
|
40
|
-
continue;
|
|
90
|
+
return { node, urls: [renderUrl(absolute(origin, node.path), [], undefined, node.lastmod)] };
|
|
41
91
|
}
|
|
42
92
|
// Every locale this node is reachable in, the default included, as one list. Each URL then
|
|
43
93
|
// carries the *complete* set — see `renderUrl`.
|
|
44
94
|
const alternates = buildAlternates(origin, node, result.defaultLocale, options);
|
|
45
95
|
const xDefaultHref = resolveXDefault(alternates, options.xDefaultLocale);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
96
|
+
return {
|
|
97
|
+
node,
|
|
98
|
+
urls: alternates.map((alternate) => renderUrl(alternate.href, alternates, xDefaultHref, node.lastmod)),
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/** The `<urlset>` envelope. One implementation, for the byte-identity reason above. @internal */
|
|
103
|
+
export function wrapUrlset(urls, withAlternates) {
|
|
53
104
|
const namespaces = withAlternates
|
|
54
105
|
? '\n xmlns:xhtml="http://www.w3.org/1999/xhtml"'
|
|
55
106
|
: '';
|
|
@@ -59,6 +110,31 @@ ${urls.join('\n')}
|
|
|
59
110
|
</urlset>
|
|
60
111
|
`;
|
|
61
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Both halves of the protocol's limit, checked against the **final serialized string** rather than a
|
|
115
|
+
* running estimate — the two have to agree, and this is the one that actually ships.
|
|
116
|
+
*
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
export function assertWithinCaps(urlCount, xml, maxUrls, maxBytes) {
|
|
120
|
+
const byteCount = byteLengthOf(xml);
|
|
121
|
+
if (urlCount > maxUrls) {
|
|
122
|
+
throw new SitemapTooLargeError('urls', urlCount, byteCount);
|
|
123
|
+
}
|
|
124
|
+
if (byteCount > maxBytes) {
|
|
125
|
+
throw new SitemapTooLargeError('bytes', urlCount, byteCount);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* UTF-8 byte length. `TextEncoder` rather than `Buffer`, which does not exist in a browser — this
|
|
130
|
+
* module is bundled for one — and the protocol's limit is on bytes rather than on UTF-16 code
|
|
131
|
+
* units, so `String.length` would understate it for any non-ASCII path.
|
|
132
|
+
*
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
export function byteLengthOf(value) {
|
|
136
|
+
return new TextEncoder().encode(value).length;
|
|
137
|
+
}
|
|
62
138
|
function selectNodes(nodes, options) {
|
|
63
139
|
const exclude = options.exclude ?? [];
|
|
64
140
|
return nodes.filter((node) => !isExcluded(node.path, exclude) && (options.filter?.(node) ?? true));
|
|
@@ -140,7 +216,7 @@ function renderUrl(loc, alternates, xDefaultHref, lastmod) {
|
|
|
140
216
|
* A value that is already absolute — which a consumer's `localeUrl` may legitimately return, e.g. for
|
|
141
217
|
* a per-locale subdomain — is passed through untouched.
|
|
142
218
|
*/
|
|
143
|
-
function absolute(origin, path) {
|
|
219
|
+
export function absolute(origin, path) {
|
|
144
220
|
if (/^[a-z][a-z0-9+.-]*:\/\//i.test(path)) {
|
|
145
221
|
return path;
|
|
146
222
|
}
|
|
@@ -166,7 +242,7 @@ function encodeSegment(segment) {
|
|
|
166
242
|
* XML-escaping, which is a separate step from percent-encoding and neither subsumes the other:
|
|
167
243
|
* percent-encoding does not escape `&`, and XML-escaping does not encode a space.
|
|
168
244
|
*/
|
|
169
|
-
function escapeXml(value) {
|
|
245
|
+
export function escapeXml(value) {
|
|
170
246
|
return value
|
|
171
247
|
.replace(/&/g, '&')
|
|
172
248
|
.replace(/</g, '<')
|
|
@@ -174,4 +250,12 @@ function escapeXml(value) {
|
|
|
174
250
|
.replace(/"/g, '"')
|
|
175
251
|
.replace(/'/g, ''');
|
|
176
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* `absolute` under the name the index renderer uses. Exported so a `<loc>` inside `<sitemapindex>`
|
|
255
|
+
* is absolutized and encoded by the *same* code as a `<loc>` inside `<urlset>` — two spellings of
|
|
256
|
+
* one path is exactly how an index comes to reference a shard that is served somewhere else.
|
|
257
|
+
*
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
export { absolute as joinToOrigin };
|
|
177
261
|
//# sourceMappingURL=xml.js.map
|
package/dist/sitemap/xml.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml.js","sourceRoot":"","sources":["../../src/sitemap/xml.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAEtC,6GAA6G;AAC7G,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAC7C,iGAAiG;IACjG,gGAAgG;IAChG,kGAAkG;IAClG,oDAAoD;IAC3C,QAAQ,CAAQ;
|
|
1
|
+
{"version":3,"file":"xml.js","sourceRoot":"","sources":["../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