Skip to content

Commit

Permalink
Updates to 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Woo committed Jul 3, 2024
1 parent 3745582 commit a237dff
Show file tree
Hide file tree
Showing 681 changed files with 830 additions and 797 deletions.
9 changes: 6 additions & 3 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
*** Xero Integration ***

2024-07-01 - version 1.8.7
* Dev - Bump WooCommerce "tested up to" version 9.0.
* Dev - Bump WooCommerce minimum supported version to 8.8.
* Dev - Bump WordPress minimum supported version to 6.4.
* Dev - Update NPM packages and node version to v20 to modernize developer experience.

2024-05-20 - version 1.8.6
* Dev - Bump WooCommerce "tested up to" version 8.9.
* Dev - Bump WooCommerce minimum supported version to 8.7.
Expand Down Expand Up @@ -103,9 +109,6 @@
2022-11-01 - version 1.7.50
* Add - Support for Subscriptions with WooCommerce Payments.

2022-xx-xx - version x.x.x
* Add: Subscriptions with WooCommerce Payments compatibility.

2022-10-11 - version 1.7.49
* Fix - Ensure prices and discounts use the same precision value, to avoid Xero errors where the discount is more than the total price.
* Tweak - For variable products, remove item meta from the item description when sending to Xero.
Expand Down
4 changes: 2 additions & 2 deletions languages/woocommerce-xero.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the same license as the WooCommerce Xero Integration package.
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Xero Integration 1.8.6\n"
"Project-Id-Version: WooCommerce Xero Integration 1.8.7\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-xero\n"
"POT-Creation-Date: 2024-05-20 14:07:31+00:00\n"
"POT-Creation-Date: 2024-07-01 14:02:10+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/packages/firebase/php-jwt/src/BeforeValidException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/firebase/php-jwt/src/CachedKeySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/firebase/php-jwt/src/ExpiredException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/firebase/php-jwt/src/JWK.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
11 changes: 6 additions & 5 deletions lib/packages/firebase/php-jwt/src/JWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down Expand Up @@ -209,13 +209,14 @@ public static function encode(
string $keyId = null,
array $head = null
): string {
$header = ['typ' => 'JWT', 'alg' => $alg];
$header = ['typ' => 'JWT'];
if (isset($head) && \is_array($head)) {
$header = \array_merge($header, $head);
}
$header['alg'] = $alg;
if ($keyId !== null) {
$header['kid'] = $keyId;
}
if (isset($head) && \is_array($head)) {
$header = \array_merge($head, $header);
}
$segments = [];
$segments[] = static::urlsafeB64Encode((string) static::jsonEncode($header));
$segments[] = static::urlsafeB64Encode((string) static::jsonEncode($payload));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/
namespace Automattic\WooCommerce\Xero\Vendor\Firebase\JWT;
Expand Down
2 changes: 1 addition & 1 deletion lib/packages/firebase/php-jwt/src/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license BSD-3-Clause
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/guzzlehttp/guzzle/src/BodySummarizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/guzzlehttp/guzzle/src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/guzzlehttp/guzzle/src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/guzzlehttp/guzzle/src/ClientTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
4 changes: 2 additions & 2 deletions lib/packages/guzzlehttp/guzzle/src/Cookie/CookieJar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down Expand Up @@ -249,7 +249,7 @@ public function extractCookies(RequestInterface $request, ResponseInterface $res
/**
* Computes cookie path following RFC 6265 section 5.1.4
*
* @see https://tools.ietf.org/html/rfc6265#section-5.1.4
* @see https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.4
*/
private function getCookiePathFromRequest(RequestInterface $request): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
6 changes: 3 additions & 3 deletions lib/packages/guzzlehttp/guzzle/src/Cookie/SetCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down Expand Up @@ -426,7 +426,7 @@ public function matchesDomain(string $domain): bool
}

// Remove the leading '.' as per spec in RFC 6265.
// https://tools.ietf.org/html/rfc6265#section-5.2.3
// https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.3
$cookieDomain = \ltrim(\strtolower($cookieDomain), '.');

$domain = \strtolower($domain);
Expand All @@ -437,7 +437,7 @@ public function matchesDomain(string $domain): bool
}

// Matching the subdomain according to RFC 6265.
// https://tools.ietf.org/html/rfc6265#section-5.1.3
// https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.3
if (\filter_var($domain, \FILTER_VALIDATE_IP)) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
4 changes: 2 additions & 2 deletions lib/packages/guzzlehttp/guzzle/src/Handler/CurlFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down Expand Up @@ -262,7 +262,7 @@ private function applyMethod(EasyHandle $easy, array &$conf): void

$method = $easy->request->getMethod();
if ($method === 'PUT' || $method === 'POST') {
// See https://tools.ietf.org/html/rfc7230#section-3.3.2
// See https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2
if (!$easy->request->hasHeader('Content-Length')) {
$conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/guzzlehttp/guzzle/src/Handler/CurlHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/guzzlehttp/guzzle/src/Handler/EasyHandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/guzzlehttp/guzzle/src/Handler/MockHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @license MIT
*
* Modified by woocommerce on 20-May-2024 using Strauss.
* Modified by woocommerce on 01-July-2024 using Strauss.
* @see https://github.com/BrianHenryIE/strauss
*/

Expand Down
Loading

0 comments on commit a237dff

Please sign in to comment.