Changelog
6.0.0
Changelog
5.1.0
Fix for #255. Baidu does not like timestamp in its sitemap.xml, this adds an option to truncate lastmod
new SitemapStream({ lastmodDateOnly: true });
Changelog
5.0.1
Fix for issue #254.
warning: failed to load external entity "./schema/all.xsd"
Schemas parser error : Failed to locate the main schema resource at './schema/all.xsd'.
WXS schema ./schema/all.xsd failed to compile
Changelog
5.0.0
This release is heavily focused on converting the core methods of this library to use streams. Why? Overall its made the API ~20% faster and uses only 10% or less of the memory. Some tradeoffs had to be made as in their nature streams are operate on individual segments of data as opposed to the whole. For instance, the streaming interface does not support removal of sitemap items as it does not hold on to a sitemap item after its converted to XML. It should however be possible to create your own transform that filters out entries should you desire it. The existing synchronous interfaces will remain for this release at least. Do not be surprised if they go away in a future breaking release.
This library interface has been overhauled to use streams internally. Although it would have been preferable to convert this to a stream as well, I could not think of an interface that wouldn't actually end up more complex or confusing. It may be altered in the near future to accept a stream in addition to a simple list.
npx sitemap --prepend existingSitemap.xml < listOfNewURLs.json.txt
--json
is now inferred--line-separated
has been flipped to --single-line-json
to by default output options immediately compatible with feeding back into sitemapChangelog
4.1.1
Add a pretty print option to toString(false)
pass true pretty print
Add an xmlparser that will output a config that would generate that same file
cli: use --parser to output the complete config --line-separated to print out line separated config compatible with the --json input option for cli
lib: import parseSitemap and pass it a stream
Changelog
4.0.1
Validation functions which depend on xmllint will now warn if you do not have xmllint installed.
Changelog
3.2.2