Skip to content

Commit

Permalink
Bump to v5.0.0 (#39)
Browse files Browse the repository at this point in the history
* Update Kentico.Xperience.AlgoliaSearch.csproj

* Update AlgoliaSearchModule.cs

* Update AlgoliaStartupExtensions.cs
  • Loading branch information
michalJakubis authored Aug 14, 2024
1 parent efd887b commit f3e6846
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/AlgoliaSearchModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected override void OnPreInit()
var applicationId = ValidationHelper.GetString(ConfigurationManager.AppSettings["AlgoliaApplicationId"], "NO_APP");
var apiKey = ValidationHelper.GetString(ConfigurationManager.AppSettings["AlgoliaApiKey"], "NO_KEY");
var configuration = new SearchConfig(applicationId, apiKey);
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (4.0.0)";
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.0.0)";

var client = new SearchClient(configuration);
Service.Use<ISearchClient>(client);
Expand Down Expand Up @@ -122,4 +122,4 @@ private void HandleDocumentUpdate(object sender, DocumentEventArgs e)
}
}
}
}
}
4 changes: 2 additions & 2 deletions src/Extensions/AlgoliaStartupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public static IServiceCollection AddAlgolia(this IServiceCollection services, IC
{
var options = s.GetRequiredService<IOptions<AlgoliaOptions>>();
var configuration = new SearchConfig(options.Value.ApplicationId, options.Value.ApiKey);
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (4.0.0)";
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.0.0)";

return new SearchClient(configuration);
});
}
}
}
}
2 changes: 1 addition & 1 deletion src/Kentico.Xperience.AlgoliaSearch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PropertyGroup>
<Title>Xperience Algolia Search</Title>
<PackageId>Kentico.Xperience.Algolia.KX13</PackageId>
<Version>4.0.0</Version>
<Version>5.0.0</Version>
<Authors>Kentico Software</Authors>
<Company>Kentico Software</Company>
<PackageIcon>icon.png</PackageIcon>
Expand Down

0 comments on commit f3e6846

Please sign in to comment.