From 225a2baac75734c310470cda977cb0adc21647f3 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Fri, 18 Jul 2025 16:38:31 +0200 Subject: [PATCH 1/2] fix: :bug: change the model filters key in the command --- src/Console/Commands/GenerateSitemapCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Commands/GenerateSitemapCommand.php b/src/Console/Commands/GenerateSitemapCommand.php index c7b5232..9245555 100644 --- a/src/Console/Commands/GenerateSitemapCommand.php +++ b/src/Console/Commands/GenerateSitemapCommand.php @@ -43,7 +43,7 @@ class GenerateSitemapCommand extends Command $sitemap->add(SitemapHelper::generateUrl($page)); } foreach (config('sitemap-generator.cruds') as $crud) { - $modelFilters = $crud['filters'] ?? []; + $modelFilters = $crud['modelFilters'] ?? []; $relationsFilters = $crud['relationFilters'] ?? []; $sitemap->add( $crud['model']::query() From cd55e900a263f3b99722461808dc17c9034a3e87 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Fri, 18 Jul 2025 16:40:28 +0200 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=F0=9F=94=96=20release=20v5.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ README.md | 2 +- composer.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c9c80..43ae2ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ All notable changes to `sitemap-generator` will be documented in this file. - This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), - Commits respect [Conventionnal commits](https://www.conventionalcommits.org/en/v1.0.0/) & use [Gitmoji](https://gitmoji.dev/). +## **[v5.0.1] - 18/07/2025** + +### Added + +- fix: 🐛 change the model filters key in the command + ## **[v5.0.0] - 18/07/2025** ### Added diff --git a/README.md b/README.md index fcf0c3d..113e615 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ If you discover any security related issues, please email in # Changelog -Latest version v5.0.0. +Latest version v5.0.1. See the [CHANGELOG.md](CHANGELOG.md) file for details. diff --git a/composer.json b/composer.json index 833235b..e504f82 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "uwil/sitemap-generator", "description": "Create sitemap.xml", - "version": "5.0.0", + "version": "5.0.1", "require": { "illuminate/support": "~11|~12", "laravel/framework": "~11|~12",