Skip to content

Commit

Permalink
Updated package versions for automattic/jetpack-mu-wpcom-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ice9js authored and matticbot committed May 6, 2024
1 parent 8f79b78 commit e863a21
Show file tree
Hide file tree
Showing 78 changed files with 1,539 additions and 1,905 deletions.
83 changes: 40 additions & 43 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,46 @@

### This is a list detailing changes for all Jetpack releases.

## 13.4-a.10 - unreleased

This is an alpha version! The changes listed here are not final.

### Enhancements
- Add a method to find all plans that are valid for a given newsletter tier.
- Paid content block: swap out the login flow
- Subscriptions: manage subscribers in Jetpack cloud instead of WP.com.
- Subscription widget: remove "follow" term from confirmation message
- WordAds: ensure that ads.txt works on subdirectory websites.

### Improved compatibility
- Theme tools: deprecated devicepx functionality
- Theme tools: deprecated site-logo functionality in favour of core supported custom-logo.

### Bug fixes
- Sidebar: Fix showing the double arrow on active menu when RTL

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- Added feature flag for social admin ui
- Add error handling on Title Optimization
- Add handler for the migration_source_site_domain option
- Add tracks and new entries for title optimization
- AI Assistant: Add undo functionality and fix input with iframe
- AI Assistant: Fix AI Control positioning on inline extension
- AI Assistant: Link toolbar actions to requests on inline extensions
- AI Featured Image: add entry point on the media source dropdown menu.
- AI Featured Image: allow users to write prompts for the image generation.
- AI Featured Image: change upgrade prompt layout and fix UI issues.
- AI Featured Image: start tracking error messages.
- Contact Form: Removing code and renaming relevant references to ensure we use the package version of the contact form.
- Janitorial: deprecate methods in Jetpack class in favor of methods from the Connection package.
- Jetpack Sync: Add Woocommerce event remove_order_items to Jetpack Sync
- SSO: deprecate in-plugin methods in favor of methods from the Connection package.
- Subscriptions: add back missing HTML for paywall in emails
- Subscriptions: Disable Paid Newsletter settings section when user is not connected to wp.com
- Subscriptions: Fix registering block hooks for REST API calls
- Subscriptions: Fix Subscribed button alignment
- Subscriptions: Move the Newsletter module main toggle to separate section in Newsletter settings
- Sync ai plugin content across settings and jetpack sidebar
- Updated package dependencies.
- Update interface of Usage Counter on Jetpack Plugin
- WordPress.com REST API: exposed is_deleted attribute with sites API response
## 13.4-beta - 2024-05-06
### Enhancements
- Paid Content Block: Swap out the login flow. [#37178]
- Subscriptions: Manage subscribers in Jetpack Cloud instead of WP.com. [#37155]
- Subscription widget: Remove "follow" term from confirmation message [#37135]
- WordAds: Ensure that ads.txt works on subdirectory websites. [#36887]

### Improved compatibility
- Theme tools: Devicepx functionality is deprecated. [#37116]
- Theme tools: Site-logo functionality is deprecated in favour of core supported custom-logo. [#37109]

### Bug fixes
- Sidebar: Fix showing the double arrow on active menu when RTL [#37204]

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- Add a method to find all plans that are valid for a given newsletter tier. [#37084]
- Added feature flag for social admin UI. [#37134]
- Add error handling on Title Optimization. [#37195]
- Add handler for the migration_source_site_domain option. [#37100]
- Add tracks and new entries for title optimization. [#37180]
- AI Assistant: Add undo functionality and fix input with iframe. [#37200]
- AI Assistant: Fix AI Control positioning on inline extension. [#37145]
- AI Assistant: Link toolbar actions to requests on inline extensions. [#37168]
- AI Featured Image: Add entry point on the media source dropdown menu. [#37166]
- AI Featured Image: Allow users to write prompts for the image generation. [#37086]
- AI Featured Image: Change upgrade prompt layout and fix UI issues. [#37219]
- AI Featured Image: Start tracking error messages. [#37209]
- Contact Form: Removing code and renaming relevant references to ensure we use the package version of the contact form. [#37157]
- Janitorial: Deprecate methods in Jetpack class in favor of methods from the Connection package. [#36989]
- Jetpack Sync: Add Woocommerce event remove_order_items to Jetpack Sync. [#33748]
- SSO: Deprecate in-plugin methods in favor of methods from the Connection package. [#36924]
- Subscriptions: Add back missing HTML for paywall in emails. [#37117]
- Subscriptions: Disable Paid Newsletter settings section when user is not connected to WP.com. [#37149]
- Subscriptions: Fix registering block hooks for REST API calls. [#37123]
- Subscriptions: Fix Subscribed button alignment. [#37066]
- Subscriptions: Move the Newsletter module main toggle to separate section in Newsletter settings. [#37152]
- Sync AI plugin content across settings and jetpack sidebar. [#37220]
- Updated package dependencies. [#37147] [#37148]
- Update interface of Usage Counter on Jetpack Plugin. [#37216]
- WordPress.com REST API: Exposed is_deleted attribute with sites API response. [#37142]

## 13.4-a.9 - 2024-04-29
### Enhancements
Expand Down
12 changes: 6 additions & 6 deletions _inc/lib/class-jetpack-google-drive-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Google Drive helper.
*
* @deprecated 13.4-a.10 Use automattic/jetpack-forms
* @deprecated 13.4 Use automattic/jetpack-forms
* @package automattic/jetpack
*/

Expand All @@ -13,18 +13,18 @@
/**
* Class Jetpack_Google_Drive_Helper
*
* @deprecated 13.4-a.10 Use Automattic\Jetpack\Forms\Service\Google_Drive_Helper
* @deprecated 13.4 Use Automattic\Jetpack\Forms\Service\Google_Drive_Helper
*/
class Jetpack_Google_Drive_Helper {
/**
* Checks if the user has a valid connection to Google Drive
*
* @deprecated 13.4-a.10 Use Automattic\Jetpack\Forms\Service\Google_Drive_Helper->has_valid_connection
* @deprecated 13.4 Use Automattic\Jetpack\Forms\Service\Google_Drive_Helper->has_valid_connection
* @param int $user_id The user ID.
* @return array Array with single 'valid' (bool) entry.
*/
public static function has_valid_connection( $user_id ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Automattic\Jetpack\Forms\Service\Google_Drive_Helper->has_valid_connection' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Automattic\Jetpack\Forms\Service\Google_Drive_Helper->has_valid_connection' );
$site_id = Manager::get_site_id();
if ( is_wp_error( $site_id ) ) {
return false;
Expand Down Expand Up @@ -68,14 +68,14 @@ public static function has_valid_connection( $user_id ) {
/**
* Creates a Google Spreadsheet and returns some of its meta
*
* @deprecated 13.4-a.10 Use Automattic\Jetpack\Forms\Service\Google_Drive_Helper->create_sheet
* @deprecated 13.4 Use Automattic\Jetpack\Forms\Service\Google_Drive_Helper->create_sheet
* @param int $user_id The user ID.
* @param string $title The spreadsheet title.
* @param array $rows Array of arrays with values.
* @return array|WP_Error
*/
public static function create_sheet( $user_id, $title, $rows = array() ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Automattic\Jetpack\Forms\Service\Google_Drive_Helper->create_sheet' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Automattic\Jetpack\Forms\Service\Google_Drive_Helper->create_sheet' );
$site_id = Manager::get_site_id();
if ( is_wp_error( $site_id ) ) {
return false;
Expand Down
38 changes: 19 additions & 19 deletions class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ class Jetpack {
/**
* Verified data for JSON authorization request
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @var array
*/
Expand Down Expand Up @@ -4383,26 +4383,26 @@ public function build_connect_url( $raw = false, $redirect = false, $from = fals
*
* @todo Update default value for redirect since the called function expects a string.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @return mixed|void
*/
public static function build_authorize_url( $redirect = false, $deprecated = null ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Authorize_Redirect::build_authorize_url' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Authorize_Redirect::build_authorize_url' );

return ( new Authorize_Redirect( static::connection() ) )->build_authorize_url( $redirect );
}

/**
* Filters the connection URL parameter array.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @param array $args default URL parameters used by the package.
* @return array the modified URL arguments array.
*/
public static function filter_connect_request_body( $args ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Authorize_Redirect::filter_connect_request_body' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Authorize_Redirect::filter_connect_request_body' );

return Authorize_Redirect::filter_connect_request_body( $args );
}
Expand Down Expand Up @@ -4446,13 +4446,13 @@ public static function filter_jetpack_current_user_connection_data( $current_use
* Filters the redirection URL that is used for connect requests. The redirect
* URL should return the user back to the Jetpack console.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @param String $redirect the default redirect URL used by the package.
* @return String the modified URL.
*/
public static function filter_connect_redirect_url( $redirect ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Authorize_Redirect::filter_connect_redirect_url' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Authorize_Redirect::filter_connect_redirect_url' );
return Authorize_Redirect::filter_connect_redirect_url( $redirect );
}

Expand Down Expand Up @@ -5084,13 +5084,13 @@ public function preserve_action_in_login_form_for_json_api_authorization() {
/**
* If someone logs in to approve API access, store the Access Code in usermeta.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @param string $user_login Unused.
* @param WP_User $user User logged in.
*/
public function store_json_api_authorization_token( $user_login, $user ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::store_json_api_authorization_token' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::store_json_api_authorization_token' );

return ( new Authorize_Json_Api() )->store_json_api_authorization_token( $user_login, $user );
}
Expand All @@ -5100,27 +5100,27 @@ public function store_json_api_authorization_token( $user_login, $user ) {
*
* To be used with a filter of allowed domains for a redirect.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @param array $domains Allowed WP.com Environments.
*/
public function allow_wpcom_public_api_domain( $domains ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Automattic\\Jetpack\\Status\\Host::allow_wpcom_public_api_domain' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Automattic\\Jetpack\\Status\\Host::allow_wpcom_public_api_domain' );

return Host::allow_wpcom_public_api_domain( $domains );
}

/**
* Check if the redirect is encoded.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @param string $redirect_url Redirect URL.
*
* @return bool If redirect has been encoded.
*/
public static function is_redirect_encoded( $redirect_url ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10' );
_deprecated_function( __METHOD__, 'jetpack-13.4' );
return preg_match( '/https?%3A%2F%2F/i', $redirect_url ) > 0;
}

Expand All @@ -5140,7 +5140,7 @@ public function allow_wpcom_environments( $domains ) {
/**
* Add the Access Code details to the public-api.wordpress.com redirect.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @param string $redirect_to URL.
* @param string $original_redirect_to URL.
Expand All @@ -5149,36 +5149,36 @@ public function allow_wpcom_environments( $domains ) {
* @return string
*/
public function add_token_to_login_redirect_json_api_authorization( $redirect_to, $original_redirect_to, $user ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::add_token_to_login_redirect_json_api_authorization' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::add_token_to_login_redirect_json_api_authorization' );

return ( new Authorize_Json_Api() )->add_token_to_login_redirect_json_api_authorization( $redirect_to, $original_redirect_to, $user );
}

/**
* Verifies the request by checking the signature
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @since 4.6.0 Method was updated to use `$_REQUEST` instead of `$_GET` and `$_POST`. Method also updated to allow
* passing in an `$environment` argument that overrides `$_REQUEST`. This was useful for integrating with SSO.
*
* @param null|array $environment Value to override $_REQUEST.
*/
public function verify_json_api_authorization_request( $environment = null ) {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::verify_json_api_authorization_request' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::verify_json_api_authorization_request' );

return ( new Authorize_Json_Api() )->verify_json_api_authorization_request( $environment );
}

/**
* HTML for the JSON API authorization notice.
*
* @deprecated 13.4-a.10
* @deprecated 13.4
*
* @return string
*/
public function login_message_json_api_authorization() {
_deprecated_function( __METHOD__, 'jetpack-13.4-a.10', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::login_message_json_api_authorization' );
_deprecated_function( __METHOD__, 'jetpack-13.4', 'Automattic\\Jetpack\\Connection\\Authorize_Json_Api::login_message_json_api_authorization' );

return ( new Authorize_Json_Api() )->login_message_json_api_authorization();
}
Expand Down
51 changes: 26 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,48 +14,48 @@
"automattic/jetpack-a8c-mc-stats": "^2.0.1",
"automattic/jetpack-abtest": "^2.0.3",
"automattic/jetpack-admin-ui": "^0.4.2",
"automattic/jetpack-assets": "^2.1.9-alpha",
"automattic/jetpack-autoloader": "^3.0.7-alpha",
"automattic/jetpack-backup": "^3.3.10-alpha",
"automattic/jetpack-blaze": "^0.21.2-alpha",
"automattic/jetpack-assets": "^2.1.9",
"automattic/jetpack-autoloader": "^3.0.7",
"automattic/jetpack-backup": "^3.3.10",
"automattic/jetpack-blaze": "^0.21.2",
"automattic/jetpack-blocks": "^2.0.3",
"automattic/jetpack-boost-speed-score": "^0.3.11",
"automattic/jetpack-compat": "^3.0.2",
"automattic/jetpack-composer-plugin": "^2.0.1",
"automattic/jetpack-config": "^2.0.2-alpha",
"automattic/jetpack-connection": "^2.7.6-alpha",
"automattic/jetpack-config": "^2.0.2",
"automattic/jetpack-connection": "^2.7.6",
"automattic/jetpack-constants": "^2.0.2",
"automattic/jetpack-device-detection": "^2.1.3",
"automattic/jetpack-error": "^2.0.2",
"automattic/jetpack-forms": "^0.31.0-alpha",
"automattic/jetpack-forms": "^0.31.0",
"automattic/jetpack-google-fonts-provider": "^0.7.2",
"automattic/jetpack-identity-crisis": "^0.18.6-alpha",
"automattic/jetpack-image-cdn": "^0.4.0-alpha",
"automattic/jetpack-import": "^0.8.5-alpha",
"automattic/jetpack-identity-crisis": "^0.18.6",
"automattic/jetpack-image-cdn": "^0.4.0",
"automattic/jetpack-import": "^0.8.5",
"automattic/jetpack-ip": "^0.2.2",
"automattic/jetpack-jitm": "^3.1.10-alpha",
"automattic/jetpack-jitm": "^3.1.10",
"automattic/jetpack-licensing": "^2.0.5",
"automattic/jetpack-logo": "^2.0.2",
"automattic/jetpack-my-jetpack": "^4.23.0-alpha",
"automattic/jetpack-plugins-installer": "^0.3.5-alpha",
"automattic/jetpack-my-jetpack": "^4.23.0",
"automattic/jetpack-plugins-installer": "^0.3.5",
"automattic/jetpack-post-list": "^0.6.2",
"automattic/jetpack-publicize": "^0.43.0-alpha",
"automattic/jetpack-publicize": "^0.43.0",
"automattic/jetpack-redirect": "^2.0.2",
"automattic/jetpack-roles": "^2.0.2",
"automattic/jetpack-search": "^0.44.5-alpha",
"automattic/jetpack-stats": "^0.12.5-alpha",
"automattic/jetpack-stats-admin": "^0.19.1-alpha",
"automattic/jetpack-status": "^3.0.2-alpha",
"automattic/jetpack-sync": "^2.15.1-alpha",
"automattic/jetpack-videopress": "^0.23.19-alpha",
"automattic/jetpack-waf": "^0.16.7-alpha",
"automattic/jetpack-wordads": "^0.3.17-alpha",
"automattic/woocommerce-analytics": "^0.1.5-alpha",
"automattic/jetpack-search": "^0.44.5",
"automattic/jetpack-stats": "^0.12.5",
"automattic/jetpack-stats-admin": "^0.19.1",
"automattic/jetpack-status": "^3.0.2",
"automattic/jetpack-sync": "^2.15.1",
"automattic/jetpack-videopress": "^0.23.19",
"automattic/jetpack-waf": "^0.16.7",
"automattic/jetpack-wordads": "^0.3.17",
"automattic/woocommerce-analytics": "^0.1.5",
"scssphp/scssphp": "1.12.0"
},
"require-dev": {
"antecedent/patchwork": "^2.1.28",
"automattic/jetpack-changelogger": "^4.2.3-alpha",
"automattic/jetpack-changelogger": "^4.2.3",
"johnkary/phpunit-speedtrap": "^4.0.0 || ^2.0.0",
"yoast/phpunit-polyfills": "1.1.0"
},
Expand All @@ -81,6 +81,7 @@
"pnpm run watch"
]
},
"repositories": [],
"autoload": {
"classmap": [
"src"
Expand All @@ -93,7 +94,7 @@
"platform": {
"ext-intl": "0.0.0"
},
"autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ13_4_a_10",
"autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ13_4_beta",
"allow-plugins": {
"automattic/jetpack-autoloader": true,
"automattic/jetpack-composer-plugin": true
Expand Down
Loading

0 comments on commit e863a21

Please sign in to comment.