Version 2.9.2
Introduction
The X.Web.Sitemap library is a robust tool for the generation of Sitemap files, serving as a cornerstone for SEO-friendly web development. With over 600,000 downloads from the NuGet package repository, it has gained significant traction in the developer community. It's not just individual developers who rely on this library; it's also integrated into well-known projects like Umbraco CMS and Piranha CMS. The latest version brings several changes aimed at improving performance, usability, and flexibility. However, these changes may necessitate modifications to your existing code if you plan to upgrade.
What's New
The Sitemap class has undergone a refactoring process. The responsibilities for file saving and XML conversion have been offloaded to a separate serializer class, streamlining the core functionalities. Additionally, new serialization options have been introduced for SitemapIndex, enhancing its capabilities.
Breaking Changes
ISitemap Interface & Sitemap Class Changes
- Removed methods: Save, SaveAsync, SaveToDirectory, ToXml. These functionalities are now available as extension methods, which could conflict with existing methods in user code.
XmlDocumentExtension Method Renamed
- ToXmlString renamed to ToXml.
File Moves
- SitemapGenerator.cs and SitemapIndexGenerator.cs moved to a new folder, Generators.
New Serializer Classes
- SitemapIndexSerializer.cs introduced and changes in SitemapSerializer.cs.
Version Bump
- Version changed from 2.8.0 to 2.9.0.
StringWriterUtf8 Moved
- Moved to its own file.
SitemapIndex Class Changes
- New methods Parse and TryParse added.
Another changes
- Bump Shouldly from 4.1.0 to 4.2.1 by @dependabot in #53
- Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.7.0 by @dependabot in #61
- Bump NUnit3TestAdapter from 4.4.2 to 4.5.0 by @dependabot in #56
- Bump JetBrains.Annotations from 2022.3.1 to 2023.2.0 by @dependabot in #60
- #62 - Add support for remainder of Image Sitemap schema by @ChristopherRWilson in #63
- Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2 by @dependabot in #64
- Fix #54 #39 #65 by @ernado-x in #66
New Contributors
- @ChristopherRWilson made their first contribution in #63
Full Changelog: v2.8.0...v2.9.2