Skip to content

Commit 2a91ea7

Browse files
authored
Release v7.2.0 (#16)
1 parent 2b31c76 commit 2a91ea7

27 files changed

+46
-33
lines changed

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
## Contents
88

99
- [Getting started](#getting-started-)
10+
- [Versioning](#versioning)
1011
- [Browser support](#browser-support)
1112
- [Usage](#usage)
1213
- [Running tests](#running-tests)
@@ -24,7 +25,7 @@
2425
The easiest way to install this client is to simply include the built distribution from the [jsDelivr](https://www.jsdelivr.com/) CDN.
2526

2627
```html
27-
<script src="https://cdn.jsdelivr.net/npm/@elastic/app-search-javascript@0.1.0/dist/elastic_app_search.umd.js"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/@elastic/app-search-javascript@7.2.0/dist/elastic_app_search.umd.js"></script>
2829
```
2930

3031
This will make the client available globally at:
@@ -51,6 +52,16 @@ var ElasticAppSearch = require("@elastic/app-search-javascript");
5152
import * as ElasticAppSearch from "@elastic/app-search-javascript";
5253
```
5354

55+
## Versioning
56+
57+
This client is versioned and released alongside App Search.
58+
59+
To guarantee compatibility, use the most recent version of this library within the major version of the corresponding App Search implementation.
60+
61+
For example, for App Search `7.3`, use `7.3` of this library or above, but not `8.0`.
62+
63+
If you are a [SaaS](https://app.swiftype.com/as) user, simply use the most recent version of this library.
64+
5465
## Browser support
5566

5667
The client is compatible with all modern browsers.
@@ -253,12 +264,14 @@ document.addEventListener("click", function(e) {
253264
```
254265

255266
```html
256-
<a href="/items/1234567"
257-
class="track-click"
258-
data-request-id="8b55561954484f13d872728f849ffd22"
259-
data-document-id="1234567"
260-
data-query="lion"
261-
data-tag="Animal">
267+
<a
268+
href="/items/1234567"
269+
class="track-click"
270+
data-request-id="8b55561954484f13d872728f849ffd22"
271+
data-document-id="1234567"
272+
data-query="lion"
273+
data-tag="Animal"
274+
>
262275
Item 1
263276
</a>
264277
```

fixtures/host-2376rb.api.swiftype.com-443/additional_headers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/search.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: bogus/format
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"cat\"}

fixtures/host-2376rb.api.swiftype.com-443/click_no_options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/click.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"tags\":[]}

fixtures/host-2376rb.api.swiftype.com-443/click_no_tags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/click.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"Cat\",\"document_id\":\"rex-cli\",\"request_id\":\"8b55561954484f13d872728f849ffd22\",\"tags\":[]}

fixtures/host-2376rb.api.swiftype.com-443/click_simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/click.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"Cat\",\"document_id\":\"rex-cli\",\"request_id\":\"8b55561954484f13d872728f849ffd22\",\"tags\":[\"Cat\"]}

fixtures/host-2376rb.api.swiftype.com-443/disjunctive_deps_also_license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/search.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"cat\",\"page\":{\"size\":0},\"filters\":{\"all\":[{\"license\":\"BSD\"}]},\"facets\":{\"dependencies\":[{\"type\":\"value\",\"size\":3}]},\"analytics\":{\"tags\":[\"Facet-Only\"]}}

fixtures/host-2376rb.api.swiftype.com-443/disjunctive_deps_also_license_no_array_syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/search.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"cat\",\"page\":{\"size\":0},\"filters\":{\"all\":[{\"dependencies\":\"socket.io\"}]},\"facets\":{\"license\":{\"type\":\"value\",\"size\":3}},\"analytics\":{\"tags\":[\"Facet-Only\"]}}

fixtures/host-2376rb.api.swiftype.com-443/disjunctive_license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/search.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"cat\",\"page\":{\"size\":0},\"filters\":{},\"facets\":{\"license\":[{\"type\":\"value\",\"size\":3}]},\"analytics\":{\"tags\":[\"Facet-Only\"]}}

fixtures/host-2376rb.api.swiftype.com-443/disjunctive_license_also_deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/search.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"cat\",\"page\":{\"size\":0},\"filters\":{\"all\":[{\"dependencies\":\"socket.io\"}]},\"facets\":{\"license\":[{\"type\":\"value\",\"size\":3}]},\"analytics\":{\"tags\":[\"Facet-Only\"]}}

fixtures/host-2376rb.api.swiftype.com-443/disjunctive_license_with_override_tags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POST /api/as/v1/engines/node-modules/search.json
22
authorization: Bearer api-hean6g8dmxnm2shqqiag757a
33
content-type: application/json
44
x-swiftype-client: elastic-app-search-javascript
5-
x-swiftype-client-version: 0.1.0
5+
x-swiftype-client-version: 7.2.0
66
accept: */*
77
accept-encoding: gzip,deflate
88
body: {\"query\":\"cat\",\"page\":{\"size\":0},\"filters\":{},\"facets\":{\"license\":[{\"type\":\"value\",\"size\":3}]},\"analytics\":{\"tags\":[\"FromSERP\",\"Disjunctive\"]}}

0 commit comments

Comments
 (0)