From 73cb01929180a10f9a0a630114900cfc22074fd7 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 22 Jan 2025 19:41:38 +0100 Subject: [PATCH 01/13] chore: more guides --- .../requests/search/searchSingleIndex.json | 51 +++++++++++++++++++ tests/CTS/requests/search/setSettings.json | 21 ++++++++ 2 files changed, 72 insertions(+) diff --git a/tests/CTS/requests/search/searchSingleIndex.json b/tests/CTS/requests/search/searchSingleIndex.json index 25efe5ea59..ed03a42e25 100644 --- a/tests/CTS/requests/search/searchSingleIndex.json +++ b/tests/CTS/requests/search/searchSingleIndex.json @@ -353,6 +353,57 @@ } } }, + { + "testName": "facet author genre", + "isSnippet": true, + "parameters": { + "indexName": "indexName", + "searchParams": { + "facets":["author","genre"] + } + }, + "request": { + "path": "/1/indexes/indexName/query", + "method": "POST", + "body": { + "facets":["author","genre"] + } + } + }, + { + "testName": "facet wildcard", + "isSnippet": true, + "parameters": { + "indexName": "indexName", + "searchParams": { + "facets":["*"] + } + }, + "request": { + "path": "/1/indexes/indexName/query", + "method": "POST", + "body": { + "facets":["*"] + } + } + }, + { + "testName": "maxValuesPerFacet", + "isSnippet": true, + "parameters": { + "indexName": "indexName", + "searchParams": { + "maxValuesPerFacet":1000 + } + }, + "request": { + "path": "/1/indexes/indexName/query", + "method": "POST", + "body": { + "maxValuesPerFacet":1000 + } + } + }, { "testName": "aroundLatLng", "isSnippet": true, diff --git a/tests/CTS/requests/search/setSettings.json b/tests/CTS/requests/search/setSettings.json index 3ba3be1a8e..d7b7cb165e 100644 --- a/tests/CTS/requests/search/setSettings.json +++ b/tests/CTS/requests/search/setSettings.json @@ -810,6 +810,27 @@ } } }, + { + "testName": "create virtual replica index", + "isSnippet": true, + "parameters": { + "indexName": "theIndexName", + "indexSettings": { + "replicas": [ + "virtual(products_price_desc)" + ] + } + }, + "request": { + "path": "/1/indexes/theIndexName/settings", + "method": "PUT", + "body": { + "replicas": [ + "products_price_desc" + ] + } + } + }, { "testName": "unlink replica index", "isSnippet": true, From 5845cb68c02e9002621976c77bb209ee225ec998 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 22 Jan 2025 22:04:45 +0100 Subject: [PATCH 02/13] fix: assertion --- .../requests/search/searchForFacetValues.json | 17 +++++++++++++++++ tests/CTS/requests/search/setSettings.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/CTS/requests/search/searchForFacetValues.json b/tests/CTS/requests/search/searchForFacetValues.json index 8dd92948f2..64b65017fb 100644 --- a/tests/CTS/requests/search/searchForFacetValues.json +++ b/tests/CTS/requests/search/searchForFacetValues.json @@ -30,5 +30,22 @@ "maxFacetHits": 42 } } + }, + { + "testName": "facetName and facetQuery", + "parameters": { + "indexName": "indexName", + "facetName": "author", + "searchForFacetValuesRequest": { + "facetQuery": "stephen king" + } + }, + "request": { + "path": "/1/indexes/indexName/facets/author/query", + "method": "POST", + "body": { + "facetQuery": "stephen king" + } + } } ] diff --git a/tests/CTS/requests/search/setSettings.json b/tests/CTS/requests/search/setSettings.json index d7b7cb165e..142c30b79e 100644 --- a/tests/CTS/requests/search/setSettings.json +++ b/tests/CTS/requests/search/setSettings.json @@ -826,7 +826,7 @@ "method": "PUT", "body": { "replicas": [ - "products_price_desc" + "virtual(products_price_desc)" ] } } From cfdc6956c798d064f01c428226275e65e667aed4 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 10:29:28 +0100 Subject: [PATCH 03/13] chore: isSnippet everything --- .../src/main/java/com/algolia/codegen/cts/tests/Snippet.java | 3 --- .../java/com/algolia/codegen/cts/tests/SnippetsGenerator.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/generators/src/main/java/com/algolia/codegen/cts/tests/Snippet.java b/generators/src/main/java/com/algolia/codegen/cts/tests/Snippet.java index 4e03f1628f..695c8b0200 100644 --- a/generators/src/main/java/com/algolia/codegen/cts/tests/Snippet.java +++ b/generators/src/main/java/com/algolia/codegen/cts/tests/Snippet.java @@ -12,7 +12,6 @@ public class Snippet { public String testName; - public boolean isSnippet; public String method; public Map parameters; @@ -21,7 +20,6 @@ public class Snippet { public Snippet(String method, String testName, Map parameters) { this.method = method; this.testName = testName; - this.isSnippet = true; this.parameters = parameters; } @@ -32,7 +30,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Request {\n"); sb.append(" testName: ").append(testName).append("\n"); - sb.append(" isSnippet").append(isSnippet).append("\n"); sb.append(" method: ").append(method).append("\n"); sb.append(" parameters: ").append(parameters).append("\n"); sb.append(" requestOptions: ").append(requestOptions).append("\n"); diff --git a/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java b/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java index 61501f0c94..605ef25b9f 100644 --- a/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java +++ b/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java @@ -101,7 +101,7 @@ public void run(Map models, Map continue; } - List ops = Arrays.stream(snippets.get(operationId)).filter(r -> r.isSnippet).toList(); + List ops = Arrays.stream(snippets.get(operationId)).toList(); if (ops.size() == 0) { // default to the first test ops = List.of(snippets.get(operationId)[0]); From 885f351e66a494c00ea8a90ddb60859e14e2a242 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 11:10:34 +0100 Subject: [PATCH 04/13] chore: csharp --- templates/csharp/snippets/import.mustache | 1 + tests/CTS/requests/search/batch.json | 7 - .../search/batchDictionaryEntries.json | 3 - tests/CTS/requests/search/listIndices.json | 1 - tests/CTS/requests/search/operationIndex.json | 3 - .../requests/search/partialUpdateObject.json | 2 - tests/CTS/requests/search/saveRule.json | 18 - tests/CTS/requests/search/search.json | 6 - .../requests/search/searchSingleIndex.json | 34 - tests/CTS/requests/search/setSettings.json | 49 -- tests/output/javascript/yarn.lock | 646 ++++++++++-------- 11 files changed, 354 insertions(+), 416 deletions(-) diff --git a/templates/csharp/snippets/import.mustache b/templates/csharp/snippets/import.mustache index 12bb00502e..3a2887f583 100644 --- a/templates/csharp/snippets/import.mustache +++ b/templates/csharp/snippets/import.mustache @@ -1,2 +1,3 @@ using Algolia.Search.Clients; +using Algolia.Search.Http; using Algolia.Search.Models.{{clientPrefix}}; \ No newline at end of file diff --git a/tests/CTS/requests/search/batch.json b/tests/CTS/requests/search/batch.json index 7773dfbdb2..7c9f33ac4d 100644 --- a/tests/CTS/requests/search/batch.json +++ b/tests/CTS/requests/search/batch.json @@ -1,7 +1,6 @@ [ { "testName": "addObject", - "isSnippet": true, "parameters": { "indexName": "", "batchWriteParams": { @@ -48,7 +47,6 @@ }, { "testName": "clear", - "isSnippet": true, "parameters": { "indexName": "", "batchWriteParams": { @@ -79,7 +77,6 @@ }, { "testName": "delete", - "isSnippet": true, "parameters": { "indexName": "", "batchWriteParams": { @@ -110,7 +107,6 @@ }, { "testName": "deleteObject", - "isSnippet": true, "parameters": { "indexName": "", "batchWriteParams": { @@ -141,7 +137,6 @@ }, { "testName": "partialUpdateObject", - "isSnippet": true, "parameters": { "indexName": "", "batchWriteParams": { @@ -172,7 +167,6 @@ }, { "testName": "partialUpdateObjectNoCreate", - "isSnippet": true, "parameters": { "indexName": "", "batchWriteParams": { @@ -203,7 +197,6 @@ }, { "testName": "updateObject", - "isSnippet": true, "parameters": { "indexName": "", "batchWriteParams": { diff --git a/tests/CTS/requests/search/batchDictionaryEntries.json b/tests/CTS/requests/search/batchDictionaryEntries.json index 6aaa124d71..29ccc33228 100644 --- a/tests/CTS/requests/search/batchDictionaryEntries.json +++ b/tests/CTS/requests/search/batchDictionaryEntries.json @@ -1,7 +1,6 @@ [ { "testName": "replace", - "isSnippet": true, "parameters": { "dictionaryName": "plurals", "batchDictionaryEntriesParams": { @@ -56,7 +55,6 @@ }, { "testName": "delete", - "isSnippet": true, "parameters": { "dictionaryName": "plurals", "batchDictionaryEntriesParams": { @@ -89,7 +87,6 @@ }, { "testName": "append", - "isSnippet": true, "parameters": { "dictionaryName": "stopwords", "batchDictionaryEntriesParams": { diff --git a/tests/CTS/requests/search/listIndices.json b/tests/CTS/requests/search/listIndices.json index 53a64863e5..2825d5054a 100644 --- a/tests/CTS/requests/search/listIndices.json +++ b/tests/CTS/requests/search/listIndices.json @@ -1,7 +1,6 @@ [ { "testName": "listIndices with minimal parameters", - "isSnippet": true, "parameters": {}, "request": { "path": "/1/indexes", diff --git a/tests/CTS/requests/search/operationIndex.json b/tests/CTS/requests/search/operationIndex.json index b094e9e9ce..658f76171a 100644 --- a/tests/CTS/requests/search/operationIndex.json +++ b/tests/CTS/requests/search/operationIndex.json @@ -1,7 +1,6 @@ [ { "testName": "scopes", - "isSnippet": true, "parameters": { "indexName": "", "operationIndexParams": { @@ -28,7 +27,6 @@ }, { "testName": "copy", - "isSnippet": true, "parameters": { "indexName": "", "operationIndexParams": { @@ -47,7 +45,6 @@ }, { "testName": "move", - "isSnippet": true, "parameters": { "indexName": "", "operationIndexParams": { diff --git a/tests/CTS/requests/search/partialUpdateObject.json b/tests/CTS/requests/search/partialUpdateObject.json index 9bc401334f..d52628d076 100644 --- a/tests/CTS/requests/search/partialUpdateObject.json +++ b/tests/CTS/requests/search/partialUpdateObject.json @@ -77,7 +77,6 @@ }, { "testName": "Partial update with a new value for an object attribute", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "objectID": "uniqueID", @@ -99,7 +98,6 @@ }, { "testName": "with visible_by filter", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "objectID": "uniqueID", diff --git a/tests/CTS/requests/search/saveRule.json b/tests/CTS/requests/search/saveRule.json index 8cd629e6d4..c49a774a80 100644 --- a/tests/CTS/requests/search/saveRule.json +++ b/tests/CTS/requests/search/saveRule.json @@ -181,7 +181,6 @@ }, { "testName": "b2b catalog", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "article-rule", @@ -233,7 +232,6 @@ }, { "testName": "merchandising and promoting", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "director-rule", @@ -291,7 +289,6 @@ }, { "testName": "harry potter", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "harry-potter-rule", @@ -331,7 +328,6 @@ }, { "testName": "merchandising empty query", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "clearance-category-filter", @@ -373,7 +369,6 @@ }, { "testName": "redirect", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "redirect-help-rule", @@ -413,7 +408,6 @@ }, { "testName": "promote some results over others", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "tomato-fruit", @@ -449,7 +443,6 @@ }, { "testName": "promote several hits", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "Promote-Apple-Newest", @@ -491,7 +484,6 @@ }, { "testName": "promote newest release", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "Promote-iPhone-X", @@ -533,7 +525,6 @@ }, { "testName": "promote single item", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "promote-harry-potter-box-set", @@ -573,7 +564,6 @@ }, { "testName": "limit search results", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "article-rule", @@ -621,7 +611,6 @@ }, { "testName": "query match", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "tagged-brand-rule", @@ -671,7 +660,6 @@ }, { "testName": "dynamic filtering", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "color-facets", @@ -709,7 +697,6 @@ }, { "testName": "hide hits", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "hide-12345", @@ -745,7 +732,6 @@ }, { "testName": "one rule per facet", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "red-color", @@ -787,7 +773,6 @@ }, { "testName": "numerical filters", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "cheap", @@ -829,7 +814,6 @@ }, { "testName": "negative filters", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "gluten-free-rule", @@ -881,7 +865,6 @@ }, { "testName": "positive filters", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "diet-rule", @@ -933,7 +916,6 @@ }, { "testName": "conditionless", - "isSnippet": true, "parameters": { "indexName": "indexName", "objectID": "diet-rule", diff --git a/tests/CTS/requests/search/search.json b/tests/CTS/requests/search/search.json index d449aa4546..4f23ecb985 100644 --- a/tests/CTS/requests/search/search.json +++ b/tests/CTS/requests/search/search.json @@ -1,7 +1,6 @@ [ { "testName": "withHitsPerPage", - "isSnippet": true, "parameters": { "requests": [ { @@ -27,7 +26,6 @@ }, { "testName": "filterOnly", - "isSnippet": true, "parameters": { "requests": [ { @@ -53,7 +51,6 @@ }, { "testName": "filterOr", - "isSnippet": true, "parameters": { "requests": [ { @@ -79,7 +76,6 @@ }, { "testName": "filterNot", - "isSnippet": true, "parameters": { "requests": [ { @@ -279,7 +275,6 @@ }, { "testName": "retrieveFacets", - "isSnippet": true, "parameters": { "requests": [ { @@ -311,7 +306,6 @@ }, { "testName": "retrieveFacetsWildcard", - "isSnippet": true, "parameters": { "requests": [ { diff --git a/tests/CTS/requests/search/searchSingleIndex.json b/tests/CTS/requests/search/searchSingleIndex.json index ed03a42e25..549146d08d 100644 --- a/tests/CTS/requests/search/searchSingleIndex.json +++ b/tests/CTS/requests/search/searchSingleIndex.json @@ -24,7 +24,6 @@ }, { "testName": "search with searchParams", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -129,7 +128,6 @@ }, { "testName": "query", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -146,7 +144,6 @@ }, { "testName": "filters", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -163,7 +160,6 @@ }, { "testName": "distinct", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -180,7 +176,6 @@ }, { "testName": "filtersNumeric", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -197,7 +192,6 @@ }, { "testName": "filtersTimestamp", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -214,7 +208,6 @@ }, { "testName": "filtersSumOrFiltersScoresFalse", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -233,7 +226,6 @@ }, { "testName": "filtersSumOrFiltersScoresTrue", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -252,7 +244,6 @@ }, { "testName": "filtersStephenKing", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -269,7 +260,6 @@ }, { "testName": "filtersNotTags", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -286,7 +276,6 @@ }, { "testName": "facetFiltersList", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -315,7 +304,6 @@ }, { "testName": "facetFiltersNeg", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -332,7 +320,6 @@ }, { "testName": "filtersAndFacetFilters", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -355,7 +342,6 @@ }, { "testName": "facet author genre", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -372,7 +358,6 @@ }, { "testName": "facet wildcard", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -389,7 +374,6 @@ }, { "testName": "maxValuesPerFacet", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -406,7 +390,6 @@ }, { "testName": "aroundLatLng", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -423,7 +406,6 @@ }, { "testName": "aroundLatLngViaIP", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -440,7 +422,6 @@ }, { "testName": "aroundRadius", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -459,7 +440,6 @@ }, { "testName": "insideBoundingBox", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -490,7 +470,6 @@ }, { "testName": "insidePolygon", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -537,7 +516,6 @@ }, { "testName": "insidePolygon", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -584,7 +562,6 @@ }, { "testName": "optionalFilters", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -605,7 +582,6 @@ }, { "testName": "optionalFiltersMany", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -630,7 +606,6 @@ }, { "testName": "optionalFiltersSimple", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -653,7 +628,6 @@ }, { "testName": "restrictSearchableAttributes", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -674,7 +648,6 @@ }, { "testName": "getRankingInfo", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -691,7 +664,6 @@ }, { "testName": "clickAnalytics", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -708,7 +680,6 @@ }, { "testName": "clickAnalyticsUserToken", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -727,7 +698,6 @@ }, { "testName": "enablePersonalization", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -746,7 +716,6 @@ }, { "testName": "userToken", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -763,7 +732,6 @@ }, { "testName": "analyticsTag", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -784,7 +752,6 @@ }, { "testName": "facetFiltersUsers", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { @@ -807,7 +774,6 @@ }, { "testName": "buildTheQuery", - "isSnippet": true, "parameters": { "indexName": "indexName", "searchParams": { diff --git a/tests/CTS/requests/search/setSettings.json b/tests/CTS/requests/search/setSettings.json index 142c30b79e..64e32daa5b 100644 --- a/tests/CTS/requests/search/setSettings.json +++ b/tests/CTS/requests/search/setSettings.json @@ -108,7 +108,6 @@ }, { "testName": "removeStopWords boolean", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -129,7 +128,6 @@ }, { "testName": "removeStopWords list of string", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -194,7 +192,6 @@ }, { "testName": "distinct company", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -213,7 +210,6 @@ }, { "testName": "distinct design", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -232,7 +228,6 @@ }, { "testName": "distinct true", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -249,7 +244,6 @@ }, { "testName": "distinct section", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -268,7 +262,6 @@ }, { "testName": "attributesForFaceting allergens", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -289,7 +282,6 @@ }, { "testName": "attributesForFaceting categoryPageId", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -310,7 +302,6 @@ }, { "testName": "unretrievableAttributes", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -331,7 +322,6 @@ }, { "testName": "attributesForFaceting user restricted data", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -352,7 +342,6 @@ }, { "testName": "attributesForFaceting optional filters", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -375,7 +364,6 @@ }, { "testName": "attributesForFaceting redirect index", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -396,7 +384,6 @@ }, { "testName": "attributesForFaceting multiple consequences", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -417,7 +404,6 @@ }, { "testName": "attributesForFaceting in-depth optional filters", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -438,7 +424,6 @@ }, { "testName": "mode neuralSearch", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -455,7 +440,6 @@ }, { "testName": "mode keywordSearch", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -472,7 +456,6 @@ }, { "testName": "searchableAttributes same priority", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -495,7 +478,6 @@ }, { "testName": "searchableAttributes higher priority", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -518,7 +500,6 @@ }, { "testName": "customRanking retweets", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -541,7 +522,6 @@ }, { "testName": "customRanking boosted", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -558,7 +538,6 @@ }, { "testName": "customRanking pageviews", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -581,7 +560,6 @@ }, { "testName": "customRanking applying search parameters for a specific query", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -604,7 +582,6 @@ }, { "testName": "customRanking rounded pageviews", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -627,7 +604,6 @@ }, { "testName": "customRanking price", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -648,7 +624,6 @@ }, { "testName": "ranking exhaustive", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -685,7 +660,6 @@ }, { "testName": "ranking standard replica", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -706,7 +680,6 @@ }, { "testName": "ranking virtual replica", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -727,7 +700,6 @@ }, { "testName": "customRanking and ranking sort alphabetically", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -768,7 +740,6 @@ }, { "testName": "relevancyStrictness", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -791,7 +762,6 @@ }, { "testName": "create replica index", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -812,7 +782,6 @@ }, { "testName": "create virtual replica index", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -833,7 +802,6 @@ }, { "testName": "unlink replica index", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -850,7 +818,6 @@ }, { "testName": "forwardToReplicas", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -871,7 +838,6 @@ }, { "testName": "maxValuesPerFacet", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -888,7 +854,6 @@ }, { "testName": "maxFacetHits", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -905,7 +870,6 @@ }, { "testName": "attributesForFaceting complex", - "isSnippet": true, "parameters": { "indexName": "", "indexSettings": { @@ -930,7 +894,6 @@ }, { "testName": "ranking closest dates", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -967,7 +930,6 @@ }, { "testName": "searchableAttributes item variation", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -992,7 +954,6 @@ }, { "testName": "searchableAttributes around location", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1021,7 +982,6 @@ }, { "testName": "searchableAttributes around location", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1050,7 +1010,6 @@ }, { "testName": "disableTypoToleranceOnAttributes", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1353,7 +1312,6 @@ }, { "testName": "searchableAttributesWithCustomRankingsAndAttributesForFaceting", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1398,7 +1356,6 @@ }, { "testName": "searchableAttributesProductReferenceSuffixes", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1423,7 +1380,6 @@ }, { "testName": "queryLanguageAndIgnorePlurals", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1446,7 +1402,6 @@ }, { "testName": "searchableAttributesInMovies", - "isSnippet": true, "parameters": { "indexName": "movies", "indexSettings": { @@ -1467,7 +1422,6 @@ }, { "testName": "disablePrefixOnAttributes", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1488,7 +1442,6 @@ }, { "testName": "disableTypoToleranceOnAttributes", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1509,7 +1462,6 @@ }, { "testName": "searchableAttributesSimpleExample", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { @@ -1530,7 +1482,6 @@ }, { "testName": "searchableAttributesSimpleExampleAlt", - "isSnippet": true, "parameters": { "indexName": "theIndexName", "indexSettings": { diff --git a/tests/output/javascript/yarn.lock b/tests/output/javascript/yarn.lock index 6aaab175e5..4e985ff151 100644 --- a/tests/output/javascript/yarn.lock +++ b/tests/output/javascript/yarn.lock @@ -23,163 +23,177 @@ __metadata: languageName: node linkType: soft -"@esbuild/aix-ppc64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/aix-ppc64@npm:0.21.5" +"@esbuild/aix-ppc64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/aix-ppc64@npm:0.24.2" conditions: os=aix & cpu=ppc64 languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/android-arm64@npm:0.21.5" +"@esbuild/android-arm64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/android-arm64@npm:0.24.2" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@esbuild/android-arm@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/android-arm@npm:0.21.5" +"@esbuild/android-arm@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/android-arm@npm:0.24.2" conditions: os=android & cpu=arm languageName: node linkType: hard -"@esbuild/android-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/android-x64@npm:0.21.5" +"@esbuild/android-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/android-x64@npm:0.24.2" conditions: os=android & cpu=x64 languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/darwin-arm64@npm:0.21.5" +"@esbuild/darwin-arm64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/darwin-arm64@npm:0.24.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/darwin-x64@npm:0.21.5" +"@esbuild/darwin-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/darwin-x64@npm:0.24.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/freebsd-arm64@npm:0.21.5" +"@esbuild/freebsd-arm64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/freebsd-arm64@npm:0.24.2" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/freebsd-x64@npm:0.21.5" +"@esbuild/freebsd-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/freebsd-x64@npm:0.24.2" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-arm64@npm:0.21.5" +"@esbuild/linux-arm64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-arm64@npm:0.24.2" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-arm@npm:0.21.5" +"@esbuild/linux-arm@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-arm@npm:0.24.2" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-ia32@npm:0.21.5" +"@esbuild/linux-ia32@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-ia32@npm:0.24.2" conditions: os=linux & cpu=ia32 languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-loong64@npm:0.21.5" +"@esbuild/linux-loong64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-loong64@npm:0.24.2" conditions: os=linux & cpu=loong64 languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-mips64el@npm:0.21.5" +"@esbuild/linux-mips64el@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-mips64el@npm:0.24.2" conditions: os=linux & cpu=mips64el languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-ppc64@npm:0.21.5" +"@esbuild/linux-ppc64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-ppc64@npm:0.24.2" conditions: os=linux & cpu=ppc64 languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-riscv64@npm:0.21.5" +"@esbuild/linux-riscv64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-riscv64@npm:0.24.2" conditions: os=linux & cpu=riscv64 languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-s390x@npm:0.21.5" +"@esbuild/linux-s390x@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-s390x@npm:0.24.2" conditions: os=linux & cpu=s390x languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-x64@npm:0.21.5" +"@esbuild/linux-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/linux-x64@npm:0.24.2" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/netbsd-x64@npm:0.21.5" +"@esbuild/netbsd-arm64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/netbsd-arm64@npm:0.24.2" + conditions: os=netbsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/netbsd-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/netbsd-x64@npm:0.24.2" conditions: os=netbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/openbsd-x64@npm:0.21.5" +"@esbuild/openbsd-arm64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/openbsd-arm64@npm:0.24.2" + conditions: os=openbsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/openbsd-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/openbsd-x64@npm:0.24.2" conditions: os=openbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/sunos-x64@npm:0.21.5" +"@esbuild/sunos-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/sunos-x64@npm:0.24.2" conditions: os=sunos & cpu=x64 languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/win32-arm64@npm:0.21.5" +"@esbuild/win32-arm64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/win32-arm64@npm:0.24.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/win32-ia32@npm:0.21.5" +"@esbuild/win32-ia32@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/win32-ia32@npm:0.24.2" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/win32-x64@npm:0.21.5" +"@esbuild/win32-x64@npm:0.24.2": + version: 0.24.2 + resolution: "@esbuild/win32-x64@npm:0.24.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -234,128 +248,135 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.28.0" +"@rollup/rollup-android-arm-eabi@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.31.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-android-arm64@npm:4.28.0" +"@rollup/rollup-android-arm64@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-android-arm64@npm:4.31.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-darwin-arm64@npm:4.28.0" +"@rollup/rollup-darwin-arm64@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.31.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-darwin-x64@npm:4.28.0" +"@rollup/rollup-darwin-x64@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.31.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-freebsd-arm64@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-freebsd-arm64@npm:4.28.0" +"@rollup/rollup-freebsd-arm64@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.31.0" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-freebsd-x64@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-freebsd-x64@npm:4.28.0" +"@rollup/rollup-freebsd-x64@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-freebsd-x64@npm:4.31.0" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.28.0" +"@rollup/rollup-linux-arm-gnueabihf@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.31.0" conditions: os=linux & cpu=arm & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm-musleabihf@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.28.0" +"@rollup/rollup-linux-arm-musleabihf@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.31.0" conditions: os=linux & cpu=arm & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.28.0" +"@rollup/rollup-linux-arm64-gnu@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.31.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.28.0" +"@rollup/rollup-linux-arm64-musl@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.31.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-powerpc64le-gnu@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.28.0" +"@rollup/rollup-linux-loongarch64-gnu@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-loongarch64-gnu@npm:4.31.0" + conditions: os=linux & cpu=loong64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.31.0" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.28.0" +"@rollup/rollup-linux-riscv64-gnu@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.31.0" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-s390x-gnu@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.28.0" +"@rollup/rollup-linux-s390x-gnu@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.31.0" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.28.0" +"@rollup/rollup-linux-x64-gnu@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.31.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.28.0" +"@rollup/rollup-linux-x64-musl@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.31.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.28.0" +"@rollup/rollup-win32-arm64-msvc@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.31.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.28.0" +"@rollup/rollup-win32-ia32-msvc@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.31.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.28.0": - version: 4.28.0 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.28.0" +"@rollup/rollup-win32-x64-msvc@npm:4.31.0": + version: 4.31.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.31.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -367,93 +388,102 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:22.10.5": - version: 22.10.5 - resolution: "@types/node@npm:22.10.5" +"@types/node@npm:22.10.7": + version: 22.10.7 + resolution: "@types/node@npm:22.10.7" dependencies: undici-types: "npm:~6.20.0" - checksum: 10/a5366961ffa9921e8f15435bc18ea9f8b7a7bb6b3d92dd5e93ebcd25e8af65708872bd8e6fee274b4655bab9ca80fbff9f0e42b5b53857790f13cf68cf4cbbfc + checksum: 10/64cde1c2f5e5f7d597d3bd462f52c3c2d688a66623eb75d25e1d1d63d384ef553a27100635ad0dbb7d74da517048aa636947863eb624cf85f25d2f22370ce474 languageName: node linkType: hard -"@vitest/expect@npm:2.1.8": - version: 2.1.8 - resolution: "@vitest/expect@npm:2.1.8" +"@vitest/expect@npm:3.0.2": + version: 3.0.2 + resolution: "@vitest/expect@npm:3.0.2" dependencies: - "@vitest/spy": "npm:2.1.8" - "@vitest/utils": "npm:2.1.8" + "@vitest/spy": "npm:3.0.2" + "@vitest/utils": "npm:3.0.2" chai: "npm:^5.1.2" - tinyrainbow: "npm:^1.2.0" - checksum: 10/3594149dd67dfac884a90f8b6a35687cdddd2f5f764562819bf7b66ae2eacfd4aa5e8914155deb4082fbe5a3792dced2fd7e59a948ffafe67acba4d2229dfe5f + tinyrainbow: "npm:^2.0.0" + checksum: 10/0dd4e0e269d0f3890b5767ccc376c6ba2511cfd303169ed2aaa1ff1b33cace5257d1a18a2b5d04e4dccaf8235c95428973f5450ce121ce6a0094236d2286259e languageName: node linkType: hard -"@vitest/mocker@npm:2.1.8": - version: 2.1.8 - resolution: "@vitest/mocker@npm:2.1.8" +"@vitest/mocker@npm:3.0.2": + version: 3.0.2 + resolution: "@vitest/mocker@npm:3.0.2" dependencies: - "@vitest/spy": "npm:2.1.8" + "@vitest/spy": "npm:3.0.2" estree-walker: "npm:^3.0.3" - magic-string: "npm:^0.30.12" + magic-string: "npm:^0.30.17" peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 + vite: ^5.0.0 || ^6.0.0 peerDependenciesMeta: msw: optional: true vite: optional: true - checksum: 10/f04060f42102caa4cca72059e63c1ecae8b8e091aaa61a2d4a914b129fc711ada4ad117eb0184e49e363757784ed1117fdbf9f4a81a45fe575fd92769740a970 + checksum: 10/91f4315d1fec10e670e3cf4165a8b108c651af0f4f2089dc6de8e3f7739f3f3d08335cbec31865ea866a47434e5c879fb6348465efa90e24673197525f6459ce + languageName: node + linkType: hard + +"@vitest/pretty-format@npm:3.0.2": + version: 3.0.2 + resolution: "@vitest/pretty-format@npm:3.0.2" + dependencies: + tinyrainbow: "npm:^2.0.0" + checksum: 10/4c8d044df5af71ae6d01b8391a8d6422f252bc4b04da2a4ec0fa45dea86a2b259bec279a42ecd30bdae792fb517eb373d517f4292bc5025631850edccfdcae1e languageName: node linkType: hard -"@vitest/pretty-format@npm:2.1.8, @vitest/pretty-format@npm:^2.1.8": - version: 2.1.8 - resolution: "@vitest/pretty-format@npm:2.1.8" +"@vitest/pretty-format@npm:^3.0.2": + version: 3.0.3 + resolution: "@vitest/pretty-format@npm:3.0.3" dependencies: - tinyrainbow: "npm:^1.2.0" - checksum: 10/f0f60c007424194887ad398d202867d58d850154de327993925041e2972357544eea95a22e0bb3a62a470b006ff8de5f691d2078708dcd7f625e24f8a06b26e7 + tinyrainbow: "npm:^2.0.0" + checksum: 10/37bfeab77c1daaa0a5208eb991695b8eb3ba183807fa656574072e28e8976dfecc4c77c46f56738911ea49889c6e1394ab384a2940b74afeea57174d3ba9d9ef languageName: node linkType: hard -"@vitest/runner@npm:2.1.8": - version: 2.1.8 - resolution: "@vitest/runner@npm:2.1.8" +"@vitest/runner@npm:3.0.2": + version: 3.0.2 + resolution: "@vitest/runner@npm:3.0.2" dependencies: - "@vitest/utils": "npm:2.1.8" - pathe: "npm:^1.1.2" - checksum: 10/27f265a3ab1e20297b948b06232bfa4dc9fda44d1f9bb6206baa9e6fa643b71143ebfd2d1771570296b7ee74a12d684e529a830f545ad61235cefb454e94a8e9 + "@vitest/utils": "npm:3.0.2" + pathe: "npm:^2.0.1" + checksum: 10/4cdf25a878ec9a253544addda25e8a16c4661fde73ea83036dab1c9f34d67f48a48b0e13b633afca182623be89d246b84ad83cd73d77318bf5fa33dff5b4b843 languageName: node linkType: hard -"@vitest/snapshot@npm:2.1.8": - version: 2.1.8 - resolution: "@vitest/snapshot@npm:2.1.8" +"@vitest/snapshot@npm:3.0.2": + version: 3.0.2 + resolution: "@vitest/snapshot@npm:3.0.2" dependencies: - "@vitest/pretty-format": "npm:2.1.8" - magic-string: "npm:^0.30.12" - pathe: "npm:^1.1.2" - checksum: 10/71edf4f574d317579c605ed0a7ecab7ee96fddcebc777bd130774a770ddc692c538f9f5b3dfde89af83ecb36f7338fe880943c83cede58f55e3556768a1a0749 + "@vitest/pretty-format": "npm:3.0.2" + magic-string: "npm:^0.30.17" + pathe: "npm:^2.0.1" + checksum: 10/1daec6ec52bc4c4f859f0222a6c9dfad22ebcfedfb2ceb13e23fed06e54a5307c950f595973882d9ca9fdc647a08c975d21f1883764a82a8b9f178022e59f2c5 languageName: node linkType: hard -"@vitest/spy@npm:2.1.8": - version: 2.1.8 - resolution: "@vitest/spy@npm:2.1.8" +"@vitest/spy@npm:3.0.2": + version: 3.0.2 + resolution: "@vitest/spy@npm:3.0.2" dependencies: tinyspy: "npm:^3.0.2" - checksum: 10/9a1cb9cf6b23c122681469b5890d91ca26fc8d74953b3d46d293a5d2a4944490106891f6a178cd732ab7a8abbda339f43681c81d1594565ecc3bf3e7f9b7735f + checksum: 10/19fe5b04f58d31074fd19086f239a84db437f3b816c0180bd7584a3ce47a77d2593546d8f2a62b33ba93c5a61045681d60cb2f840f08f0fee192a108e7c33620 languageName: node linkType: hard -"@vitest/utils@npm:2.1.8": - version: 2.1.8 - resolution: "@vitest/utils@npm:2.1.8" +"@vitest/utils@npm:3.0.2": + version: 3.0.2 + resolution: "@vitest/utils@npm:3.0.2" dependencies: - "@vitest/pretty-format": "npm:2.1.8" + "@vitest/pretty-format": "npm:3.0.2" loupe: "npm:^3.1.2" - tinyrainbow: "npm:^1.2.0" - checksum: 10/be1f4254347199fb5c1d9de8e4537dad4af3f434c033e7cd023165bd4b7e9de16fa0f86664256ab331120585df95ed6be8eea58b209b510651b49f6482051733 + tinyrainbow: "npm:^2.0.0" + checksum: 10/d66fa335eb9690267db9dd66911804f688f5d3c1c28f48122304819b9d9d9ba450a767dad6de92bf4cf030248b8adfb1255a88538ea7bf899d50d1cdd1032bff languageName: node linkType: hard @@ -630,7 +660,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.3.4, debug@npm:^4.3.7": +"debug@npm:4, debug@npm:^4.3.4": version: 4.3.7 resolution: "debug@npm:4.3.7" dependencies: @@ -642,6 +672,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.4.0": + version: 4.4.0 + resolution: "debug@npm:4.4.0" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10/1847944c2e3c2c732514b93d11886575625686056cd765336212dc15de2d2b29612b6cd80e1afba767bb8e1803b778caf9973e98169ef1a24a7a7009e1820367 + languageName: node + linkType: hard + "deep-eql@npm:^5.0.1": version: 5.0.2 resolution: "deep-eql@npm:5.0.2" @@ -700,40 +742,42 @@ __metadata: languageName: node linkType: hard -"es-module-lexer@npm:^1.5.4": - version: 1.5.4 - resolution: "es-module-lexer@npm:1.5.4" - checksum: 10/f29c7c97a58eb17640dcbd71bd6ef754ad4f58f95c3073894573d29dae2cad43ecd2060d97ed5b866dfb7804d5590fb7de1d2c5339a5fceae8bd60b580387fc5 - languageName: node - linkType: hard - -"esbuild@npm:^0.21.3": - version: 0.21.5 - resolution: "esbuild@npm:0.21.5" - dependencies: - "@esbuild/aix-ppc64": "npm:0.21.5" - "@esbuild/android-arm": "npm:0.21.5" - "@esbuild/android-arm64": "npm:0.21.5" - "@esbuild/android-x64": "npm:0.21.5" - "@esbuild/darwin-arm64": "npm:0.21.5" - "@esbuild/darwin-x64": "npm:0.21.5" - "@esbuild/freebsd-arm64": "npm:0.21.5" - "@esbuild/freebsd-x64": "npm:0.21.5" - "@esbuild/linux-arm": "npm:0.21.5" - "@esbuild/linux-arm64": "npm:0.21.5" - "@esbuild/linux-ia32": "npm:0.21.5" - "@esbuild/linux-loong64": "npm:0.21.5" - "@esbuild/linux-mips64el": "npm:0.21.5" - "@esbuild/linux-ppc64": "npm:0.21.5" - "@esbuild/linux-riscv64": "npm:0.21.5" - "@esbuild/linux-s390x": "npm:0.21.5" - "@esbuild/linux-x64": "npm:0.21.5" - "@esbuild/netbsd-x64": "npm:0.21.5" - "@esbuild/openbsd-x64": "npm:0.21.5" - "@esbuild/sunos-x64": "npm:0.21.5" - "@esbuild/win32-arm64": "npm:0.21.5" - "@esbuild/win32-ia32": "npm:0.21.5" - "@esbuild/win32-x64": "npm:0.21.5" +"es-module-lexer@npm:^1.6.0": + version: 1.6.0 + resolution: "es-module-lexer@npm:1.6.0" + checksum: 10/807ee7020cc46a9c970c78cad1f2f3fc139877e5ebad7f66dbfbb124d451189ba1c48c1c632bd5f8ce1b8af2caef3fca340ba044a410fa890d17b080a59024bb + languageName: node + linkType: hard + +"esbuild@npm:^0.24.2": + version: 0.24.2 + resolution: "esbuild@npm:0.24.2" + dependencies: + "@esbuild/aix-ppc64": "npm:0.24.2" + "@esbuild/android-arm": "npm:0.24.2" + "@esbuild/android-arm64": "npm:0.24.2" + "@esbuild/android-x64": "npm:0.24.2" + "@esbuild/darwin-arm64": "npm:0.24.2" + "@esbuild/darwin-x64": "npm:0.24.2" + "@esbuild/freebsd-arm64": "npm:0.24.2" + "@esbuild/freebsd-x64": "npm:0.24.2" + "@esbuild/linux-arm": "npm:0.24.2" + "@esbuild/linux-arm64": "npm:0.24.2" + "@esbuild/linux-ia32": "npm:0.24.2" + "@esbuild/linux-loong64": "npm:0.24.2" + "@esbuild/linux-mips64el": "npm:0.24.2" + "@esbuild/linux-ppc64": "npm:0.24.2" + "@esbuild/linux-riscv64": "npm:0.24.2" + "@esbuild/linux-s390x": "npm:0.24.2" + "@esbuild/linux-x64": "npm:0.24.2" + "@esbuild/netbsd-arm64": "npm:0.24.2" + "@esbuild/netbsd-x64": "npm:0.24.2" + "@esbuild/openbsd-arm64": "npm:0.24.2" + "@esbuild/openbsd-x64": "npm:0.24.2" + "@esbuild/sunos-x64": "npm:0.24.2" + "@esbuild/win32-arm64": "npm:0.24.2" + "@esbuild/win32-ia32": "npm:0.24.2" + "@esbuild/win32-x64": "npm:0.24.2" dependenciesMeta: "@esbuild/aix-ppc64": optional: true @@ -769,8 +813,12 @@ __metadata: optional: true "@esbuild/linux-x64": optional: true + "@esbuild/netbsd-arm64": + optional: true "@esbuild/netbsd-x64": optional: true + "@esbuild/openbsd-arm64": + optional: true "@esbuild/openbsd-x64": optional: true "@esbuild/sunos-x64": @@ -783,7 +831,7 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: 10/d2ff2ca84d30cce8e871517374d6c2290835380dc7cd413b2d49189ed170d45e407be14de2cb4794cf76f75cf89955c4714726ebd3de7444b3046f5cab23ab6b + checksum: 10/95425071c9f24ff88bf61e0710b636ec0eb24ddf8bd1f7e1edef3044e1221104bbfa7bbb31c18018c8c36fa7902c5c0b843f829b981ebc89160cf5eebdaa58f4 languageName: node linkType: hard @@ -988,11 +1036,11 @@ __metadata: "@algolia/client-composition": "link:../../../clients/algoliasearch-client-javascript/packages/client-composition" "@algolia/composition": "link:../../../clients/algoliasearch-client-javascript/packages/composition" "@algolia/requester-testing": "link:../../../clients/algoliasearch-client-javascript/packages/requester-testing" - "@types/node": "npm:22.10.5" + "@types/node": "npm:22.10.7" algoliasearch: "link:../../../clients/algoliasearch-client-javascript/packages/algoliasearch" dotenv: "npm:16.4.7" typescript: "npm:5.7.3" - vitest: "npm:2.1.8" + vitest: "npm:3.0.2" languageName: unknown linkType: soft @@ -1017,12 +1065,12 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.12": - version: 0.30.14 - resolution: "magic-string@npm:0.30.14" +"magic-string@npm:^0.30.17": + version: 0.30.17 + resolution: "magic-string@npm:0.30.17" dependencies: "@jridgewell/sourcemap-codec": "npm:^1.5.0" - checksum: 10/8ca0f8937c2824e48ebc70e7e065a193c467713639cc6e5972aaba0fa5417b375a6f62c383410a19a66e618c386bb7253fbd3ccbfb0144bb310f0ba772121f12 + checksum: 10/2f71af2b0afd78c2e9012a29b066d2c8ba45a9cd0c8070f7fd72de982fb1c403b4e3afdb1dae00691d56885ede66b772ef6bedf765e02e3a7066208fe2fec4aa languageName: node linkType: hard @@ -1155,7 +1203,7 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^3.3.7": +"nanoid@npm:^3.3.8": version: 3.3.8 resolution: "nanoid@npm:3.3.8" bin: @@ -1235,10 +1283,10 @@ __metadata: languageName: node linkType: hard -"pathe@npm:^1.1.2": - version: 1.1.2 - resolution: "pathe@npm:1.1.2" - checksum: 10/f201d796351bf7433d147b92c20eb154a4e0ea83512017bf4ec4e492a5d6e738fb45798be4259a61aa81270179fce11026f6ff0d3fa04173041de044defe9d80 +"pathe@npm:^2.0.1": + version: 2.0.2 + resolution: "pathe@npm:2.0.2" + checksum: 10/027dd246720ec6d3b5567e2b0201f1a815b6a69f2912a4dcafed59620afc729af15b4aff4bc780504c88d11dfb081c051e37327b928a093e714c3e09bf35aff3 languageName: node linkType: hard @@ -1256,14 +1304,14 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.43": - version: 8.4.49 - resolution: "postcss@npm:8.4.49" +"postcss@npm:^8.4.49": + version: 8.5.1 + resolution: "postcss@npm:8.5.1" dependencies: - nanoid: "npm:^3.3.7" + nanoid: "npm:^3.3.8" picocolors: "npm:^1.1.1" source-map-js: "npm:^1.2.1" - checksum: 10/28fe1005b1339870e0a5006375ba5ac1213fd69800f79e7db09c398e074421ba6e162898e94f64942fed554037fd292db3811d87835d25ab5ef7f3c9daacb6ca + checksum: 10/1fbd28753143f7f03e4604813639918182b15343c7ad0f4e72f3875fc2cc0b8494c887f55dc05008fad5fbf1e1e908ce2edbbce364a91f84dcefb71edf7cd31d languageName: node linkType: hard @@ -1291,28 +1339,29 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^4.20.0": - version: 4.28.0 - resolution: "rollup@npm:4.28.0" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.28.0" - "@rollup/rollup-android-arm64": "npm:4.28.0" - "@rollup/rollup-darwin-arm64": "npm:4.28.0" - "@rollup/rollup-darwin-x64": "npm:4.28.0" - "@rollup/rollup-freebsd-arm64": "npm:4.28.0" - "@rollup/rollup-freebsd-x64": "npm:4.28.0" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.28.0" - "@rollup/rollup-linux-arm-musleabihf": "npm:4.28.0" - "@rollup/rollup-linux-arm64-gnu": "npm:4.28.0" - "@rollup/rollup-linux-arm64-musl": "npm:4.28.0" - "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.28.0" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.28.0" - "@rollup/rollup-linux-s390x-gnu": "npm:4.28.0" - "@rollup/rollup-linux-x64-gnu": "npm:4.28.0" - "@rollup/rollup-linux-x64-musl": "npm:4.28.0" - "@rollup/rollup-win32-arm64-msvc": "npm:4.28.0" - "@rollup/rollup-win32-ia32-msvc": "npm:4.28.0" - "@rollup/rollup-win32-x64-msvc": "npm:4.28.0" +"rollup@npm:^4.23.0": + version: 4.31.0 + resolution: "rollup@npm:4.31.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.31.0" + "@rollup/rollup-android-arm64": "npm:4.31.0" + "@rollup/rollup-darwin-arm64": "npm:4.31.0" + "@rollup/rollup-darwin-x64": "npm:4.31.0" + "@rollup/rollup-freebsd-arm64": "npm:4.31.0" + "@rollup/rollup-freebsd-x64": "npm:4.31.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.31.0" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.31.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.31.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.31.0" + "@rollup/rollup-linux-loongarch64-gnu": "npm:4.31.0" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.31.0" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.31.0" + "@rollup/rollup-linux-s390x-gnu": "npm:4.31.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.31.0" + "@rollup/rollup-linux-x64-musl": "npm:4.31.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.31.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.31.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.31.0" "@types/estree": "npm:1.0.6" fsevents: "npm:~2.3.2" dependenciesMeta: @@ -1336,6 +1385,8 @@ __metadata: optional: true "@rollup/rollup-linux-arm64-musl": optional: true + "@rollup/rollup-linux-loongarch64-gnu": + optional: true "@rollup/rollup-linux-powerpc64le-gnu": optional: true "@rollup/rollup-linux-riscv64-gnu": @@ -1356,7 +1407,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 10/e604ff8d866818fff5b15864eab09011b497117774de413a566c17bda5fc6878ea101b6124421e29d7c3478280b8e6a864b2b1f1c7c4422e7fe31cb6846a09fc + checksum: 10/4f5fac0a0df7878ca810512c283df0e81b21d42fed262943b412c488a30beceb0149a4be36dbf2750b6c5cbfa4d4cf5097a134266f1425a9e213c2a2a09853fc languageName: node linkType: hard @@ -1532,24 +1583,24 @@ __metadata: languageName: node linkType: hard -"tinyexec@npm:^0.3.1": - version: 0.3.1 - resolution: "tinyexec@npm:0.3.1" - checksum: 10/0537c70590d52d354f40c0255ff0f654a3d18ddb3812b440ddf9d436edf516c8057838ad5a38744c0c59670ec03e3cf23fbe04ae3d49f031d948274e99002569 +"tinyexec@npm:^0.3.2": + version: 0.3.2 + resolution: "tinyexec@npm:0.3.2" + checksum: 10/b9d5fed3166fb1acd1e7f9a89afcd97ccbe18b9c1af0278e429455f6976d69271ba2d21797e7c36d57d6b05025e525d2882d88c2ab435b60d1ddf2fea361de57 languageName: node linkType: hard -"tinypool@npm:^1.0.1": +"tinypool@npm:^1.0.2": version: 1.0.2 resolution: "tinypool@npm:1.0.2" checksum: 10/6109322f14b3763f65c8fa49fddab72cd3edd96b82dd50e05e63de74867329ff5353bff4377281ec963213d9314f37f4a353e9ee34bbac85fd4c1e4a568d6076 languageName: node linkType: hard -"tinyrainbow@npm:^1.2.0": - version: 1.2.0 - resolution: "tinyrainbow@npm:1.2.0" - checksum: 10/2924444db6804355e5ba2b6e586c7f77329d93abdd7257a069a0f4530dff9f16de484e80479094e3f39273462541b003a65ee3a6afc2d12555aa745132deba5d +"tinyrainbow@npm:^2.0.0": + version: 2.0.0 + resolution: "tinyrainbow@npm:2.0.0" + checksum: 10/94d4e16246972614a5601eeb169ba94f1d49752426312d3cf8cc4f2cc663a2e354ffc653aa4de4eebccbf9eeebdd0caef52d1150271fdfde65d7ae7f3dcb9eb5 languageName: node linkType: hard @@ -1605,44 +1656,49 @@ __metadata: languageName: node linkType: hard -"vite-node@npm:2.1.8": - version: 2.1.8 - resolution: "vite-node@npm:2.1.8" +"vite-node@npm:3.0.2": + version: 3.0.2 + resolution: "vite-node@npm:3.0.2" dependencies: cac: "npm:^6.7.14" - debug: "npm:^4.3.7" - es-module-lexer: "npm:^1.5.4" - pathe: "npm:^1.1.2" - vite: "npm:^5.0.0" + debug: "npm:^4.4.0" + es-module-lexer: "npm:^1.6.0" + pathe: "npm:^2.0.1" + vite: "npm:^5.0.0 || ^6.0.0" bin: vite-node: vite-node.mjs - checksum: 10/0ff0ed7a6fb234d3ddc4946e4c1150229980cac9f34fb4bd7f443aab0aae2da5b73ac20ff68af1df476545807dc23189247194e8cea0dcdfa394311c73f04429 + checksum: 10/e07d8626865327ceff73fc6b0c7996a3f0da33c40c9c2985ae881618887805693497d6d7565c374983c6d3b5bc9a0bcfe33a2169bd788ae5a31c91e670c2b412 languageName: node linkType: hard -"vite@npm:^5.0.0": - version: 5.4.11 - resolution: "vite@npm:5.4.11" +"vite@npm:^5.0.0 || ^6.0.0": + version: 6.0.11 + resolution: "vite@npm:6.0.11" dependencies: - esbuild: "npm:^0.21.3" + esbuild: "npm:^0.24.2" fsevents: "npm:~2.3.3" - postcss: "npm:^8.4.43" - rollup: "npm:^4.20.0" + postcss: "npm:^8.4.49" + rollup: "npm:^4.23.0" peerDependencies: - "@types/node": ^18.0.0 || >=20.0.0 + "@types/node": ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: ">=1.21.0" less: "*" lightningcss: ^1.21.0 sass: "*" sass-embedded: "*" stylus: "*" sugarss: "*" - terser: ^5.4.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 dependenciesMeta: fsevents: optional: true peerDependenciesMeta: "@types/node": optional: true + jiti: + optional: true less: optional: true lightningcss: @@ -1657,41 +1713,45 @@ __metadata: optional: true terser: optional: true + tsx: + optional: true + yaml: + optional: true bin: vite: bin/vite.js - checksum: 10/719c4dea896e9547958643354003c8c9ea98e5367196d98f5f46cffb3ec963fead3ea5853f5af941c79bbfb73583dec19bbb0d28d2f644b95d7f59c55e22919d + checksum: 10/753d06b07a4d90863d3478162cfb18fa5cd7f6eb22a74525348a8fd46593a82875d0f92352c2f4833e15cb6581fc97d6ab434c0c5d83d8d58cfbbe6e7267726d languageName: node linkType: hard -"vitest@npm:2.1.8": - version: 2.1.8 - resolution: "vitest@npm:2.1.8" - dependencies: - "@vitest/expect": "npm:2.1.8" - "@vitest/mocker": "npm:2.1.8" - "@vitest/pretty-format": "npm:^2.1.8" - "@vitest/runner": "npm:2.1.8" - "@vitest/snapshot": "npm:2.1.8" - "@vitest/spy": "npm:2.1.8" - "@vitest/utils": "npm:2.1.8" +"vitest@npm:3.0.2": + version: 3.0.2 + resolution: "vitest@npm:3.0.2" + dependencies: + "@vitest/expect": "npm:3.0.2" + "@vitest/mocker": "npm:3.0.2" + "@vitest/pretty-format": "npm:^3.0.2" + "@vitest/runner": "npm:3.0.2" + "@vitest/snapshot": "npm:3.0.2" + "@vitest/spy": "npm:3.0.2" + "@vitest/utils": "npm:3.0.2" chai: "npm:^5.1.2" - debug: "npm:^4.3.7" + debug: "npm:^4.4.0" expect-type: "npm:^1.1.0" - magic-string: "npm:^0.30.12" - pathe: "npm:^1.1.2" + magic-string: "npm:^0.30.17" + pathe: "npm:^2.0.1" std-env: "npm:^3.8.0" tinybench: "npm:^2.9.0" - tinyexec: "npm:^0.3.1" - tinypool: "npm:^1.0.1" - tinyrainbow: "npm:^1.2.0" - vite: "npm:^5.0.0" - vite-node: "npm:2.1.8" + tinyexec: "npm:^0.3.2" + tinypool: "npm:^1.0.2" + tinyrainbow: "npm:^2.0.0" + vite: "npm:^5.0.0 || ^6.0.0" + vite-node: "npm:3.0.2" why-is-node-running: "npm:^2.3.0" peerDependencies: "@edge-runtime/vm": "*" - "@types/node": ^18.0.0 || >=20.0.0 - "@vitest/browser": 2.1.8 - "@vitest/ui": 2.1.8 + "@types/node": ^18.0.0 || ^20.0.0 || >=22.0.0 + "@vitest/browser": 3.0.2 + "@vitest/ui": 3.0.2 happy-dom: "*" jsdom: "*" peerDependenciesMeta: @@ -1709,7 +1769,7 @@ __metadata: optional: true bin: vitest: vitest.mjs - checksum: 10/c2552c068f6faac82eb4e6debb9ed505c0e8016fd6e0a0f0e0dbb5b5417922fbcde80c54af0d3b5a5503a5d6ad6862b6e95b9b59b8b7e98bb553217b9c6fc227 + checksum: 10/4f93c2ef845ad08a10300a30833b583490988811d3d841947103a480899f2fdf0671a16db064fd382508b2b5199e5abd617dbcf533f5612a30233260cb3c6b75 languageName: node linkType: hard From 43a57185ae1c11fee8f7f112f9292171dfbe139a Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 11:11:46 +0100 Subject: [PATCH 05/13] chore: java --- templates/java/snippets/import.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/java/snippets/import.mustache b/templates/java/snippets/import.mustache index 5b25f90c37..8b78744863 100644 --- a/templates/java/snippets/import.mustache +++ b/templates/java/snippets/import.mustache @@ -1,2 +1,3 @@ import com.algolia.api.{{client}}; -import com.algolia.model.{{import}}.*; \ No newline at end of file +import com.algolia.model.{{import}}.*; +import com.algolia.config.*; \ No newline at end of file From ccee301717d6fb1b3f6f644fa928c071f7d64cfa Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 11:24:46 +0100 Subject: [PATCH 06/13] chore: python --- templates/python/snippets/import.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/python/snippets/import.mustache b/templates/python/snippets/import.mustache index f3d78b44e2..cd2ce03e59 100644 --- a/templates/python/snippets/import.mustache +++ b/templates/python/snippets/import.mustache @@ -1,2 +1,3 @@ from algoliasearch.{{{import}}}.client import {{#lambda.pascalcase}}{{{client}}}{{/lambda.pascalcase}} -from algoliasearch.{{{import}}}.client import {{#lambda.pascalcase}}{{{client}}}Sync{{/lambda.pascalcase}} \ No newline at end of file +from algoliasearch.{{{import}}}.client import {{#lambda.pascalcase}}{{{client}}}Sync{{/lambda.pascalcase}} +from json import loads \ No newline at end of file From 00cdac1ff06b9e8636c2f8dd566b0e5b2b0aa513 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 11:25:40 +0100 Subject: [PATCH 07/13] chore: scala --- templates/scala/snippets/import.mustache | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/scala/snippets/import.mustache b/templates/scala/snippets/import.mustache index 7acfdceb24..c9dbff77da 100644 --- a/templates/scala/snippets/import.mustache +++ b/templates/scala/snippets/import.mustache @@ -1,4 +1,5 @@ import algoliasearch.api.{{client}} +import algoliasearch.config.* {{#isSearchClient}} import algoliasearch.extension.SearchClientExtensions {{/isSearchClient}} \ No newline at end of file From ef55ee4512f061bd9e95060bc1f3c6f54e3babfa Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 11:26:31 +0100 Subject: [PATCH 08/13] chore: kt --- templates/kotlin/snippets/import.mustache | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/kotlin/snippets/import.mustache b/templates/kotlin/snippets/import.mustache index 9fe2911fdc..f80cc61972 100644 --- a/templates/kotlin/snippets/import.mustache +++ b/templates/kotlin/snippets/import.mustache @@ -1,4 +1,6 @@ import com.algolia.client.api.{{client}} +import com.algolia.client.configuration.* +import com.algolia.client.transport.* {{#isSearchClient}} import com.algolia.client.extensions.* {{/isSearchClient}} \ No newline at end of file From 8e3d726c58fdc6e72f84b84793b5afe4f063984b Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 11:54:24 +0100 Subject: [PATCH 09/13] chore: kt --- scripts/formatter.ts | 2 +- templates/kotlin/snippets/import.mustache | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/formatter.ts b/scripts/formatter.ts index 42ba67b3c9..f84dba920a 100644 --- a/scripts/formatter.ts +++ b/scripts/formatter.ts @@ -57,7 +57,7 @@ export async function formatter(language: string, cwd: string): Promise { 'poetry lock && poetry sync --no-root && pip freeze > requirements.txt && poetry run ruff check --fix --unsafe-fixes && poetry run ruff format', { cwd, language }, ); - if (!cwd.includes('tests')) { + if (!cwd.includes('tests') && !cwd.includes('snippets')) { await run('poetry run pyright', { cwd, language }); } break; diff --git a/templates/kotlin/snippets/import.mustache b/templates/kotlin/snippets/import.mustache index f80cc61972..217bd4ae68 100644 --- a/templates/kotlin/snippets/import.mustache +++ b/templates/kotlin/snippets/import.mustache @@ -1,6 +1,7 @@ import com.algolia.client.api.{{client}} import com.algolia.client.configuration.* import com.algolia.client.transport.* +import com.algolia.utils.* {{#isSearchClient}} import com.algolia.client.extensions.* {{/isSearchClient}} \ No newline at end of file From 71598dfb0f11289f4bfa8bdfe8b460637151b0b5 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 13:24:46 +0100 Subject: [PATCH 10/13] chore: review --- .../com/algolia/codegen/cts/tests/SnippetsGenerator.java | 5 ----- scripts/formatter.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java b/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java index 605ef25b9f..05d8d3b13b 100644 --- a/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java +++ b/generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java @@ -102,11 +102,6 @@ public void run(Map models, Map } List ops = Arrays.stream(snippets.get(operationId)).toList(); - if (ops.size() == 0) { - // default to the first test - ops = List.of(snippets.get(operationId)[0]); - } - List> tests = new ArrayList<>(); for (int i = 0; i < ops.size(); i++) { diff --git a/scripts/formatter.ts b/scripts/formatter.ts index f84dba920a..42ba67b3c9 100644 --- a/scripts/formatter.ts +++ b/scripts/formatter.ts @@ -57,7 +57,7 @@ export async function formatter(language: string, cwd: string): Promise { 'poetry lock && poetry sync --no-root && pip freeze > requirements.txt && poetry run ruff check --fix --unsafe-fixes && poetry run ruff format', { cwd, language }, ); - if (!cwd.includes('tests') && !cwd.includes('snippets')) { + if (!cwd.includes('tests')) { await run('poetry run pyright', { cwd, language }); } break; From c90894ccb0f05a81e54a410b3c85bea6ba966598 Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Thu, 23 Jan 2025 15:14:44 +0100 Subject: [PATCH 11/13] feat(kotlin): remove utils --- templates/kotlin/snippets/import.mustache | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/kotlin/snippets/import.mustache b/templates/kotlin/snippets/import.mustache index 217bd4ae68..f80cc61972 100644 --- a/templates/kotlin/snippets/import.mustache +++ b/templates/kotlin/snippets/import.mustache @@ -1,7 +1,6 @@ import com.algolia.client.api.{{client}} import com.algolia.client.configuration.* import com.algolia.client.transport.* -import com.algolia.utils.* {{#isSearchClient}} import com.algolia.client.extensions.* {{/isSearchClient}} \ No newline at end of file From 7ae4b7444ea5aa3d39e8af7573d4b01ebcf02b0c Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 15:48:13 +0100 Subject: [PATCH 12/13] chore: import --- templates/kotlin/snippets/import.mustache | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/kotlin/snippets/import.mustache b/templates/kotlin/snippets/import.mustache index f80cc61972..e4463c2719 100644 --- a/templates/kotlin/snippets/import.mustache +++ b/templates/kotlin/snippets/import.mustache @@ -3,4 +3,7 @@ import com.algolia.client.configuration.* import com.algolia.client.transport.* {{#isSearchClient}} import com.algolia.client.extensions.* -{{/isSearchClient}} \ No newline at end of file +{{/isSearchClient}} +{{#isCompositionClient}} +import com.algolia.client.model.{{import}}.RequestBody +{{/isCompositionClient}} \ No newline at end of file From 49ded4a72dda6fd06f0ba2002058444df9330661 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 23 Jan 2025 16:46:41 +0100 Subject: [PATCH 13/13] fix: python --- templates/python/partial_api_args.mustache | 2 +- tests/CTS/requests/ingestion/listAuthentications.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/python/partial_api_args.mustache b/templates/python/partial_api_args.mustache index 5c63dc0cd3..fe27f4431a 100644 --- a/templates/python/partial_api_args.mustache +++ b/templates/python/partial_api_args.mustache @@ -1,7 +1,7 @@ ( self, {{#allParams}} - {{paramName}}: {{#isModel}}Union[{{/isModel}}{{#isArray}}{{#items.isModel}}Union[{{/items.isModel}}{{/isArray}}{{#isEnumRef}}Union[{{/isEnumRef}}{{{vendorExtensions.x-py-typing}}}{{#isModel}}, dict[str, Any]]{{/isModel}}{{#isEnumRef}}, str]{{/isEnumRef}}{{#isArray}}{{#items.isModel}}, list[dict[str, Any]]]{{/items.isModel}}{{/isArray}}{{^required}} = None{{/required}}, + {{paramName}}: {{#isModel}}Union[{{/isModel}}{{#isArray}}{{#items.isEnumRef}}Union[list[str], {{/items.isEnumRef}}{{#items.isModel}}Union[{{/items.isModel}}{{/isArray}}{{#isEnumRef}}Union[{{/isEnumRef}}{{{vendorExtensions.x-py-typing}}}{{#isModel}}, dict[str, Any]]{{/isModel}}{{#isEnumRef}}, str]{{/isEnumRef}}{{#isArray}}{{#items.isEnumRef}}]{{/items.isEnumRef}}{{#items.isModel}}, {{#isQueryParam}}list[str], {{/isQueryParam}} list[dict[str, Any]]]{{/items.isModel}}{{/isArray}}{{^required}} = None{{/required}}, {{/allParams}} request_options: Optional[Union[dict, RequestOptions]] = None ) \ No newline at end of file diff --git a/tests/CTS/requests/ingestion/listAuthentications.json b/tests/CTS/requests/ingestion/listAuthentications.json index 4b46251e52..04c6f0401f 100644 --- a/tests/CTS/requests/ingestion/listAuthentications.json +++ b/tests/CTS/requests/ingestion/listAuthentications.json @@ -16,9 +16,7 @@ "basic", "algolia" ], - "platform": [ - "none" - ], + "platform": ["none"], "sort": "createdAt", "order": "asc" },