Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .plugin-data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.1.1",
"version": "1.1.2",
"slug": "blockparty-icons"
}
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions blockparty-icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__ ) );
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 11 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
Loading