Skip to content

Commit

Permalink
Merge pull request #262 from WebDevStudios/releases/2.3.1-dev
Browse files Browse the repository at this point in the history
Release: 2.3.1
  • Loading branch information
asharirfan authored Nov 14, 2022
2 parents 479f405 + aafe3ff commit b894ac9
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 21 deletions.
6 changes: 5 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: Search, Algolia, Autocomplete, instant-search, relevant search, search hig
Requires at least: 5.0
Tested up to: 6.1
Requires PHP: 7.2
Stable tag: 2.3.0
Stable tag: 2.3.1
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,10 @@ 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.3.1 =
* Update autocomplete template to use addEventListener instead of onload function
* Update Algolia InstantSearch.js to 4.49.1

= 2.3.0 =
* Add algolia_should_override_autocomplete filter to override enable/disable status of Autocomplete
* Add from_batch argument to the re-index WP-CLI command
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.3.0
* Version: 2.3.1
* 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.3.0' );
define( 'ALGOLIA_VERSION', '2.3.1' );

// 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.3.0",
"version": "2.3.1",
"description": "Integrate the powerful Algolia search service with WordPress.",
"authors": [
{
Expand All @@ -21,7 +21,7 @@
"composer/installers": "~1.0"
},
"require-dev": {
"algolia/algoliasearch-client-php": "^3.0.2",
"algolia/algoliasearch-client-php": "^3.3",
"psr/http-message": "~1.0.1",
"psr/log": "~1.0.2",
"psr/simple-cache": "~1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

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

9 changes: 9 additions & 0 deletions js/instantsearch.js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [4.49.1](https://github.com/algolia/instantsearch.js/compare/v4.49.0...v4.49.1) (2022-11-01)


### Bug Fixes

* **insights:** check before usage of `document` ([#5149](https://github.com/algolia/instantsearch.js/issues/5149)) ([6733dea](https://github.com/algolia/instantsearch.js/commit/6733dea1091a3a6c8ec9049eba652a7f06e9c501))



# [4.49.0](https://github.com/algolia/instantsearch.js/compare/v4.48.1...v4.49.0) (2022-10-25)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ exports.ANONYMOUS_TOKEN_COOKIE_KEY = void 0;

var _index = require("../lib/utils/index.js");

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
exports.ANONYMOUS_TOKEN_COOKIE_KEY = ANONYMOUS_TOKEN_COOKIE_KEY;

function getCookie(name) {
if ((typeof document === "undefined" ? "undefined" : _typeof(document)) !== 'object' || typeof document.cookie !== 'string') {
return undefined;
}

var prefix = "".concat(name, "=");
var cookies = document.cookie.split(';');

Expand Down
2 changes: 1 addition & 1 deletion js/instantsearch.js/cjs/lib/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = '4.49.0';
var _default = '4.49.1';
exports.default = _default;
8 changes: 6 additions & 2 deletions js/instantsearch.js/dist/instantsearch.development.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! InstantSearch.js 4.49.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
/*! InstantSearch.js 4.49.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -7784,7 +7784,7 @@
instantSearchInstance.renderState = _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState), {}, _defineProperty({}, parentIndexName, _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
}

var version$1 = '4.49.0';
var version$1 = '4.49.1';

var NAMESPACE = 'ais';
var component = function component(componentName) {
Expand Down Expand Up @@ -7947,6 +7947,10 @@
var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';

function getCookie(name) {
if ((typeof document === "undefined" ? "undefined" : _typeof(document)) !== 'object' || typeof document.cookie !== 'string') {
return undefined;
}

var prefix = "".concat(name, "=");
var cookies = document.cookie.split(';');

Expand Down
2 changes: 1 addition & 1 deletion js/instantsearch.js/dist/instantsearch.development.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/instantsearch.js/dist/instantsearch.production.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

import { warning } from "../lib/utils/index.js";
export var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';

function getCookie(name) {
if ((typeof document === "undefined" ? "undefined" : _typeof(document)) !== 'object' || typeof document.cookie !== 'string') {
return undefined;
}

var prefix = "".concat(name, "=");
var cookies = document.cookie.split(';');

Expand Down
2 changes: 1 addition & 1 deletion js/instantsearch.js/es/lib/version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: "4.49.0";
declare const _default: "4.49.1";
export default _default;
2 changes: 1 addition & 1 deletion js/instantsearch.js/es/lib/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '4.49.0';
export default '4.49.1';
2 changes: 1 addition & 1 deletion js/instantsearch.js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "instantsearch.js",
"version": "4.49.0",
"version": "4.49.1",
"description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",
"homepage": "https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/",
"types": "es/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wp-search-with-algolia",
"version": "2.3.0",
"version": "2.3.1",
"description": "Integrate the powerful Algolia search service with WordPress.",
"author": "WebDevStudios",
"license": "GPL-3.0",
Expand Down
4 changes: 2 additions & 2 deletions templates/autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</script>

<script type="text/javascript">
window.onload = function () {
window.addEventListener('load', function () {

/* Initialize Algolia client */
var client = algoliasearch( algolia.application_id, algolia.search_api_key );
Expand Down Expand Up @@ -189,5 +189,5 @@
window.location = "https://www.algolia.com/?utm_source=WordPress&utm_medium=extension&utm_content=" + window.location.hostname + "&utm_campaign=poweredby";
} );
}
};
});
</script>

0 comments on commit b894ac9

Please sign in to comment.