Skip to content

Commit

Permalink
Merge branch 'release/5.1.10' into v5
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 16, 2025
2 parents ba4c33a + 3fbe8f0 commit be19ddd
Show file tree
Hide file tree
Showing 20 changed files with 309 additions and 200 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# SEOmatic Changelog

## 5.1.10 - 2025.01.16
### Added
* Added a `ModifySitemapQueryEvent` to allow the modification of the element query used to generate a sitemap ([#1553](https://github.com/nystudio107/craft-seomatic/issues/1553))

### Changed
* Use the `site` query parameter used globally by Craft in the CP for SEOmatic settings ([#1527](https://github.com/nystudio107/craft-seomatic/issues/1527))

### Fixed
* Fixed an issue where the L2 cache was not properly invalidated for containers _after_ a preview request, which could result in stale metadata
* Handle the case where SEOmatic settings for a specific `typeId` ended up in its own metabundle in addition to the default metabundle for that section ([#1557](https://github.com/nystudio107/craft-seomatic/issues/1557))

## 5.1.9 - 2025.01.08
### Changed
* Encode the URI in the `canonical` `link` header ([#1519](https://github.com/nystudio107/craft-seomatic/issues/1519))
Expand Down
60 changes: 30 additions & 30 deletions buildchain/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-seomatic",
"description": "SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.",
"type": "craft-plugin",
"version": "5.1.9",
"version": "5.1.10",
"minimum-stability": "dev",
"prefer-stable": true,
"keywords": [
Expand Down Expand Up @@ -79,6 +79,10 @@
"yiisoft/yii2-composer": true
},
"optimize-autoloader": true,
"platform": {
"php": "8.2"
},
"platform-check": false,
"sort-packages": true
},
"autoload": {
Expand Down
18 changes: 18 additions & 0 deletions docs/docs/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,24 @@ Event::on(
);
```

### ModifySitemapQueryEvent

Allows the modification of the element query used to generate a sitemap.

```php
use nystudio107\seomatic\events\ModifySitemapQueryEvent;
use nystudio107\seomatic\helpers\Sitemap;
use yii\base\Event;

Event::on(
Sitemap::class,
Sitemap::EVENT_MODIFY_SITEMAP_QUERY,
function(ModifySitemapQueryEvent $event) {
$event->query->limit(10);
}
);
```

### RegisterSitemapUrlsEvent

The event that is triggered when registering additional URLs for a sitemap.
Expand Down
Loading

0 comments on commit be19ddd

Please sign in to comment.