Skip to content

Commit 2338f20

Browse files
feat(javascript): prepare composition for stable release (#4782) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent b61b6fe commit 2338f20

File tree

40 files changed

+114
-114
lines changed

40 files changed

+114
-114
lines changed

clients/algoliasearch-client-javascript/packages/client-composition/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ All of our clients comes with type definition, and are available for both browse
4141
### With a package manager
4242

4343
```bash
44-
yarn add @algolia/[email protected]-alpha.21
44+
yarn add @algolia/[email protected]
4545
# or
46-
npm install @algolia/[email protected]-alpha.21
46+
npm install @algolia/[email protected]
4747
# or
48-
pnpm add @algolia/[email protected]-alpha.21
48+
pnpm add @algolia/[email protected]
4949
```
5050

5151
### Without a package manager
5252

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

5555
```html
56-
<script src="https://cdn.jsdelivr.net/npm/@algolia/[email protected]-alpha.21/dist/builds/browser.umd.js"></script>
56+
<script src="https://cdn.jsdelivr.net/npm/@algolia/[email protected]/dist/builds/browser.umd.js"></script>
5757
```
5858

5959
### Usage

clients/algoliasearch-client-javascript/packages/client-composition/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"dependencies": {
5252
"@algolia/client-common": "5.23.4",
5353
"@algolia/requester-browser-xhr": "5.23.4",
54-
"@algolia/requester-node-http": "5.23.4",
55-
"@algolia/requester-fetch": "5.23.4"
54+
"@algolia/requester-fetch": "5.23.4",
55+
"@algolia/requester-node-http": "5.23.4"
5656
},
5757
"devDependencies": {
5858
"@arethetypeswrong/cli": "0.17.4",

clients/algoliasearch-client-javascript/packages/client-composition/src/compositionFullClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import type {
4141
WaitForCompositionTaskOptions,
4242
} from '../model/clientMethodProps';
4343

44-
export const apiClientVersion = '0.0.1-alpha.21';
44+
export const apiClientVersion = '0.0.1';
4545

4646
function getDefaultHosts(appId: string): Host[] {
4747
return (

clients/algoliasearch-client-javascript/packages/composition/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ All of our clients comes with type definition, and are available for both browse
4141
### With a package manager
4242

4343
```bash
44-
yarn add @algolia/[email protected]-beta.13
44+
yarn add @algolia/[email protected]
4545
# or
46-
npm install @algolia/[email protected]-beta.13
46+
npm install @algolia/[email protected]
4747
# or
48-
pnpm add @algolia/[email protected]-beta.13
48+
pnpm add @algolia/[email protected]
4949
```
5050

5151
### Without a package manager
5252

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

5555
```html
56-
<script src="https://cdn.jsdelivr.net/npm/@algolia/[email protected]-beta.13/dist/builds/browser.umd.js"></script>
56+
<script src="https://cdn.jsdelivr.net/npm/@algolia/[email protected]/dist/builds/browser.umd.js"></script>
5757
```
5858

5959
### Usage

clients/algoliasearch-client-javascript/packages/composition/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"dependencies": {
5252
"@algolia/client-common": "5.23.4",
5353
"@algolia/requester-browser-xhr": "5.23.4",
54-
"@algolia/requester-node-http": "5.23.4",
55-
"@algolia/requester-fetch": "5.23.4"
54+
"@algolia/requester-fetch": "5.23.4",
55+
"@algolia/requester-node-http": "5.23.4"
5656
},
5757
"devDependencies": {
5858
"@arethetypeswrong/cli": "0.17.4",

clients/algoliasearch-client-javascript/packages/composition/src/compositionClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { SearchResponse } from '../model/searchResponse';
1515

1616
import type { SearchForFacetValuesProps, SearchProps } from '../model/clientMethodProps';
1717

18-
export const apiClientVersion = '0.0.1-beta.13';
18+
export const apiClientVersion = '0.0.1';
1919

2020
function getDefaultHosts(appId: string): Host[] {
2121
return (

docs/bundled/insights-snippets.json

+11-11
Large diffs are not rendered by default.

docs/snippets/csharp/src/Insights.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public async Task SnippetForInsightsClientPushEvents1()
509509
Index = "products",
510510
UserToken = "user-123456",
511511
AuthenticatedUserToken = "user-123456",
512-
Timestamp = 1745193600000L,
512+
Timestamp = 1745452800000L,
513513
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
514514
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
515515
}
@@ -522,7 +522,7 @@ public async Task SnippetForInsightsClientPushEvents1()
522522
Index = "products",
523523
UserToken = "user-123456",
524524
AuthenticatedUserToken = "user-123456",
525-
Timestamp = 1745193600000L,
525+
Timestamp = 1745452800000L,
526526
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
527527
}
528528
),

docs/snippets/dart/lib/insights.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ void snippetForpushEvents1() async {
566566
index: "products",
567567
userToken: "user-123456",
568568
authenticatedUserToken: "user-123456",
569-
timestamp: 1745193600000,
569+
timestamp: 1745452800000,
570570
objectIDs: [
571571
"9780545139700",
572572
"9780439784542",
@@ -579,7 +579,7 @@ void snippetForpushEvents1() async {
579579
index: "products",
580580
userToken: "user-123456",
581581
authenticatedUserToken: "user-123456",
582-
timestamp: 1745193600000,
582+
timestamp: 1745452800000,
583583
objectIDs: [
584584
"9780545139700",
585585
"9780439784542",

docs/snippets/go/src/insights.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/snippets/java/src/test/java/com/algolia/Insights.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ void snippetForPushEvents1() throws Exception {
490490
.setIndex("products")
491491
.setUserToken("user-123456")
492492
.setAuthenticatedUserToken("user-123456")
493-
.setTimestamp(1745193600000L)
493+
.setTimestamp(1745452800000L)
494494
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
495495
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
496496
new ViewedObjectIDs()
@@ -499,7 +499,7 @@ void snippetForPushEvents1() throws Exception {
499499
.setIndex("products")
500500
.setUserToken("user-123456")
501501
.setAuthenticatedUserToken("user-123456")
502-
.setTimestamp(1745193600000L)
502+
.setTimestamp(1745452800000L)
503503
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
504504
)
505505
)

docs/snippets/javascript/src/insights.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export async function snippetForPushEvents1(): Promise<void> {
453453
index: 'products',
454454
userToken: 'user-123456',
455455
authenticatedUserToken: 'user-123456',
456-
timestamp: 1745193600000,
456+
timestamp: 1745452800000,
457457
objectIDs: ['9780545139700', '9780439784542'],
458458
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
459459
},
@@ -463,7 +463,7 @@ export async function snippetForPushEvents1(): Promise<void> {
463463
index: 'products',
464464
userToken: 'user-123456',
465465
authenticatedUserToken: 'user-123456',
466-
timestamp: 1745193600000,
466+
timestamp: 1745452800000,
467467
objectIDs: ['9780545139700', '9780439784542'],
468468
},
469469
],

docs/snippets/kotlin/src/main/kotlin/com/algolia/snippets/Insights.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class SnippetInsightsClient {
533533
index = "products",
534534
userToken = "user-123456",
535535
authenticatedUserToken = "user-123456",
536-
timestamp = 1745193600000L,
536+
timestamp = 1745452800000L,
537537
objectIDs = listOf("9780545139700", "9780439784542"),
538538
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
539539
),
@@ -543,7 +543,7 @@ class SnippetInsightsClient {
543543
index = "products",
544544
userToken = "user-123456",
545545
authenticatedUserToken = "user-123456",
546-
timestamp = 1745193600000L,
546+
timestamp = 1745452800000L,
547547
objectIDs = listOf("9780545139700", "9780439784542"),
548548
),
549549
),

docs/snippets/php/src/Insights.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public function snippetForPushEvents1(): void
589589
'index' => 'products',
590590
'userToken' => 'user-123456',
591591
'authenticatedUserToken' => 'user-123456',
592-
'timestamp' => 1745193600000,
592+
'timestamp' => 1745452800000,
593593
'objectIDs' => [
594594
'9780545139700',
595595

@@ -603,7 +603,7 @@ public function snippetForPushEvents1(): void
603603
'index' => 'products',
604604
'userToken' => 'user-123456',
605605
'authenticatedUserToken' => 'user-123456',
606-
'timestamp' => 1745193600000,
606+
'timestamp' => 1745452800000,
607607
'objectIDs' => [
608608
'9780545139700',
609609

docs/snippets/python/insights.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def snippet_for_push_events1():
634634
"index": "products",
635635
"userToken": "user-123456",
636636
"authenticatedUserToken": "user-123456",
637-
"timestamp": 1745193600000,
637+
"timestamp": 1745452800000,
638638
"objectIDs": [
639639
"9780545139700",
640640
"9780439784542",
@@ -647,7 +647,7 @@ def snippet_for_push_events1():
647647
"index": "products",
648648
"userToken": "user-123456",
649649
"authenticatedUserToken": "user-123456",
650-
"timestamp": 1745193600000,
650+
"timestamp": 1745452800000,
651651
"objectIDs": [
652652
"9780545139700",
653653
"9780439784542",

docs/snippets/ruby/insights.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def snippet_for_push_events1
487487
index: "products",
488488
user_token: "user-123456",
489489
authenticated_user_token: "user-123456",
490-
timestamp: 1745193600000,
490+
timestamp: 1745452800000,
491491
object_ids: ["9780545139700", "9780439784542"],
492492
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
493493
),
@@ -497,7 +497,7 @@ def snippet_for_push_events1
497497
index: "products",
498498
user_token: "user-123456",
499499
authenticated_user_token: "user-123456",
500-
timestamp: 1745193600000,
500+
timestamp: 1745452800000,
501501
object_ids: ["9780545139700", "9780439784542"]
502502
)
503503
]

docs/snippets/scala/src/main/scala/Insights.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ class SnippetInsightsClient {
623623
index = "products",
624624
userToken = "user-123456",
625625
authenticatedUserToken = Some("user-123456"),
626-
timestamp = Some(1745193600000L),
626+
timestamp = Some(1745452800000L),
627627
objectIDs = Seq("9780545139700", "9780439784542"),
628628
queryID = "43b15df305339e827f0ac0bdc5ebcaa7"
629629
),
@@ -633,7 +633,7 @@ class SnippetInsightsClient {
633633
index = "products",
634634
userToken = "user-123456",
635635
authenticatedUserToken = Some("user-123456"),
636-
timestamp = Some(1745193600000L),
636+
timestamp = Some(1745452800000L),
637637
objectIDs = Seq("9780545139700", "9780439784542")
638638
)
639639
)

docs/snippets/swift/Sources/Insights.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ final class InsightsClientSnippet {
401401
queryID: "43b15df305339e827f0ac0bdc5ebcaa7",
402402
userToken: "user-123456",
403403
authenticatedUserToken: "user-123456",
404-
timestamp: Int64(1_745_193_600_000)
404+
timestamp: Int64(1_745_452_800_000)
405405
)),
406406
EventsItems.viewedObjectIDs(ViewedObjectIDs(
407407
eventName: "Product Detail Page Viewed",
@@ -410,7 +410,7 @@ final class InsightsClientSnippet {
410410
objectIDs: ["9780545139700", "9780439784542"],
411411
userToken: "user-123456",
412412
authenticatedUserToken: "user-123456",
413-
timestamp: Int64(1_745_193_600_000)
413+
timestamp: Int64(1_745_452_800_000)
414414
)),
415415
]))
416416
// >LOG

tests/output/csharp/src/generated/e2e/Insights.test.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task PushEventsTest1()
6363
Index = "products",
6464
UserToken = "user-123456",
6565
AuthenticatedUserToken = "user-123456",
66-
Timestamp = 1745193600000L,
66+
Timestamp = 1745452800000L,
6767
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
6868
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
6969
}
@@ -76,7 +76,7 @@ public async Task PushEventsTest1()
7676
Index = "products",
7777
UserToken = "user-123456",
7878
AuthenticatedUserToken = "user-123456",
79-
Timestamp = 1745193600000L,
79+
Timestamp = 1745452800000L,
8080
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
8181
}
8282
),

tests/output/csharp/src/generated/requests/Insights.test.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ await client.PushEventsAsync(
580580
Index = "products",
581581
UserToken = "user-123456",
582582
AuthenticatedUserToken = "user-123456",
583-
Timestamp = 1745193600000L,
583+
Timestamp = 1745452800000L,
584584
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
585585
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
586586
}
@@ -593,7 +593,7 @@ await client.PushEventsAsync(
593593
Index = "products",
594594
UserToken = "user-123456",
595595
AuthenticatedUserToken = "user-123456",
596-
Timestamp = 1745193600000L,
596+
Timestamp = 1745452800000L,
597597
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
598598
}
599599
),
@@ -605,7 +605,7 @@ await client.PushEventsAsync(
605605
Assert.Equal("/1/events", req.Path);
606606
Assert.Equal("POST", req.Method.ToString());
607607
JsonAssert.EqualOverrideDefault(
608-
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1745193600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1745193600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
608+
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1745452800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1745452800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
609609
req.Body,
610610
new JsonDiffConfig(false)
611611
);

tests/output/dart/test/requests/insights_test.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ void main() {
625625
index: "products",
626626
userToken: "user-123456",
627627
authenticatedUserToken: "user-123456",
628-
timestamp: 1745193600000,
628+
timestamp: 1745452800000,
629629
objectIDs: [
630630
"9780545139700",
631631
"9780439784542",
@@ -638,7 +638,7 @@ void main() {
638638
index: "products",
639639
userToken: "user-123456",
640640
authenticatedUserToken: "user-123456",
641-
timestamp: 1745193600000,
641+
timestamp: 1745452800000,
642642
objectIDs: [
643643
"9780545139700",
644644
"9780439784542",
@@ -651,7 +651,7 @@ void main() {
651651
expectPath(request.path, '/1/events');
652652
expect(request.method, 'post');
653653
expectBody(request.body,
654-
"""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1745193600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1745193600000,"objectIDs":["9780545139700","9780439784542"]}]}""");
654+
"""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1745452800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1745452800000,"objectIDs":["9780545139700","9780439784542"]}]}""");
655655
},
656656
),
657657
);

tests/output/go/tests/e2e/insights_test.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)