From b076b69ba5e4789726e870f48998b5dc1faf7791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 18 Oct 2024 10:12:36 +0200 Subject: [PATCH] fix(javascript): missing search dependency (#3988) --- .../java/com/algolia/codegen/AlgoliaJavascriptGenerator.java | 1 + templates/javascript/clients/package.mustache | 1 + 2 files changed, 2 insertions(+) diff --git a/generators/src/main/java/com/algolia/codegen/AlgoliaJavascriptGenerator.java b/generators/src/main/java/com/algolia/codegen/AlgoliaJavascriptGenerator.java index faa94bdf66..7a01e1e4a1 100644 --- a/generators/src/main/java/com/algolia/codegen/AlgoliaJavascriptGenerator.java +++ b/generators/src/main/java/com/algolia/codegen/AlgoliaJavascriptGenerator.java @@ -181,6 +181,7 @@ private void setDefaultGeneratorOptions() { dependencies.add(dependency); } additionalProperties.put("dependencies", dependencies); + additionalProperties.put("searchVersion", Helpers.getPackageJsonVersion("client-search")); // Files used to generate the `lite` client clientName = "lite" + Helpers.API_SUFFIX; diff --git a/templates/javascript/clients/package.mustache b/templates/javascript/clients/package.mustache index b5c878f5d1..d161a3aac0 100644 --- a/templates/javascript/clients/package.mustache +++ b/templates/javascript/clients/package.mustache @@ -123,6 +123,7 @@ {{#dependencies}} "{{{dependencyPackage}}}": "{{{dependencyVersion}}}", {{/dependencies}} + "@algolia/client-search": "{{searchVersion}}", "@algolia/client-common": "{{utilsPackageVersion}}", "@algolia/requester-browser-xhr": "{{utilsPackageVersion}}", "@algolia/requester-node-http": "{{utilsPackageVersion}}",