Skip to content

Commit b2006b2

Browse files
chore: release 5.54.0
Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com> Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com> Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
1 parent 8ddcdb3 commit b2006b2

203 files changed

Lines changed: 5960 additions & 1379 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/Bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ body:
3131
options:
3232
- All
3333
- AB testing
34+
- Agent Studio
3435
- Analytics
3536
- Ingestion
3637
- Insights

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [5.54.0](https://github.com/algolia/algoliasearch-client-javascript/compare/5.53.0...5.54.0)
2+
3+
- [e6753bc802](https://github.com/algolia/api-clients-automation/commit/e6753bc802) chore(deps): dependencies 2026-06-01 ([#6476](https://github.com/algolia/api-clients-automation/pull/6476)) by [@algolia-bot](https://github.com/algolia-bot/)
4+
- [7f2ce8cd3a](https://github.com/algolia/api-clients-automation/commit/7f2ce8cd3a) feat(clients): Agent Studio v1 ([#6097](https://github.com/algolia/api-clients-automation/pull/6097)) by [@Fluf22](https://github.com/Fluf22/)
5+
16
## [5.53.0](https://github.com/algolia/algoliasearch-client-javascript/compare/5.52.1...5.53.0)
27

38
BREAKING CHANGES: this minor version includes breaking changes. See below for more details.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ All of our clients comes with type definition, and are available for both browse
3737
### With a package manager
3838

3939
```bash
40-
yarn add algoliasearch@5.53.0
40+
yarn add algoliasearch@5.54.0
4141
# or
42-
npm install algoliasearch@5.53.0
42+
npm install algoliasearch@5.54.0
4343
# or
44-
pnpm add algoliasearch@5.53.0
44+
pnpm add algoliasearch@5.54.0
4545
```
4646

4747
### Without a package manager
@@ -50,10 +50,10 @@ Add the following JavaScript snippet to the <head> of your website:
5050

5151
```html
5252
// for the full client
53-
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.53.0/dist/algoliasearch.umd.js"></script>
53+
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.54.0/dist/algoliasearch.umd.js"></script>
5454

5555
// for the lite client
56-
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.53.0/dist/lite/builds/browser.umd.js"></script>
56+
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@5.54.0/dist/lite/builds/browser.umd.js"></script>
5757
```
5858

5959
### Usage

package.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"packages/*"
88
],
99
"scripts": {
10-
"build": "lerna run build --scope '@algolia/requester-testing' --scope '@algolia/logger-console' --scope 'algoliasearch' --scope '@algolia/composition' --scope '@algolia/advanced-personalization' --include-dependencies",
10+
"build": "lerna run build --scope '@algolia/requester-testing' --scope '@algolia/logger-console' --scope 'algoliasearch' --scope '@algolia/composition' --scope '@algolia/advanced-personalization' --scope '@algolia/agent-studio' --include-dependencies",
1111
"clean": "lerna run clean",
1212
"release:publish": "lerna publish from-package --yes",
1313
"release:publish:old": "tsc --project scripts/tsconfig.json && node scripts/dist/publish.js",
@@ -27,55 +27,59 @@
2727
"files": [
2828
{
2929
"path": "packages/algoliasearch/dist/algoliasearch.umd.js",
30-
"maxSize": "14.9KB"
30+
"maxSize": "17KB"
3131
},
3232
{
3333
"path": "packages/algoliasearch/dist/lite/builds/browser.umd.js",
34-
"maxSize": "4.2KB"
34+
"maxSize": "6KB"
3535
},
3636
{
3737
"path": "packages/abtesting/dist/builds/browser.umd.js",
38-
"maxSize": "4.5KB"
38+
"maxSize": "6KB"
3939
},
4040
{
4141
"path": "packages/client-abtesting/dist/builds/browser.umd.js",
42-
"maxSize": "4.4KB"
42+
"maxSize": "6KB"
4343
},
4444
{
4545
"path": "packages/client-analytics/dist/builds/browser.umd.js",
46-
"maxSize": "5.1KB"
46+
"maxSize": "6KB"
4747
},
4848
{
4949
"path": "packages/composition/dist/builds/browser.umd.js",
50-
"maxSize": "5.0KB"
50+
"maxSize": "6KB"
5151
},
5252
{
5353
"path": "packages/client-insights/dist/builds/browser.umd.js",
54-
"maxSize": "4.2KB"
54+
"maxSize": "6KB"
5555
},
5656
{
5757
"path": "packages/client-personalization/dist/builds/browser.umd.js",
58-
"maxSize": "4.3KB"
58+
"maxSize": "6KB"
5959
},
6060
{
6161
"path": "packages/client-query-suggestions/dist/builds/browser.umd.js",
62-
"maxSize": "4.3KB"
62+
"maxSize": "6KB"
6363
},
6464
{
6565
"path": "packages/client-search/dist/builds/browser.umd.js",
66-
"maxSize": "7.7KB"
66+
"maxSize": "9KB"
6767
},
6868
{
6969
"path": "packages/ingestion/dist/builds/browser.umd.js",
70-
"maxSize": "7.1KB"
70+
"maxSize": "8KB"
7171
},
7272
{
7373
"path": "packages/monitoring/dist/builds/browser.umd.js",
74-
"maxSize": "4.3KB"
74+
"maxSize": "6KB"
7575
},
7676
{
7777
"path": "packages/recommend/dist/builds/browser.umd.js",
78-
"maxSize": "4.5KB"
78+
"maxSize": "6KB"
79+
},
80+
{
81+
"path": "packages/agent-studio/dist/builds/browser.umd.js",
82+
"maxSize": "8KB"
7983
}
8084
]
8185
},

packages/abtesting/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ All of our clients comes with type definition, and are available for both browse
4040
### With a package manager
4141

4242
```bash
43-
yarn add @algolia/abtesting@1.19.0
43+
yarn add @algolia/abtesting@1.20.0
4444
# or
45-
npm install @algolia/abtesting@1.19.0
45+
npm install @algolia/abtesting@1.20.0
4646
# or
47-
pnpm add @algolia/abtesting@1.19.0
47+
pnpm add @algolia/abtesting@1.20.0
4848
```
4949

5050
### Without a package manager
5151

5252
Add the following JavaScript snippet to the <head> of your website:
5353

5454
```html
55-
<script src="https://cdn.jsdelivr.net/npm/@algolia/abtesting@1.19.0/dist/builds/browser.umd.js"></script>
55+
<script src="https://cdn.jsdelivr.net/npm/@algolia/abtesting@1.20.0/dist/builds/browser.umd.js"></script>
5656
```
5757

5858
### Usage

packages/abtesting/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.19.0",
2+
"version": "1.20.0",
33
"repository": {
44
"type": "git",
55
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
@@ -54,10 +54,10 @@
5454
"index.d.ts"
5555
],
5656
"dependencies": {
57-
"@algolia/client-common": "5.53.0",
58-
"@algolia/requester-browser-xhr": "5.53.0",
59-
"@algolia/requester-fetch": "5.53.0",
60-
"@algolia/requester-node-http": "5.53.0"
57+
"@algolia/client-common": "5.54.0",
58+
"@algolia/requester-browser-xhr": "5.54.0",
59+
"@algolia/requester-fetch": "5.54.0",
60+
"@algolia/requester-node-http": "5.54.0"
6161
},
6262
"devDependencies": {
6363
"@arethetypeswrong/cli": "0.18.2",

packages/abtesting/src/abtestingV3Client.ts

Lines changed: 18 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
Request,
99
RequestOptions,
1010
} from '@algolia/client-common';
11-
import { createAuth, createTransporter, getAlgoliaAgent } from '@algolia/client-common';
11+
import { createAuth, createTransporter, getAlgoliaAgent, validateRequired } from '@algolia/client-common';
1212

1313
import type { ABTest } from '../model/aBTest';
1414
import type { ABTestResponse } from '../model/aBTestResponse';
@@ -30,7 +30,7 @@ import type {
3030
StopABTestProps,
3131
} from '../model/clientMethodProps';
3232

33-
export const apiClientVersion = '1.19.0';
33+
export const apiClientVersion = '1.20.0';
3434

3535
export const REGIONS = ['de', 'us'] as const;
3636
export type Region = (typeof REGIONS)[number];
@@ -130,22 +130,12 @@ export function createAbtestingV3Client({
130130
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
131131
*/
132132
addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse> {
133-
if (!addABTestsRequest) {
134-
throw new Error('Parameter `addABTestsRequest` is required when calling `addABTests`.');
135-
}
133+
validateRequired('addABTestsRequest', 'addABTests', addABTestsRequest);
136134

137-
if (!addABTestsRequest.name) {
138-
throw new Error('Parameter `addABTestsRequest.name` is required when calling `addABTests`.');
139-
}
140-
if (!addABTestsRequest.variants) {
141-
throw new Error('Parameter `addABTestsRequest.variants` is required when calling `addABTests`.');
142-
}
143-
if (!addABTestsRequest.metrics) {
144-
throw new Error('Parameter `addABTestsRequest.metrics` is required when calling `addABTests`.');
145-
}
146-
if (!addABTestsRequest.endAt) {
147-
throw new Error('Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.');
148-
}
135+
validateRequired('addABTestsRequest.name', 'addABTests', addABTestsRequest.name);
136+
validateRequired('addABTestsRequest.variants', 'addABTests', addABTestsRequest.variants);
137+
validateRequired('addABTestsRequest.metrics', 'addABTests', addABTestsRequest.metrics);
138+
validateRequired('addABTestsRequest.endAt', 'addABTests', addABTestsRequest.endAt);
149139

150140
const requestPath = '/3/abtests';
151141
const headers: Headers = {};
@@ -173,9 +163,7 @@ export function createAbtestingV3Client({
173163
{ path, parameters }: CustomDeleteProps,
174164
requestOptions?: RequestOptions,
175165
): Promise<Record<string, unknown>> {
176-
if (!path) {
177-
throw new Error('Parameter `path` is required when calling `customDelete`.');
178-
}
166+
validateRequired('path', 'customDelete', path);
179167

180168
const requestPath = '/{path}'.replace('{path}', path);
181169
const headers: Headers = {};
@@ -199,9 +187,7 @@ export function createAbtestingV3Client({
199187
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
200188
*/
201189
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>> {
202-
if (!path) {
203-
throw new Error('Parameter `path` is required when calling `customGet`.');
204-
}
190+
validateRequired('path', 'customGet', path);
205191

206192
const requestPath = '/{path}'.replace('{path}', path);
207193
const headers: Headers = {};
@@ -229,9 +215,7 @@ export function createAbtestingV3Client({
229215
{ path, parameters, body }: CustomPostProps,
230216
requestOptions?: RequestOptions,
231217
): Promise<Record<string, unknown>> {
232-
if (!path) {
233-
throw new Error('Parameter `path` is required when calling `customPost`.');
234-
}
218+
validateRequired('path', 'customPost', path);
235219

236220
const requestPath = '/{path}'.replace('{path}', path);
237221
const headers: Headers = {};
@@ -260,9 +244,7 @@ export function createAbtestingV3Client({
260244
{ path, parameters, body }: CustomPutProps,
261245
requestOptions?: RequestOptions,
262246
): Promise<Record<string, unknown>> {
263-
if (!path) {
264-
throw new Error('Parameter `path` is required when calling `customPut`.');
265-
}
247+
validateRequired('path', 'customPut', path);
266248

267249
const requestPath = '/{path}'.replace('{path}', path);
268250
const headers: Headers = {};
@@ -289,9 +271,7 @@ export function createAbtestingV3Client({
289271
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
290272
*/
291273
deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse> {
292-
if (!id) {
293-
throw new Error('Parameter `id` is required when calling `deleteABTest`.');
294-
}
274+
validateRequired('id', 'deleteABTest', id);
295275

296276
const requestPath = '/3/abtests/{id}'.replace('{id}', encodeURIComponent(id));
297277
const headers: Headers = {};
@@ -319,16 +299,10 @@ export function createAbtestingV3Client({
319299
estimateABTestRequest: EstimateABTestRequest,
320300
requestOptions?: RequestOptions,
321301
): Promise<EstimateABTestResponse> {
322-
if (!estimateABTestRequest) {
323-
throw new Error('Parameter `estimateABTestRequest` is required when calling `estimateABTest`.');
324-
}
302+
validateRequired('estimateABTestRequest', 'estimateABTest', estimateABTestRequest);
325303

326-
if (!estimateABTestRequest.configuration) {
327-
throw new Error('Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.');
328-
}
329-
if (!estimateABTestRequest.variants) {
330-
throw new Error('Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.');
331-
}
304+
validateRequired('estimateABTestRequest.configuration', 'estimateABTest', estimateABTestRequest.configuration);
305+
validateRequired('estimateABTestRequest.variants', 'estimateABTest', estimateABTestRequest.variants);
332306

333307
const requestPath = '/3/abtests/estimate';
334308
const headers: Headers = {};
@@ -355,9 +329,7 @@ export function createAbtestingV3Client({
355329
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
356330
*/
357331
getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest> {
358-
if (!id) {
359-
throw new Error('Parameter `id` is required when calling `getABTest`.');
360-
}
332+
validateRequired('id', 'getABTest', id);
361333

362334
const requestPath = '/3/abtests/{id}'.replace('{id}', encodeURIComponent(id));
363335
const headers: Headers = {};
@@ -389,9 +361,7 @@ export function createAbtestingV3Client({
389361
{ id, startDate, endDate, metric }: GetTimeseriesProps,
390362
requestOptions?: RequestOptions,
391363
): Promise<Timeseries> {
392-
if (!id) {
393-
throw new Error('Parameter `id` is required when calling `getTimeseries`.');
394-
}
364+
validateRequired('id', 'getTimeseries', id);
395365

396366
const requestPath = '/3/abtests/{id}/timeseries'.replace('{id}', encodeURIComponent(id));
397367
const headers: Headers = {};
@@ -480,9 +450,7 @@ export function createAbtestingV3Client({
480450
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
481451
*/
482452
stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse> {
483-
if (!id) {
484-
throw new Error('Parameter `id` is required when calling `stopABTest`.');
485-
}
453+
validateRequired('id', 'stopABTest', id);
486454

487455
const requestPath = '/3/abtests/{id}/stop'.replace('{id}', encodeURIComponent(id));
488456
const headers: Headers = {};

packages/advanced-personalization/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ All of our clients comes with type definition, and are available for both browse
4040
### With a package manager
4141

4242
```bash
43-
yarn add @algolia/advanced-personalization@0.0.1-alpha.39
43+
yarn add @algolia/advanced-personalization@0.0.1-alpha.40
4444
# or
45-
npm install @algolia/advanced-personalization@0.0.1-alpha.39
45+
npm install @algolia/advanced-personalization@0.0.1-alpha.40
4646
# or
47-
pnpm add @algolia/advanced-personalization@0.0.1-alpha.39
47+
pnpm add @algolia/advanced-personalization@0.0.1-alpha.40
4848
```
4949

5050
### Without a package manager
5151

5252
Add the following JavaScript snippet to the <head> of your website:
5353

5454
```html
55-
<script src="https://cdn.jsdelivr.net/npm/@algolia/advanced-personalization@0.0.1-alpha.39/dist/builds/browser.umd.js"></script>
55+
<script src="https://cdn.jsdelivr.net/npm/@algolia/advanced-personalization@0.0.1-alpha.40/dist/builds/browser.umd.js"></script>
5656
```
5757

5858
### Usage

packages/advanced-personalization/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.1-alpha.39",
2+
"version": "0.0.1-alpha.40",
33
"repository": {
44
"type": "git",
55
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
@@ -54,10 +54,10 @@
5454
"index.d.ts"
5555
],
5656
"dependencies": {
57-
"@algolia/client-common": "5.53.0",
58-
"@algolia/requester-browser-xhr": "5.53.0",
59-
"@algolia/requester-fetch": "5.53.0",
60-
"@algolia/requester-node-http": "5.53.0"
57+
"@algolia/client-common": "5.54.0",
58+
"@algolia/requester-browser-xhr": "5.54.0",
59+
"@algolia/requester-fetch": "5.54.0",
60+
"@algolia/requester-node-http": "5.54.0"
6161
},
6262
"devDependencies": {
6363
"@arethetypeswrong/cli": "0.18.2",

0 commit comments

Comments
 (0)