Skip to content

Commit

Permalink
General: Bump minimum PHP version to 7.2 (#40147)
Browse files Browse the repository at this point in the history
* Bump minimum WP version to 6.6

* Match WP tested version to readme

* Add changelogs

* Remove 7.0 tests

* Update comments with more recent data

* Update composer.lock

* Fix comment

* Backup: Add next daily backup schedule time (#39914)

* Set up react-query, moment and typescript

* changelog

* Add endpoint to fetch site backup schedule time

* Setup react-query (queryClientProvider)

* Add useScheduledTimeQuery hook to fetch schedule time

* Add hook to parse and return the next backup schedule time

* Add component to render the next scheduled backup message

* Fix record Tracks event

* Removing changelog for migration and core plugin

* Bump `Automattic\Jetpack\Backup` namespace to V0005

* changelog

* Bump `Automattic\Jetpack\Transport_Helper` to V0005

* Remove `between` to make `Modify` fit in the same line

* Fix pnpm lock

* Bump PHP 7.0 refs

* Clean up false positive

* setMethods → onlyMethods

* Add changelogs

* Bump PHP 7.0 refs

* Clean up false positive

* setMethods → onlyMethods

* Add changelogs

* More changelogs

* Remove suppression for old PHP versions

* Make PHPCS and Phan rules match

* Docs tweak

Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>

* Remove comment

Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>

* Remove inaccurate changelogs

* Make params explicitly nullable

* Oops: onlyMethods → addMethods

* Another onlyMethods → addMethods

* Last one

* Split existing and new methods to mock

* Prevent error when not adding new methods

* Update Phan baselines

* Use a more recent theme

* Remove unneeded @requires

* Update composer.lock

* Debug

* More debug

* Remove debug

* Remove more debug

* Oops, missed one

* Add another changelog

---------

Co-authored-by: Rafael Agostini <rafael.agostini@automattic.com>
Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11822562293

Upstream-Ref: Automattic/jetpack@e2ab2c1
  • Loading branch information
tbradsha authored and matticbot committed Nov 13, 2024
1 parent 2c64e00 commit 35df8ec
Show file tree
Hide file tree
Showing 84 changed files with 871 additions and 683 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ This is an alpha version! The changes listed here are not final.
### Removed
- Connection: Removed deprecated method features_available
- Connection: Removed features_enabled deprecated method
- General: Update minimum PHP version to 7.2.
- General: Update minimum WordPress version to 6.6.
- General: update WordPress version requirements to WordPress 6.5.

Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-assets": "^2.3.14",
"automattic/jetpack-admin-ui": "^0.4.6",
"automattic/jetpack-autoloader": "^3.1.3",
"automattic/jetpack-composer-plugin": "^2.0.4",
"automattic/jetpack-config": "^2.0.4",
"automattic/jetpack-connection": "^5.1.7",
"automattic/jetpack-my-jetpack": "^4.37.0",
"automattic/jetpack-sync": "^3.15.1-alpha",
"automattic/jetpack-status": "^4.0.3"
"automattic/jetpack-assets": "^3.0.0-alpha",
"automattic/jetpack-admin-ui": "^0.5.0-alpha",
"automattic/jetpack-autoloader": "^4.0.0-alpha",
"automattic/jetpack-composer-plugin": "^3.0.0-alpha",
"automattic/jetpack-config": "^3.0.0-alpha",
"automattic/jetpack-connection": "^6.0.0-alpha",
"automattic/jetpack-my-jetpack": "^5.0.0-alpha",
"automattic/jetpack-sync": "^4.0.0-alpha",
"automattic/jetpack-status": "^5.0.0-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^4.2.8",
"automattic/jetpack-changelogger": "^5.0.0-alpha",
"automattic/wordbless": "0.4.2",
"brain/monkey": "2.6.1"
},
Expand Down
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-a8c-mc-stats/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.0.0-alpha] - unreleased

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

### Removed
- General: Update minimum PHP version to 7.2.

## [2.0.4] - 2024-11-04
### Added
- Enable test coverage. [#39961]
Expand Down Expand Up @@ -147,6 +154,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Creates the MC Stats package

[3.0.0-alpha]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v2.0.4...v3.0.0-alpha
[2.0.4]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v2.0.3...v2.0.4
[2.0.3]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v2.0.2...v2.0.3
[2.0.2]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v2.0.1...v2.0.2
Expand Down
6 changes: 3 additions & 3 deletions jetpack_vendor/automattic/jetpack-a8c-mc-stats/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0"
"php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^4.2.8"
"automattic/jetpack-changelogger": "^5.0.0-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down Expand Up @@ -38,7 +38,7 @@
"link-template": "https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "2.0.x-dev"
"dev-trunk": "3.0.x-dev"
}
}
}
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-admin-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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).

## [0.5.0-alpha] - unreleased

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

### Removed
- General: Update minimum PHP version to 7.2.

## [0.4.6] - 2024-11-04
### Added
- Enable test coverage. [#39961]
Expand Down Expand Up @@ -164,6 +171,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixing menu visibility issues.

[0.5.0-alpha]: https://github.com/Automattic/jetpack-admin-ui/compare/0.4.6...0.5.0-alpha
[0.4.6]: https://github.com/Automattic/jetpack-admin-ui/compare/0.4.5...0.4.6
[0.4.5]: https://github.com/Automattic/jetpack-admin-ui/compare/0.4.4...0.4.5
[0.4.4]: https://github.com/Automattic/jetpack-admin-ui/compare/0.4.3...0.4.4
Expand Down
8 changes: 4 additions & 4 deletions jetpack_vendor/automattic/jetpack-admin-ui/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0"
"php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^4.2.8",
"automattic/jetpack-logo": "^2.0.5",
"automattic/jetpack-changelogger": "^5.0.0-alpha",
"automattic/jetpack-logo": "^3.0.0-alpha",
"automattic/wordbless": "dev-master"
},
"suggest": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"link-template": "https://github.com/Automattic/jetpack-admin-ui/compare/${old}...${new}"
},
"branch-alias": {
"dev-trunk": "0.4.x-dev"
"dev-trunk": "0.5.x-dev"
},
"version-constants": {
"::PACKAGE_VERSION": "src/class-admin-menu.php"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class Admin_Menu {

const PACKAGE_VERSION = '0.4.6';
const PACKAGE_VERSION = '0.5.0-alpha';

/**
* Whether this class has been initialized
Expand Down
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-assets/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.0.0-alpha] - unreleased

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

### Removed
- General: Update minimum PHP version to 7.2.

## [2.3.14] - 2024-11-11
### Changed
- Updated package dependencies. [#39999]
Expand Down Expand Up @@ -525,6 +532,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Statically access asset tools

[3.0.0-alpha]: https://github.com/Automattic/jetpack-assets/compare/v2.3.14...v3.0.0-alpha
[2.3.14]: https://github.com/Automattic/jetpack-assets/compare/v2.3.13...v2.3.14
[2.3.13]: https://github.com/Automattic/jetpack-assets/compare/v2.3.12...v2.3.13
[2.3.12]: https://github.com/Automattic/jetpack-assets/compare/v2.3.11...v2.3.12
Expand Down
8 changes: 4 additions & 4 deletions jetpack_vendor/automattic/jetpack-assets/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-constants": "^2.0.5"
"php": ">=7.2",
"automattic/jetpack-constants": "^3.0.0-alpha"
},
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^4.2.8",
"automattic/jetpack-changelogger": "^5.0.0-alpha",
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0 || ^3.0"
},
"suggest": {
Expand Down Expand Up @@ -55,7 +55,7 @@
"link-template": "https://github.com/Automattic/jetpack-assets/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "2.3.x-dev"
"dev-trunk": "3.0.x-dev"
}
}
}
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-boost-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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).

## [0.3.0-alpha] - unreleased

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

### Removed
- General: Update minimum PHP version to 7.2.

## [0.2.14] - 2024-11-04
### Added
- Enable test coverage. [#39961]
Expand Down Expand Up @@ -85,6 +92,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Introduce new package. [#31163]

[0.3.0-alpha]: https://github.com/Automattic/jetpack-boost-core/compare/v0.2.14...v0.3.0-alpha
[0.2.14]: https://github.com/Automattic/jetpack-boost-core/compare/v0.2.13...v0.2.14
[0.2.13]: https://github.com/Automattic/jetpack-boost-core/compare/v0.2.12...v0.2.13
[0.2.12]: https://github.com/Automattic/jetpack-boost-core/compare/v0.2.11...v0.2.12
Expand Down
8 changes: 4 additions & 4 deletions jetpack_vendor/automattic/jetpack-boost-core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-connection": "^5.1.7"
"php": ">=7.2",
"automattic/jetpack-connection": "^6.0.0-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^4.2.8",
"automattic/jetpack-changelogger": "^5.0.0-alpha",
"automattic/wordbless": "dev-master"
},
"autoload": {
Expand Down Expand Up @@ -46,7 +46,7 @@
},
"autotagger": true,
"branch-alias": {
"dev-trunk": "0.2.x-dev"
"dev-trunk": "0.3.x-dev"
},
"textdomain": "jetpack-boost-core"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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).

## [0.4.0-alpha] - unreleased

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

### Removed
- General: Update minimum PHP version to 7.2.

## [0.3.14] - 2024-11-04
### Added
- Enable test coverage. [#39961]
Expand Down Expand Up @@ -96,6 +103,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add a new package for Boost Speed Score [#30914]
- Add a new argument to `Speed_Score` to identify where the request was made from (e.g. 'boost-plugin', 'jetpack-dashboard', etc). [#31012]

[0.4.0-alpha]: https://github.com/Automattic/jetpack-boost-speed-score/compare/v0.3.14...v0.4.0-alpha
[0.3.14]: https://github.com/Automattic/jetpack-boost-speed-score/compare/v0.3.13...v0.3.14
[0.3.13]: https://github.com/Automattic/jetpack-boost-speed-score/compare/v0.3.12...v0.3.13
[0.3.12]: https://github.com/Automattic/jetpack-boost-speed-score/compare/v0.3.11...v0.3.12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^4.2.8",
"automattic/jetpack-changelogger": "^5.0.0-alpha",
"brain/monkey": "^2.6"
},
"autoload-dev": {
Expand All @@ -14,8 +14,8 @@
}
},
"require": {
"php": ">=7.0",
"automattic/jetpack-boost-core": "^0.2.14"
"php": ">=7.2",
"automattic/jetpack-boost-core": "^0.3.0-alpha"
},
"autoload": {
"classmap": [
Expand Down Expand Up @@ -51,7 +51,7 @@
},
"autotagger": true,
"branch-alias": {
"dev-trunk": "0.3.x-dev"
"dev-trunk": "0.4.x-dev"
},
"textdomain": "jetpack-boost-speed-score",
"version-constants": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
class Speed_Score {

const PACKAGE_VERSION = '0.3.14';
const PACKAGE_VERSION = '0.4.0-alpha';

/**
* Array of module slugs that are currently active and can impact speed score.
Expand Down
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.0.0-alpha] - unreleased

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

### Removed
- General: Update minimum PHP version to 7.2.

## [2.0.4] - 2024-06-24
### Changed
- Internal updates.
Expand Down Expand Up @@ -208,6 +215,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Trying to add deterministic initialization.

[3.0.0-alpha]: https://github.com/Automattic/jetpack-config/compare/v2.0.4...v3.0.0-alpha
[2.0.4]: https://github.com/Automattic/jetpack-config/compare/v2.0.3...v2.0.4
[2.0.3]: https://github.com/Automattic/jetpack-config/compare/v2.0.2...v2.0.3
[2.0.2]: https://github.com/Automattic/jetpack-config/compare/v2.0.1...v2.0.2
Expand Down
6 changes: 3 additions & 3 deletions jetpack_vendor/automattic/jetpack-config/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0"
"php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.2.8",
"automattic/jetpack-changelogger": "^5.0.0-alpha",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-import": "@dev",
"automattic/jetpack-jitm": "@dev",
Expand Down Expand Up @@ -40,7 +40,7 @@
"link-template": "https://github.com/Automattic/jetpack-config/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "2.0.x-dev"
"dev-trunk": "3.0.x-dev"
},
"dependencies": {
"test-only": [
Expand Down
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-connection/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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).

## [6.0.0-alpha] - unreleased

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

### Removed
- General: Update minimum PHP version to 7.2.

## [5.1.7] - 2024-11-11
### Changed
- Updated package dependencies. [#39999]
Expand Down Expand Up @@ -1243,6 +1250,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Separate the connection library into its own package.

[6.0.0-alpha]: https://github.com/Automattic/jetpack-connection/compare/v5.1.7...v6.0.0-alpha
[5.1.7]: https://github.com/Automattic/jetpack-connection/compare/v5.1.6...v5.1.7
[5.1.6]: https://github.com/Automattic/jetpack-connection/compare/v5.1.5...v5.1.6
[5.1.5]: https://github.com/Automattic/jetpack-connection/compare/v5.1.4...v5.1.5
Expand Down
20 changes: 10 additions & 10 deletions jetpack_vendor/automattic/jetpack-connection/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-a8c-mc-stats": "^2.0.4",
"automattic/jetpack-admin-ui": "^0.4.6",
"automattic/jetpack-assets": "^2.3.14",
"automattic/jetpack-constants": "^2.0.5",
"automattic/jetpack-roles": "^2.0.4",
"automattic/jetpack-status": "^4.0.3",
"automattic/jetpack-redirect": "^2.0.5"
"php": ">=7.2",
"automattic/jetpack-a8c-mc-stats": "^3.0.0-alpha",
"automattic/jetpack-admin-ui": "^0.5.0-alpha",
"automattic/jetpack-assets": "^3.0.0-alpha",
"automattic/jetpack-constants": "^3.0.0-alpha",
"automattic/jetpack-roles": "^3.0.0-alpha",
"automattic/jetpack-status": "^5.0.0-alpha",
"automattic/jetpack-redirect": "^3.0.0-alpha"
},
"require-dev": {
"automattic/wordbless": "@dev",
"yoast/phpunit-polyfills": "^1.1.1",
"brain/monkey": "2.6.1",
"automattic/jetpack-changelogger": "^4.2.8"
"automattic/jetpack-changelogger": "^5.0.0-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down Expand Up @@ -65,7 +65,7 @@
"link-template": "https://github.com/Automattic/jetpack-connection/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "5.1.x-dev"
"dev-trunk": "6.0.x-dev"
},
"dependencies": {
"test-only": [
Expand Down
Loading

0 comments on commit 35df8ec

Please sign in to comment.