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 .github/workflows/figma-transformer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["8.2", "8.3", "8.4", "8.5"]
php-version: ["8.3", "8.4", "8.5"]

defaults:
run:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/php-transformer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["8.2", "8.3", "8.4", "8.5"]
php-version: ["8.3", "8.4", "8.5"]

defaults:
run:
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["8.2", "8.3", "8.4", "8.5"]
php-version: ["8.3", "8.4", "8.5"]
services:
mysql:
image: mysql:8.0.36
Expand Down Expand Up @@ -296,12 +296,12 @@ jobs:
WP_TESTS_DIR: ${{ runner.temp }}/wordpress-develop/tests/phpunit
run: composer test:wordpress-integration
- name: Setup Node for native document context proof
if: matrix.php-version == '8.2'
if: matrix.php-version == '8.3'
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Verify native document ancestor context in Chromium
if: matrix.php-version == '8.2'
if: matrix.php-version == '8.3'
working-directory: php-transformer
env:
BODY_CONTEXT_WORDPRESS_BOOTSTRAP: ${{ runner.temp }}/wordpress-develop/tests/phpunit/includes/bootstrap.php
Expand All @@ -313,7 +313,7 @@ jobs:
php tests/contract/document-body-context.php
PLAYWRIGHT_MODULE="$PWD/tools/visual-parity/node_modules/playwright/index.mjs" node tests/contract/document-body-context-browser.mjs
- name: Verify disposable HTTP frontend and Gutenberg save/reload
if: matrix.php-version == '8.2'
if: matrix.php-version == '8.3'
working-directory: php-transformer
env:
BODY_CONTEXT_DISPOSABLE: "1"
Expand All @@ -339,7 +339,7 @@ jobs:
php -S 127.0.0.1:19006 -t "$SITE" > "$RUNNER_TEMP/document-context-http/server.log" 2>&1 &
PLAYWRIGHT_MODULE="$PWD/tools/visual-parity/node_modules/playwright/index.mjs" node tests/integration/document-body-context-browser.mjs
- name: Verify authored carousel PHP and native save control contract
if: matrix.php-version == '8.2'
if: matrix.php-version == '8.3'
working-directory: php-transformer
env:
BE_EDITOR_WP_URL: http://127.0.0.1:19006
Expand All @@ -354,7 +354,7 @@ jobs:
export BE_EDITOR_POST_ID="$(php -r '$x=json_decode(file_get_contents($argv[1]),true); echo $x["post_id"];' "$BE_EDITOR_EVIDENCE_DIR/carousel-control-page.json")"
node tests/carousel-control-acceptance.mjs
- name: Retain document context runtime evidence
if: always() && matrix.php-version == '8.2'
if: always() && matrix.php-version == '8.3'
uses: actions/upload-artifact@v4
with:
name: document-context-runtime
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/solved-fixture-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ permissions:

jobs:
solved-site-promotion:
uses: Automattic/static-site-importer/.github/workflows/solved-site-promotion.yml@29400db19708f95e8e231712ebbef0a138d9b9d2
uses: Automattic/static-site-importer/.github/workflows/solved-site-promotion.yml@676f303261f932f7ff3726167f5b8ee22fd29802
with:
static-site-importer-sha: 29400db19708f95e8e231712ebbef0a138d9b9d2
static-site-importer-sha: 676f303261f932f7ff3726167f5b8ee22fd29802
blocks-engine-sha: ${{ github.event.pull_request.head.sha || github.sha }}
blocks-engine-repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
4 changes: 2 additions & 2 deletions figma-transformer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"require": {
"php": ">=8.2"
"php": ">=8.3"
},
"suggest": {
"ext-zstd": "Decode zstd-compressed canvas.fig chunks when inspecting .fig archives.",
Expand All @@ -48,7 +48,7 @@
},
"config": {
"platform": {
"php": "8.2.0"
"php": "8.3.0"
},
"sort-packages": true
},
Expand Down
6 changes: 3 additions & 3 deletions figma-transformer/composer.lock

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

2 changes: 1 addition & 1 deletion figma-transformer/figma-transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/Automattic/blocks-engine/tree/trunk/figma-transformer
* Description: PHP primitives for transforming Figma designs into static HTML website artifacts.
* Version: 0.3.0
* Requires PHP: 8.2
* Requires PHP: 8.3
* Author: Automattic
* License: GPL-3.0-or-later
* Text Domain: blocks-engine-figma-transformer
Expand Down
2 changes: 1 addition & 1 deletion php-transformer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ If the first release is only available as a Blocks Engine monorepo archive, down
}
},
"require": {
"php": ">=8.2",
"php": ">=8.3",
"league/commonmark": "^2.5",
"league/html-to-markdown": "^5.1"
}
Expand Down
4 changes: 2 additions & 2 deletions php-transformer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"require": {
"league/commonmark": "^2.5",
"league/html-to-markdown": "^5.1",
"php": ">=8.2",
"php": ">=8.3",
"ext-mbstring": "*"
},
"scripts": {
Expand Down Expand Up @@ -119,7 +119,7 @@
"config": {
"cache-dir": "var/cache/composer",
"platform": {
"php": "8.2.0"
"php": "8.3.0"
},
"sort-packages": true
},
Expand Down
6 changes: 3 additions & 3 deletions php-transformer/composer.lock

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

2 changes: 1 addition & 1 deletion php-transformer/php-transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/Automattic/blocks-engine/tree/trunk/php-transformer
* Description: Canonical PHP primitives for transforming HTML, Markdown, and website artifacts into WordPress block outputs.
* Version: 0.45.387
* Requires PHP: 8.2
* Requires PHP: 8.3
* Author: Automattic
* License: GPL-3.0-or-later
* Text Domain: blocks-engine-php-transformer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ function recognizerPage(int $count): string
if ($expected[$n] !== $hash) throw new RuntimeException('Recognizer output changed for ' . $n . ' sections: ' . $hash);
printf("%d sections: %.3fs; hash %s\n", $n, $times[$n], $hash);
}
// PHP 8.2 walks a DOMNodeList quadratically, so every whole-document scan
// grows with page size there regardless of recognizer reuse.
if (PHP_VERSION_ID >= 80300 && $times[128] / 128 > 2.0 * $times[8] / 8) {
if ($times[128] / 128 > 2.0 * $times[8] / 8) {
throw new RuntimeException('Recognizer per-section cost grew superlinearly: ' . json_encode($times));
}
fwrite(STDOUT, "Recognizer compile scaling regression passed.\n");
Loading