Skip to content

Version 2.9.2

Compare
Choose a tag to compare
@ernado-x ernado-x released this 23 Sep 20:25
· 32 commits to master since this release

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

New Contributors

Full Changelog: v2.8.0...v2.9.2

NuGet