Skip to content

Commit 825937f

Browse files
committed
3.24.3
* chore(deprecation): remove deprecation from singular/plural methods; all these methods will stay existing * index.addObject(obj) or index.addObjects([obj]) * index.partialUpdateObject(obj) or partialUpdateObjects([obj]) * index.saveObject(obj) or index.saveObjects([obj]) * index.deleteObject(objectID) or index.deleteObjects([objectID]) * index.getObject(objectID) or index.getObjects([objectID])
1 parent 155477c commit 825937f

13 files changed

+74
-67
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
CHANGELOG
2+
2017-07-24 3.24.3
3+
* chore(deprecation): remove deprecation from singular/plural methods; all these methods will stay existing
4+
* index.addObject(obj) or index.addObjects([obj])
5+
* index.partialUpdateObject(obj) or partialUpdateObjects([obj])
6+
* index.saveObject(obj) or index.saveObjects([obj])
7+
* index.deleteObject(objectID) or index.deleteObjects([objectID])
8+
* index.getObject(objectID) or index.getObjects([objectID])
9+
210
2017-07-24 3.24.2
311
* chore(deprecation): add deprecation message to all methods that will be removed in v4 (#573)
412
* index.addObject(obj) --> index.addObjects([obj])

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "algoliasearch",
3-
"version": "3.24.2",
3+
"version": "3.24.3",
44
"homepage": "https://github.com/algolia/algoliasearch-client-js",
55
"authors": [
66
"Algolia Team <[email protected]>"

dist/algoliasearch.angular.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! algoliasearch 3.24.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
1+
/*! algoliasearch 3.24.3 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
22
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
33

44
module.exports = function load (src, opts, cb) {
@@ -4050,7 +4050,7 @@ inherits(Index, IndexCore);
40504050
* error: null or Error('message')
40514051
* content: the server answer that contains 3 elements: createAt, taskId and objectID
40524052
*/
4053-
Index.prototype.addObject = deprecate(function(content, objectID, callback) {
4053+
Index.prototype.addObject = function(content, objectID, callback) {
40544054
var indexObj = this;
40554055

40564056
if (arguments.length === 1 || typeof objectID === 'function') {
@@ -4068,7 +4068,7 @@ Index.prototype.addObject = deprecate(function(content, objectID, callback) {
40684068
hostType: 'write',
40694069
callback: callback
40704070
});
4071-
}, deprecatedMessage('index.addObject(obj)', 'index.addObjects([obj])'));
4071+
};
40724072

40734073
/*
40744074
* Add several objects
@@ -4116,7 +4116,7 @@ Index.prototype.addObjects = function(objects, callback) {
41164116
* error: null or Error('message')
41174117
* content: the server answer that contains 3 elements: createAt, taskId and objectID
41184118
*/
4119-
Index.prototype.partialUpdateObject = deprecate(function(partialObject, createIfNotExists, callback) {
4119+
Index.prototype.partialUpdateObject = function(partialObject, createIfNotExists, callback) {
41204120
if (arguments.length === 1 || typeof createIfNotExists === 'function') {
41214121
callback = createIfNotExists;
41224122
createIfNotExists = undefined;
@@ -4135,7 +4135,7 @@ Index.prototype.partialUpdateObject = deprecate(function(partialObject, createIf
41354135
hostType: 'write',
41364136
callback: callback
41374137
});
4138-
}, deprecatedMessage('index.partialUpdateObject(obj)', 'partialUpdateObjects([obj])'));
4138+
};
41394139

41404140
/*
41414141
* Partially Override the content of several objects
@@ -4187,7 +4187,7 @@ Index.prototype.partialUpdateObjects = function(objects, createIfNotExists, call
41874187
* error: null or Error('message')
41884188
* content: the server answer that updateAt and taskID
41894189
*/
4190-
Index.prototype.saveObject = deprecate(function(object, callback) {
4190+
Index.prototype.saveObject = function(object, callback) {
41914191
var indexObj = this;
41924192
return this.as._jsonRequest({
41934193
method: 'PUT',
@@ -4196,7 +4196,7 @@ Index.prototype.saveObject = deprecate(function(object, callback) {
41964196
hostType: 'write',
41974197
callback: callback
41984198
});
4199-
}, deprecatedMessage('index.saveObject(obj)', 'index.saveObjects([obj])'));
4199+
}
42004200

42014201
/*
42024202
* Override the content of several objects
@@ -4243,7 +4243,7 @@ Index.prototype.saveObjects = function(objects, callback) {
42434243
* error: null or Error('message')
42444244
* content: the server answer that contains 3 elements: createAt, taskId and objectID
42454245
*/
4246-
Index.prototype.deleteObject = deprecate(function(objectID, callback) {
4246+
Index.prototype.deleteObject = function(objectID, callback) {
42474247
if (typeof objectID === 'function' || typeof objectID !== 'string' && typeof objectID !== 'number') {
42484248
var err = new errors.AlgoliaSearchError('Cannot delete an object without an objectID');
42494249
callback = objectID;
@@ -4261,7 +4261,7 @@ Index.prototype.deleteObject = deprecate(function(objectID, callback) {
42614261
hostType: 'write',
42624262
callback: callback
42634263
});
4264-
}, deprecatedMessage('index.deleteObject(objectID)', 'index.deleteObjects([objectID])'));
4264+
};
42654265

42664266
/*
42674267
* Delete several objects from an index
@@ -5514,7 +5514,7 @@ IndexCore.prototype._search = function(params, url, callback, additionalUA) {
55145514
* error: null or Error('message')
55155515
* content: the object to retrieve or the error message if a failure occured
55165516
*/
5517-
IndexCore.prototype.getObject = deprecate(function(objectID, attrs, callback) {
5517+
IndexCore.prototype.getObject = function(objectID, attrs, callback) {
55185518
var indexObj = this;
55195519

55205520
if (arguments.length === 1 || typeof attrs === 'function') {
@@ -5539,7 +5539,7 @@ IndexCore.prototype.getObject = deprecate(function(objectID, attrs, callback) {
55395539
hostType: 'read',
55405540
callback: callback
55415541
});
5542-
}, deprecatedMessage('index.getObject(objectID)', 'index.getObjects([objectID])'));
5542+
};
55435543

55445544
/*
55455545
* Get several objects from this index
@@ -6560,6 +6560,6 @@ function cleanup() {
65606560
},{"1":1}],36:[function(require,module,exports){
65616561
'use strict';
65626562

6563-
module.exports = '3.24.2';
6563+
module.exports = '3.24.3';
65646564

65656565
},{}]},{},[19]);

dist/algoliasearch.angular.min.js

+3-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/algoliasearch.jquery.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! algoliasearch 3.24.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
1+
/*! algoliasearch 3.24.3 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
22
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
33

44
module.exports = function load (src, opts, cb) {
@@ -4050,7 +4050,7 @@ inherits(Index, IndexCore);
40504050
* error: null or Error('message')
40514051
* content: the server answer that contains 3 elements: createAt, taskId and objectID
40524052
*/
4053-
Index.prototype.addObject = deprecate(function(content, objectID, callback) {
4053+
Index.prototype.addObject = function(content, objectID, callback) {
40544054
var indexObj = this;
40554055

40564056
if (arguments.length === 1 || typeof objectID === 'function') {
@@ -4068,7 +4068,7 @@ Index.prototype.addObject = deprecate(function(content, objectID, callback) {
40684068
hostType: 'write',
40694069
callback: callback
40704070
});
4071-
}, deprecatedMessage('index.addObject(obj)', 'index.addObjects([obj])'));
4071+
};
40724072

40734073
/*
40744074
* Add several objects
@@ -4116,7 +4116,7 @@ Index.prototype.addObjects = function(objects, callback) {
41164116
* error: null or Error('message')
41174117
* content: the server answer that contains 3 elements: createAt, taskId and objectID
41184118
*/
4119-
Index.prototype.partialUpdateObject = deprecate(function(partialObject, createIfNotExists, callback) {
4119+
Index.prototype.partialUpdateObject = function(partialObject, createIfNotExists, callback) {
41204120
if (arguments.length === 1 || typeof createIfNotExists === 'function') {
41214121
callback = createIfNotExists;
41224122
createIfNotExists = undefined;
@@ -4135,7 +4135,7 @@ Index.prototype.partialUpdateObject = deprecate(function(partialObject, createIf
41354135
hostType: 'write',
41364136
callback: callback
41374137
});
4138-
}, deprecatedMessage('index.partialUpdateObject(obj)', 'partialUpdateObjects([obj])'));
4138+
};
41394139

41404140
/*
41414141
* Partially Override the content of several objects
@@ -4187,7 +4187,7 @@ Index.prototype.partialUpdateObjects = function(objects, createIfNotExists, call
41874187
* error: null or Error('message')
41884188
* content: the server answer that updateAt and taskID
41894189
*/
4190-
Index.prototype.saveObject = deprecate(function(object, callback) {
4190+
Index.prototype.saveObject = function(object, callback) {
41914191
var indexObj = this;
41924192
return this.as._jsonRequest({
41934193
method: 'PUT',
@@ -4196,7 +4196,7 @@ Index.prototype.saveObject = deprecate(function(object, callback) {
41964196
hostType: 'write',
41974197
callback: callback
41984198
});
4199-
}, deprecatedMessage('index.saveObject(obj)', 'index.saveObjects([obj])'));
4199+
}
42004200

42014201
/*
42024202
* Override the content of several objects
@@ -4243,7 +4243,7 @@ Index.prototype.saveObjects = function(objects, callback) {
42434243
* error: null or Error('message')
42444244
* content: the server answer that contains 3 elements: createAt, taskId and objectID
42454245
*/
4246-
Index.prototype.deleteObject = deprecate(function(objectID, callback) {
4246+
Index.prototype.deleteObject = function(objectID, callback) {
42474247
if (typeof objectID === 'function' || typeof objectID !== 'string' && typeof objectID !== 'number') {
42484248
var err = new errors.AlgoliaSearchError('Cannot delete an object without an objectID');
42494249
callback = objectID;
@@ -4261,7 +4261,7 @@ Index.prototype.deleteObject = deprecate(function(objectID, callback) {
42614261
hostType: 'write',
42624262
callback: callback
42634263
});
4264-
}, deprecatedMessage('index.deleteObject(objectID)', 'index.deleteObjects([objectID])'));
4264+
};
42654265

42664266
/*
42674267
* Delete several objects from an index
@@ -5514,7 +5514,7 @@ IndexCore.prototype._search = function(params, url, callback, additionalUA) {
55145514
* error: null or Error('message')
55155515
* content: the object to retrieve or the error message if a failure occured
55165516
*/
5517-
IndexCore.prototype.getObject = deprecate(function(objectID, attrs, callback) {
5517+
IndexCore.prototype.getObject = function(objectID, attrs, callback) {
55185518
var indexObj = this;
55195519

55205520
if (arguments.length === 1 || typeof attrs === 'function') {
@@ -5539,7 +5539,7 @@ IndexCore.prototype.getObject = deprecate(function(objectID, attrs, callback) {
55395539
hostType: 'read',
55405540
callback: callback
55415541
});
5542-
}, deprecatedMessage('index.getObject(objectID)', 'index.getObjects([objectID])'));
5542+
};
55435543

55445544
/*
55455545
* Get several objects from this index
@@ -6506,6 +6506,6 @@ function cleanup() {
65066506
},{"1":1}],36:[function(require,module,exports){
65076507
'use strict';
65086508

6509-
module.exports = '3.24.2';
6509+
module.exports = '3.24.3';
65106510

65116511
},{}]},{},[19]);

dist/algoliasearch.jquery.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/algoliasearch.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! algoliasearch 3.24.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
1+
/*! algoliasearch 3.24.3 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
22
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
33

44
module.exports = function load (src, opts, cb) {
@@ -4050,7 +4050,7 @@ inherits(Index, IndexCore);
40504050
* error: null or Error('message')
40514051
* content: the server answer that contains 3 elements: createAt, taskId and objectID
40524052
*/
4053-
Index.prototype.addObject = deprecate(function(content, objectID, callback) {
4053+
Index.prototype.addObject = function(content, objectID, callback) {
40544054
var indexObj = this;
40554055

40564056
if (arguments.length === 1 || typeof objectID === 'function') {
@@ -4068,7 +4068,7 @@ Index.prototype.addObject = deprecate(function(content, objectID, callback) {
40684068
hostType: 'write',
40694069
callback: callback
40704070
});
4071-
}, deprecatedMessage('index.addObject(obj)', 'index.addObjects([obj])'));
4071+
};
40724072

40734073
/*
40744074
* Add several objects
@@ -4116,7 +4116,7 @@ Index.prototype.addObjects = function(objects, callback) {
41164116
* error: null or Error('message')
41174117
* content: the server answer that contains 3 elements: createAt, taskId and objectID
41184118
*/
4119-
Index.prototype.partialUpdateObject = deprecate(function(partialObject, createIfNotExists, callback) {
4119+
Index.prototype.partialUpdateObject = function(partialObject, createIfNotExists, callback) {
41204120
if (arguments.length === 1 || typeof createIfNotExists === 'function') {
41214121
callback = createIfNotExists;
41224122
createIfNotExists = undefined;
@@ -4135,7 +4135,7 @@ Index.prototype.partialUpdateObject = deprecate(function(partialObject, createIf
41354135
hostType: 'write',
41364136
callback: callback
41374137
});
4138-
}, deprecatedMessage('index.partialUpdateObject(obj)', 'partialUpdateObjects([obj])'));
4138+
};
41394139

41404140
/*
41414141
* Partially Override the content of several objects
@@ -4187,7 +4187,7 @@ Index.prototype.partialUpdateObjects = function(objects, createIfNotExists, call
41874187
* error: null or Error('message')
41884188
* content: the server answer that updateAt and taskID
41894189
*/
4190-
Index.prototype.saveObject = deprecate(function(object, callback) {
4190+
Index.prototype.saveObject = function(object, callback) {
41914191
var indexObj = this;
41924192
return this.as._jsonRequest({
41934193
method: 'PUT',
@@ -4196,7 +4196,7 @@ Index.prototype.saveObject = deprecate(function(object, callback) {
41964196
hostType: 'write',
41974197
callback: callback
41984198
});
4199-
}, deprecatedMessage('index.saveObject(obj)', 'index.saveObjects([obj])'));
4199+
}
42004200

42014201
/*
42024202
* Override the content of several objects
@@ -4243,7 +4243,7 @@ Index.prototype.saveObjects = function(objects, callback) {
42434243
* error: null or Error('message')
42444244
* content: the server answer that contains 3 elements: createAt, taskId and objectID
42454245
*/
4246-
Index.prototype.deleteObject = deprecate(function(objectID, callback) {
4246+
Index.prototype.deleteObject = function(objectID, callback) {
42474247
if (typeof objectID === 'function' || typeof objectID !== 'string' && typeof objectID !== 'number') {
42484248
var err = new errors.AlgoliaSearchError('Cannot delete an object without an objectID');
42494249
callback = objectID;
@@ -4261,7 +4261,7 @@ Index.prototype.deleteObject = deprecate(function(objectID, callback) {
42614261
hostType: 'write',
42624262
callback: callback
42634263
});
4264-
}, deprecatedMessage('index.deleteObject(objectID)', 'index.deleteObjects([objectID])'));
4264+
};
42654265

42664266
/*
42674267
* Delete several objects from an index
@@ -5514,7 +5514,7 @@ IndexCore.prototype._search = function(params, url, callback, additionalUA) {
55145514
* error: null or Error('message')
55155515
* content: the object to retrieve or the error message if a failure occured
55165516
*/
5517-
IndexCore.prototype.getObject = deprecate(function(objectID, attrs, callback) {
5517+
IndexCore.prototype.getObject = function(objectID, attrs, callback) {
55185518
var indexObj = this;
55195519

55205520
if (arguments.length === 1 || typeof attrs === 'function') {
@@ -5539,7 +5539,7 @@ IndexCore.prototype.getObject = deprecate(function(objectID, attrs, callback) {
55395539
hostType: 'read',
55405540
callback: callback
55415541
});
5542-
}, deprecatedMessage('index.getObject(objectID)', 'index.getObjects([objectID])'));
5542+
};
55435543

55445544
/*
55455545
* Get several objects from this index
@@ -6352,7 +6352,7 @@ function cleanup() {
63526352
},{"1":1}],35:[function(require,module,exports){
63536353
'use strict';
63546354

6355-
module.exports = '3.24.2';
6355+
module.exports = '3.24.3';
63566356

63576357
},{}]},{},[19])(19)
63586358
});

dist/algoliasearch.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)