From ff1ef970c34a04d9c254a5b12ece526bd820dc7e Mon Sep 17 00:00:00 2001 From: sgillot Date: Thu, 17 Sep 2026 14:46:49 +0200 Subject: [PATCH] chore: bump plugin version to 1.1.2 and update readme Co-authored-by: Cursor --- .plugin-data | 2 +- CHANGELOG.md | 3 ++- blockparty-icons.php | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 12 +++++++++++- src/block.json | 2 +- 7 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.plugin-data b/.plugin-data index 91edf44..80a8f24 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.1.1", + "version": "1.1.2", "slug": "blockparty-icons" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e4829..b9efc8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,9 @@ This plugin **doesn't run any sanitization on SVGs** before using them. Only use ## Changelog -### Unreleased +### 1.1.2 - 2026-09-17 +- Fix `beapi/icon-block` migration skipping icons that have a name but no collection (registry lookup then generic fallback) - Load an icon's SVG only when it is used. Registering a collection now builds a lightweight index, so a front-end page no longer holds every icon of every collection in memory - Cache icon payloads individually, and skip the object cache for payloads over 900 KB. Memcached refuses items above 1 MB and reports it only through an unchecked return value, which made oversized collections rebuild on every request forever. Adjust with the `blockparty_icons_cache_max_item_bytes` filter - Add an `attachments` collection type for SVGs contributed through the media library: one query and one cached index, instead of a query plus a cache round trip per icon on every request diff --git a/blockparty-icons.php b/blockparty-icons.php index 804737d..75dd4ae 100644 --- a/blockparty-icons.php +++ b/blockparty-icons.php @@ -4,7 +4,7 @@ * Description: Provides blocks in WordPress editor to add custom SVG icons. * Requires at least: 6.2 * Requires PHP: 8.1 - * Version: 1.1.1 + * Version: 1.1.2 * Author: Be API Technical Team * Author URI: https://beapi.fr * License: GPL-2.0-or-later @@ -30,7 +30,7 @@ include_once __DIR__ . '/vendor/autoload.php'; } -define( 'BLOCKPARTY_ICONS_VERSION', '1.1.1' ); +define( 'BLOCKPARTY_ICONS_VERSION', '1.1.2' ); define( 'BLOCKPARTY_ICONS_URL', plugin_dir_url( __FILE__ ) ); define( 'BLOCKPARTY_ICONS_DIR', plugin_dir_path( __FILE__ ) ); define( 'BLOCKPARTY_ICONS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); diff --git a/package-lock.json b/package-lock.json index aa22b2a..12e4c07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "blockparty-icons", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "blockparty-icons", - "version": "1.1.1", + "version": "1.1.2", "license": "GPL-2.0-or-later", "dependencies": { "@beapi/icons": "^1.2.5", diff --git a/package.json b/package.json index 4e64d31..1600dbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-icons", - "version": "1.1.1", + "version": "1.1.2", "description": "Provides blocks in WordPress editor to add custom SVG icons from your theme.", "author": "Be API Technical team", "license": "GPL-2.0-or-later", diff --git a/readme.txt b/readme.txt index 3c5ef0a..91ab7d8 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: block, icons, svg, gutenberg, editor Requires at least: 6.2 Tested up to: 6.8 Requires PHP: 8.1 -Stable tag: 1.1.1 +Stable tag: 1.1.2 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -36,6 +36,16 @@ Yes. Register a collection with `type` set to `folder` and `source` pointing to == Changelog == += 1.1.2 = +* Fix `beapi/icon-block` migration skipping icons that have a name but no collection (registry lookup then generic fallback). +* Load an icon's SVG only when it is used. Registering a collection now builds a lightweight index, so a front-end page no longer holds every icon of every collection in memory. +* Cache icon payloads individually, and skip the object cache for payloads over 900 KB. Adjust with the `blockparty_icons_cache_max_item_bytes` filter. +* Add an `attachments` collection type for SVGs contributed through the media library. +* Version cached index keys, so entries written by an earlier release are never read back after an update. +* Add a reproducible performance protocol under `tests/perf`. +* Add a PHPUnit integration test suite. See `tests/README.md`. +* Run the suite in CI on PHP 8.1 through 8.4. + = 1.1.1 = * Fix deprecated warning for nullable string parameters in `CollectionItem`. * Align GitHub workflows with other blockparty repos and add release version consistency checks. diff --git a/src/block.json b/src/block.json index ffd022b..d447f27 100644 --- a/src/block.json +++ b/src/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/icon", - "version": "1.1.1", + "version": "1.1.2", "title": "Icon", "category": "widgets", "description": "Easily add custom vector icon to your content.",