Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #260 from algolia/bump-1.0.0
Browse files Browse the repository at this point in the history
Bump version to 1.0.0
  • Loading branch information
rayrutjes authored Sep 20, 2016
2 parents 4849ac8 + 6a0eb46 commit 9f98353
Show file tree
Hide file tree
Showing 11 changed files with 279 additions and 136 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.0
- Index `menu_order` field by default
- Resolve conflict with Post Type Switcher plugin
- Fix the asynchronous call check that happens on Indexing page

# 0.6.2
- Powered by can now be removed with the `ALGOLIA_POWERED_BY` constant
- Avoid spamming a notice on every admin page about non indexed searchable posts index
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Search by Algolia plugin for WordPress

## User documentation & guides

**Looking for the user documentation? [head over here](https://community.algolia.com/wordpress)!**

Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tested up to: 4.5.6
Stable tag: trunk
License: MIT License, GNU General Public License v2.0

Algolia brings you state of the art search without the setup hassle. Includes autocomplete, full control over look & feel, and relevance tuning.
Search by Algolia is the smartest way to improve search on your site. Autocomplete is included, along with full control over look, feel and relevance.

== Description ==

Expand Down
6 changes: 3 additions & 3 deletions algolia.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* @wordpress-plugin
* Plugin Name: Search by Algolia – Instant & Relevant results
* Plugin URI: https://community.algolia.com/wordpress
* Description: Algolia brings you state of the art search without the setup hassle. Includes autocomplete, full control over look & feel, and relevance tuning.
* Version: 0.6.2
* Description: Search by Algolia is the smartest way to improve search on your site. Autocomplete is included, along with full control over look, feel and relevance.
* Version: 1.0.0
* Author: Algolia
* Author URI: https://www.algolia.com/
* License: MIT License, GNU General Public License v2.0
Expand All @@ -30,7 +30,7 @@
}

// The Algolia Search plugin version.
define( 'ALGOLIA_VERSION', '0.6.2' );
define( 'ALGOLIA_VERSION', '1.0.0' );

if ( ! defined( 'ALGOLIA_PATH' ) ) {
define( 'ALGOLIA_PATH', plugin_dir_path( __FILE__ ) );
Expand Down
49 changes: 42 additions & 7 deletions assets/js/autocomplete.js/autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* autocomplete.js 0.21.4
* autocomplete.js 0.21.5
* https://github.com/algolia/autocomplete.js
* Copyright 2016 Algolia, Inc. and other contributors; Licensed MIT
*/
Expand Down Expand Up @@ -71,9 +71,16 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';

var current$ = window.$;
__webpack_require__(2);
var zepto = window.Zepto;
var currentZepto = window.Zepto;

__webpack_require__(2); // this will inject Zepto in window, unfortunately no easy commonJS zepto build
var zepto = window.Zepto; // save zepto for our own usage
window.$ = current$; // restore the `$` (we don't want Zepto here)
window.Zepto = currentZepto; // restore potential Zepto
if (!currentZepto) {
// cleanup the environement so we do not inject bad things
delete window.Zepto;
}

// setup DOM element
var DOM = __webpack_require__(3);
Expand Down Expand Up @@ -2692,12 +2699,40 @@ return /******/ (function(modules) { // webpackBootstrap
// shim for using process in browser

var process = module.exports = {};

// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.

var cachedSetTimeout;
var cachedClearTimeout;

(function () {
try {
cachedSetTimeout = setTimeout;
} catch (e) {
cachedSetTimeout = function () {
throw new Error('setTimeout is not defined');
}
}
try {
cachedClearTimeout = clearTimeout;
} catch (e) {
cachedClearTimeout = function () {
throw new Error('clearTimeout is not defined');
}
}
} ())
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;

function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
Expand All @@ -2713,7 +2748,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (draining) {
return;
}
var timeout = setTimeout(cleanUpNextTick);
var timeout = cachedSetTimeout(cleanUpNextTick);
draining = true;

var len = queue.length;
Expand All @@ -2730,7 +2765,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
currentQueue = null;
draining = false;
clearTimeout(timeout);
cachedClearTimeout(timeout);
}

process.nextTick = function (fun) {
Expand All @@ -2742,7 +2777,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
setTimeout(drainQueue, 0);
cachedSetTimeout(drainQueue, 0);
}
};

Expand Down Expand Up @@ -3084,7 +3119,7 @@ return /******/ (function(modules) { // webpackBootstrap
},

cursorTopSuggestion: function cursorTopSuggestion() {
this._setCursor(this._getSuggestions().first(), true);
this._setCursor(this._getSuggestions().first(), false);
},

update: function update(query) {
Expand Down
6 changes: 3 additions & 3 deletions assets/js/autocomplete.js/autocomplete.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions bin/update-translations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
set -e

find . -iname "*.php" > list
# new template
# xgettext --from-code=utf-8 --copyright-holder="Algolia" --package-name=algolia --language=PHP --add-comments -f list --keyword=esc_html__ --keyword=__ --keyword=_e -o languages/algolia.pot

# update template
xgettext --from-code=utf-8 --copyright-holder="Algolia" --package-name=algolia --language=PHP --add-comments -f list --keyword=esc_html_e --keyword=esc_html__ --keyword=__ --keyword=_e --join-existing -o languages/algolia.pot
xgettext --from-code=utf-8 --copyright-holder="Algolia" --package-name=algolia --language=PHP -f list --keyword=esc_html_e --keyword=esc_html__ --keyword=__ --keyword=_e -o languages/algolia.pot
rm list


2 changes: 1 addition & 1 deletion docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var siteBuild = Metalsmith(__dirname)
.metadata({
title: 'Algolia Search Plugin for WordPress',
url: 'https://github.com/algolia/algoliasearch-wordpress',
version: '0.6.2',
version: '1.0.0',
time: new Date().getTime(),
})

Expand Down
3 changes: 1 addition & 2 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ The official name of the plugin is: **Algolia Search for WordPress**.
Here is a list of known incompatibilities with other plugins. Be sure you go through them as you are installing the plugin:

**W3 Total Cache:**
- The autocomplete experience will not work if JavaScript is minified with W3 Total Cache
- It looks like the queue processing does not work with object caching turned on. (We have been unable to reproduce this one yet).
- Object caching may cause admin UI to no display indexing status in realtime.
Loading

0 comments on commit 9f98353

Please sign in to comment.