Skip to content

Commit 4ed4cc1

Browse files
committed
chore: add version
1 parent bb5337d commit 4ed4cc1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templates/javascript/clients/README.mustache

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ All of our clients comes with type definition, and are available for both browse
4444

4545

4646
```bash
47-
yarn add {{npmPackageName}}
47+
yarn add {{npmPackageName}}@{{{packageVersion}}}
4848
# or
49-
npm install {{npmPackageName}}
49+
npm install {{npmPackageName}}@{{{packageVersion}}}
5050
# or
51-
pnpm add {{npmPackageName}}
51+
pnpm add {{npmPackageName}}@{{{packageVersion}}}
5252
```
5353

5454
### Without a package manager
@@ -58,13 +58,13 @@ Add the following JavaScript snippet to the <head> of your website:
5858
```html
5959
{{#isAlgoliasearchClient}}
6060
// for the full client
61-
<script src="https://cdn.jsdelivr.net/npm/algoliasearch/dist/algoliasearch.umd.js"></script>
61+
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@{{{packageVersion}}}/dist/algoliasearch.umd.js"></script>
6262

6363
// for the lite client
64-
<script src="https://cdn.jsdelivr.net/npm/algoliasearch/dist/lite/builds/browser.umd.js"></script>
64+
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@{{{packageVersion}}}/dist/lite/builds/browser.umd.js"></script>
6565
{{/isAlgoliasearchClient}}
6666
{{^isAlgoliasearchClient}}
67-
<script src="https://cdn.jsdelivr.net/npm/{{{npmPackageName}}}/dist/builds/browser.umd.js"></script>
67+
<script src="https://cdn.jsdelivr.net/npm/{{{npmPackageName}}}@{{{packageVersion}}}/dist/builds/browser.umd.js"></script>
6868
{{/isAlgoliasearchClient}}
6969
```
7070

0 commit comments

Comments
 (0)