Skip to content

Commit

Permalink
Merge pull request #213 from WebDevStudios/chore/prep-release-2.2.0
Browse files Browse the repository at this point in the history
Chore/prep release 2.2.0
  • Loading branch information
asharirfan authored May 18, 2022
2 parents c4f4d84 + 92d4f0b commit 3f4531a
Show file tree
Hide file tree
Showing 527 changed files with 27,555 additions and 3,424 deletions.
15 changes: 13 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: WebDevStudios, williamsba1, gregrickaby, tw2113, richaber, mrasharirfan
Tags: Search, Algolia, Autocomplete, instant-search, relevant search, search highlight, faceted search, find-as-you-type search, suggest, search by category, ajax search, better search, custom search
Requires at least: 5.0
Tested up to: 5.8
Tested up to: 6.0
Requires PHP: 7.2
Stable tag: 2.1.0
Stable tag: 2.2.0
License: GNU General Public License v2.0, MIT License

Improve search on your site. Autocomplete is included, along with full control over look, feel and relevance.
Expand Down Expand Up @@ -106,6 +106,17 @@ WebDevStudios provides end-to-end WordPress opportunities from strategy and plan

Follow along with the changelog on [Github](https://github.com/WebDevStudios/wp-search-with-algolia/releases).

= 2.2.0 =
* Add alert to Push Settings button on the Search Page.
* Replace attributesToIndex index setting with searchableAttributes.
* Replace outdated Instant Search widget class.
* Improve drag and drop column description text on the Autocomplete page.
* Remove inline CSS for Max. Suggestions input.
* Update Algolia JavaScript API Client to 4.13.0
* Update Algolia InstantSearch.js to 4.50.5
* Update Algolia Autocomplete.js to 0.38.1
* Update Algolia PHP API Client to 3.2.0

= 2.1.0 =
* Add algolia_update_records filter to allow inspection and filtering records during update operation.
* Add algolia_re_index_records filter to allow inspection and filtering records during re-index operation.
Expand Down
4 changes: 2 additions & 2 deletions algolia.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Search with Algolia
* Plugin URI: https://github.com/WebDevStudios/wp-search-with-algolia
* Description: Integrate the powerful Algolia search service with WordPress
* Version: 2.2.0-dev
* Version: 2.2.0
* Requires at least: 5.0
* Requires PHP: 7.2
* Author: WebDevStudios
Expand All @@ -26,7 +26,7 @@
}

// The Algolia Search plugin version.
define( 'ALGOLIA_VERSION', '2.2.0-dev' );
define( 'ALGOLIA_VERSION', '2.2.0' );

// The minmum required PHP version.
define( 'ALGOLIA_MIN_PHP_VERSION', '7.2' );
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webdevstudios/wp-search-with-algolia",
"version": "2.1.0",
"version": "2.2.0",
"description": "Integrate the powerful Algolia search service with WordPress.",
"authors": [
{
Expand All @@ -25,7 +25,7 @@
"psr/http-message": "~1.0.1",
"psr/log": "~1.0.2",
"psr/simple-cache": "~1.0.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpcompatibility/phpcompatibility-wp": "^2.1.2",
"wp-coding-standards/wpcs": "^2.3.0",
"slowprog/composer-copy-file": "^0.3.3"
Expand Down
65 changes: 35 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/admin/class-algolia-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function enqueue_scripts() {
* Add localize strings to scripts.
*
* @author WebDevStudios <contact@webdevstudios.com>
* @since 2.2.0-dev
* @since 2.2.0
*/
public function localize_scripts() {

Expand Down
4 changes: 2 additions & 2 deletions includes/indices/class-algolia-posts-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private function get_post_shared_attributes( WP_Post $post ) {
*/
protected function get_settings() {
$settings = array(
'searchableAttributes' => array(
'searchableAttributes' => array(
'unordered(post_title)',
'unordered(taxonomies)',
'unordered(content)',
Expand Down Expand Up @@ -304,7 +304,7 @@ protected function get_settings() {
* it has been replaced by Algolia.
*
* @link https://www.algolia.com/doc/api-reference/api-parameters/searchableAttributes/
* @since 2.2.0-dev
* @since 2.2.0
*/
if (
array_key_exists( 'attributesToIndex', $settings )
Expand Down
4 changes: 2 additions & 2 deletions includes/indices/class-algolia-searchable-posts-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private function get_post_shared_attributes( WP_Post $post ) {
*/
protected function get_settings() {
$settings = array(
'searchableAttributes' => array(
'searchableAttributes' => array(
'unordered(post_title)',
'unordered(taxonomies)',
'unordered(content)',
Expand Down Expand Up @@ -288,7 +288,7 @@ protected function get_settings() {
* it has been replaced by Algolia.
*
* @link https://www.algolia.com/doc/api-reference/api-parameters/searchableAttributes/
* @since 2.2.0-dev
* @since 2.2.0
*/
if (
array_key_exists( 'attributesToIndex', $settings )
Expand Down
4 changes: 2 additions & 2 deletions includes/indices/class-algolia-terms-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function get_settings() {
'unordered(name)',
'unordered(description)',
),
'customRanking' => array(
'customRanking' => array(
'desc(posts_count)',
),
);
Expand All @@ -148,7 +148,7 @@ protected function get_settings() {
* it has been replaced by Algolia.
*
* @link https://www.algolia.com/doc/api-reference/api-parameters/searchableAttributes/
* @since 2.2.0-dev
* @since 2.2.0
*/
if (
array_key_exists( 'attributesToIndex', $settings )
Expand Down
4 changes: 2 additions & 2 deletions includes/indices/class-algolia-users-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected function get_settings() {
'searchableAttributes' => array(
'unordered(display_name)',
),
'customRanking' => array(
'customRanking' => array(
'desc(posts_count)',
),
);
Expand All @@ -138,7 +138,7 @@ protected function get_settings() {
* it has been replaced by Algolia.
*
* @link https://www.algolia.com/doc/api-reference/api-parameters/searchableAttributes/
* @since 2.2.0-dev
* @since 2.2.0
*/
if (
array_key_exists( 'attributesToIndex', $settings )
Expand Down
23 changes: 11 additions & 12 deletions includes/libraries/algoliasearch-client-php/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ executors:
description: "PHP version tag"
type: string
docker:
- image: circleci/php:<<parameters.version>>
- image: cimg/php:<<parameters.version>>

jobs:
test:
Expand All @@ -31,8 +31,9 @@ jobs:
steps:
- checkout

- run: sudo apt update
- run: sudo docker-php-ext-install zip
- run: sudo apt-get update
- run: sudo apt-get install -y php-zip


# Download and cache dependencies
- restore_cache:
Expand Down Expand Up @@ -68,7 +69,7 @@ jobs:
- run:
name: Check code styles
command: vendor/bin/php-cs-fixer fix -v --dry-run
command: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix -v --dry-run

# Run tests with phpunit
#
Expand Down Expand Up @@ -110,8 +111,8 @@ workflows:
workflow:
jobs:
- test:
name: 'Guzzle 7 - PHP latest'
version: "latest"
name: 'Guzzle 7 - PHP 8.1'
version: "8.1"
http_client: guzzlehttp/guzzle:"^7.0"
- test:
name: 'Guzzle 7 - PHP 8.0'
Expand All @@ -121,10 +122,9 @@ workflows:
name: 'Guzzle 7 - PHP 7.4'
version: "7.4"
http_client: guzzlehttp/guzzle:"^7.0"

- test:
name: 'Guzzle 6 - PHP latest'
version: "latest"
name: 'Guzzle 6 - PHP 8.1'
version: "8.1"
http_client: guzzlehttp/guzzle:"^6.0"
- test:
name: 'Guzzle 6 - PHP 8.0'
Expand All @@ -138,10 +138,9 @@ workflows:
name: 'Guzzle 6 - PHP 7.2'
version: "7.2"
http_client: guzzlehttp/guzzle:"^6.0"

- test:
name: 'Legacy client - PHP latest'
version: "latest"
name: 'Legacy client - PHP 8.1'
version: "8.1"
http_client: legacy
- test:
name: 'Legacy client - PHP 8.0'
Expand Down
Loading

0 comments on commit 3f4531a

Please sign in to comment.