Atualizar sitemap de 9.x para 10.x
Comparação da API pública de sitemap 9.0.1 e 10.0.0, calculada automaticamente a partir dos tipos TypeScript. Uma assinatura alterada é uma possível mudança incompatível, não uma certeza.
Resumo
| Caminhos de importação removidos | 0 |
|---|---|
| Exports removidos | 1 |
| Assinaturas alteradas | 2 |
| Membros de classes ou interfaces removidos | 4 |
| Membros de classes ou interfaces alterados | 6 |
| Novas descontinuações | 3 |
| Mudanças de requisitos (engines, dependências peer) | 1 |
| Novos exports | 5 |
Exports removidos
| import | export | kind | Antes |
|---|---|---|---|
sitemap | UndefinedTargetFolder | class | class |
Assinaturas alteradas
| export | Antes | Depois |
|---|---|---|
sitemap · LIMITS | { readonly MAX_URL_LENGTH: 2048; readonly URL_PROTOCOL_REGEX: RegExp; readonly MIN_SITEMAP_ITEM_LIMIT: 1; readonly MAX_SITEMAP_ITEM_LIMIT: 50000; readonly MAX_VIDEO_TITLE_LENGTH: 100; readonly MAX_VIDEO_DESCRIPTION_LENGTH: 2048; readonly MAX_VIDEO_CATEGORY_LENGTH: 256; readonly MAX_TAGS_PER_VIDEO: 32; readonly MAX_NEWS_TITLE_LENGTH: 200; readonly MAX_NEWS_NAME_LENGTH: 256; readonly MAX_IMAGE_CAPTION_LENGTH: 512; readonly MAX_IMAGE_TITLE_LENGTH: 512; readonly MAX_IMAGES_PER_URL: 1000; readonly MAX_VIDEOS_PER_URL: 100; readonly MAX_LINKS_PER_URL: 100; readonly MAX_URL_ENTRIES: 50000; readonly IS… | { readonly MAX_URL_LENGTH: 2048; readonly URL_PROTOCOL_REGEX: RegExp; readonly MIN_SITEMAP_ITEM_LIMIT: 1; readonly MAX_SITEMAP_ITEM_LIMIT: 50000; readonly MIN_PRIORITY: 0; readonly MAX_PRIORITY: 1; readonly PRIORITY_STRING_REGEX: RegExp; readonly MIN_VIDEO_DURATION: 0; readonly MAX_VIDEO_DURATION: 28800; readonly MIN_VIDEO_RATING: 0; readonly MAX_VIDEO_RATING: 5; readonly MIN_VIDEO_VIEW_COUNT: 0; readonly MAX_VIDEO_TITLE_LENGTH: 100; readonly MAX_VIDEO_DESCRIPTION_LENGTH: 2048; readonly MAX_VIDEO_CATEGORY_LENGTH: 256; readonly MAX_TAGS_PER_VIDEO: 32; readonly MAX_NEWS_TITLE_LENGTH: 200; readon… |
sitemap · simpleSitemapAndIndex | ({ hostname, sitemapHostname, sourceData, destinationDir, limit, gzip, publicBasePath, xslUrl, }: SimpleSitemapAndIndexOptions): Promise<void> | ({ hostname, sitemapHostname, sourceData, destinationDir, limit, gzip, publicBasePath, xslUrl, logger, }: SimpleSitemapAndIndexOptions): Promise<void> |
Membros de classes ou interfaces removidos
| member | import | Antes |
|---|---|---|
SitemapStream.smiStream | sitemap | any |
SitemapAndIndexStream.currentSitemap | sitemap | any |
SitemapAndIndexStream.isCreatingSitemap | sitemap | any |
SitemapAndIndexStream.currentSitemapPipeline | sitemap | any |
Membros de classes ou interfaces alterados
| member | Antes | Depois |
|---|---|---|
SitemapStream.errorHandler | ErrorHandler | undefined | (error: Error, level: ErrorLevel): void |
InvalidAttrValue.constructor | (key: string, val: any, validator: RegExp): InvalidAttrValue | (key: string, val: any, validator: RegExp, url?: string | undefined): InvalidAttrValue |
SitemapItemLoose.priority | number | undefined | string | number | undefined |
XMLToSitemapItemStream.err | any | (msg: string): void |
XMLToSitemapItemStream.logger | (level: "log" | "warn" | "error" | "info", ...message: any): void | (level: "log" | "warn" | "error" | "info", ...message: any[]): void |
XMLToSitemapIndexStream.err | any | (msg: string): void |
Novas descontinuações
| export | @deprecated |
|---|---|
sitemap · EmptySitemap | No longer thrown: since 10.0.0, `SitemapStream` emits an empty `<urlset>` when it ends without items. Kept so existing imports still resolve. |
sitemap · SitemapStream.xmlNS | Use `xmlns` |
sitemap · XMLToSitemapItemStream.urlCount | Use entryCount |
Mudanças de requisitos (engines, dependências peer)
| Antes | Depois | |
|---|---|---|
engines.node | >=20.19.5 | >=22.22.1 |
Novos exports (5)
| import | export | kind |
|---|---|---|
sitemap | Logger | type |
sitemap | InvalidURLError | class |
sitemap | InvalidVideoYesNo | class |
sitemap | InvalidLinkHreflang | class |
sitemap | SaxParserStreamOptions | interface |
Dê estes dados ao seu agente de IA
Vigia é um servidor MCP gratuito: seu agente de programação verifica versões, mudanças incompatíveis e vulnerabilidades antes de escrever código. Sem cadastro, sem chave de API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Adicionar ao CursorAdicionar ao VS Code★ Estrela no GitHub
Qualquer outro cliente MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill para agentes (SKILL.md): diz ao agente quando usar o Vigia · GitHub Action para pull requests
Perguntas frequentes
Quais são as mudanças incompatíveis ao atualizar sitemap de 9 para 10?
Entre sitemap 9.0.1 e 10.0.0, o Vigia encontrou 1 exports removidos, 2 assinaturas alteradas e 10 membros de classes ou interfaces removidos ou alterados.
O que foi descontinuado em sitemap 10?
3 exports ou membros foram marcados como descontinuados em sitemap 10.0.0.
Para agentes
GET https://vigia.coredls.cloud/v1/packages/npm/sitemap/upgrade?from=9.0.1&to=10.0.0