Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

chore(deps): update dependency sitemap to v5 - autoclosed #405

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 7, 2019

This PR contains the following updates:

Package Type Update Change
sitemap dependencies major 3.2.2 -> 5.1.0

Release Notes

ekalinin/sitemap.js

v5.1.0

Compare Source

Fix for #​255. Baidu does not like timestamp in its sitemap.xml, this adds an option to truncate lastmod

new SitemapStream({ lastmodDateOnly: true });

v5.0.1

Compare Source

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

v5.0.0

Compare Source

Streams

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.

Sitemap Index

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.

Misc
  • runnable examples, some pulled straight from README have been added to the examples directory.
  • createSitemapsIndex was renamed createSitemapsAndIndex to more accurately reflect its function. It now returns a promise that resolves to true or throws with an error.
  • You can now add to existing sitemap.xml files via the cli using npx sitemap --prepend existingSitemap.xml < listOfNewURLs.json.txt
5.0 Breaking Changes
  • Dropped support for mobile sitemap - Google appears to have deleted their dtd and all references to it, strongly implying that they do not want you to use it. As its absence now breaks the validator, it has been dropped.
  • normalizeURL(url, XMLRoot, hostname) -> normalizeURL(url, hostname)
    • The second argument was unused and has been eliminated
  • Support for Node 8 dropped - Node 8 is reaching its EOL December 2019
  • xslURL is being dropped from all apis - styling xml is out of scope of this library.
  • createSitemapIndex has been converted to a promised based api rather than callback.
  • createSitemapIndex now gzips by default - pass gzip: false to disable
  • cacheTime is being dropped from createSitemapIndex - This didn't actually cache the way it was written so this should be a non-breaking change in effect.
  • SitemapIndex as a class has been dropped. The class did all its work on construction and there was no reason to hold on to it once you created it.
  • The options for the cli have been overhauled
    • --json is now inferred
    • --line-separated has been flipped to --single-line-json to by default output options immediately compatible with feeding back into sitemap

v4.1.1

Compare Source

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

v4.0.2

Compare Source

Fix npx script error - needs the shebang

v4.0.1

Compare Source

Validation functions which depend on xmllint will now warn if you do not have xmllint installed.


Renovate configuration

📅 Schedule: "after 10pm every weekday,before 6am every weekday,every weekend" in timezone America/New_York.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from fb6ce80 to eb2137f Compare October 10, 2019 01:36
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from eb2137f to 6d3e87c Compare October 15, 2019 23:36
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch 3 times, most recently from 695edef to bb6fbba Compare October 25, 2019 13:43
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from bb6fbba to 0231c54 Compare November 1, 2019 07:33
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch 2 times, most recently from 9ab9280 to c227a58 Compare November 13, 2019 23:50
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch 2 times, most recently from 9397717 to bbbdc49 Compare November 25, 2019 01:52
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch 2 times, most recently from 6de4856 to cd22198 Compare December 13, 2019 08:57
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from cd22198 to f659f88 Compare December 18, 2019 22:45
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from f659f88 to 9f81e9a Compare December 27, 2019 23:07
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from 9f81e9a to d96e9fc Compare December 31, 2019 13:23
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from d96e9fc to f089b5e Compare January 22, 2020 12:51
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch 2 times, most recently from 2e80955 to 4f7906d Compare January 30, 2020 18:37
@renovate renovate bot force-pushed the renovate/sitemap-5.x branch from 4f7906d to fe7c4e4 Compare February 19, 2020 14:25
@renovate renovate bot changed the title chore(deps): update dependency sitemap to v5 chore(deps): update dependency sitemap to v5 - autoclosed Mar 7, 2020
@renovate renovate bot closed this Mar 7, 2020
@renovate renovate bot deleted the renovate/sitemap-5.x branch March 7, 2020 09:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant