• v1.3.1 dea1b055b2

    Release 1.3.1
    All checks were successful
    Create Release Package / PHP Lint (push) Successful in 48s
    Create Release Package / PHP CodeSniffer (push) Successful in 52s
    Create Release Package / PHP Unit (push) Successful in 53s
    Create Release Package / build-release (push) Successful in 59s
    Stable

    magdev released this 2026-03-01 12:25:27 +00:00 | 2 commits to main since this release

    Added

    • PHPUnit test suite: 57 unit tests covering all 6 core classes (ProductType, StockManager, CartHandler, Plugin, Admin/ProductData, Admin/Settings)
    • Brain Monkey + Mockery for WordPress/WooCommerce function mocking without a full WP installation
    • WooCommerce class stubs in tests/stubs/ for classes extended by the plugin (WC_Product, WC_Settings_Page, etc.)
    • PHPCS with WordPress-Extra and PHPCompatibilityWP coding standards (phpcs.xml.dist)
    • PHPCS job in release workflow — coding standards must pass before release is built
    • PHP lint job in release workflow — syntax-checks all PHP files before testing
    • Test job in release workflow — tests must pass before release package is built
    • Testing and linting sections in README and CLAUDE.md

    Changed

    • PSR-4 refactored: Renamed files to PascalCase (Product_Type → ProductType, etc.) and changed namespace from WC_Composable_Product to Magdev\WcComposableProduct
    • Updated all cross-references in PHP files, main plugin file, composer.json, CSS/JS doc comments, and translation file source comments
    • PHPUnit upgraded from 9.6 to 10 (Brain Monkey 2.7 supports both)
    • WPCS formatting applied to all source files (tabs, Yoda conditions, strict in_array, wp_json_encode, long array syntax)
    • Release workflow now has four stages: lint + phpcs (parallel) → test → build-release
    • Composer platform pinned to PHP 8.3 to prevent incompatible dependency locks
    Downloads