Skip to content

Releases: pecotamic/sitemap

2.0.0

Choose a tag to compare

@werner-freytag werner-freytag released this 28 Jul 23:06

Breaking changes

  • Dropped support for Statamic 3 and 4. The addon now requires Statamic 5 or 6 and PHP 8.2+.
  • SitemapEntry API changed: priority is now a float (was a string), lastmod is now nullable, and the constructor signature was updated accordingly. Custom templates or addEntries() callers reading these properties may need adjustment.
  • Default cache lifetime (expire) raised from 60 seconds to 1 day. Content changes now invalidate the cache immediately via events (see below), so a long lifetime is safe and reduces regeneration.

Features

  • Event-based cache invalidation: the sitemap cache is now flushed automatically whenever an entry or term is saved or deleted, so changes appear immediately regardless of expire.

Improvements

  • Performance: entries are now filtered by collection and status at the query level instead of loading every entry and filtering in PHP.
  • Cleaner XML output: the priority default (1.0 for the root path, 0.8 otherwise) is computed in PHP, removing stray whitespace from the <priority> element.

Fixes

  • Fixed a crash when an entry had no lastmod (last modification) date.
  • Fixed type inconsistencies (isAbsoluteUrl now returns a real bool; priority is normalized to a float).
  • Generator is no longer needlessly extending Facade.

Internal

  • Added a test suite (unit + feature coverage) and a GitHub Actions matrix testing PHP 8.2/8.3/8.4 against Statamic 5 and 6.
  • Extracted the shared site-prefix logic into the service provider.

1.4.10

Choose a tag to compare

@werner-freytag werner-freytag released this 30 Sep 21:32

add Statamic 6 compatibility

1.4.9

Choose a tag to compare

@werner-freytag werner-freytag released this 27 Mar 15:53
e51b96b

Get rid of updater issue

1.4.8

Choose a tag to compare

@werner-freytag werner-freytag released this 29 Jan 16:10
e51b96b

Allow invokable class as filter - thanks to Frederik Sauer for submission.

1.4.7

Choose a tag to compare

@werner-freytag werner-freytag released this 09 May 22:02

add support for statamic 5

1.4.6

Choose a tag to compare

@werner-freytag werner-freytag released this 06 Jun 13:30

Fixed class loading in Statamic 3

1.4.5

Choose a tag to compare

@werner-freytag werner-freytag released this 17 May 19:09

Add routes to SSG if available

1.4.4

Choose a tag to compare

@werner-freytag werner-freytag released this 17 May 18:12
1.4.4

1.4.3

Choose a tag to compare

@werner-freytag werner-freytag released this 17 May 16:17

Improvement: filter entries by locale and exclude redirects

1.4.2

Choose a tag to compare

@werner-freytag werner-freytag released this 10 May 21:50

add support for statamic 4.0