From 45e53a7e8cf0e380e1c5c1971f69560ee7eb2e03 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 25 Jan 2023 21:35:44 +0000 Subject: [PATCH] 1.1.0 - update mpdf/mpdf --- composer.lock | 125 ++++++++++++++++++++++++++++++--- readme.txt | 6 +- woocommerce-printnode-mpdf.php | 3 +- 3 files changed, 123 insertions(+), 11 deletions(-) diff --git a/composer.lock b/composer.lock index 9631214..2a363b7 100644 --- a/composer.lock +++ b/composer.lock @@ -102,16 +102,16 @@ }, { "name": "mpdf/mpdf", - "version": "v8.0.15", + "version": "v8.1.4", "source": { "type": "git", "url": "https://github.com/mpdf/mpdf.git", - "reference": "d8a5294a6cc2e814c4157aecc8d7ac25014b18ed" + "reference": "add590e93b7502efafd9839a68cff99f3497b318" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mpdf/mpdf/zipball/d8a5294a6cc2e814c4157aecc8d7ac25014b18ed", - "reference": "d8a5294a6cc2e814c4157aecc8d7ac25014b18ed", + "url": "https://api.github.com/repos/mpdf/mpdf/zipball/add590e93b7502efafd9839a68cff99f3497b318", + "reference": "add590e93b7502efafd9839a68cff99f3497b318", "shasum": "" }, "require": { @@ -119,7 +119,9 @@ "ext-mbstring": "*", "myclabs/deep-copy": "^1.7", "paragonie/random_compat": "^1.4|^2.0|^9.99.99", - "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0", + "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0 || ~8.2.0", + "php-http/message-factory": "^1.0", + "psr/http-message": "^1.0", "psr/log": "^1.0 || ^2.0", "setasign/fpdi": "^2.1" }, @@ -127,7 +129,7 @@ "mockery/mockery": "^1.3.0", "mpdf/qrcode": "^1.1.0", "squizlabs/php_codesniffer": "^3.5.0", - "tracy/tracy": "^2.4", + "tracy/tracy": "~2.5", "yoast/phpunit-polyfills": "^1.0" }, "suggest": { @@ -173,7 +175,7 @@ "type": "custom" } ], - "time": "2021-11-10T08:15:22+00:00" + "time": "2022-12-15T11:24:39+00:00" }, { "name": "myclabs/deep-copy", @@ -280,6 +282,113 @@ }, "time": "2020-10-15T08:29:30+00:00" }, + { + "name": "php-http/message-factory", + "version": "v1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-http/message-factory.git", + "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-http/message-factory/zipball/a478cb11f66a6ac48d8954216cfed9aa06a501a1", + "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com" + } + ], + "description": "Factory interfaces for PSR-7 HTTP Message", + "homepage": "http://php-http.org", + "keywords": [ + "factory", + "http", + "message", + "stream", + "uri" + ], + "support": { + "issues": "https://github.com/php-http/message-factory/issues", + "source": "https://github.com/php-http/message-factory/tree/master" + }, + "time": "2015-12-19T14:08:53+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, { "name": "psr/log", "version": "1.1.4", @@ -411,5 +520,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } diff --git a/readme.txt b/readme.txt index 4e19a7f..d4a8064 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === WooCommerce Print Orders mPDF engine for PrintNode === Contributors: David Anderson Requires at least: 4.5 -Tested up to: 5.9 +Tested up to: 6.1 License: MIT Requires PHP: 5.6 @@ -19,6 +19,10 @@ PHP >= 5.6.0 is required (reflecting the versions supported by the mPDF library) == Changelog == += 1.1.0 - 2023/01/25 = + +* TWEAK: Update to mPDF 8.1.4, which adds PHP 8.2 support + = 1.0.5 - 2021/03/25 = * TWEAK: De-activate composer 2.0 run-time platform check diff --git a/woocommerce-printnode-mpdf.php b/woocommerce-printnode-mpdf.php index a141143..d634bbf 100644 --- a/woocommerce-printnode-mpdf.php +++ b/woocommerce-printnode-mpdf.php @@ -4,7 +4,7 @@ * Plugin URI: https://github.com/DavidAnderson684/woocommerce-printnode-mpdf * GitHub Plugin URI: https://github.com/DavidAnderson684/woocommerce-printnode-mpdf * Description: Use the mPDF engine for producing PDF files - * Version: 1.0.5 + * Version: 1.1.0 * Author: David Anderson * Author URI: https://www.simbahosting.co.uk/s3/shop/ * License: MIT @@ -71,7 +71,6 @@ public function html_to_pdf_result($result, $html, $options) { 'debug' => true, 'useSubstitutions' => file_exists(__DIR__ . '/vendor/mpdf/mpdf/ttfonts/FreeSans.ttf'), )); - error_clear_last(); $mpdf = new \Mpdf\Mpdf($mpdf_options); $mpdf->WriteHTML($html);