Skip to content

Commit

Permalink
Update readme and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
haqadn authored and matticbot committed May 15, 2024
1 parent 45a886d commit 6423530
Show file tree
Hide file tree
Showing 29 changed files with 186 additions and 167 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.3.1] - 2024-05-15
### Fixed
- Concatenate JS: Added compatibility with WooCommerce 8.9 [#37403]
- Critical CSS: Remove post types with empty Critical CSS URLs [#37389]

## [3.3.0] - 2024-05-08
### Added
- General: Add endpoint to list source providers. [#36373]
Expand Down Expand Up @@ -436,6 +441,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- First public alpha release

[3.3.1]: https://github.com/Automattic/jetpack-boost-production/compare/3.3.0...3.3.1
[3.3.0]: https://github.com/Automattic/jetpack-boost-production/compare/3.2.2...3.3.0
[3.2.2]: https://github.com/Automattic/jetpack-boost-production/compare/3.2.0...3.2.2
[3.2.0]: https://github.com/Automattic/jetpack-boost-production/compare/3.1.1...3.2.0
Expand Down
3 changes: 3 additions & 0 deletions app/lib/critical-css/source-providers/Source_Providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public function get_provider_sources() {
// For each provider,
// Gather a list of URLs that are going to be used as Critical CSS source.
foreach ( $provider::get_critical_source_urls() as $group => $urls ) {
if ( empty( $urls ) ) {
continue;
}
$key = $provider_name . '_' . $group;

// For each URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public static function get_critical_source_urls( $context_posts = array() ) {

foreach ( $query->posts as $post ) {
if ( empty( $context_post_ids ) || in_array( $post->ID, $context_post_ids, true ) ) {
$results[ $post->ID ] = array( get_permalink( $post ) );
$url = get_permalink( $post );
if ( ! empty( $url ) ) {
$results[ $post->ID ] = array( $url );
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public static function get_critical_source_urls( $context_posts = array() ) {
$query = self::post_type_query( $post_type );

foreach ( $query->posts as $post ) {
$links[ $post_type ][] = get_permalink( $post );
$url = get_permalink( $post );
if ( ! empty( $url ) ) {
$links[ $post_type ][] = $url;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public static function get_critical_source_urls( $context_posts = array() ) {
}

foreach ( $terms as $term ) {
$results[ $taxonomy ][] = get_term_link( $term, $taxonomy );
$url = get_term_link( $term, $taxonomy );
if ( ! is_wp_error( $url ) && ! empty( $url ) ) {
$results[ $taxonomy ][] = $url;
}
}
}

Expand Down
13 changes: 13 additions & 0 deletions compatibility/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,16 @@ function ( $value ) {
}

add_filter( 'jetpack_boost_critical_css_post_type_query', __NAMESPACE__ . '\exclude_woocommerce_pages_from_query' );

function exclude_script_from_minify( $do_concat, $handle ) {

// Exclude the wc-blocks-vendors-frontend script from minification.
// The script has a regex that fails when being minified by JShrink/Minifier.
if ( 'wc-blocks-vendors-frontend' === $handle ) {
return false;
}

return $do_concat;
}

add_filter( 'js_do_concat', __NAMESPACE__ . '\exclude_script_from_minify', 10, 2 );
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Boost your WordPress site's performance, from the creators of Jetpack",
"type": "library",
"license": "GPL-2.0-or-later",
"version": "3.3.0",
"version": "3.3.1",
"authors": [
{
"name": "Automattic, Inc.",
Expand Down Expand Up @@ -73,7 +73,7 @@
"platform": {
"ext-intl": "0.0.0"
},
"autoloader-suffix": "b1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_0",
"autoloader-suffix": "b1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_1",
"allow-plugins": {
"roots/wordpress-core-installer": true,
"automattic/jetpack-autoloader": true,
Expand Down
4 changes: 2 additions & 2 deletions jetpack-boost.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: Jetpack Boost
* Plugin URI: https://jetpack.com/boost
* Description: Boost your WordPress site's performance, from the creators of Jetpack
* Version: 3.3.0
* Version: 3.3.1
* Author: Automattic - Jetpack Site Speed team
* Author URI: https://jetpack.com/boost/
* License: GPL-2.0+
Expand All @@ -29,7 +29,7 @@
die;
}

define( 'JETPACK_BOOST_VERSION', '3.3.0' );
define( 'JETPACK_BOOST_VERSION', '3.3.1' );
define( 'JETPACK_BOOST_SLUG', 'jetpack-boost' );

if ( ! defined( 'JETPACK_BOOST_CLIENT_NAME' ) ) {
Expand Down
20 changes: 4 additions & 16 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: performance, speed, web vitals, critical css, cache
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.0
Stable tag: 3.2.2
Stable tag: 3.3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -183,22 +183,10 @@ If you run into compatibility issues, please do let us know. You can drop us a l
2. Jetpack Boost Speed Improvement

== Changelog ==
### 3.3.0 - 2024-05-08
#### Added
- General: Add endpoint to list source providers.
- General: Add end to end tests for modules.
- Auto-Resize Lazy Images: Added feature to optimize lazy loading image performance
- JS Concatenation: Added compatibility with event-tickets by The Events Calendar.
- Speed Score: Add the speed changed popup back.

#### Changed
- Cache: remove Beta tag
- General: improved compatibility with WP 6.4.
- Image CDN: Update UI.

### 3.3.1 - 2024-05-15
#### Fixed
- CLI: Fix fatal error when using 'activate' without a module name.
- Critical CSS: Update the way generation library is loaded.
- Concatenate JS: Added compatibility with WooCommerce 8.9
- Critical CSS: Remove post types with empty Critical CSS URLs

--------

Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0::getLoader();
return ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1::getLoader();
2 changes: 1 addition & 1 deletion vendor/autoload_packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpb1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_0\al3_0_7;
namespace Automattic\Jetpack\Autoloader\jpb1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_1\al3_0_7;

// phpcs:ignore

Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0
class ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1
{
private static $loader;

Expand All @@ -24,17 +24,17 @@ public static function getLoader()

require __DIR__ . '/platform_check.php';

spl_autoload_register(array('ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_0', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_1', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_0', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_1', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0
class ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1
{
public static $files = array (
'3773ef3f09c37da5478d578e32b03a4b' => __DIR__ . '/../..' . '/jetpack_vendor/automattic/jetpack-assets/actions.php',
Expand Down Expand Up @@ -386,10 +386,10 @@ class ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ3_3_0
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0::$prefixesPsr0;
$loader->classMap = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_0::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1::$prefixesPsr0;
$loader->classMap = ComposerStaticInitb1e77e6231d50e7663f84529b6a3dfda_jetpack_boost3_3_1::$classMap;

}, null, ClassLoader::class);
}
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'automattic/jetpack-boost',
'pretty_version' => '3.3.0',
'version' => '3.3.0.0',
'pretty_version' => '3.3.1',
'version' => '3.3.1.0',
'reference' => null,
'type' => 'library',
'install_path' => __DIR__ . '/../../',
Expand Down Expand Up @@ -47,8 +47,8 @@
'dev_requirement' => false,
),
'automattic/jetpack-boost' => array(
'pretty_version' => '3.3.0',
'version' => '3.3.0.0',
'pretty_version' => '3.3.1',
'version' => '3.3.1.0',
'reference' => null,
'type' => 'library',
'install_path' => __DIR__ . '/../../',
Expand Down
Loading

0 comments on commit 6423530

Please sign in to comment.