Skip to content

Commit 0217ba0

Browse files
committed
3.24.9
* FIX: make sure long API keys are sent via the POST body * this wasn't the case in 3.24.8 because of a typo
1 parent 7acbafb commit 0217ba0

13 files changed

+38
-34
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
CHANGELOG
2+
2017-12-29 3.24.9
3+
* FIX: make sure long API keys are sent via the POST body
4+
* this wasn't the case in 3.24.8 because of a typo
5+
26
2017-12-13 3.24.8
37
* add multi cluster management methods
48
* [ Assign or Move a userID to a cluster](https://algolia.com/doc/api-reference/api-methods/assign-user-id/): `assignUserID`

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "algoliasearch",
3-
"version": "3.24.8",
3+
"version": "3.24.9",
44
"homepage": "https://github.com/algolia/algoliasearch-client-js",
55
"authors": [
66
"Algolia Team <support@algolia.com>"

dist/algoliasearch.angular.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! algoliasearch 3.24.8 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
1+
/*! algoliasearch 3.24.9 | © 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) {
@@ -3864,7 +3864,7 @@ AlgoliaSearchCore.prototype._getSearchParams = function(args, params) {
38643864
* Compute the headers for a request
38653865
*
38663866
* @param [string] options.additionalUA semi-colon separated string with other user agents to add
3867-
* @param [boolean=true] options.withAPIKey Send the api key as a header
3867+
* @param [boolean=true] options.withApiKey Send the api key as a header
38683868
* @param [Object] options.headers Extra headers to send
38693869
*/
38703870
AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
@@ -3883,7 +3883,7 @@ AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
38833883
// but in some situations, the API KEY will be too long (big secured API keys)
38843884
// so if the request is a POST and the KEY is very long, we will be asked to not put
38853885
// it into headers but in the JSON body
3886-
if (options.withAPIKey !== false) {
3886+
if (options.withApiKey !== false) {
38873887
requestHeaders['x-algolia-api-key'] = this.apiKey;
38883888
}
38893889

@@ -6818,6 +6818,6 @@ function cleanup() {
68186818
},{"1":1}],36:[function(require,module,exports){
68196819
'use strict';
68206820

6821-
module.exports = '3.24.8';
6821+
module.exports = '3.24.9';
68226822

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

dist/algoliasearch.angular.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/algoliasearch.jquery.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! algoliasearch 3.24.8 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
1+
/*! algoliasearch 3.24.9 | © 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) {
@@ -3864,7 +3864,7 @@ AlgoliaSearchCore.prototype._getSearchParams = function(args, params) {
38643864
* Compute the headers for a request
38653865
*
38663866
* @param [string] options.additionalUA semi-colon separated string with other user agents to add
3867-
* @param [boolean=true] options.withAPIKey Send the api key as a header
3867+
* @param [boolean=true] options.withApiKey Send the api key as a header
38683868
* @param [Object] options.headers Extra headers to send
38693869
*/
38703870
AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
@@ -3883,7 +3883,7 @@ AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
38833883
// but in some situations, the API KEY will be too long (big secured API keys)
38843884
// so if the request is a POST and the KEY is very long, we will be asked to not put
38853885
// it into headers but in the JSON body
3886-
if (options.withAPIKey !== false) {
3886+
if (options.withApiKey !== false) {
38873887
requestHeaders['x-algolia-api-key'] = this.apiKey;
38883888
}
38893889

@@ -6764,6 +6764,6 @@ function cleanup() {
67646764
},{"1":1}],36:[function(require,module,exports){
67656765
'use strict';
67666766

6767-
module.exports = '3.24.8';
6767+
module.exports = '3.24.9';
67686768

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

dist/algoliasearch.jquery.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/algoliasearch.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! algoliasearch 3.24.8 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
1+
/*! algoliasearch 3.24.9 | © 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) {
@@ -3864,7 +3864,7 @@ AlgoliaSearchCore.prototype._getSearchParams = function(args, params) {
38643864
* Compute the headers for a request
38653865
*
38663866
* @param [string] options.additionalUA semi-colon separated string with other user agents to add
3867-
* @param [boolean=true] options.withAPIKey Send the api key as a header
3867+
* @param [boolean=true] options.withApiKey Send the api key as a header
38683868
* @param [Object] options.headers Extra headers to send
38693869
*/
38703870
AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
@@ -3883,7 +3883,7 @@ AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
38833883
// but in some situations, the API KEY will be too long (big secured API keys)
38843884
// so if the request is a POST and the KEY is very long, we will be asked to not put
38853885
// it into headers but in the JSON body
3886-
if (options.withAPIKey !== false) {
3886+
if (options.withApiKey !== false) {
38873887
requestHeaders['x-algolia-api-key'] = this.apiKey;
38883888
}
38893889

@@ -6610,7 +6610,7 @@ function cleanup() {
66106610
},{"1":1}],35:[function(require,module,exports){
66116611
'use strict';
66126612

6613-
module.exports = '3.24.8';
6613+
module.exports = '3.24.9';
66146614

66156615
},{}]},{},[19])(19)
66166616
});

dist/algoliasearch.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/algoliasearch.parse.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,7 +3596,7 @@ module.exports =
35963596
* Compute the headers for a request
35973597
*
35983598
* @param [string] options.additionalUA semi-colon separated string with other user agents to add
3599-
* @param [boolean=true] options.withAPIKey Send the api key as a header
3599+
* @param [boolean=true] options.withApiKey Send the api key as a header
36003600
* @param [Object] options.headers Extra headers to send
36013601
*/
36023602
AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
@@ -3615,7 +3615,7 @@ module.exports =
36153615
// but in some situations, the API KEY will be too long (big secured API keys)
36163616
// so if the request is a POST and the KEY is very long, we will be asked to not put
36173617
// it into headers but in the JSON body
3618-
if (options.withAPIKey !== false) {
3618+
if (options.withApiKey !== false) {
36193619
requestHeaders['x-algolia-api-key'] = this.apiKey;
36203620
}
36213621

@@ -4035,7 +4035,7 @@ module.exports =
40354035

40364036

40374037

4038-
module.exports = '3.24.8';
4038+
module.exports = '3.24.9';
40394039

40404040

40414041
/***/ })

dist/algoliasearchLite.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! algoliasearch 3.24.8 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
1+
/*! algoliasearch 3.24.9 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
22
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.algoliasearch = 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
(function (process){
44
/**
@@ -2702,7 +2702,7 @@ AlgoliaSearchCore.prototype._getSearchParams = function(args, params) {
27022702
* Compute the headers for a request
27032703
*
27042704
* @param [string] options.additionalUA semi-colon separated string with other user agents to add
2705-
* @param [boolean=true] options.withAPIKey Send the api key as a header
2705+
* @param [boolean=true] options.withApiKey Send the api key as a header
27062706
* @param [Object] options.headers Extra headers to send
27072707
*/
27082708
AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
@@ -2721,7 +2721,7 @@ AlgoliaSearchCore.prototype._computeRequestHeaders = function(options) {
27212721
// but in some situations, the API KEY will be too long (big secured API keys)
27222722
// so if the request is a POST and the KEY is very long, we will be asked to not put
27232723
// it into headers but in the JSON body
2724-
if (options.withAPIKey !== false) {
2724+
if (options.withApiKey !== false) {
27252725
requestHeaders['x-algolia-api-key'] = this.apiKey;
27262726
}
27272727

@@ -4188,7 +4188,7 @@ function cleanup() {
41884188
},{"1":1}],31:[function(require,module,exports){
41894189
'use strict';
41904190

4191-
module.exports = '3.24.8';
4191+
module.exports = '3.24.9';
41924192

41934193
},{}]},{},[15])(15)
41944194
});

0 commit comments

Comments
 (0)