Skip to content

Commit

Permalink
Changelog and readme.txt edits. (#40461)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha authored and matticbot committed Dec 4, 2024
1 parent d59d1f6 commit 2cdcd48
Show file tree
Hide file tree
Showing 19 changed files with 184 additions and 81 deletions.
120 changes: 116 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,98 @@ 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.3-alpha] - unreleased

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

### Changed
- Updated package dependencies.

## [0.4.2] - 2024-11-26
### Changed
- Update dependencies. [#39855]

## [0.4.1] - 2024-11-25
### Changed
- Updated package dependencies. [#40288]

## [0.4.0] - 2024-11-18
### Removed
- General: Update minimum PHP version to 7.2. [#40147]

## [0.3.39] - 2024-11-11
### Changed
- Updated package dependencies. [#39999] [#40060]

## [0.3.38] - 2024-11-04
### Added
- Enable test coverage. [#39961]

## [0.3.37] - 2024-10-21
### Changed
- Update dependencies. [#39781]

## [0.3.36] - 2024-10-14
### Changed
- Updated package dependencies. [#39707]

## [0.3.35] - 2024-10-07
### Changed
- Updated package dependencies. [#39592] [#39594] [#39639]

## [0.3.34] - 2024-09-30
### Changed
- Update dependencies. [#39528]

## [0.3.33] - 2024-09-23
### Changed
- Update dependencies. [#38017]

## [0.3.32] - 2024-09-16
### Changed
- Updated package dependencies. [#39332]

## [0.3.31] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [0.3.30] - 2024-09-09
### Changed
- Updated package dependencies. [#39176] [#39278]

## [0.3.29] - 2024-09-02
### Changed
- Admin menu: change order of Jetpack sub-menu items [#39095]
- Updated package dependencies. [#39111]

## [0.3.28] - 2024-08-26
### Changed
- Updated package dependencies. [#39004]

## [0.3.27] - 2024-08-21
### Changed
- Internal updates.

## [0.3.26] - 2024-08-19
### Changed
- Updated package dependencies. [#38662]

## [0.3.25] - 2024-07-29
### Fixed
- Updated package dependencies. [#38464]

## [0.3.24] - 2024-07-22
### Changed
- Update dependencies. [#38017]

## [0.3.23] - 2024-07-08
### Changed
- Updated package dependencies. [#38132] [#38133]

## [0.3.22] - 2024-06-24
### Changed
- Update dependencies. [#37979]

## [0.3.21] - 2024-06-17
### Changed
- Updated package dependencies. [#37796]
Expand Down Expand Up @@ -130,8 +222,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.2.50] - 2023-09-04
### Changed
- Updated package dependencies. [#32803]
- Updated package dependencies. [#32804]
- Updated package dependencies. [#32803] [#32804]

## [0.2.49] - 2023-08-28
### Changed
Expand All @@ -143,8 +234,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.2.47] - 2023-07-25
### Changed
- Updated package dependencies. [#31923]
- Updated package dependencies. [#32040]
- Updated package dependencies. [#31923] [#32040]
- Update props passed to JetpackFooter [#31627]

## [0.2.46] - 2023-07-17
Expand Down Expand Up @@ -363,6 +453,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- PHPCS: Fix `WordPress.Security.ValidatedSanitizedInput`
- Updated package dependencies.

[0.4.3-alpha]: https://github.com/Automattic/jetpack-wordads/compare/v0.4.2...v0.4.3-alpha
[0.4.2]: https://github.com/Automattic/jetpack-wordads/compare/v0.4.1...v0.4.2
[0.4.1]: https://github.com/Automattic/jetpack-wordads/compare/v0.4.0...v0.4.1
[0.4.0]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.39...v0.4.0
[0.3.39]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.38...v0.3.39
[0.3.38]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.37...v0.3.38
[0.3.37]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.36...v0.3.37
[0.3.36]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.35...v0.3.36
[0.3.35]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.34...v0.3.35
[0.3.34]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.33...v0.3.34
[0.3.33]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.32...v0.3.33
[0.3.32]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.31...v0.3.32
[0.3.31]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.30...v0.3.31
[0.3.30]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.29...v0.3.30
[0.3.29]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.28...v0.3.29
[0.3.28]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.27...v0.3.28
[0.3.27]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.26...v0.3.27
[0.3.26]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.25...v0.3.26
[0.3.25]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.24...v0.3.25
[0.3.24]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.23...v0.3.24
[0.3.23]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.22...v0.3.23
[0.3.22]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.21...v0.3.22
[0.3.21]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.20...v0.3.21
[0.3.20]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.19...v0.3.20
[0.3.19]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.18...v0.3.19
Expand Down
2 changes: 1 addition & 1 deletion build/dashboard/jp-wordads-dashboard.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '299af9df193a30e65bea');
<?php return array('dependencies' => array('jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'e7bd20e513b43cfbc2d1');
2 changes: 1 addition & 1 deletion build/dashboard/jp-wordads-dashboard.css

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions build/dashboard/jp-wordads-dashboard.js

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions build/dashboard/jp-wordads-dashboard.js.LICENSE.txt

This file was deleted.

2 changes: 1 addition & 1 deletion build/dashboard/jp-wordads-dashboard.rtl.css

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-connection": "^2.10.1",
"automattic/jetpack-assets": "^2.1.12",
"automattic/jetpack-constants": "^2.0.3",
"automattic/jetpack-status": "^3.3.0",
"automattic/jetpack-config": "^2.0.3"
"php": ">=7.2",
"automattic/jetpack-connection": "^6.1.1",
"automattic/jetpack-assets": "^4.0.1",
"automattic/jetpack-constants": "^3.0.1",
"automattic/jetpack-status": "^5.0.1",
"automattic/jetpack-config": "^3.0.0"
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.2.4"
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^5.1.0"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand All @@ -37,6 +37,7 @@
"phpunit": [
"./vendor/phpunit/phpunit/phpunit --colors=always"
],
"test-coverage": "pnpm concurrently --names php,js 'php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"$COVERAGE_DIR/php.cov\"' 'pnpm:test-coverage'",
"test-js": [
"pnpm run test"
],
Expand All @@ -57,7 +58,7 @@
},
"autotagger": true,
"branch-alias": {
"dev-trunk": "0.3.x-dev"
"dev-trunk": "0.4.x-dev"
},
"textdomain": "jetpack-wordads",
"version-constants": {
Expand Down
56 changes: 27 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-wordads",
"version": "0.3.21",
"version": "0.4.3-alpha",
"description": "Earn income by allowing Jetpack to display high quality ads.",
"main": "main.js",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/wordads/#readme",
Expand All @@ -24,29 +24,29 @@
"build-development": "NODE_ENV=development BABEL_ENV=development pnpm run build",
"build-dashboard": "webpack --config ./tools/webpack.dashboard.config.js",
"clean": "rm -rf build/ .cache/",
"test": "concurrently 'pnpm:test-scripts'",
"test-scripts": "jest --passWithNoTests",
"test": "jest --passWithNoTests",
"test-coverage": "pnpm run test --coverage",
"validate": "pnpm exec validate-es --no-error-on-unmatched-pattern build/",
"watch": "concurrently 'pnpm:build-dashboard --watch'"
},
"dependencies": {
"@automattic/calypso-color-schemes": "3.1.3",
"@automattic/color-studio": "2.6.0",
"@automattic/jetpack-analytics": "^0.1.29",
"@automattic/jetpack-api": "^0.17.8",
"@automattic/jetpack-components": "^0.53.10",
"@wordpress/base-styles": "5.0.0",
"@wordpress/block-editor": "13.0.0",
"@wordpress/data": "10.0.0",
"@wordpress/element": "6.0.0",
"@wordpress/i18n": "5.0.0",
"@wordpress/icons": "10.0.0",
"@automattic/jetpack-analytics": "^0.1.33",
"@automattic/jetpack-api": "^0.17.20",
"@automattic/jetpack-components": "^0.64.0",
"@wordpress/base-styles": "5.13.0",
"@wordpress/block-editor": "14.8.0",
"@wordpress/data": "10.13.0",
"@wordpress/element": "6.13.0",
"@wordpress/i18n": "5.13.0",
"@wordpress/icons": "10.13.0",
"chart.js": "3.7.1",
"clsx": "2.1.1",
"fast-json-stable-stringify": "2.1.0",
"lodash": "4.17.21",
"photon": "4.0.0",
"preact": "10.12.1",
"photon": "4.1.1",
"preact": "10.22.1",
"prop-types": "15.7.2",
"q-flat": "1.0.7",
"qss": "2.0.3",
Expand All @@ -60,27 +60,25 @@
},
"devDependencies": {
"@automattic/jetpack-webpack-config": "workspace:*",
"@babel/core": "7.24.7",
"@babel/plugin-transform-react-jsx": "7.24.7",
"@babel/preset-env": "7.24.7",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@babel/runtime": "7.24.7",
"@testing-library/dom": "10.1.0",
"@testing-library/preact": "3.2.3",
"@testing-library/react": "15.0.7",
"@wordpress/babel-plugin-import-jsx-pragma": "5.0.0",
"@wordpress/browserslist-config": "6.0.0",
"@wordpress/dependency-extraction-webpack-plugin": "5.9.0",
"@babel/core": "7.26.0",
"@babel/plugin-transform-react-jsx": "7.25.9",
"@babel/preset-env": "7.26.0",
"@babel/preset-react": "7.25.9",
"@babel/preset-typescript": "7.26.0",
"@babel/runtime": "7.26.0",
"@testing-library/dom": "10.4.0",
"@testing-library/preact": "3.2.4",
"@testing-library/react": "16.0.1",
"@wordpress/babel-plugin-import-jsx-pragma": "5.13.0",
"@wordpress/browserslist-config": "6.13.0",
"babel-jest": "29.4.3",
"concurrently": "7.6.0",
"core-js": "3.23.5",
"core-js": "3.38.1",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"prettier": "npm:wp-prettier@3.0.3",
"sass": "1.64.1",
"sass-loader": "12.4.0",
"webpack": "5.76.0",
"webpack": "5.94.0",
"webpack-cli": "4.9.1"
},
"browserslist": [
Expand Down
2 changes: 1 addition & 1 deletion src/class-package.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* WordAds package general information
*/
class Package {
const VERSION = '0.3.21';
const VERSION = '0.4.3-alpha';
const SLUG = 'wordads';

/**
Expand Down
3 changes: 2 additions & 1 deletion src/dashboard/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public function add_wp_admin_submenu() {
_x( 'WordAds', 'product name shown in menu', 'jetpack-wordads' ),
'manage_options',
'jetpack-wordads',
array( $this, 'render' )
array( $this, 'render' ),
12
);

add_action( 'load-' . $page_suffix, array( $this, 'admin_init' ) );
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard/components/dashboard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import './style.scss';
/**
* WordAdsDashboard component definition.
*
* @returns {React.Component} Search dashboard component.
* @return {React.Component} Search dashboard component.
*/
export default function WordAdsDashboard() {
useSelect( select => select( STORE_ID ).getWordAdsModuleStatus(), [] );
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard/components/global-notices/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './style.scss';
* NoticesList component
*
* @param {*} props - Props
* @returns {React.Component} - NoticesList component
* @return {React.Component} - NoticesList component
*/
export default function NoticesList(
props = { handleLocalNoticeDismissClick: null, notices: Object.freeze( [] ) }
Expand Down
8 changes: 4 additions & 4 deletions src/dashboard/components/global-notices/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const REMOVE_NOTICE = 'REMOVE_NOTICE';
/**
* Create global notice
*
* @param {*} status - success, error, info or warning.
* @param {*} text - the text to show.
* @param {*} status - success, error, info or warning.
* @param {*} text - the text to show.
* @param {*} options - Options.
* @returns {object} - action object.
* @return {object} - action object.
*/
export function createNotice( status, text, options = {} ) {
const notice = {
Expand All @@ -34,7 +34,7 @@ export function createNotice( status, text, options = {} ) {
* Remove notice by ID
*
* @param {*} noticeId - noticeID.
* @returns {object} - action object.
* @return {object} - action object.
*/
export function removeNotice( noticeId ) {
return { type: REMOVE_NOTICE, notice: { id: noticeId } };
Expand Down
12 changes: 6 additions & 6 deletions src/dashboard/components/module-control/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const SEARCH_DESCRIPTION = __(
/**
* Search settings component to be used within the Performance section.
*
* @param {object} props - Component properties.
* @param {Function} props.updateOptions - function to update settings.
* @param {boolean} props.isSavingOptions - true if Saving options.
* @param {boolean} props.isModuleEnabled - true if WordAds module is enabled.
* @param {boolean} props.isTogglingModule - true if toggling WordAds module.
* @returns {React.Component} Search settings component.
* @param {object} props - Component properties.
* @param {Function} props.updateOptions - function to update settings.
* @param {boolean} props.isSavingOptions - true if Saving options.
* @param {boolean} props.isModuleEnabled - true if WordAds module is enabled.
* @param {boolean} props.isTogglingModule - true if toggling WordAds module.
* @return {React.Component} Search settings component.
*/
export default function WordAdsModuleControl( {
updateOptions,
Expand Down
Loading

0 comments on commit 2cdcd48

Please sign in to comment.