Skip to content

Commit

Permalink
Merge branch 'develop' into insights-connector
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrugg committed Mar 20, 2019
2 parents 3ce6c4f + 5f41fc6 commit 54cc993
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 38 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Expand Up @@ -17,10 +17,10 @@ script:
- '${SCRIPT}'
env:
matrix:
- SCRIPT=./scripts/ci/functional-test.sh
- SCRIPT=yarn run test
- SCRIPT=yarn run lint
- SCRIPT=yarn run type-check
- SCRIPT='./scripts/ci/functional-test.sh'
- SCRIPT='yarn run test'
- SCRIPT='yarn run lint'
- SCRIPT='yarn run type-check'
global:
- CXX=g++-4.8
- SAUCE_USERNAME=isjs
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,23 @@
## [3.2.1](https://github.com/algolia/instantsearch.js/compare/v3.1.0...v3.2.1) (2019-03-18)


### Bug Fixes

* **connectToggleRefinement:** keep user provided, but falsy values ([#3526](https://github.com/algolia/instantsearch.js/issues/3526)) ([958a151](https://github.com/algolia/instantsearch.js/commit/958a151))
* **instantsearch:** update usage errors ([#3543](https://github.com/algolia/instantsearch.js/issues/3543)) ([a2a800b](https://github.com/algolia/instantsearch.js/commit/a2a800b))
* **panel:** append panel body as a child element ([#3561](https://github.com/algolia/instantsearch.js/issues/3561)) ([3de59a3](https://github.com/algolia/instantsearch.js/commit/3de59a3))
* **poweredBy:** remove TypeScript extension in import ([#3530](https://github.com/algolia/instantsearch.js/issues/3530)) ([99ecc0b](https://github.com/algolia/instantsearch.js/commit/99ecc0b)), closes [#3528](https://github.com/algolia/instantsearch.js/issues/3528)
* **release:** update doctoc script ([e07c654](https://github.com/algolia/instantsearch.js/commit/e07c654))
* **searchbox:** unmount component on dispose ([#3563](https://github.com/algolia/instantsearch.js/issues/3563)) ([c3f0435](https://github.com/algolia/instantsearch.js/commit/c3f0435))
* **searchBox:** add reusable SearchBox component ([#3489](https://github.com/algolia/instantsearch.js/issues/3489)) ([c073a9a](https://github.com/algolia/instantsearch.js/commit/c073a9a))


### Features

* **panel:** implement collapsed feature ([#3575](https://github.com/algolia/instantsearch.js/issues/3575)) ([e84b02b](https://github.com/algolia/instantsearch.js/commit/e84b02b))



# [3.2.0](https://github.com/algolia/instantsearch.js/compare/v3.1.0...v3.2.0) (2019-03-14)


Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "instantsearch.js",
"version": "3.2.0",
"version": "3.2.1",
"description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",
"homepage": "https://community.algolia.com/instantsearch.js/",
"keywords": [
Expand Down Expand Up @@ -141,7 +141,7 @@
"wdio-mocha-framework": "0.6.4",
"wdio-sauce-service": "0.4.14",
"wdio-visual-regression-service": "0.9.0",
"webdriverio": "5.7.2",
"webdriverio": "5.7.3",
"webpack": "4.29.6"
},
"bundlesize": [
Expand Down
6 changes: 3 additions & 3 deletions src/lib/utils/capitalize.ts
@@ -1,9 +1,9 @@
function capitalize(string: string) {
function capitalize(text: string) {
return (
string
text
.toString()
.charAt(0)
.toUpperCase() + string.toString().slice(1)
.toUpperCase() + text.toString().slice(1)
);
}

Expand Down
14 changes: 8 additions & 6 deletions src/lib/utils/documentation.ts
Expand Up @@ -3,26 +3,28 @@ type WidgetParam = {
connector?: boolean;
};

export function createDocumentationLink({
export const createDocumentationLink = ({
name,
connector = false,
}: WidgetParam) {
}: WidgetParam) => {
return [
'https://www.algolia.com/doc/api-reference/widgets/',
name,
'/js/',
connector ? '#connector' : '',
].join('');
}
};

export function createDocumentationMessageGenerator(...widgets: WidgetParam[]) {
export const createDocumentationMessageGenerator = (
...widgets: WidgetParam[]
) => {
const links = widgets
.map(widget => createDocumentationLink(widget))
.join(', ');

return function(message: string) {
return (message: string) => {
return [message, `See documentation: ${links}`]
.filter(Boolean)
.join('\n\n');
};
}
};
2 changes: 1 addition & 1 deletion src/lib/utils/prefixKeys.ts
Expand Up @@ -2,7 +2,7 @@ import mapKeys from 'lodash/mapKeys';

function prefixKeys(prefix: string, obj: object) {
if (obj) {
return mapKeys(obj, (_value, key) => prefix + key);
return mapKeys(obj, (_0, key) => prefix + key);
}

return undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/version.js
@@ -1 +1 @@
export default '3.2.0';
export default '3.2.1';
42 changes: 21 additions & 21 deletions yarn.lock
Expand Up @@ -1561,10 +1561,10 @@
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-12.0.9.tgz#693e76a52f61a2f1e7fb48c0eef167b95ea4ffd0"
integrity sha512-sCZy4SxP9rN2w30Hlmg5dtdRwgYQfYRiLo9usw8X9cxlf+H4FqM1xX7+sNH7NNKVdbXMJWqva7iyy+fxh/V7fA==

"@wdio/config@^5.7.2":
version "5.7.2"
resolved "https://registry.yarnpkg.com/@wdio/config/-/config-5.7.2.tgz#d8998d1b1d60361bd3f79fad31b5459796d59957"
integrity sha512-CPkrj15A4Gyo7/nU2wBXtt5DrmIrkU1m+xIMt/eii/P+4UsfI7mr4cW0jtGK3arlxBdvsRyZam727L5LmKLIdw==
"@wdio/config@^5.7.3":
version "5.7.3"
resolved "https://registry.yarnpkg.com/@wdio/config/-/config-5.7.3.tgz#732317e2a2026e612832c809ff0e01fc299d26da"
integrity sha512-4RuR+VkfLXtyUkBr5AYMC5miOwRN8xQsWMAzHzaQJvwk3uUB+uFRtve2sS0byoieQBCVI4V5BVKdNvDYfrAXEA==
dependencies:
"@wdio/logger" "^5.7.0"
deepmerge "^2.0.1"
Expand All @@ -1580,12 +1580,12 @@
loglevel-plugin-prefix "^0.5.3"
strip-ansi "^4.0.0"

"@wdio/repl@^5.7.2":
version "5.7.2"
resolved "https://registry.yarnpkg.com/@wdio/repl/-/repl-5.7.2.tgz#0227a80724af9c6d78c42a02917ce183c3129057"
integrity sha512-XCJ7+NiHCN1kmV/zCB+h/GWJvKJjUSSeuYjHeg82w1WZHwxpAivvozZkARu9tcPm2mtX3jemWFwxDWmDi5cbFQ==
"@wdio/repl@^5.7.3":
version "5.7.3"
resolved "https://registry.yarnpkg.com/@wdio/repl/-/repl-5.7.3.tgz#416b3d010a3eb7a8f6421ccbd502dea942f6478f"
integrity sha512-o94wfg2+yQEUE9f0E7c0T9Xau0YNNbHZjROvOa3HufIDB2d57aK1EnxkeiTf7EAQcv3wNuP7JrT86SA8PbS1Xw==
dependencies:
"@wdio/config" "^5.7.2"
"@wdio/config" "^5.7.3"

"@webassemblyjs/ast@1.8.5":
version "1.8.5"
Expand Down Expand Up @@ -12666,33 +12666,33 @@ wdio-visual-regression-service@0.9.0:
platform "^1.3.1"
wdio-screenshot "^0.6.0"

webdriver@^5.7.2:
version "5.7.2"
resolved "https://registry.yarnpkg.com/webdriver/-/webdriver-5.7.2.tgz#239b188b3418c49e907125bd256e1e3c6d40c37c"
integrity sha512-TJE1DNcCiqDUijZx+vP+tlfrtaF3BotMt5xP9NxamUoecGPRL2sslv06Lc0Pw6dV+21vbPs8nva8Nqs02YL2bw==
webdriver@^5.7.3:
version "5.7.3"
resolved "https://registry.yarnpkg.com/webdriver/-/webdriver-5.7.3.tgz#fc94e5719165fe8c0ceec0ef39d7c55deb7b691e"
integrity sha512-BtnBtR8AJyPwxvwPRmpamDTc+ZtcGVVisZkRceP1Y5cBvOBj+eUTClvwl9yr10ihbnudX+V0HTDqfDG90pYdJg==
dependencies:
"@wdio/config" "^5.7.2"
"@wdio/config" "^5.7.3"
"@wdio/logger" "^5.7.0"
deepmerge "^2.0.1"
lodash.merge "^4.6.1"
request "^2.83.0"

webdriverio@5.7.2:
version "5.7.2"
resolved "https://registry.yarnpkg.com/webdriverio/-/webdriverio-5.7.2.tgz#95ad8bd4a684b6b047da274f388469a995fd1bcb"
integrity sha512-8XaV3WYjZMf9xNVXQP3o9Qx9m+CBnYXXThhWAUFGd1ytbAUwZlUn3QTI9acJMj+hos9Ma49GGSKDV8cVWU/wSA==
webdriverio@5.7.3:
version "5.7.3"
resolved "https://registry.yarnpkg.com/webdriverio/-/webdriverio-5.7.3.tgz#634beb2c49d0f16b6fd32f3fd2f1ad3e22cc8908"
integrity sha512-76YanI/cEokjFWkyrAnHYI3ZtEfwDoeiZ35iGOs1mpUXrbHhnYXeTwxewzaJ6bQD8Z0TiBFdpJQhsnryWCfrEg==
dependencies:
"@wdio/config" "^5.7.2"
"@wdio/config" "^5.7.3"
"@wdio/logger" "^5.7.0"
"@wdio/repl" "^5.7.2"
"@wdio/repl" "^5.7.3"
css-value "^0.0.1"
grapheme-splitter "^1.0.2"
lodash.isobject "^3.0.2"
lodash.merge "^4.6.1"
lodash.zip "^4.2.0"
rgb2hex "^0.1.0"
serialize-error "^3.0.0"
webdriver "^5.7.2"
webdriver "^5.7.3"

webidl-conversions@^4.0.2:
version "4.0.2"
Expand Down

0 comments on commit 54cc993

Please sign in to comment.