Skip to content

Commit

Permalink
Provide Jetpack Version for BlazePress App (#33823)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve authored and matticbot committed Oct 30, 2023
1 parent 5906f94 commit a3b213f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
8 changes: 8 additions & 0 deletions 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.12.0-alpha] - unreleased

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

### Added
- Add sending Jetpack version to BlazePress Calypso App

## [0.11.0] - 2023-10-23
### Added
- DSP media endpoints allowlisting. [#33598]
Expand Down Expand Up @@ -225,6 +232,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated package dependencies. [#27906]

[0.12.0-alpha]: https://github.com/automattic/jetpack-blaze/compare/v0.11.0...v0.12.0-alpha
[0.11.0]: https://github.com/automattic/jetpack-blaze/compare/v0.10.4...v0.11.0
[0.10.4]: https://github.com/automattic/jetpack-blaze/compare/v0.10.3...v0.10.4
[0.10.3]: https://github.com/automattic/jetpack-blaze/compare/v0.10.2...v0.10.3
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"require": {
"automattic/jetpack-assets": "^1.18.13",
"automattic/jetpack-connection": "^1.58.2",
"automattic/jetpack-constants": "^1.6.23",
"automattic/jetpack-plans": "^0.3.5",
"automattic/jetpack-redirect": "^1.7.27",
"automattic/jetpack-status": "^1.18.5",
Expand Down Expand Up @@ -53,7 +54,7 @@
"link-template": "https://github.com/automattic/jetpack-blaze/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "0.11.x-dev"
"dev-trunk": "0.12.x-dev"
},
"textdomain": "jetpack-blaze",
"version-constants": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-blaze",
"version": "0.11.0",
"version": "0.12.0-alpha",
"description": "Attract high-quality traffic to your site using Blaze. Using this service, you can advertise a post or page on some of the millions of pages across WordPress.com and Tumblr from just $5 per day.",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/blaze/#readme",
"bugs": {
Expand Down
6 changes: 4 additions & 2 deletions src/class-dashboard-config-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace Automattic\Jetpack\Blaze;

use Automattic\Jetpack\Connection\Manager;
use Automattic\Jetpack\Constants;
use Automattic\Jetpack\Current_Plan;
use Jetpack_Options;

Expand Down Expand Up @@ -70,8 +71,9 @@ public function get_data() {
'products' => array(),
'plan' => $empty_object, // we need this empty object, otherwise the front end would crash on insight page.
'options' => array(
'admin_url' => admin_url(),
'gmt_offset' => $this->get_gmt_offset(),
'admin_url' => admin_url(),
'gmt_offset' => $this->get_gmt_offset(),
'jetpack_version' => Constants::get_constant( 'JETPACK__VERSION' ),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion src/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Dashboard {
*
* @var string
*/
const PACKAGE_VERSION = '0.11.0';
const PACKAGE_VERSION = '0.12.0-alpha';

/**
* List of dependencies needed to render the dashboard in wp-admin.
Expand Down

0 comments on commit a3b213f

Please sign in to comment.