Skip to content

Streaming Sitemap + Index

Compare
Choose a tag to compare
@derduher derduher released this 21 Feb 04:08
· 183 commits to master since this release
d260283

6.0.0

  • removed xmlbuilder as a dependency
  • added stronger validity checking on values supplied to sitemap
  • Added the ability to turn off or add custom xml namespaces
  • CLI and library now can accept a stream which will automatically write both the index and the sitemaps. See README for usage.

6.0.0 breaking changes

  • renamed XMLToISitemapOptions to XMLToSitemapOptions
  • various error messages changed.
  • removed deprecated Sitemap and SitemapIndex classes
  • replaced buildSitemapIndex with SitemapIndexStream
  • Typescript: various types renamed or made more specific, removed I prefix
  • Typescript: view_count is now exclusively a number
  • Typescript: price:type and price:resolution are now more restrictive types
  • sitemap parser now returns a sitemapItem array rather than a config object that could be passed to the now removed Sitemap class
  • CLI no longer accepts multiple file arguments or a mixture of file and streams except as a part of a parameter eg. prepend