|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [2.1.0] - 2026-06-30 |
| 9 | + |
| 10 | +### Added |
| 11 | + |
| 12 | +- Configurable FAQ question heading level (h2–h6) from the block settings panel. |
| 13 | +- Rank Math SEO integration for FAQ structured data (JSON-LD). |
| 14 | +- SEOPress integration for FAQ structured data (JSON-LD). |
| 15 | +- SEO service resolver to delegate schema output to the active SEO plugin (Yoast SEO, Rank Math, or SEOPress). |
| 16 | +- PSR-4 autoloading for plugin PHP classes via Composer. |
| 17 | +- Block example in the FAQ block inserter preview. |
| 18 | +- Deprecated save handlers to preserve front-end markup for content saved in 2.0.x. |
| 19 | + |
| 20 | +### Changed |
| 21 | + |
| 22 | +- Refactored FAQ block markup to use WordPress block class names (aligned with blockparty-accordion). |
| 23 | +- Refactored Yoast SEO integration into a dedicated service class alongside other SEO plugins. |
| 24 | +- Updated French translations for all block editor scripts. |
| 25 | +- Replaced wp-env npm scripts (`start:env` / `stop:env` / `setup:env`) with `env:start` / `env:stop`. |
| 26 | +- Local development environment now mounts Yoast SEO, Rank Math, and SEOPress via Composer. |
| 27 | + |
| 28 | +### Fixed |
| 29 | + |
| 30 | +- Removed duplicate block wrapper in the FAQ item editor component (`useBlockProps` called twice). |
| 31 | +- Renamed `includes/` subdirectories to match PSR-4 namespace casing (`Schema/`, `Services/`, `Hooks/`). |
| 32 | + |
| 33 | +### Removed |
| 34 | + |
| 35 | +- Psalm static analysis configuration and dependency. |
| 36 | + |
| 37 | +## [2.0.3] - 2026-02-17 |
| 38 | + |
| 39 | +### Added |
| 40 | + |
| 41 | +- Support for core/button blocks inside FAQ answers. |
| 42 | +- Spacing support for FAQ answers. |
| 43 | +- Font size (typography) support for FAQ questions. |
| 44 | + |
| 45 | +### Changed |
| 46 | + |
| 47 | +- FAQ question text is stripped of HTML tags in structured data output. |
| 48 | + |
| 49 | +## [2.0.2] - 2026-01-27 |
| 50 | + |
| 51 | +### Fixed |
| 52 | + |
| 53 | +- Added missing `isAccordion` attribute to the parent FAQ block. |
| 54 | + |
| 55 | +## [2.0.1] - 2026-01-27 |
| 56 | + |
| 57 | +### Fixed |
| 58 | + |
| 59 | +- Block registration now uses block metadata from `block.json` correctly after the 2.0 build restructure. |
| 60 | + |
| 61 | +## [2.0.0] - 2026-01-27 |
| 62 | + |
| 63 | +### Added |
| 64 | + |
| 65 | +- Nested block architecture with child blocks: `faq-item`, `faq-question`, and `faq-answer`. |
| 66 | +- Configurable accordion mode via the `isAccordion` attribute (interactive accordion or static layout). |
| 67 | +- InnerBlocks support in FAQ answers (paragraphs, lists, images, and other Gutenberg blocks). |
| 68 | +- InnerBlocks support in FAQ questions when accordion mode is disabled. |
| 69 | +- Front-end accordion script with configurable behavior via the `beapi_faq_block_config` filter. |
| 70 | +- Automatic migration from the legacy `questions` array attribute to the InnerBlocks format. |
| 71 | +- Add and remove FAQ item controls in the block editor toolbar. |
| 72 | +- Full internationalization: PO/MO translations for PHP and JSON translations for JavaScript. |
| 73 | +- Yoast SEO FAQPage structured data integration. |
| 74 | +- wp-env local development environment. |
| 75 | + |
| 76 | +### Changed |
| 77 | + |
| 78 | +- Build structure reorganized to follow the blockparty-accordion model (one `block.json` per block directory). |
| 79 | + |
| 80 | +## [1.0.2] - 2024-06-07 |
| 81 | + |
| 82 | +### Changed |
| 83 | + |
| 84 | +- Added PHP 8.2 to supported PHP versions. |
| 85 | + |
| 86 | +## [1.0.1] - 2024-04-03 |
| 87 | + |
| 88 | +### Fixed |
| 89 | + |
| 90 | +- Corrected CSS custom property variable names. |
| 91 | + |
| 92 | +## [1.0.0] - 2024-04-02 |
| 93 | + |
| 94 | +### Added |
| 95 | + |
| 96 | +- Initial release of the Blockparty FAQ Gutenberg block. |
| 97 | +- Accessible accordion front-end behavior powered by `@beapi/be-a11y`. |
| 98 | +- Yoast SEO FAQPage structured data (JSON-LD) generation. |
| 99 | +- Editor controls to add and remove FAQ items. |
| 100 | + |
| 101 | +[2.1.0]: https://github.com/BeAPI/blockparty-faq/compare/2.0.3...2.1.0 |
| 102 | +[2.0.3]: https://github.com/BeAPI/blockparty-faq/compare/2.0.2...2.0.3 |
| 103 | +[2.0.2]: https://github.com/BeAPI/blockparty-faq/compare/2.0.1...2.0.2 |
| 104 | +[2.0.1]: https://github.com/BeAPI/blockparty-faq/compare/2.0.0...2.0.1 |
| 105 | +[2.0.0]: https://github.com/BeAPI/blockparty-faq/compare/1.0.2...2.0.0 |
| 106 | +[1.0.2]: https://github.com/BeAPI/blockparty-faq/compare/1.0.1...1.0.2 |
| 107 | +[1.0.1]: https://github.com/BeAPI/blockparty-faq/compare/1.0.0...1.0.1 |
| 108 | +[1.0.0]: https://github.com/BeAPI/blockparty-faq/releases/tag/1.0.0 |
0 commit comments