diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb301e8..0dec481 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - run: npm run lint:php @@ -35,7 +36,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - run: npm run test:unit:php @@ -47,7 +49,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - name: Build distributable zip diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 37c5c34..949afd1 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -32,7 +32,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - run: npm run lint:php @@ -44,7 +45,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - run: npm run lint:js @@ -57,7 +59,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - run: npm run test:unit:php @@ -69,7 +72,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - name: Build distributable zip @@ -106,7 +110,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - name: Download test zip artifact @@ -139,7 +144,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - name: Download test zip artifact diff --git a/.github/workflows/release-artifact.yml b/.github/workflows/release-artifact.yml index 5236b39..d7f9b02 100644 --- a/.github/workflows/release-artifact.yml +++ b/.github/workflows/release-artifact.yml @@ -146,7 +146,8 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci @@ -244,7 +245,8 @@ jobs: ref: ${{ inputs.tag && format('refs/tags/{0}', inputs.tag) || github.ref }} - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - run: npm run lint:php @@ -260,7 +262,8 @@ jobs: ref: ${{ inputs.tag && format('refs/tags/{0}', inputs.tag) || github.ref }} - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - run: npm run test:unit:php @@ -279,7 +282,8 @@ jobs: ref: ${{ inputs.tag && format('refs/tags/{0}', inputs.tag) || github.ref }} - uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' + check-latest: true cache: npm - run: npm ci - name: Download built artifact diff --git a/CHANGELOG.md b/CHANGELOG.md index da9d7d6..44b5a44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.4.3 + +- Updated development and build dependencies to clear security advisories in the toolchain; no change to plugin behaviour +- Building the plugin from source now requires Node.js 24.18 or later (npm 11.16 or later) + ## 0.4.2 - Security: Google Fonts used in global styles are now only downloaded from Google's own font servers, and only saved as WOFF2 font files; `http://` and protocol-relative Google Fonts links are upgraded to HTTPS and localised too diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 35a4b71..fe56828 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -10,8 +10,8 @@ Airo WP is a **plugin scaffold**: bootstrap, DI container, package loader, Strau | Tool | Version | Notes | |------|---------|-------| -| Node.js | 20+ | Required | -| npm | 10+ | Required | +| Node.js | 24.18+ | Required (latest 24.x LTS recommended). Node 25 is not supported: `@wordpress/scripts` excludes it (`^24.15.0 \|\| >=26`) | +| npm | 11.16+ | Required (bundled with Node.js 24.18+) | | Docker | 24+ | Required by the WordPress test environment | | PHP | 7.4+ | Optional — only needed if running Composer on the host | | Composer | 2.x | Optional — runs inside the WordPress environment | diff --git a/README.md b/README.md index fe1a01e..6af1747 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ |---|---| | **Plugin name** | Airo WP AI Builder | | **Text domain** | `airo-wp` | -| **Version** | 0.4.2 | +| **Version** | 0.4.3 | | **Requires WordPress** | 6.9+ | | **Requires PHP** | 7.4+ | | **License** | [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) | diff --git a/airo-wp.php b/airo-wp.php index 431fd84..23e2de5 100644 --- a/airo-wp.php +++ b/airo-wp.php @@ -3,7 +3,7 @@ * Plugin Name: Airo WP AI Builder * Plugin URI: https://github.com/godaddy-wordpress/airo-wp * Description: MCP server and block pattern library for AI-powered site building. - * Version: 0.4.2 + * Version: 0.4.3 * Requires at least: 6.9 * Requires PHP: 7.4 * Author: GoDaddy @@ -47,7 +47,7 @@ defined( 'ABSPATH' ) || exit; if ( ! defined( 'AIRO_WP_VERSION' ) ) { - define( 'AIRO_WP_VERSION', '0.4.2' ); + define( 'AIRO_WP_VERSION', '0.4.3' ); } if ( ! defined( 'AIRO_WP_PLUGIN_FILE' ) ) { define( 'AIRO_WP_PLUGIN_FILE', __FILE__ ); diff --git a/functions/blocks/helpers.php b/functions/blocks/helpers.php index 233f427..c975743 100644 --- a/functions/blocks/helpers.php +++ b/functions/blocks/helpers.php @@ -78,8 +78,12 @@ function airowp_normalize_css_escapes( $css ) { $css = str_replace( "\0", '', $css ); // Unicode escape: backslash + 1..6 hex digits + optional single whitespace. + // "Whitespace" is CSS's, not PCRE's `\s`: CR LF is ONE newline to a browser, + // so it goes as a pair, and vertical tab is not whitespace at all. Eating + // only the CR of `\75\r\nrl(` left `u\nrl(`, which hid a `url(` the browser + // still saw. $css = preg_replace_callback( - '/\\\\([0-9a-fA-F]{1,6})\s?/', + '/\\\\([0-9a-fA-F]{1,6})(?:\r\n|[ \t\r\n\f])?/', static function ( $matches ) { $codepoint = hexdec( $matches[1] ); @@ -259,6 +263,28 @@ function airowp_is_dsg_block( $block_name ) { return strpos( $block_name, 'airo-wp/' ) === 0; } +/** + * Restrict a container block's tagName to the elements it may render as. + * + * Section, Row and Grid store their wrapper element as a free-form `tagName` + * string in the block comment, and any author can write that comment by hand. + * kses never sees it as markup - `img src=x onerror=...` contains no `<` - so + * PHP that builds `'<' . $tag` from it writes a live element into the page. + * Every such place must pass the value through here first. + * + * The list mirrors the "HTML Element" options in each block's edit.js and the + * `enum` on `tagName` in their block.json files; change all three together. + * + * @param mixed $tag Stored tagName value. + * @param string $fallback Element to use when $tag is not allowed. + * @return string An allowed element name, or $fallback. + */ +function airowp_sanitize_container_tag( $tag, $fallback = 'div' ) { + $allowed = array( 'div', 'section', 'article', 'aside', 'header', 'footer', 'main' ); + + return is_string( $tag ) && in_array( $tag, $allowed, true ) ? $tag : $fallback; +} + /** * Resolve a WordPress preset color reference to its concrete value. * diff --git a/includes/Blocks/Common/Forms/FormEmailLabels.php b/includes/Blocks/Common/Forms/FormEmailLabels.php new file mode 100644 index 0000000..1d4ad40 --- /dev/null +++ b/includes/Blocks/Common/Forms/FormEmailLabels.php @@ -0,0 +1,91 @@ + $labels Visible labels keyed by field name. + * @return array Display labels keyed by field name. + */ + public static function resolve( array $fields, array $labels ): array { + $resolved = array(); + $seen = array(); + + foreach ( $fields as $name => $data ) { + $name = (string) $name; + $label = isset( $labels[ $name ] ) ? trim( (string) $labels[ $name ] ) : ''; + + if ( '' === $label ) { + $type = is_array( $data ) && isset( $data['type'] ) ? (string) $data['type'] : ''; + $label = self::fallback( $name, $type ); + } + + $key = function_exists( 'mb_strtolower' ) ? mb_strtolower( $label, 'UTF-8' ) : strtolower( $label ); + $seen[ $key ] = isset( $seen[ $key ] ) ? $seen[ $key ] + 1 : 1; + + if ( $seen[ $key ] > 1 ) { + /* translators: 1: field label, 2: occurrence number of that label in the form */ + $label = sprintf( __( '%1$s (%2$d)', 'airo-wp' ), $label, $seen[ $key ] ); + } + + $resolved[ $name ] = $label; + } + + return $resolved; + } + + /** + * Label for a field with no visible label. + * + * @param string $name Field name. + * @param string $type Server-side field type. + * @return string Readable label. + */ + private static function fallback( $name, $type ) { + if ( '' !== $name && ! preg_match( self::GENERATED_NAME, $name ) ) { + return ucwords( str_replace( array( '_', '-' ), ' ', $name ) ); + } + + return 'hidden' === $type + ? __( 'Hidden field', 'airo-wp' ) + : __( 'Untitled field', 'airo-wp' ); + } +} diff --git a/includes/Blocks/Common/Forms/FormHandler.php b/includes/Blocks/Common/Forms/FormHandler.php index dd4b206..3ec2ffa 100644 --- a/includes/Blocks/Common/Forms/FormHandler.php +++ b/includes/Blocks/Common/Forms/FormHandler.php @@ -570,7 +570,13 @@ function ( $value, $type ) { } // Send email notification if enabled (settings looked up server-side from block attributes). - $this->send_email_notification( $form_id, $sanitized_fields, $submission_id, $block_attrs ); + $this->send_email_notification( + $form_id, + $sanitized_fields, + $submission_id, + $block_attrs, + isset( $form_definition['labels'] ) ? $form_definition['labels'] : array() + ); // Trigger action hook for email notifications, integrations, etc. // The fourth argument is the form's server-resolved block attributes. @@ -1173,8 +1179,10 @@ private static function flatten_value( $value ) { * @param array|null $block_attrs Attributes of the form the submission was * validated against. Passing them keeps the * email on the same copy of a shared form ID. + * @param array $labels Visible field labels keyed by name, from + * the same form definition. */ - private function send_email_notification( $form_id, $fields, $submission_id, $block_attrs = null ) { + private function send_email_notification( $form_id, $fields, $submission_id, $block_attrs = null, array $labels = array() ) { // Look up email settings from the form block attributes (server-side only). // This prevents client-side manipulation of email configuration. if ( null === $block_attrs ) { @@ -1306,12 +1314,14 @@ private function send_email_notification( $form_id, $fields, $submission_id, $bl // The {all_fields} summary is markup by construction, so it is built once // per context rather than escaped generically: HTML for the body, and a - // flat one-liner for the subject (where tags would be nonsense). + // flat one-liner for the subject (where tags would be nonsense). Each row + // is named by the label the visitor saw, never the generated field name. + $display_labels = Form_Email_Labels::resolve( $fields, $labels ); $all_fields_html = ''; $all_fields_text = array(); foreach ( $fields as $field_name => $field_data ) { $value = self::stringify_field_value( $field_data ); - $label = ucwords( str_replace( array( '_', '-' ), ' ', $field_name ) ); + $label = $display_labels[ (string) $field_name ]; $all_fields_html .= sprintf( "%s: %s
\n", esc_html( $label ), esc_html( $value ) ); $all_fields_text[] = $label . ': ' . $value; @@ -2008,7 +2018,9 @@ private function extract_field_types_from_blocks( $blocks ) { * Extract each field's visible label from a form's inner blocks. * * A label left at its block.json default is absent from the block comment, - * so the registered default is used. Labels are stored as plain text. + * so the registered default is used. A label cleared to nothing falls back + * to the placeholder, the only text the visitor then sees for the field. + * Labels are stored as plain text. * * @param array $blocks Parsed inner blocks. * @return array Labels keyed by field name. @@ -2025,6 +2037,10 @@ private function extract_field_labels_from_blocks( $blocks ) { $label = isset( $attrs['label'] ) && is_string( $attrs['label'] ) ? $attrs['label'] : $this->default_field_label( $block_name ); $label = trim( html_entity_decode( wp_strip_all_tags( $label ), ENT_QUOTES, 'UTF-8' ) ); + if ( '' === $label && isset( $attrs['placeholder'] ) && is_string( $attrs['placeholder'] ) ) { + $label = trim( html_entity_decode( wp_strip_all_tags( $attrs['placeholder'] ), ENT_QUOTES, 'UTF-8' ) ); + } + if ( '' !== $label ) { $labels[ $field_name ] = $label; } diff --git a/package-lock.json b/package-lock.json index 964353b..dad5d2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "airo-wp", - "version": "0.4.2", + "version": "0.4.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "airo-wp", - "version": "0.4.2", + "version": "0.4.3", "devDependencies": { "@playwright/test": "^1.63.0", "@wordpress/e2e-test-utils-playwright": "^2.1.0", - "@wordpress/env": "^11.16.0", + "@wordpress/env": "^12.0.0", "@wordpress/eslint-plugin": "^27.1.0", "@wordpress/icons": "^17.0.0", "@wordpress/scripts": "^36.1.0", @@ -22,6 +22,10 @@ "leaflet": "^1.9.4", "prettier": "^3.9.5", "typescript": "^5.4.0" + }, + "engines": { + "node": ">=24.18.0 <25 || >=26", + "npm": ">=11.16.0" } }, "node_modules/@babel/code-frame": { @@ -3249,8 +3253,8 @@ } }, "node_modules/@nodable/entities": { - "version": "3.0.0", - "integrity": "sha512-8L9xFeTYKhm49xfIypoe2W5wV1m/3Z58kT+7kR9A8OyFxcPduI4VmxaUMQyKYrRjUoLLSXv6EKKID5Tvj9cUVw==", + "version": "3.1.0", + "integrity": "sha512-LsS/DjHr+uDM647Gru/cA8+J3a3HfhttwCKLyuoyN7yXTFCxKBtSgMQBvrW9yNPa2/zDRUNuGPaH5QUFoa4arQ==", "dev": true, "funding": [ { @@ -3815,6 +3819,7 @@ "node_modules/@octokit/webhooks-types": { "version": "7.6.1", "integrity": "sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "dev": true, "license": "MIT" }, @@ -4417,249 +4422,251 @@ } }, "node_modules/@php-wasm/cli-util": { - "version": "3.1.43", - "integrity": "sha512-O6w8ggFB8Jq0vUU0cVoW2Dr3ICjfjAx7uW0Y4W31DuzTBsdQojuIMbmNIoUhOTGBIdswM3THRIPE7FsMIdmnFA==", + "version": "3.1.60", + "integrity": "sha512-3+fc2rLw4BBMJ7Z+S2rbCkHCyaFiDA7mvvDsqlRWkd4Wwv74Savt2LJ19g9vgiPz9H6ag0ZK7C1qY8rylAWcWA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/util": "3.1.43", + "@php-wasm/util": "3.1.60", "fast-xml-parser": "^5.8.0", "jsonc-parser": "3.3.1" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/logger": { - "version": "3.1.43", - "integrity": "sha512-A/48AT49l9HsGBUJoopTfV80HDKZ/3Tp4nZlI1M5qY4tdD/VkCWiAys5NwCeU0Kr8mvTsrH4B0HCLnJvyHSFLw==", + "version": "3.1.60", + "integrity": "sha512-8tRxcpzdjU5CE/UnmWKfXNi+LDIpMVioETbXKsWQ3W4dv4p3W/84fGK5nFP6xz/iFfBwDU20ioEKaAGqahHSoQ==", "dev": true, "license": "GPL-2.0-or-later", "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node": { - "version": "3.1.43", - "integrity": "sha512-KbyjWs1PLdc4pdDSaI+wp5DjVBADIps1Vzg+MtX3z5qVaqrDXKaigI1lt0P6j/MJ1wHD3oiEaekPwv2ch5hbeg==", + "version": "3.1.60", + "integrity": "sha512-w6INvilykOhP7QKWhOhNTIun3OmNpXk30KruVPsAfcvGHfa0BPflnscu/gmunDhuwdmyQ9cHPTCtTrCDD7Zr0A==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/cli-util": "3.1.43", - "@php-wasm/logger": "3.1.43", - "@php-wasm/node-5-2": "3.1.43", - "@php-wasm/node-7-4": "3.1.43", - "@php-wasm/node-8-0": "3.1.43", - "@php-wasm/node-8-1": "3.1.43", - "@php-wasm/node-8-2": "3.1.43", - "@php-wasm/node-8-3": "3.1.43", - "@php-wasm/node-8-4": "3.1.43", - "@php-wasm/node-8-5": "3.1.43", - "@php-wasm/universal": "3.1.43", - "@php-wasm/util": "3.1.43", - "fs-ext-extra-prebuilt": "2.2.7", + "@php-wasm/cli-util": "3.1.60", + "@php-wasm/logger": "3.1.60", + "@php-wasm/node-5-2": "3.1.60", + "@php-wasm/node-7-4": "3.1.60", + "@php-wasm/node-8-0": "3.1.60", + "@php-wasm/node-8-1": "3.1.60", + "@php-wasm/node-8-2": "3.1.60", + "@php-wasm/node-8-3": "3.1.60", + "@php-wasm/node-8-4": "3.1.60", + "@php-wasm/node-8-5": "3.1.60", + "@php-wasm/universal": "3.1.60", + "@php-wasm/util": "3.1.60", "wasm-feature-detect": "1.8.0", "ws": "8.21.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" + }, + "optionalDependencies": { + "fs-ext-extra-prebuilt": "~2.2.15" } }, "node_modules/@php-wasm/node-5-2": { - "version": "3.1.43", - "integrity": "sha512-F+uoeiA36WaxT96eIepQEC4ObEP2/l2x46AiNBW2B0JahD8O48uh9CoA2ZPCm1WVa/VBJmK7LPXxJMxSWvTNPQ==", + "version": "3.1.60", + "integrity": "sha512-UiwPf0kMTVDHI3I0B+1eGoIO0u++lQgnGvYHWeeEEUrb+eK4RWInIjYBl5Zg8MyeGcisCpxdZZlAEhV5Rim77Q==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node-7-4": { - "version": "3.1.43", - "integrity": "sha512-3SZvBKnnVQYMnOBE3S1mDv/OamWaQMUJeX/EnSLW8ZYaPRV+ZhJ2zRPK0JQaUrw0IBcqDsOW15vRW0GDPvW0cg==", + "version": "3.1.60", + "integrity": "sha512-iKTZiMNAGrl8uGpQ1T/33tvINiYfCbc1ZOkjEDT2LqGeAH7YiNL40eQME9PPTs2A7zTRUUBSs0z7wVjXK4MVMA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node-8-0": { - "version": "3.1.43", - "integrity": "sha512-6plvqUhd/ehOKCLuazXvL0vD6YBrYa28EQf0xGjY+N+EB7H84QeCSBYiOMpn75snS6a2cGbFvjLPQ09guZOO+w==", + "version": "3.1.60", + "integrity": "sha512-eD8RSwrfmiytAmhb9ziSsqvlwBakIsiYS18JzDV1ekmzFenkYLptH/2cERzLtOJ60k7fePIkIUgDLOS/SZW6gg==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node-8-1": { - "version": "3.1.43", - "integrity": "sha512-FfXc9aq39VJSEneTbWCtENla8rqchH7C/FGsNhA72R+v6CcTyjYeSE8R3Ua+WbaZc+GzqKUNjKNaouJcdc9wPg==", + "version": "3.1.60", + "integrity": "sha512-NRwHB8lWG7o71cOawrWQJaR4yhSfmKs1FOHoe60wYi6mGu8k3o4AcQ3rLfGphAQfriVI2cDMBYrIPDHcj2UMEA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node-8-2": { - "version": "3.1.43", - "integrity": "sha512-Mc6tNXCXPVBnhuwkxtimzIBQpQUbFMY78M1mKzXTOYHZZ7qiNUiQjGUyifs1T5qMnKTgauVcsWDPI1imR5GkCw==", + "version": "3.1.60", + "integrity": "sha512-RTnfuVIPikfNHdtOuQ4DEs72xt21zStlW1qSxMYq8qlRvOOtD/aDe9cdlq5pbPvheyWCFH/yVBkt7kSwdI3Ylw==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node-8-3": { - "version": "3.1.43", - "integrity": "sha512-ZxXo/ndnym0kAXZD/gQX9qFQUyM0Ka6i9TvlZuPLxO19imqS+pIfF3kO/a73FzROUyKb0+RGJdX+Fd6u0fkURA==", + "version": "3.1.60", + "integrity": "sha512-GdSiJDM+XuZNy25uiHDLOQDtfHR6T390mPien3HtsPMSSihf+Zf96FTgLSFmPK6AzfPiQePTmlw30rVNdbKefg==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node-8-4": { - "version": "3.1.43", - "integrity": "sha512-T5d+ZKZHKortmBdFI6bJGq6hsRLtn5el2AfKDppoYgNKBnOY2Cx1uI/oVgMSaBd8TsNq2SpLFrx72QRJ0xVbzQ==", + "version": "3.1.60", + "integrity": "sha512-Vmzb27+FqVQgtG/axuslmHd9gAyVD9dBywx+azz0U8oLmsD+WiFpYf1vFoJLvwMARYJZc0ERMxKdiIz3z7ZOCA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/node-8-5": { - "version": "3.1.43", - "integrity": "sha512-suiDZUn8Cqm+52AdlTQWGcwLhBEmWE541Ip5EMzTIFidolvH/7JS3+nR7RYQ9FMykEkV7g4kiVzTDXPaZ+iA5w==", + "version": "3.1.60", + "integrity": "sha512-NruRb/HKIQBXkTgdGwKqu9zgfvh/fSgILONmkWknamE60ZRIzrk2X59FS0NBnTmldFkS5SOj7BvahG7VRKhwzw==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", + "@php-wasm/universal": "3.1.60", "wasm-feature-detect": "1.8.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/progress": { - "version": "3.1.43", - "integrity": "sha512-8obpwqbSgFywWs699YdMsKKMVqiZ9evpSKpf1T4yMdAOHmFkJeOWdnkYlOe0MXe9F6U0Ui0EBmsi67G7MNplxw==", + "version": "3.1.60", + "integrity": "sha512-r9tUvCkNbLPQWNmORPgp2JLHShkwzAufeZNXy/SQ/X0rZAkPmODghDwgxmQQh0VzhmNXuipBtGD7BdZzPde9Ag==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/logger": "3.1.43" + "@php-wasm/logger": "3.1.60" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/scopes": { - "version": "3.1.43", - "integrity": "sha512-3nFmuz9W+Ymb2LvTM/Gi2PiR7E8NeTr0MIE2Qh8OtSv2hWFa/uo5g6B5kB422AfeRr29CEk8AndoIVHweeM8NA==", + "version": "3.1.60", + "integrity": "sha512-Z/79G8hnw3MBCkSE2qvHdyS1nNQKkeaYBIALV689LL4uqHRSi9ww8SB6/Ze6wl/Woc+Rm8UkABakToUF5Di8QA==", "dev": true, "license": "GPL-2.0-or-later", "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/stream-compression": { - "version": "3.1.43", - "integrity": "sha512-LvForUJZ+0IRepTbEENClA66XIx9Vq433eGyDwuyBLRsAyH5Z4AnF4tIcYjCrrCp4P3yvimXlmYjsliJsEerbw==", + "version": "3.1.60", + "integrity": "sha512-GgB1J08XW3tzIzVnAqGVxg6P7NBDGwnt7P+V7L/M4Fz4ZpMdjuY2euUDQQRE1W3yA4hOdI8qtUjc2l3WznkjpA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/util": "3.1.43" + "@php-wasm/util": "3.1.60" } }, "node_modules/@php-wasm/universal": { - "version": "3.1.43", - "integrity": "sha512-bWq5MC2Uflx2gYpS+M4CHhNpY4pImtabRYapCzzpHvjvmKlnmisc38jSMErkwXSquNjc3MuFcEahXoxMkmvjNA==", + "version": "3.1.60", + "integrity": "sha512-iF3Hg/JO1gRl9jXaFsbpqCj79O8L2FO+H/OoWTrYwH/ot4lTCuskVBJ9d6o/XMwYR9ncovP70K9dxwuu7I2d9w==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/logger": "3.1.43", - "@php-wasm/progress": "3.1.43", - "@php-wasm/stream-compression": "3.1.43", - "@php-wasm/util": "3.1.43", + "@php-wasm/logger": "3.1.60", + "@php-wasm/progress": "3.1.60", + "@php-wasm/stream-compression": "3.1.60", + "@php-wasm/util": "3.1.60", "ini": "4.1.2" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/util": { - "version": "3.1.43", - "integrity": "sha512-Eb/M3u8FCT8yH5Wgm+JQ7ydhekRex6Mj6HAFu1pxozI+rZC8yjv91Wo9bLOZ1kjoyipReHXMyhRrEZwdmWUwoQ==", + "version": "3.1.60", + "integrity": "sha512-SSrUJFd9+g45d/jvvC+NysSeOyTFQDNYlHQCtfMkzi8yq6+zRj9YFx6LnR2wpuPzcyZ7rDlh7yoOvYnu6xbhbg==", "dev": true, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/web-service-worker": { - "version": "3.1.43", - "integrity": "sha512-dsDulJDsjBAWjJ9X8ADrdrHJBfBM55fRqh39/G2vSOOHqc1H5cupGI4rW/PqBvoxieZ3hQCusdLQan8lPVMG+w==", + "version": "3.1.60", + "integrity": "sha512-CMWB7tQxjxnHWTPdZX8wVz/0whEr/wIXFihjlakTRVIXN/G+fD9nE3/dsntH1fTb5e33ENDYHjyeyO8KuA1U0A==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/scopes": "3.1.43", - "@php-wasm/universal": "3.1.43" + "@php-wasm/scopes": "3.1.60", + "@php-wasm/universal": "3.1.60" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@php-wasm/xdebug-bridge": { - "version": "3.1.43", - "integrity": "sha512-Np0RkX/kHgKdlAYzXeCuV5JGXDdkoDM5mTF5P60PdXcjIsBlm/Z44Aph8DufTZI89SAQTEcOF99JMJFAoX2O/g==", + "version": "3.1.60", + "integrity": "sha512-ZGxfD+/jbe5tikiPRZHSUSCaMQoD0/Na88avaPKMCY1d4EegqPmLoJCP4W+7BNZiWiE02i2u8vrjDBcRPEwXCQ==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/logger": "3.1.43", - "@php-wasm/universal": "3.1.43", + "@php-wasm/logger": "3.1.60", + "@php-wasm/universal": "3.1.60", "ws": "8.21.0", "xml2js": "0.6.2", "yargs": "17.7.2" @@ -4668,8 +4675,8 @@ "xdebug-bridge": "xdebug-bridge.js" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@pkgjs/parseargs": { @@ -5061,18 +5068,18 @@ } }, "node_modules/@simple-git/args-pathspec": { - "version": "1.0.3", - "integrity": "sha512-ngJMaHlsWDTfjyq9F3VIQ8b7NXbBLq5j9i5bJ6XLYtD6qlDXT7fdKY2KscWWUF8t18xx052Y/PUO1K1TRc9yKA==", + "version": "1.0.4", + "integrity": "sha512-EtMX6XjRWSastG2SdkmSQByPtJ9dx/NIjnHbpQPCYt62j4RmSx5rgLTGpw0YCjF5h191gZOmBfheOT23cRSFdw==", "dev": true, "license": "MIT" }, "node_modules/@simple-git/argv-parser": { - "version": "1.1.1", - "integrity": "sha512-Q9lBcfQ+VQCpQqGJFHe5yooOS5hGdLFFbJ5R+R5aDsnkPCahtn1hSkMcORX65J2Z5lxSkD0lQorMsncuBQxYUw==", + "version": "2.0.1", + "integrity": "sha512-M++IaVWrN+vYalilOHfwvT2IL3wYZtVEBQpmX6DLSOJLtxbZ+SUeIDE3IiPogzhPACLajwtxfa5rp+ZX1FczzQ==", "dev": true, "license": "MIT", "dependencies": { - "@simple-git/args-pathspec": "^1.0.3" + "@simple-git/args-pathspec": "^1.0.4" } }, "node_modules/@sindresorhus/base62": { @@ -5459,8 +5466,8 @@ } }, "node_modules/@types/aws-lambda": { - "version": "8.10.162", - "integrity": "sha512-Fn658grtLOci1oxi1391vvDWJRKNGWRSqfxRkmN/Iy3c0tQH1USMKEXcPYHLvope+ZgTFocx9FRQJx1muBL6qw==", + "version": "8.10.164", + "integrity": "sha512-XOnrazWcOd6yWPnR7DxqCBPPYciDjHq+NN8LPwwqBCJNXLyPJgKo47fZpJ113+oyAn9Zti0Cf6H4k6yPcE3WFg==", "dev": true, "license": "MIT" }, @@ -6754,13 +6761,13 @@ } }, "node_modules/@wordpress/env": { - "version": "11.16.0", - "integrity": "sha512-B09FByMnGleYaBa4LESZ9Bp/71/EOvovjqvwhXhZjZk25fLIsed4gslZXW9c3EodD2oxF5loHUCMzCAqotGRBg==", + "version": "12.0.0", + "integrity": "sha512-RoUQV3sl1qF4h/kg+vrec9PCfr2bwXSOmWoLd9NmV8rD/sCBMt7tSBfeTWZEbClMhWHce8tu4hJ+pQeHXNnu2A==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { "@inquirer/prompts": "^7.2.0", - "@wp-playground/cli": "^3.0.48", + "@wp-playground/cli": "^3.1.56", "adm-zip": "^0.6.1", "chalk": "^4.1.1", "copy-dir": "^1.3.0", @@ -6770,14 +6777,14 @@ "js-yaml": "^3.15.2", "ora": "^4.0.2", "rimraf": "^5.0.10", - "simple-git": "^3.32.3", + "simple-git": "^4.0.2", "yargs": "^17.3.0" }, "bin": { "wp-env": "bin/wp-env" }, "engines": { - "node": ">=18.12.0" + "node": ">=22.13.0" } }, "node_modules/@wordpress/env/node_modules/@isaacs/cliui": { @@ -7805,44 +7812,44 @@ } }, "node_modules/@wp-playground/blueprints": { - "version": "3.1.43", - "integrity": "sha512-lytjwOREJcQ2+SZo1I+94kQJ2YwdcOMDq/0h+Kx5Yimud+tRuasn51QJGzXyQ6G4fSS5/zN6/XJJlG9PqbcRdA==", - "dev": true, - "dependencies": { - "@php-wasm/logger": "3.1.43", - "@php-wasm/progress": "3.1.43", - "@php-wasm/stream-compression": "3.1.43", - "@php-wasm/universal": "3.1.43", - "@php-wasm/util": "3.1.43", - "@php-wasm/web-service-worker": "3.1.43", - "@wp-playground/common": "3.1.43", - "@wp-playground/storage": "3.1.43", - "@wp-playground/wordpress": "3.1.43", + "version": "3.1.60", + "integrity": "sha512-z35HVBZTdN8mV9XDzbu9tnGHp7q93/sB+QAmNA8KRB5zISXqRxtqRJJTWcoonXNJTdv/mXWNLfqKj07Lj12Hvw==", + "dev": true, + "dependencies": { + "@php-wasm/logger": "3.1.60", + "@php-wasm/progress": "3.1.60", + "@php-wasm/stream-compression": "3.1.60", + "@php-wasm/universal": "3.1.60", + "@php-wasm/util": "3.1.60", + "@php-wasm/web-service-worker": "3.1.60", + "@wp-playground/common": "3.1.60", + "@wp-playground/storage": "3.1.60", + "@wp-playground/wordpress": "3.1.60", "ajv": "8.18.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@wp-playground/cli": { - "version": "3.1.43", - "integrity": "sha512-PloKrA2F98+czv7UUjl55fFiZbV6chYgicm/gwGDt6UWJG8Rs0cPGAHf8hkOwFlVO5DUVNk+OsR+kulEPFG0Uw==", + "version": "3.1.60", + "integrity": "sha512-2xv0yf84c6j9dypY22nlQSn2p1YRiJLsChopAiisfZWeZttZ0ZcjO7SSq45jD/GuqG14fxwbuz/LuCAfXtbgiA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/cli-util": "3.1.43", - "@php-wasm/logger": "3.1.43", - "@php-wasm/node": "3.1.43", - "@php-wasm/progress": "3.1.43", - "@php-wasm/universal": "3.1.43", - "@php-wasm/util": "3.1.43", - "@php-wasm/xdebug-bridge": "3.1.43", - "@wp-playground/blueprints": "3.1.43", - "@wp-playground/common": "3.1.43", - "@wp-playground/storage": "3.1.43", - "@wp-playground/tools": "3.1.43", - "@wp-playground/wordpress": "3.1.43", + "@php-wasm/cli-util": "3.1.60", + "@php-wasm/logger": "3.1.60", + "@php-wasm/node": "3.1.60", + "@php-wasm/progress": "3.1.60", + "@php-wasm/universal": "3.1.60", + "@php-wasm/util": "3.1.60", + "@php-wasm/xdebug-bridge": "3.1.60", + "@wp-playground/blueprints": "3.1.60", + "@wp-playground/common": "3.1.60", + "@wp-playground/storage": "3.1.60", + "@wp-playground/tools": "3.1.60", + "@wp-playground/wordpress": "3.1.60", "express": "4.22.2", "fs-extra": "11.1.1", "tmp-promise": "3.0.3", @@ -7854,61 +7861,68 @@ } }, "node_modules/@wp-playground/common": { - "version": "3.1.43", - "integrity": "sha512-IP6ofq3tufd4MQIZdK21OX3dPl0DuDTTy+PBdWDRhubZiKZFhKbKSLE/e0poWsu4RhJGqk+CUT30vPKJcmhskA==", + "version": "3.1.60", + "integrity": "sha512-zLxeAHs4CdmyYD7IqhqEjOwOM4Ubv5psvG8mirkOTVNTcOvIHeW1K9eo3gU4OEfk9lxIUDvORATF8oeiHt1dMA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/universal": "3.1.43", - "@php-wasm/util": "3.1.43" + "@php-wasm/universal": "3.1.60", + "@php-wasm/util": "3.1.60" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@wp-playground/storage": { - "version": "3.1.43", - "integrity": "sha512-4Z7qDpYMCMpXnz70ZqIxhkuxhJOZmdREsVYwz47uoYCWC+LRjZIltXBxoSl+xtsRlFkzZaEJZpR3oiGTL2NKEA==", + "version": "3.1.60", + "integrity": "sha512-wYFMXxfkExFkfYSO6AszGxJL/7rKnZLSAj7xJA0FF3dbpy4PSCR8KcBKnpIz8kq+ihaN6CXC1dyse9+Go4JCZw==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/stream-compression": "3.1.43", - "@php-wasm/universal": "3.1.43", - "@php-wasm/util": "3.1.43", + "@php-wasm/stream-compression": "3.1.60", + "@php-wasm/universal": "3.1.60", + "@php-wasm/util": "3.1.60", "@zip.js/zip.js": "2.7.57", "isomorphic-git": "1.37.6", "octokit": "3.1.2", - "pako": "^1.0.10" + "pako": "^1.0.10", + "sha.js": "2.4.12" } }, "node_modules/@wp-playground/tools": { - "version": "3.1.43", - "integrity": "sha512-JvCeZr12CDGlQM3AQq+sZXvqKRpiiFdvcy6Euk/tIOd+d60EoX0mcXPlCDdVfSh4E9uyKKdUk75L6hlvS/4/FQ==", + "version": "3.1.60", + "integrity": "sha512-2cr48TGs0gWb1ErzEaLNXfoknH3pZ+L1USSWUroDwvL1ySwsyjM9Dgfj9ibPSNBJU2PrnUy3Dak7MsRz4FPLbQ==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@wp-playground/blueprints": "3.1.43" + "@php-wasm/node": "3.1.60", + "@php-wasm/universal": "3.1.60", + "@php-wasm/util": "3.1.60", + "@wp-playground/blueprints": "3.1.60", + "@wp-playground/common": "3.1.60", + "@wp-playground/wordpress": "3.1.60" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@wp-playground/wordpress": { - "version": "3.1.43", - "integrity": "sha512-tax9U/avoLgxbtxIBin68ugr+tDHWQ7ArQRA5qpRYjHPgqs9P4fUbeY13SHynkrJb9Rf01zcPd8GYMfhwoDHQw==", + "version": "3.1.60", + "integrity": "sha512-KlOIUcRsPaw+xQ3KSXIfZRzouvs0Fd9zxVfbTpMsRvcw9stUoTQCn7P1QhDYEKRB9l2UzDjbXptz8GLB1IWG5A==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { - "@php-wasm/logger": "3.1.43", - "@php-wasm/universal": "3.1.43", - "@php-wasm/util": "3.1.43", - "@wp-playground/common": "3.1.43" + "@php-wasm/logger": "3.1.60", + "@php-wasm/universal": "3.1.60", + "@php-wasm/util": "3.1.60", + "@wp-playground/common": "3.1.60", + "zstddec": "^0.2.0" }, "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" + "node": ">=24.18.0", + "npm": ">=11.16.0" } }, "node_modules/@xtuc/ieee754": { @@ -9389,14 +9403,15 @@ } }, "node_modules/compression": { - "version": "1.8.1", - "integrity": "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==", + "version": "1.8.2", + "integrity": "sha512-o8vI5RE5A6EVVOd9o41jKp41aJom+QTEO/Bx8MYNjexMo/Bv2WOjUfZr+aL0WnYSgymUy6zeguqLTsIhV0gMvQ==", "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", "compressible": "~2.0.18", "debug": "2.6.9", + "destroy": "1.2.0", "negotiator": "~0.6.4", "on-headers": "~1.1.0", "safe-buffer": "5.2.1", @@ -9404,6 +9419,10 @@ }, "engines": { "node": ">= 0.8.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/compression/node_modules/debug": { @@ -11803,8 +11822,8 @@ "license": "BSD-3-Clause" }, "node_modules/fast-xml-builder": { - "version": "1.2.1", - "integrity": "sha512-tPb5TTWfgfVx5BNSi2xV0eLr89POeXXn0dXIsCJ9m1narrWxeIyx6je9d7Rce/3NyXLbvuQmLkxq+RuxMWejvw==", + "version": "1.3.1", + "integrity": "sha512-pIM/1n3ntFXKYrUZwW7QCK0gAW7XY+wzj1YMIV3tLDvPj/V+zTGJK5e3/4WJfwj0qWw2ElNXiTixda/R+3YSug==", "dev": true, "funding": [ { @@ -11814,13 +11833,13 @@ ], "license": "MIT", "dependencies": { - "path-expression-matcher": "^1.5.0", - "xml-naming": "^0.1.0" + "path-expression-matcher": "^1.6.2", + "xml-naming": "^0.3.0" } }, "node_modules/fast-xml-parser": { - "version": "5.11.1", - "integrity": "sha512-TBw6K/fxoQGGjCmZDw9w/ZwP3uDcnTM4YH/g+PFRWr8sbe5idXtxNN6vITh4+1ruCZaho6uBFurElsA7F0zzgw==", + "version": "5.11.2", + "integrity": "sha512-R9iDuNrQYeQut46cn2r2wHKn4HYzVDvDm5J1wW+koZewykv0yuO2HChTYeZtrULyHIDM9cj9TUXloCsueCQUog==", "dev": true, "funding": [ { @@ -11830,7 +11849,7 @@ ], "license": "MIT", "dependencies": { - "@nodable/entities": "^3.0.0", + "@nodable/entities": "^3.0.1", "fast-xml-builder": "^1.2.0", "is-unsafe": "^2.0.0", "path-expression-matcher": "^1.6.2", @@ -11841,21 +11860,6 @@ "fxparser": "src/cli/cli.js" } }, - "node_modules/fast-xml-parser/node_modules/xml-naming": { - "version": "0.3.0", - "integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT", - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/fastest-levenshtein": { "version": "1.0.16", "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", @@ -12009,8 +12013,8 @@ "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.16.0", - "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "version": "1.16.1", + "integrity": "sha512-FNvFGzoMLWmE6Yj9spb/zjd7yiNCHiAW9/Tg9CXrQ8wuu32HtlJOwWO11OJafl5FfY3DxTdQ0vj42zU1kvv5jg==", "dev": true, "funding": [ { @@ -12091,13 +12095,14 @@ } }, "node_modules/fs-ext-extra-prebuilt": { - "version": "2.2.7", - "integrity": "sha512-Q7rayYRBDIvDF01HWOwSSjoaP+05N1g+o3BXL1Zf8Frw2JkjSmi4EtvCBITuW30l6hB2m2TW1pehdh8wyU/+gw==", + "version": "2.2.15", + "integrity": "sha512-6F2atlrx0lajmNDHwhXQaD44Y3EVfCC5j+t/IJUSne3XrUQUvgPH44ajPaT3GYSywE40NHf1ZvcIXvbIYcWaTQ==", "dev": true, "hasInstallScript": true, "license": "MIT", + "optional": true, "dependencies": { - "nan": "^2.24.0" + "nan": "^2.27.0" }, "engines": { "node": ">= 8.0.0" @@ -14200,13 +14205,13 @@ } }, "node_modules/launch-editor": { - "version": "2.14.1", - "integrity": "sha512-QWBrQsMpH7gPr965dsKD/3cKWiNoTjpATQf++Xq63N6sKRGMwlVXz41O1IZTMfZQgBctD/K5Zt06+/I6pP6+HA==", + "version": "2.14.2", + "integrity": "sha512-NHJEb30MGBCkmZXLZwz25t37QR4aY03ZzPYUJXOJaOa92uWwExI9SBQUuIznBYc1xkD7cJNGX7oc3Nl3sq2kQQ==", "dev": true, "license": "MIT", "dependencies": { "picocolors": "^1.1.1", - "shell-quote": "^1.8.4" + "shell-quote": "^1.10.0" } }, "node_modules/leaflet": { @@ -15732,10 +15737,11 @@ } }, "node_modules/nan": { - "version": "2.28.0", - "integrity": "sha512-fTsDz99OTq2sVePhGdp4qQhggZFtKr64ZNVyVajRKtMOkJxYekplBh577PiJB12v/D3s2E5cGtOI45LWp6rnLQ==", + "version": "2.30.0", + "integrity": "sha512-P5mokDkSvCGBz6mZDD/2l+w9QoICRXdCyZ9ONGmTePr40oihJg3Kpn0YU3twKd6PJnwSlLBWNQeOT6yWEV2c4A==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/nanoid": { "version": "3.3.18", @@ -17963,8 +17969,8 @@ } }, "node_modules/readable-stream": { - "version": "4.7.0", - "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "version": "4.8.0", + "integrity": "sha512-2jhTTU3Eilp/2DMT71gbcoqC35eQHasMJH0RHkYxwlxIv3+FR6Y5xAFZIwEGLxKkjZYEFlsiMNIdwUqjK2lLHQ==", "dev": true, "license": "MIT", "dependencies": { @@ -18995,15 +19001,15 @@ } }, "node_modules/simple-git": { - "version": "3.36.0", - "integrity": "sha512-cGQjLjK8bxJw4QuYT7gxHw3/IouVESbhahSsHrX97MzCL1gu2u7oy38W6L2ZIGECEfIBG4BabsWDPjBxJENv9Q==", + "version": "4.0.2", + "integrity": "sha512-l0sIsv9VrPwovKELFDBOj/lhmIcbMvxBk2B+hRhsMM4/VL3gKtuZvYnBNixVo+N/0HnqQx2cBdLvxnAbygHpqA==", "dev": true, "license": "MIT", "dependencies": { "@kwsites/file-exists": "^1.1.1", "@kwsites/promise-deferred": "^1.1.1", - "@simple-git/args-pathspec": "^1.0.3", - "@simple-git/argv-parser": "^1.1.0", + "@simple-git/args-pathspec": "1.0.4", + "@simple-git/argv-parser": "2.0.1", "debug": "^4.4.0" }, "funding": { @@ -19094,8 +19100,8 @@ } }, "node_modules/source-map-js": { - "version": "1.2.1", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "version": "1.2.2", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", "dev": true, "license": "BSD-3-Clause", "engines": { @@ -19495,8 +19501,8 @@ } }, "node_modules/strnum": { - "version": "2.4.2", - "integrity": "sha512-rDG3Ah4TV0k1hWvLSzkZtMmLN9+eS+h3knq4MP6A42Y3Yh5qGNnOUs1jJkoSr8FG5dsL28c7KgkIBzSEykqtuw==", + "version": "2.5.1", + "integrity": "sha512-UM4nTLWzQiDBseVxUGxN0wJzIk0UU89Qi7pKXz9qISo+lhviJikTuikBsK/oFRlpvYHvSdz0TVoLyQ+sEpYwxA==", "dev": true, "funding": [ { @@ -21698,8 +21704,8 @@ } }, "node_modules/xml-naming": { - "version": "0.1.0", - "integrity": "sha512-k8KO9hrMyNk6tUWqUfkTEZbezRRpONVOzUTnc97VnCvyj6Tf9lyUR9EDAIeiVLv56jsMcoXEwjW8Kv5yPY52lw==", + "version": "0.3.0", + "integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==", "dev": true, "funding": [ { @@ -21829,6 +21835,12 @@ "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } + }, + "node_modules/zstddec": { + "version": "0.2.0", + "integrity": "sha512-oyPnDa1X5c13+Y7mA/FDMNJrn4S8UNBe0KCqtDmor40Re7ALrPN6npFwyYVRRh+PqozZQdeg23QtbcamZnG5rA==", + "dev": true, + "license": "MIT AND BSD-3-Clause" } } } diff --git a/package.json b/package.json index ebf878b..3ed1a0e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,11 @@ { "name": "airo-wp", - "version": "0.4.2", + "version": "0.4.3", "private": true, + "engines": { + "node": ">=24.18.0 <25 || >=26", + "npm": ">=11.16.0" + }, "files": [ "airo-wp.php", "CHANGELOG.md", @@ -38,7 +42,7 @@ "devDependencies": { "@playwright/test": "^1.63.0", "@wordpress/e2e-test-utils-playwright": "^2.1.0", - "@wordpress/env": "^11.16.0", + "@wordpress/env": "^12.0.0", "@wordpress/eslint-plugin": "^27.1.0", "@wordpress/icons": "^17.0.0", "@wordpress/scripts": "^36.1.0", diff --git a/readme.txt b/readme.txt index 7969a03..b785101 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: airo, godaddy, mcp, ai, block-patterns Requires at least: 6.9 Tested up to: 7.1 Requires PHP: 7.4 -Stable tag: 0.4.2 +Stable tag: 0.4.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -113,6 +113,9 @@ Runtime Composer packages are namespace-prefixed with Strauss into `dependencies == Changelog == += 0.4.3 = +* Updated development and build dependencies to clear security advisories in the toolchain; no change to plugin behaviour + = 0.4.2 = * Security: Google Fonts used in global styles are now only downloaded from Google's own font servers, and only saved as WOFF2 font files; `http://` and protocol-relative Google Fonts links are upgraded to HTTPS and localised too * Fixed: malformed font or style values in global styles, such as a numeric font weight or a font families value that is not a list, no longer cause a fatal error when updating global styles diff --git a/src/blocks/flip-card-face/edit.js b/src/blocks/flip-card-face/edit.js index dc917c0..37fd5fc 100644 --- a/src/blocks/flip-card-face/edit.js +++ b/src/blocks/flip-card-face/edit.js @@ -17,7 +17,7 @@ import { } from '@wordpress/block-editor'; import { Notice, SelectControl } from '@wordpress/components'; import { useSelect } from '@wordpress/data'; -import { useEffect } from '@wordpress/element'; +import { useEffect, useMemo } from '@wordpress/element'; import { DsgoInspectorPanel } from '../../components/shared'; export default function FlipCardFaceEdit({ @@ -37,13 +37,16 @@ export default function FlipCardFaceEdit({ // "already present" when deciding whether this face is a newly inserted // duplicate, while `all` drives the inspector dropdown's occupied-side // state (which must consider every sibling regardless of order). - const { earlierSiblingSides, allSiblingSides } = useSelect( + // Sides come back as comma-joined strings so useSelect's shallow compare + // sees an unchanged value; arrays built per call would re-render on + // every store change. + const { earlierSides, otherSides } = useSelect( (select) => { const { getBlockRootClientId, getBlock } = select('core/block-editor'); const parentId = getBlockRootClientId(clientId); if (!parentId) { - return { earlierSiblingSides: [], allSiblingSides: [] }; + return { earlierSides: '', otherSides: '' }; } const siblings = getBlock(parentId)?.innerBlocks || []; const toSide = (sibling) => { @@ -71,11 +74,21 @@ export default function FlipCardFaceEdit({ .filter((sibling) => sibling.clientId !== clientId) .map(toSide) .filter(Boolean); - return { earlierSiblingSides: earlier, allSiblingSides: all }; + return { + earlierSides: earlier.join(','), + otherSides: all.join(','), + }; }, [clientId] ); - const siblingSides = allSiblingSides; + const earlierSiblingSides = useMemo( + () => (earlierSides ? earlierSides.split(',') : []), + [earlierSides] + ); + const siblingSides = useMemo( + () => (otherSides ? otherSides.split(',') : []), + [otherSides] + ); const hasDuplicateSide = siblingSides.includes(side); // When an author deletes a face and inserts a replacement via the parent's diff --git a/src/blocks/flip-card/edit.js b/src/blocks/flip-card/edit.js index 1e1e468..21c68fb 100644 --- a/src/blocks/flip-card/edit.js +++ b/src/blocks/flip-card/edit.js @@ -21,6 +21,11 @@ import { DsgoInspectorPanel } from '../../components/shared'; import { useSelect } from '@wordpress/data'; import FlipCardPlaceholder from './components/FlipCardPlaceholder'; +// Stable references: useSelect compares its result shallowly, so a fresh +// array on every call re-renders the block on every store change. +const FACE_ALLOWED = ['airo-wp/flip-card-face']; +const NONE_ALLOWED = []; + /** * Flip Card Edit Component * @@ -56,7 +61,7 @@ export default function FlipCardEdit({ attributes, setAttributes, clientId }) { ).length; // Empty array hides the inserter entirely — flip card is at capacity. const allowed = - legacyCount + faceCount >= 2 ? [] : ['airo-wp/flip-card-face']; + legacyCount + faceCount >= 2 ? NONE_ALLOWED : FACE_ALLOWED; return { allowedBlocks: allowed, hasInnerBlocks: children.length > 0, diff --git a/src/blocks/grid/block.json b/src/blocks/grid/block.json index 48dd1cd..4864146 100644 --- a/src/blocks/grid/block.json +++ b/src/blocks/grid/block.json @@ -89,7 +89,16 @@ }, "tagName": { "type": "string", - "default": "div" + "default": "div", + "enum": [ + "div", + "section", + "article", + "aside", + "header", + "footer", + "main" + ] }, "desktopColumns": { "type": "number", diff --git a/src/blocks/grid/deprecated-layout-settings.json b/src/blocks/grid/deprecated-layout-settings.json index 92ecad6..907248c 100644 --- a/src/blocks/grid/deprecated-layout-settings.json +++ b/src/blocks/grid/deprecated-layout-settings.json @@ -6,7 +6,16 @@ }, "tagName": { "type": "string", - "default": "div" + "default": "div", + "enum": [ + "div", + "section", + "article", + "aside", + "header", + "footer", + "main" + ] }, "desktopColumns": { "type": "number", diff --git a/src/blocks/query/render-posts.php b/src/blocks/query/render-posts.php index f67c754..527bb88 100644 --- a/src/blocks/query/render-posts.php +++ b/src/blocks/query/render-posts.php @@ -620,11 +620,47 @@ function airowp_query_build_posts_args( array $atts, array $context ) { } } + // Posts that tie on the sort column (same publish time, same title) + // come back in whatever order MySQL picks per request, so offset + // pages repeat some and skip others. Break ties on ID. Done in SQL so + // `orderby` stays the string the airowp_query_args filter sees. + $args['airowp_id_tiebreak'] = true; + if ( ! has_filter( 'posts_orderby', 'airowp_query_id_tiebreak_orderby' ) ) { + add_filter( 'posts_orderby', 'airowp_query_id_tiebreak_orderby', 20, 2 ); + } + return $args; } endif; +if ( ! function_exists( 'airowp_query_id_tiebreak_orderby' ) ) : + /** + * Append `posts.ID` to the ORDER BY of Query loops so ties sort stably. + * + * Skipped when the clause already orders by ID (post__in, an ID sort) or + * is random, where a tiebreak changes nothing. + * + * @param string $orderby ORDER BY clause. + * @param \WP_Query $query Query. + * @return string + */ + function airowp_query_id_tiebreak_orderby( $orderby, $query ) { + global $wpdb; + + $orderby = (string) $orderby; + if ( ! $query instanceof \WP_Query || ! $query->get( 'airowp_id_tiebreak' ) || '' === trim( $orderby ) ) { + return $orderby; + } + if ( false !== stripos( $orderby, 'RAND(' ) || false !== strpos( $orderby, "{$wpdb->posts}.ID" ) ) { + return $orderby; + } + + $order = 'ASC' === strtoupper( (string) $query->get( 'order' ) ) ? 'ASC' : 'DESC'; + return $orderby . ", {$wpdb->posts}.ID {$order}"; + } +endif; + if ( ! function_exists( 'airowp_query_seeded_rand_orderby' ) ) : /** * Swap RAND() for RAND(seed) on Query loops that asked for a seeded shuffle. diff --git a/src/blocks/row/block.json b/src/blocks/row/block.json index b42ada9..a5f582d 100644 --- a/src/blocks/row/block.json +++ b/src/blocks/row/block.json @@ -96,7 +96,16 @@ }, "tagName": { "type": "string", - "default": "div" + "default": "div", + "enum": [ + "div", + "section", + "article", + "aside", + "header", + "footer", + "main" + ] }, "constrainWidth": { "type": "boolean", diff --git a/src/blocks/row/deprecated-layout-settings.json b/src/blocks/row/deprecated-layout-settings.json index b989b1c..db8adb6 100644 --- a/src/blocks/row/deprecated-layout-settings.json +++ b/src/blocks/row/deprecated-layout-settings.json @@ -6,7 +6,16 @@ }, "tagName": { "type": "string", - "default": "div" + "default": "div", + "enum": [ + "div", + "section", + "article", + "aside", + "header", + "footer", + "main" + ] }, "constrainWidth": { "type": "boolean", diff --git a/src/blocks/row/style.scss b/src/blocks/row/style.scss index c58fab1..5657b28 100644 --- a/src/blocks/row/style.scss +++ b/src/blocks/row/style.scss @@ -122,6 +122,23 @@ } } + // Wrap below the tablet breakpoint only. Added at render time to no-wrap + // rows of wordmarks stored by older patterns + // (Stored_Markup_Repairs::repair_wordmark_row), which push the page + // sideways on phones and small tablets. Wider screens keep the stored + // single line: some of those rows fit there only because nowrap squeezes + // them, and would break onto two lines if allowed to wrap. The stored + // flex-wrap is an inline style, hence !important. + &--wrap-narrow { + + @include below($breakpoint-tablet) { + + > .airo-wp-flex__inner { + flex-wrap: wrap !important; + } + } + } + // CRITICAL: Override WordPress width constraints when constrainWidth is disabled // The WordPress container class is on the INNER div, not the outer div // We need higher specificity to override this diff --git a/src/blocks/section/block.json b/src/blocks/section/block.json index 2b9378b..e868703 100644 --- a/src/blocks/section/block.json +++ b/src/blocks/section/block.json @@ -98,7 +98,16 @@ }, "tagName": { "type": "string", - "default": "div" + "default": "div", + "enum": [ + "div", + "section", + "article", + "aside", + "header", + "footer", + "main" + ] }, "constrainWidth": { "type": "boolean", diff --git a/src/blocks/section/deprecated-layout-settings.json b/src/blocks/section/deprecated-layout-settings.json index e79d38d..1e46f3d 100644 --- a/src/blocks/section/deprecated-layout-settings.json +++ b/src/blocks/section/deprecated-layout-settings.json @@ -6,7 +6,16 @@ }, "tagName": { "type": "string", - "default": "div" + "default": "div", + "enum": [ + "div", + "section", + "article", + "aside", + "header", + "footer", + "main" + ] }, "constrainWidth": { "type": "boolean", diff --git a/src/blocks/timeline-item/edit.js b/src/blocks/timeline-item/edit.js index c5df929..ac6d84e 100644 --- a/src/blocks/timeline-item/edit.js +++ b/src/blocks/timeline-item/edit.js @@ -16,8 +16,7 @@ import { Popover, TextControl, } from '@wordpress/components'; -import { useEffect, useState } from '@wordpress/element'; -import { useInstanceId } from '@wordpress/compose'; +import { useState } from '@wordpress/element'; import classnames from 'classnames'; import { encodeColorValue, @@ -87,7 +86,6 @@ export default function TimelineItemEdit({ linkUrl, linkTarget, customMarkerColor, - uniqueId, } = attributes; // Get context from parent timeline @@ -102,18 +100,6 @@ export default function TimelineItemEdit({ // Color settings const colorGradientSettings = useMultipleOriginColorsAndGradients(); - // Generate stable unique ID for accessibility using useInstanceId - const instanceId = useInstanceId(TimelineItemEdit, 'timeline-item'); - - // Persist unique ID to attributes if not already set - useEffect(() => { - if (!uniqueId) { - setAttributes({ - uniqueId: `timeline-item-${instanceId}`, - }); - } - }, [uniqueId, instanceId, setAttributes]); - // Determine marker colors (custom overrides parent) const effectiveMarkerColor = customMarkerColor || diff --git a/src/extensions/block-animations/animations.scss b/src/extensions/block-animations/animations.scss index 3cac064..48a724f 100644 --- a/src/extensions/block-animations/animations.scss +++ b/src/extensions/block-animations/animations.scss @@ -84,11 +84,14 @@ body:not(.block-editor-page):not(.wp-admin) { animation-fill-mode: both; } - // Show content immediately for users who prefer reduced motion + // Show content immediately for users who prefer reduced motion. + // frontend.js skips setup entirely under reduced motion, so nothing + // else ever reveals the block; the hiding rule above is more specific, + // hence !important. @media (prefers-reduced-motion: reduce) { &:not(.airo-wp-entrance-active):not(.airo-wp-exit-active) { - opacity: 1; + opacity: 1 !important; // Accessibility override. } &.airo-wp-entrance-active, diff --git a/src/extensions/dynamic-tags/filters.js b/src/extensions/dynamic-tags/filters.js index a7f2cdc..d30c679 100644 --- a/src/extensions/dynamic-tags/filters.js +++ b/src/extensions/dynamic-tags/filters.js @@ -191,7 +191,9 @@ function DynamicTagsToolbar({ bindable, bindings, setBinding }) {