Skip to content

Commit adeeb4d

Browse files
authored
Merge branch 'main' into bump-meilisearch-v0.21.0
2 parents c1f7512 + 18100a9 commit adeeb4d

File tree

5 files changed

+60
-15
lines changed

5 files changed

+60
-15
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
time: "04:00"
8-
open-pull-requests-limit: 10
9-
labels:
10-
- skip-changelog
11-
- dependencies
12-
versioning-strategy: increase
13-
rebase-strategy: disabled
14-
ignore:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
time: "04:00"
8+
open-pull-requests-limit: 10
9+
labels:
10+
- skip-changelog
11+
- dependencies
12+
versioning-strategy: increase
13+
rebase-strategy: disabled
14+
ignore:
1515
- dependency-name: "eslint*"
1616
- dependency-name: "babel-eslint"
1717
- dependency-name: "*prettier*"

.github/workflows/pre-release-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
name: integration-tests-against-rc (Node.js ${{ matrix.node }})
1818
steps:
1919
- uses: actions/checkout@v2
20+
- name: Cache dependencies
21+
uses: actions/cache@v2
22+
with:
23+
path: |
24+
./node_modules
25+
key: ${{ hashFiles('yarn.lock') }}
2026
- name: Setup node
2127
uses: actions/setup-node@v1
2228
with:

.github/workflows/tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
name: integration-tests (Node.js ${{ matrix.node }})
2323
steps:
2424
- uses: actions/checkout@v2
25+
- name: Cache dependencies
26+
uses: actions/cache@v2
27+
with:
28+
path: |
29+
./node_modules
30+
key: ${{ hashFiles('yarn.lock') }}
2531
- name: Setup node
2632
uses: actions/setup-node@v1
2733
with:
@@ -50,9 +56,19 @@ jobs:
5056
name: linter-check
5157
steps:
5258
- uses: actions/checkout@v2
59+
- name: Cache dependencies
60+
uses: actions/cache@v2
61+
with:
62+
path: |
63+
./node_modules
64+
key: ${{ hashFiles('yarn.lock') }}
5365
- name: Setup node
5466
uses: actions/setup-node@v1
5567
- name: Install dependencies
5668
run: yarn --dev
5769
- name: Run style check
5870
run: yarn style
71+
- name: yaml-lint
72+
uses: ibiqlik/action-yamllint@v3
73+
with:
74+
config_file: .yamllint.yml

.yamllint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: default
2+
ignore: |
3+
node_modules
4+
5+
rules:
6+
line-length: disable
7+
document-start: disable
8+
brackets: disable
9+
truthy: disable

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://res.cloudinary.com/meilisearch/image/upload/v1587402338/SDKs/meilisearch_js.svg" alt="MeiliSearch-JavaScript" width="200" height="200" />
2+
<img src="https://images.meilisearch.workers.dev/v1587402338/SDKs/meilisearch_js.svg" alt="MeiliSearch-JavaScript" width="200" height="200" />
33
</p>
44

55
<h1 align="center">MeiliSearch JavaScript</h1>
@@ -118,6 +118,20 @@ const client = new MeiliSearch({
118118

119119
To make this package work with React Native, please add the [react-native-url-polyfill](https://www.npmjs.com/package/react-native-url-polyfill).
120120

121+
#### Deno<!-- omit in toc -->
122+
123+
Usage in a back-end deno environment
124+
125+
```ts
126+
import { MeiliSearch } from "https://esm.sh/meilisearch"
127+
128+
const client = new MeiliSearch({
129+
host: 'http://127.0.0.1:7700',
130+
apiKey: 'masterKey',
131+
})
132+
```
133+
134+
121135
## 🎬 Getting Started
122136

123137
#### Add Documents <!-- omit in toc -->
@@ -328,7 +342,7 @@ If you want to know more about the development workflow or want to contribute, p
328342

329343
- Get an index:
330344

331-
`client.getIndex<T>(uid: string): Index<T>`
345+
`client.getIndex<T>(uid: string): Promise<Index<T>>`
332346

333347
- Get or create index if it does not exist
334348

@@ -340,7 +354,7 @@ If you want to know more about the development workflow or want to contribute, p
340354

341355
- Update Index:
342356

343-
`client.updateIndex(uid): Promise<Index>`
357+
`client.updateIndex(uid: string, options: IndexOptions): Promise<Index>`
344358
Or using the index object:
345359
`index.update(data: IndexOptions): Promise<Index>`
346360

0 commit comments

Comments
 (0)