Skip to content

Commit

Permalink
Bump version to 1.25.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Jan 28, 2021
1 parent e19d669 commit 8b83400
Show file tree
Hide file tree
Showing 23 changed files with 61 additions and 31 deletions.
2 changes: 1 addition & 1 deletion assets/js/features/index.js
Expand Up @@ -21,7 +21,7 @@ export const enabledFeatures = global?._googlesitekitBaseData?.enabledFeatures |
/**
* Returns true if a feature is enabled; false otherwise.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {string} feature The name of the feature to check.
* @param {?Array} _enabledFeatures Optional. The list of enabled features. Uses `enabledFeatures` set by the server in a global JS variable, by default.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/api/index.js
Expand Up @@ -81,7 +81,7 @@ export const createCacheKey = ( type, identifier, datapoint, queryParams = {} )
/**
* Dispatches an error to the store, whether it's a permission or auth error.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Object} error Error object to dispatch.
*/
Expand Down
8 changes: 4 additions & 4 deletions assets/js/googlesitekit/datastore/location/navigation.js
Expand Up @@ -33,7 +33,7 @@ export const actions = {
/**
* Sets navigating URL.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {string} url The navigation URL.
* @return {Object} Redux-style action.
Expand Down Expand Up @@ -89,7 +89,7 @@ export const selectors = {
/**
* Determines whether the navigation is happening or not.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Object} state Data store's state.
* @return {boolean} TRUE if navigating, otherwise FALSE.
Expand All @@ -101,7 +101,7 @@ export const selectors = {
/**
* Determines whether navigating to the specific URL or not.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Object} state Data store's state.
* @param {string|RegExp} url An URL or a regular expression to test.
Expand All @@ -122,7 +122,7 @@ export const selectors = {
/**
* Gets navigation URL.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Object} state Data store's state.
* @return {string|null} The current navigating URL if doing navigation, otherwise NULL.
Expand Down
Expand Up @@ -180,7 +180,7 @@ const baseSelectors = {
/**
* Determines whether the user input settings are being saved or not.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Object} state Data store's state.
* @return {boolean} TRUE if the user input settings are being saved, otherwise FALSE.
Expand Down
6 changes: 3 additions & 3 deletions assets/js/googlesitekit/widgets/datastore/widgets.js
Expand Up @@ -108,7 +108,7 @@ export const actions = {
* Used internally by various components that can be returned by
* registered widget components.
*
* @since n.e.x.t
* @since 1.25.0
* @private
*
* @param {string} slug Widget slug.
Expand Down Expand Up @@ -137,7 +137,7 @@ export const actions = {
* Used internally by various components that can be returned by
* registered widget components.
*
* @since n.e.x.t
* @since 1.25.0
* @private
*
* @param {string} slug Widget slug.
Expand Down Expand Up @@ -305,7 +305,7 @@ export const selectors = {
* Used internally by the WidgetAreaRenderer component to recognize
* widgets in special states.
*
* @since n.e.x.t
* @since 1.25.0
* @private
*
* @param {Object} state Data store's state.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/widgets/util/combine-widgets.js
Expand Up @@ -33,7 +33,7 @@ function stateAndRowMatch( stateA, stateB, rowA, rowB ) {
/**
* Combines consecutive widgets with similar states within the same row.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Array.<Object>} activeWidgets List of active widgets.
* @param {Object} widgetStates Map of widget slug and their
Expand Down
Expand Up @@ -26,7 +26,7 @@ import WidgetCompleteModuleActivationCTA from '../components/WidgetCompleteModul
/**
* Gets the props to pass to a widget's component.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {string} widgetSlug The widget's slug.
* @return {Object} Props to pass to the widget component.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/widgets/util/get-widget-layout.js
Expand Up @@ -99,7 +99,7 @@ function getWidgetSizes( counter, widget ) {
/**
* Gets widget class names as well as column widths and row indexes for an area.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Array.<Object>} activeWidgets List of active widgets.
* @return {Object} Object with `classNames`, `columnWidths` and `rowIndexes`
Expand Down
2 changes: 1 addition & 1 deletion assets/js/hooks/useChecks.js
Expand Up @@ -25,7 +25,7 @@ import { useEffect, useState } from '@wordpress/element';
* Runs a series of asynchronous checks returning the first encountered error.
* All checks should be functions that throw their respective errors.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {Function[]} checks Array of functions to run.
* @return {Object} An object containing complete and error properties.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/hooks/useFeature.js
Expand Up @@ -29,7 +29,7 @@ import FeaturesContext from '../components/FeaturesProvider/FeaturesContext';
/**
* Returns the enabled state of a feature flag.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {string} feature The feature flag name to check enabled state for.
* @return {boolean} `true` if the feature is enabled, `false` otherwise.
Expand Down
4 changes: 2 additions & 2 deletions google-site-kit.php
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Site Kit by Google
* Plugin URI: https://sitekit.withgoogle.com
* Description: Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
* Version: 1.24.0
* Version: 1.25.0
* Author: Google
* Author URI: https://opensource.google.com
* License: Apache License 2.0
Expand All @@ -24,7 +24,7 @@
}

// Define most essential constants.
define( 'GOOGLESITEKIT_VERSION', '1.24.0' );
define( 'GOOGLESITEKIT_VERSION', '1.25.0' );
define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
define( 'GOOGLESITEKIT_PHP_MINIMUM', '5.6.0' );

Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Authentication/Authentication.php
Expand Up @@ -185,7 +185,7 @@ final class Authentication {
/**
* Initial_Version instance.
*
* @since n.e.x.t
* @since 1.25.0
* @var Initial_Version
*/
protected $initial_version;
Expand Down
Expand Up @@ -194,7 +194,7 @@ public function fetchAccessTokenWithRefreshToken( $refresh_token = null ) {
* the refresh token for the current user, which typically happens once every hour when using Site Kit,
* since that is the lifetime of every access token.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param array $token_response Token response data.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Authentication/Initial_Version.php
Expand Up @@ -15,7 +15,7 @@
/**
* Class representing the initial Site Kit version the user started with.
*
* @since n.e.x.t
* @since 1.25.0
* @access private
* @ignore
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Core/Util/Feature_Flags.php
Expand Up @@ -64,7 +64,7 @@ public static function enabled( $feature ) {
* Mainly this is used by E2E tests to allow certain features to be disabled or
* enabled for testing, but is also useful to switch features on/off on-the-fly.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param bool $feature_enabled The current status of this feature flag (`true` or `false`).
* @param string $feature The feature name.
Expand All @@ -76,7 +76,7 @@ public static function enabled( $feature ) {
/**
* Gets all enabled feature flags.
*
* @since n.e.x.t
* @since 1.25.0
*
* @return string[] An array of all enabled features.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Util/JSON_File.php
Expand Up @@ -141,7 +141,7 @@ public function jsonSerialize() {
/**
* Retrieve an iterator instance for the JSON data.
*
* @since n.e.x.t
* @since 1.25.0
*
* @return ArrayIterator|\Traversable
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Modules/AdSense.php
Expand Up @@ -386,7 +386,7 @@ protected function parse_data_response( Data_Request $data, $response ) {
/**
* Gets the service URL for the current account or signup if none.
*
* @since n.e.x.t
* @since 1.25.0
*
* @return string
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Modules/Search_Console.php
Expand Up @@ -542,7 +542,7 @@ protected function setup_info() {
/**
* Get the configured SearchConsole service instance.
*
* @since n.e.x.t
* @since 1.25.0
*
* @return Google_Service_SearchConsole The Search Console API service.
*/
Expand Down
32 changes: 31 additions & 1 deletion readme.txt
Expand Up @@ -4,7 +4,7 @@ Contributors: google
Requires at least: 4.7
Tested up to: 5.6
Requires PHP: 5.6
Stable tag: 1.24.0
Stable tag: 1.25.0
License: Apache License 2.0
License URI: https://www.apache.org/licenses/LICENSE-2.0
Tags: google, search-console, analytics, adsense, pagespeed-insights, optimize, tag-manager, site-kit
Expand Down Expand Up @@ -88,6 +88,36 @@ If you have some ideas to improve the plugin or to solve a bug, feel free to rai

== Changelog ==

= 1.25.0 =

**Added**

* Launch new All Traffic widget in the Site Kit dashboard, which surfaces more detailed information about channels, includes a time-based graph, and surfaces similar metrics for countries and devices the site is accessed from. See [#2429](https://github.com/google/site-kit-wp/issues/2429).

**Enhanced**

* Store initial Site Kit version per user for more targeted messaging in the future and introduce `googlesitekit_reauthorize_user` action. See [#2692](https://github.com/google/site-kit-wp/issues/2692).
* Improve user experience of new All Traffic widget for when it is loading and for when there is no relevant data available. See [#2675](https://github.com/google/site-kit-wp/issues/2675).
* Fix layout of new All Traffic widget on mobile viewports to use a single column. See [#2663](https://github.com/google/site-kit-wp/issues/2663).
* Add contextual documentation links to new All Traffic widget to explain special dimension values "(not set)" and "(other)". See [#2642](https://github.com/google/site-kit-wp/issues/2642).
* Modify new All Traffic widget so that the line chart always uses the same color indicated by the currently selected pie slice. See [#2625](https://github.com/google/site-kit-wp/issues/2625).
* Modify font styles in the new All Traffic widget to match font styles used in Search Funnel widget and elsewhere throughout the plugin. See [#2623](https://github.com/google/site-kit-wp/issues/2623).
* Rely on new Search Console "fresh data" feature to display metrics as recent as 1 day ago, improving on the previous offset of 2 days. See [#2522](https://github.com/google/site-kit-wp/issues/2522).
* Remove various old REST datapoints in AdSense, Analytics, and Search Console modules that were only present to access specific settings and unused. See [#2507](https://github.com/google/site-kit-wp/issues/2507).
* Introduce `core/location` JS store, rely on it for redirects, and fix notification about unsatisfied scopes unnecessarily appearing before an OAuth redirect. See [#2497](https://github.com/google/site-kit-wp/issues/2497).
* Get rid of remaining usage of legacy `dateRange` argument in AdSense widgets. See [#2477](https://github.com/google/site-kit-wp/issues/2477).
* Improve JS API caching layer to cache certain error responses if they include a `cacheTTL` extra data property, allowing to avoid excessive Analytics API requests when the AdSense account is not linked. See [#2457](https://github.com/google/site-kit-wp/issues/2457).
* Introduce infrastructure for dynamically controlled feature flags via a `googlesitekit_is_feature_enabled` filter. See [#2452](https://github.com/google/site-kit-wp/issues/2452).
* Implement logic to automatically combine UI for widgets that are in special states, e.g. widgets without sufficient API response data, or widgets that require a specific module to be set up first. See [#2252](https://github.com/google/site-kit-wp/issues/2252).
* Add widget contexts and register widget areas for Site Kit module pages. See [#2062](https://github.com/google/site-kit-wp/issues/2062).

**Fixed**

* Fix performance lag across Site Kit screens due to a problem in the `getModules` selector of the `core/modules` store. See [#2691](https://github.com/google/site-kit-wp/issues/2691).
* Fix bug where Tag Manager and Analytics snippet could be inserted twice on AMP pages. See [#2668](https://github.com/google/site-kit-wp/issues/2668).
* Fix bug with All Traffic widget where selected pie slice would no longer remain selected when changing the current date range. See [#2644](https://github.com/google/site-kit-wp/issues/2644).
* Fix graph in All Traffic widget to not cut off axis labels on viewports smaller than desktop. See [#2624](https://github.com/google/site-kit-wp/issues/2624).

= 1.24.0 =

**Added**
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/utils/create-wait-for-fetch-requests.js
Expand Up @@ -20,7 +20,7 @@
* Creates a function that waits for all fetch requests dispatched
* since the function was called to complete.
*
* @since n.e.x.t
* @since 1.25.0
*
* @return {Function} Wait function.
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/utils/features.js
Expand Up @@ -24,7 +24,7 @@ import { wpApiFetch } from './wp-api-fetch';
/**
* Disables a feature flag during E2E tests.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {string} feature The feature flag to disable.
* @return {Promise} Promise from `page.evaluate()` call.
Expand All @@ -43,7 +43,7 @@ export async function disableFeature( feature ) {
/**
* Enables a feature flag during E2E tests.
*
* @since n.e.x.t
* @since 1.25.0
*
* @param {string} feature The feature flag to enable.
* @return {Promise} Promise from `page.evaluate()` call.
Expand Down
2 changes: 1 addition & 1 deletion tests/js/test-utils.js
Expand Up @@ -79,7 +79,7 @@ const customRender = ( ui, options = {} ) => {
* Renders a test component that will call the provided callback, including any hooks it calls, every time it renders.
*
* @since 1.12.0
* @since n.e.x.t Added `features` option.
* @since 1.25.0 Added `features` option.
* @private
*
* @param {Function} callback The function that is called each render of the test component. This function should call one or more hooks for testing. The props passed into the callback will be the initialProps provided in the options to renderHook, unless new props are provided by a subsequent rerender call.
Expand Down
2 changes: 1 addition & 1 deletion tests/js/utils.js
Expand Up @@ -245,7 +245,7 @@ export const provideUserInfo = ( registry, extraData = {} ) => {
/**
* Provides user capabilities data to the given registry.
*
* @since n.e.x.t
* @since 1.25.0
* @private
*
* @param {Object} registry Registry object to dispatch to.
Expand Down

0 comments on commit 8b83400

Please sign in to comment.