diff --git a/bundlesize.config.json b/bundlesize.config.json index f72ce0e53..14fb1b295 100644 --- a/bundlesize.config.json +++ b/bundlesize.config.json @@ -2,7 +2,7 @@ "files": [ { "path": "packages/algoliasearch/dist/algoliasearch.umd.js", - "maxSize": "9.50KB" + "maxSize": "12.60KB" }, { "path": "packages/algoliasearch/dist/lite/builds/browser.umd.js", @@ -10,11 +10,11 @@ }, { "path": "packages/client-abtesting/dist/builds/browser.umd.js", - "maxSize": "4.10KB" + "maxSize": "4.15KB" }, { "path": "packages/client-analytics/dist/builds/browser.umd.js", - "maxSize": "4.75KB" + "maxSize": "4.85KB" }, { "path": "packages/client-insights/dist/builds/browser.umd.js", @@ -30,7 +30,7 @@ }, { "path": "packages/client-search/dist/builds/browser.umd.js", - "maxSize": "7.15KB" + "maxSize": "7.25KB" }, { "path": "packages/ingestion/dist/builds/browser.umd.js", @@ -42,7 +42,7 @@ }, { "path": "packages/recommend/dist/builds/browser.umd.js", - "maxSize": "4.10KB" + "maxSize": "4.15KB" } ] } diff --git a/package.json b/package.json index 7beab792d..da0789dad 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ ], "scripts": { "build:all": "lerna run build --include-dependencies", - "build:many": "lerna run build --scope '@algolia/requester-testing' --scope ${0:-'{@algolia/*,algoliasearch}'} --include-dependencies", + "build:many": "lerna run build --scope '@algolia/requester-testing' --scope '@algolia/logger-console' --scope ${0:-'{@algolia/*,algoliasearch}'} --include-dependencies", "clean": "lerna run clean", "release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --force-publish --yes", "release:publish": "tsc --project scripts/tsconfig.json && node scripts/dist/scripts/publish.js", diff --git a/packages/algoliasearch/builds/browser.ts b/packages/algoliasearch/builds/browser.ts index e1c5a385e..0c67028d7 100644 --- a/packages/algoliasearch/builds/browser.ts +++ b/packages/algoliasearch/builds/browser.ts @@ -1,29 +1,47 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. -import type { AbtestingClient, Region as AbtestingRegion } from '@algolia/client-abtesting'; -import type { AnalyticsClient, Region as AnalyticsRegion } from '@algolia/client-analytics'; import type { ClientOptions } from '@algolia/client-common'; -import type { PersonalizationClient, Region as PersonalizationRegion } from '@algolia/client-personalization'; import type { SearchClient } from '@algolia/client-search'; -import type { RecommendClient } from '@algolia/recommend'; +import { searchClient } from '@algolia/client-search'; +import type { AbtestingClient } from '@algolia/client-abtesting'; import { abtestingClient } from '@algolia/client-abtesting'; +import type { AnalyticsClient } from '@algolia/client-analytics'; import { analyticsClient } from '@algolia/client-analytics'; +import type { InsightsClient } from '@algolia/client-insights'; +import { insightsClient } from '@algolia/client-insights'; +import type { PersonalizationClient } from '@algolia/client-personalization'; import { personalizationClient } from '@algolia/client-personalization'; -import { searchClient } from '@algolia/client-search'; +import type { QuerySuggestionsClient } from '@algolia/client-query-suggestions'; +import { querySuggestionsClient } from '@algolia/client-query-suggestions'; +import type { IngestionClient } from '@algolia/ingestion'; +import { ingestionClient } from '@algolia/ingestion'; +import type { MonitoringClient } from '@algolia/monitoring'; +import { monitoringClient } from '@algolia/monitoring'; +import type { RecommendClient } from '@algolia/recommend'; import { recommendClient } from '@algolia/recommend'; -import type { InitClientOptions, InitClientRegion } from './models'; +import type { + AbtestingRegionOptions, + AnalyticsRegionOptions, + IngestionRegionOptions, + InitClientOptions, + InsightsRegionOptions, + PersonalizationRegionOptions, + QuerySuggestionsRegionOptions, +} from './models'; export * from './models'; export type Algoliasearch = SearchClient & { - initRecommend: (initOptions?: InitClientOptions) => RecommendClient; - initAnalytics: (initOptions?: InitClientOptions & InitClientRegion) => AnalyticsClient; - initAbtesting: (initOptions?: InitClientOptions & InitClientRegion) => AbtestingClient; - initPersonalization: ( - initOptions: InitClientOptions & Required>, - ) => PersonalizationClient; + initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions) => AbtestingClient; + initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions) => AnalyticsClient; + initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions) => IngestionClient; + initInsights: (initOptions: InitClientOptions & InsightsRegionOptions) => InsightsClient; + initMonitoring: (initOptions: InitClientOptions) => MonitoringClient; + initPersonalization: (initOptions: InitClientOptions & PersonalizationRegionOptions) => PersonalizationClient; + initQuerySuggestions: (initOptions: InitClientOptions & QuerySuggestionsRegionOptions) => QuerySuggestionsClient; + initRecommend: (initOptions: InitClientOptions) => RecommendClient; }; export function algoliasearch(appId: string, apiKey: string, options?: ClientOptions): Algoliasearch { @@ -39,17 +57,24 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt return { ...client, + /** * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system. */ get _ua(): string { return client.transporter.algoliaAgent.value; }, - initRecommend: (initOptions: InitClientOptions = {}): RecommendClient => { - return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + + initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions): AbtestingClient => { + return abtestingClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); }, - initAnalytics: (initOptions: InitClientOptions & InitClientRegion = {}): AnalyticsClient => { + initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions): AnalyticsClient => { return analyticsClient( initOptions.appId || appId, initOptions.apiKey || apiKey, @@ -58,8 +83,8 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt ); }, - initAbtesting: (initOptions: InitClientOptions & InitClientRegion = {}): AbtestingClient => { - return abtestingClient( + initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions): IngestionClient => { + return ingestionClient( initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.region, @@ -67,9 +92,20 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt ); }, - initPersonalization: ( - initOptions: InitClientOptions & Required>, - ): PersonalizationClient => { + initInsights: (initOptions: InitClientOptions & InsightsRegionOptions): InsightsClient => { + return insightsClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); + }, + + initMonitoring: (initOptions: InitClientOptions): MonitoringClient => { + return monitoringClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + }, + + initPersonalization: (initOptions: InitClientOptions & PersonalizationRegionOptions): PersonalizationClient => { return personalizationClient( initOptions.appId || appId, initOptions.apiKey || apiKey, @@ -77,5 +113,18 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt initOptions.options, ); }, + + initQuerySuggestions: (initOptions: InitClientOptions & QuerySuggestionsRegionOptions): QuerySuggestionsClient => { + return querySuggestionsClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); + }, + + initRecommend: (initOptions: InitClientOptions): RecommendClient => { + return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + }, }; } diff --git a/packages/algoliasearch/builds/fetch.ts b/packages/algoliasearch/builds/fetch.ts index e1c5a385e..0c67028d7 100644 --- a/packages/algoliasearch/builds/fetch.ts +++ b/packages/algoliasearch/builds/fetch.ts @@ -1,29 +1,47 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. -import type { AbtestingClient, Region as AbtestingRegion } from '@algolia/client-abtesting'; -import type { AnalyticsClient, Region as AnalyticsRegion } from '@algolia/client-analytics'; import type { ClientOptions } from '@algolia/client-common'; -import type { PersonalizationClient, Region as PersonalizationRegion } from '@algolia/client-personalization'; import type { SearchClient } from '@algolia/client-search'; -import type { RecommendClient } from '@algolia/recommend'; +import { searchClient } from '@algolia/client-search'; +import type { AbtestingClient } from '@algolia/client-abtesting'; import { abtestingClient } from '@algolia/client-abtesting'; +import type { AnalyticsClient } from '@algolia/client-analytics'; import { analyticsClient } from '@algolia/client-analytics'; +import type { InsightsClient } from '@algolia/client-insights'; +import { insightsClient } from '@algolia/client-insights'; +import type { PersonalizationClient } from '@algolia/client-personalization'; import { personalizationClient } from '@algolia/client-personalization'; -import { searchClient } from '@algolia/client-search'; +import type { QuerySuggestionsClient } from '@algolia/client-query-suggestions'; +import { querySuggestionsClient } from '@algolia/client-query-suggestions'; +import type { IngestionClient } from '@algolia/ingestion'; +import { ingestionClient } from '@algolia/ingestion'; +import type { MonitoringClient } from '@algolia/monitoring'; +import { monitoringClient } from '@algolia/monitoring'; +import type { RecommendClient } from '@algolia/recommend'; import { recommendClient } from '@algolia/recommend'; -import type { InitClientOptions, InitClientRegion } from './models'; +import type { + AbtestingRegionOptions, + AnalyticsRegionOptions, + IngestionRegionOptions, + InitClientOptions, + InsightsRegionOptions, + PersonalizationRegionOptions, + QuerySuggestionsRegionOptions, +} from './models'; export * from './models'; export type Algoliasearch = SearchClient & { - initRecommend: (initOptions?: InitClientOptions) => RecommendClient; - initAnalytics: (initOptions?: InitClientOptions & InitClientRegion) => AnalyticsClient; - initAbtesting: (initOptions?: InitClientOptions & InitClientRegion) => AbtestingClient; - initPersonalization: ( - initOptions: InitClientOptions & Required>, - ) => PersonalizationClient; + initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions) => AbtestingClient; + initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions) => AnalyticsClient; + initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions) => IngestionClient; + initInsights: (initOptions: InitClientOptions & InsightsRegionOptions) => InsightsClient; + initMonitoring: (initOptions: InitClientOptions) => MonitoringClient; + initPersonalization: (initOptions: InitClientOptions & PersonalizationRegionOptions) => PersonalizationClient; + initQuerySuggestions: (initOptions: InitClientOptions & QuerySuggestionsRegionOptions) => QuerySuggestionsClient; + initRecommend: (initOptions: InitClientOptions) => RecommendClient; }; export function algoliasearch(appId: string, apiKey: string, options?: ClientOptions): Algoliasearch { @@ -39,17 +57,24 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt return { ...client, + /** * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system. */ get _ua(): string { return client.transporter.algoliaAgent.value; }, - initRecommend: (initOptions: InitClientOptions = {}): RecommendClient => { - return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + + initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions): AbtestingClient => { + return abtestingClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); }, - initAnalytics: (initOptions: InitClientOptions & InitClientRegion = {}): AnalyticsClient => { + initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions): AnalyticsClient => { return analyticsClient( initOptions.appId || appId, initOptions.apiKey || apiKey, @@ -58,8 +83,8 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt ); }, - initAbtesting: (initOptions: InitClientOptions & InitClientRegion = {}): AbtestingClient => { - return abtestingClient( + initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions): IngestionClient => { + return ingestionClient( initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.region, @@ -67,9 +92,20 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt ); }, - initPersonalization: ( - initOptions: InitClientOptions & Required>, - ): PersonalizationClient => { + initInsights: (initOptions: InitClientOptions & InsightsRegionOptions): InsightsClient => { + return insightsClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); + }, + + initMonitoring: (initOptions: InitClientOptions): MonitoringClient => { + return monitoringClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + }, + + initPersonalization: (initOptions: InitClientOptions & PersonalizationRegionOptions): PersonalizationClient => { return personalizationClient( initOptions.appId || appId, initOptions.apiKey || apiKey, @@ -77,5 +113,18 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt initOptions.options, ); }, + + initQuerySuggestions: (initOptions: InitClientOptions & QuerySuggestionsRegionOptions): QuerySuggestionsClient => { + return querySuggestionsClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); + }, + + initRecommend: (initOptions: InitClientOptions): RecommendClient => { + return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + }, }; } diff --git a/packages/algoliasearch/builds/models.ts b/packages/algoliasearch/builds/models.ts index 201e705ba..ff104a3d7 100644 --- a/packages/algoliasearch/builds/models.ts +++ b/packages/algoliasearch/builds/models.ts @@ -1,9 +1,24 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. -import type { Region as AbTestingRegion } from '@algolia/client-abtesting'; -import type { Region as AnalyticsRegion } from '@algolia/client-analytics'; +import type { Region as AbtestingRegion, RegionOptions as AbtestingRegionOptions } from '@algolia/client-abtesting'; +import type { Region as AnalyticsRegion, RegionOptions as AnalyticsRegionOptions } from '@algolia/client-analytics'; +import type { Region as InsightsRegion, RegionOptions as InsightsRegionOptions } from '@algolia/client-insights'; +import type { Region as IngestionRegion, RegionOptions as IngestionRegionOptions } from '@algolia/ingestion'; + +import type { + Region as PersonalizationRegion, + RegionOptions as PersonalizationRegionOptions, +} from '@algolia/client-personalization'; +import type { + Region as QuerySuggestionsRegion, + RegionOptions as QuerySuggestionsRegionOptions, +} from '@algolia/client-query-suggestions'; + +import { Status } from '@algolia/client-abtesting'; import type { ClientOptions } from '@algolia/client-common'; +import { EventType } from '@algolia/client-personalization'; import type { + Action, AdvancedSyntaxFeatures, AlternativesAsExact, Anchoring, @@ -31,6 +46,7 @@ import type { CustomGetProps, CustomPostProps, CustomPutProps, + DeleteSourceProps, DeletedAtResponse, Distinct, Edit, @@ -40,14 +56,16 @@ import type { Exhaustive, FacetFilters, FacetOrdering, - Facets, FacetStats, + Facets, + GetTaskProps, HighlightResult, HighlightResultOption, IgnorePlurals, IndexSettingsAsSearchParams, - MatchedGeoLocation, + Languages, MatchLevel, + MatchedGeoLocation, Mode, NumericFilters, OptionalFilters, @@ -59,6 +77,7 @@ import type { QueryType, Range, RankingInfo, + ReRankingApplyFilter, Redirect, RedirectRuleIndexData, RedirectRuleIndexMetadata, @@ -66,7 +85,6 @@ import type { RemoveStopWords, RemoveWordsIfNoResults, RenderingContent, - ReRankingApplyFilter, SearchPagination, SearchParams, SearchParamsObject, @@ -75,6 +93,7 @@ import type { SnippetResult, SnippetResultOption, SortRemainingBy, + Source, SupportedLanguage, TagFilters, TaskStatus, @@ -86,21 +105,40 @@ import type { } from '@algolia/client-search'; import { apiClientVersion } from '@algolia/client-search'; -type Region = AbTestingRegion | AnalyticsRegion; +type Region = + | AbtestingRegion + | AnalyticsRegion + | IngestionRegion + | InsightsRegion + | PersonalizationRegion + | QuerySuggestionsRegion; +type RegionOptions = + | AbtestingRegionOptions + | AnalyticsRegionOptions + | IngestionRegionOptions + | InsightsRegionOptions + | PersonalizationRegionOptions + | QuerySuggestionsRegionOptions; export * from '@algolia/client-abtesting'; export * from '@algolia/client-analytics'; +export * from '@algolia/client-insights'; export * from '@algolia/client-personalization'; +export * from '@algolia/client-query-suggestions'; export * from '@algolia/client-search'; +export * from '@algolia/ingestion'; +export * from '@algolia/monitoring'; export * from '@algolia/recommend'; export { - AbTestingRegion, + AbtestingRegion, + AbtestingRegionOptions, + Action, AdvancedSyntaxFeatures, AlternativesAsExact, AnalyticsRegion, + AnalyticsRegionOptions, Anchoring, - apiClientVersion, AroundPrecision, AroundRadius, AroundRadiusAll, @@ -125,43 +163,56 @@ export { CustomGetProps, CustomPostProps, CustomPutProps, + DeleteSourceProps, DeletedAtResponse, Distinct, Edit, EditType, ErrorBase, + EventType, ExactOnSingleWordQuery, Exhaustive, FacetFilters, FacetOrdering, - Facets, FacetStats, + Facets, + GetTaskProps, HighlightResult, HighlightResultOption, IgnorePlurals, IndexSettingsAsSearchParams, - MatchedGeoLocation, + IngestionRegion, + IngestionRegionOptions, + InsightsRegion, + InsightsRegionOptions, + Languages, MatchLevel, + MatchedGeoLocation, Mode, NumericFilters, OptionalFilters, Params, Personalization, + PersonalizationRegion, + PersonalizationRegionOptions, Promote, PromoteObjectID, PromoteObjectIDs, + QuerySuggestionsRegion, + QuerySuggestionsRegionOptions, QueryType, Range, RankingInfo, + ReRankingApplyFilter, Redirect, RedirectRuleIndexData, RedirectRuleIndexMetadata, RedirectURL, Region, + RegionOptions, RemoveStopWords, RemoveWordsIfNoResults, RenderingContent, - ReRankingApplyFilter, SearchPagination, SearchParams, SearchParamsObject, @@ -170,6 +221,8 @@ export { SnippetResult, SnippetResultOption, SortRemainingBy, + Source, + Status, SupportedLanguage, TagFilters, TaskStatus, @@ -178,6 +231,7 @@ export { TypoToleranceEnum, Value, Widgets, + apiClientVersion, }; /** @@ -194,10 +248,3 @@ export type InitClientOptions = Partial<{ apiKey: string; options: ClientOptions; }>; - -export type InitClientRegion = Partial<{ - /** - * Available regions of the initialized client. - */ - region: TRegion; -}>; diff --git a/packages/algoliasearch/builds/node.ts b/packages/algoliasearch/builds/node.ts index e1c5a385e..0c67028d7 100644 --- a/packages/algoliasearch/builds/node.ts +++ b/packages/algoliasearch/builds/node.ts @@ -1,29 +1,47 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. -import type { AbtestingClient, Region as AbtestingRegion } from '@algolia/client-abtesting'; -import type { AnalyticsClient, Region as AnalyticsRegion } from '@algolia/client-analytics'; import type { ClientOptions } from '@algolia/client-common'; -import type { PersonalizationClient, Region as PersonalizationRegion } from '@algolia/client-personalization'; import type { SearchClient } from '@algolia/client-search'; -import type { RecommendClient } from '@algolia/recommend'; +import { searchClient } from '@algolia/client-search'; +import type { AbtestingClient } from '@algolia/client-abtesting'; import { abtestingClient } from '@algolia/client-abtesting'; +import type { AnalyticsClient } from '@algolia/client-analytics'; import { analyticsClient } from '@algolia/client-analytics'; +import type { InsightsClient } from '@algolia/client-insights'; +import { insightsClient } from '@algolia/client-insights'; +import type { PersonalizationClient } from '@algolia/client-personalization'; import { personalizationClient } from '@algolia/client-personalization'; -import { searchClient } from '@algolia/client-search'; +import type { QuerySuggestionsClient } from '@algolia/client-query-suggestions'; +import { querySuggestionsClient } from '@algolia/client-query-suggestions'; +import type { IngestionClient } from '@algolia/ingestion'; +import { ingestionClient } from '@algolia/ingestion'; +import type { MonitoringClient } from '@algolia/monitoring'; +import { monitoringClient } from '@algolia/monitoring'; +import type { RecommendClient } from '@algolia/recommend'; import { recommendClient } from '@algolia/recommend'; -import type { InitClientOptions, InitClientRegion } from './models'; +import type { + AbtestingRegionOptions, + AnalyticsRegionOptions, + IngestionRegionOptions, + InitClientOptions, + InsightsRegionOptions, + PersonalizationRegionOptions, + QuerySuggestionsRegionOptions, +} from './models'; export * from './models'; export type Algoliasearch = SearchClient & { - initRecommend: (initOptions?: InitClientOptions) => RecommendClient; - initAnalytics: (initOptions?: InitClientOptions & InitClientRegion) => AnalyticsClient; - initAbtesting: (initOptions?: InitClientOptions & InitClientRegion) => AbtestingClient; - initPersonalization: ( - initOptions: InitClientOptions & Required>, - ) => PersonalizationClient; + initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions) => AbtestingClient; + initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions) => AnalyticsClient; + initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions) => IngestionClient; + initInsights: (initOptions: InitClientOptions & InsightsRegionOptions) => InsightsClient; + initMonitoring: (initOptions: InitClientOptions) => MonitoringClient; + initPersonalization: (initOptions: InitClientOptions & PersonalizationRegionOptions) => PersonalizationClient; + initQuerySuggestions: (initOptions: InitClientOptions & QuerySuggestionsRegionOptions) => QuerySuggestionsClient; + initRecommend: (initOptions: InitClientOptions) => RecommendClient; }; export function algoliasearch(appId: string, apiKey: string, options?: ClientOptions): Algoliasearch { @@ -39,17 +57,24 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt return { ...client, + /** * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system. */ get _ua(): string { return client.transporter.algoliaAgent.value; }, - initRecommend: (initOptions: InitClientOptions = {}): RecommendClient => { - return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + + initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions): AbtestingClient => { + return abtestingClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); }, - initAnalytics: (initOptions: InitClientOptions & InitClientRegion = {}): AnalyticsClient => { + initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions): AnalyticsClient => { return analyticsClient( initOptions.appId || appId, initOptions.apiKey || apiKey, @@ -58,8 +83,8 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt ); }, - initAbtesting: (initOptions: InitClientOptions & InitClientRegion = {}): AbtestingClient => { - return abtestingClient( + initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions): IngestionClient => { + return ingestionClient( initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.region, @@ -67,9 +92,20 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt ); }, - initPersonalization: ( - initOptions: InitClientOptions & Required>, - ): PersonalizationClient => { + initInsights: (initOptions: InitClientOptions & InsightsRegionOptions): InsightsClient => { + return insightsClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); + }, + + initMonitoring: (initOptions: InitClientOptions): MonitoringClient => { + return monitoringClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + }, + + initPersonalization: (initOptions: InitClientOptions & PersonalizationRegionOptions): PersonalizationClient => { return personalizationClient( initOptions.appId || appId, initOptions.apiKey || apiKey, @@ -77,5 +113,18 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt initOptions.options, ); }, + + initQuerySuggestions: (initOptions: InitClientOptions & QuerySuggestionsRegionOptions): QuerySuggestionsClient => { + return querySuggestionsClient( + initOptions.appId || appId, + initOptions.apiKey || apiKey, + initOptions.region, + initOptions.options, + ); + }, + + initRecommend: (initOptions: InitClientOptions): RecommendClient => { + return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options); + }, }; } diff --git a/packages/algoliasearch/package.json b/packages/algoliasearch/package.json index 2495cb957..5a88a273e 100644 --- a/packages/algoliasearch/package.json +++ b/packages/algoliasearch/package.json @@ -76,8 +76,11 @@ "@algolia/client-abtesting": "5.8.1", "@algolia/client-analytics": "5.8.1", "@algolia/client-common": "5.8.1", + "@algolia/client-insights": "5.8.1", "@algolia/client-personalization": "5.8.1", - "@algolia/client-search": "5.8.1", + "@algolia/client-query-suggestions": "5.8.1", + "@algolia/ingestion": "1.8.1", + "@algolia/monitoring": "1.8.1", "@algolia/recommend": "5.8.1", "@algolia/requester-browser-xhr": "5.8.1", "@algolia/requester-fetch": "5.8.1", diff --git a/packages/client-abtesting/builds/browser.ts b/packages/client-abtesting/builds/browser.ts index aee47c7d8..f2f616318 100644 --- a/packages/client-abtesting/builds/browser.ts +++ b/packages/client-abtesting/builds/browser.ts @@ -18,7 +18,7 @@ import { apiClientVersion, createAbtestingClient } from '../src/abtestingClient' import { Region, REGIONS } from '../src/abtestingClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/abtestingClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/abtestingClient'; export function abtestingClient( appId: string, diff --git a/packages/client-abtesting/builds/fetch.ts b/packages/client-abtesting/builds/fetch.ts index 16d3e1fcb..d22f10a74 100644 --- a/packages/client-abtesting/builds/fetch.ts +++ b/packages/client-abtesting/builds/fetch.ts @@ -18,7 +18,7 @@ import { createAbtestingClient } from '../src/abtestingClient'; import { Region, REGIONS } from '../src/abtestingClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/abtestingClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/abtestingClient'; export function abtestingClient( appId: string, diff --git a/packages/client-abtesting/builds/node.ts b/packages/client-abtesting/builds/node.ts index d25e25999..6f22aa107 100644 --- a/packages/client-abtesting/builds/node.ts +++ b/packages/client-abtesting/builds/node.ts @@ -19,7 +19,7 @@ import { createAbtestingClient } from '../src/abtestingClient'; import { Region, REGIONS } from '../src/abtestingClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/abtestingClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/abtestingClient'; export function abtestingClient( appId: string, diff --git a/packages/client-abtesting/src/abtestingClient.ts b/packages/client-abtesting/src/abtestingClient.ts index 56cb483f0..a95f60c28 100644 --- a/packages/client-abtesting/src/abtestingClient.ts +++ b/packages/client-abtesting/src/abtestingClient.ts @@ -33,6 +33,7 @@ export const apiClientVersion = '5.8.1'; export const REGIONS = ['de', 'us'] as const; export type Region = (typeof REGIONS)[number]; +export type RegionOptions = { region?: Region }; function getDefaultHosts(region?: Region): Host[] { const url = !region ? 'analytics.algolia.com' : 'analytics.{region}.algolia.com'.replace('{region}', region); @@ -47,7 +48,7 @@ export function createAbtestingClient({ algoliaAgents, region: regionOption, ...options -}: CreateClientOptions & { region?: Region }) { +}: CreateClientOptions & RegionOptions) { const auth = createAuth(appIdOption, apiKeyOption, authMode); const transporter = createTransporter({ hosts: getDefaultHosts(regionOption), diff --git a/packages/client-analytics/builds/browser.ts b/packages/client-analytics/builds/browser.ts index 932383706..c5be547d3 100644 --- a/packages/client-analytics/builds/browser.ts +++ b/packages/client-analytics/builds/browser.ts @@ -18,7 +18,7 @@ import { apiClientVersion, createAnalyticsClient } from '../src/analyticsClient' import { Region, REGIONS } from '../src/analyticsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/analyticsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/analyticsClient'; export function analyticsClient( appId: string, diff --git a/packages/client-analytics/builds/fetch.ts b/packages/client-analytics/builds/fetch.ts index c6baa6e2b..0346bb524 100644 --- a/packages/client-analytics/builds/fetch.ts +++ b/packages/client-analytics/builds/fetch.ts @@ -18,7 +18,7 @@ import { createAnalyticsClient } from '../src/analyticsClient'; import { Region, REGIONS } from '../src/analyticsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/analyticsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/analyticsClient'; export function analyticsClient( appId: string, diff --git a/packages/client-analytics/builds/node.ts b/packages/client-analytics/builds/node.ts index 1adcd4ce3..5cdabba38 100644 --- a/packages/client-analytics/builds/node.ts +++ b/packages/client-analytics/builds/node.ts @@ -19,7 +19,7 @@ import { createAnalyticsClient } from '../src/analyticsClient'; import { Region, REGIONS } from '../src/analyticsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/analyticsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/analyticsClient'; export function analyticsClient( appId: string, diff --git a/packages/client-analytics/src/analyticsClient.ts b/packages/client-analytics/src/analyticsClient.ts index 894d17bc0..ad503f32e 100644 --- a/packages/client-analytics/src/analyticsClient.ts +++ b/packages/client-analytics/src/analyticsClient.ts @@ -62,6 +62,7 @@ export const apiClientVersion = '5.8.1'; export const REGIONS = ['de', 'us'] as const; export type Region = (typeof REGIONS)[number]; +export type RegionOptions = { region?: Region }; function getDefaultHosts(region?: Region): Host[] { const url = !region ? 'analytics.algolia.com' : 'analytics.{region}.algolia.com'.replace('{region}', region); @@ -76,7 +77,7 @@ export function createAnalyticsClient({ algoliaAgents, region: regionOption, ...options -}: CreateClientOptions & { region?: Region }) { +}: CreateClientOptions & RegionOptions) { const auth = createAuth(appIdOption, apiKeyOption, authMode); const transporter = createTransporter({ hosts: getDefaultHosts(regionOption), diff --git a/packages/client-insights/README.md b/packages/client-insights/README.md index 134d4be49..4d0d0729d 100644 --- a/packages/client-insights/README.md +++ b/packages/client-insights/README.md @@ -32,6 +32,9 @@ ## 💡 Getting Started +> [!TIP] +> This API client is already a dependency of [the algoliasearch client](https://www.npmjs.com/package/algoliasearch), you don't need to manually install `@algolia/client-insights` if you already have `algoliasearch` installed. + To get started, you first need to install @algolia/client-insights (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments. diff --git a/packages/client-insights/builds/browser.ts b/packages/client-insights/builds/browser.ts index 3fece73cc..df14d9bc8 100644 --- a/packages/client-insights/builds/browser.ts +++ b/packages/client-insights/builds/browser.ts @@ -18,7 +18,7 @@ import { apiClientVersion, createInsightsClient } from '../src/insightsClient'; import { Region, REGIONS } from '../src/insightsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/insightsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/insightsClient'; export function insightsClient( appId: string, diff --git a/packages/client-insights/builds/fetch.ts b/packages/client-insights/builds/fetch.ts index 363f8626b..90545757e 100644 --- a/packages/client-insights/builds/fetch.ts +++ b/packages/client-insights/builds/fetch.ts @@ -18,7 +18,7 @@ import { createInsightsClient } from '../src/insightsClient'; import { Region, REGIONS } from '../src/insightsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/insightsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/insightsClient'; export function insightsClient( appId: string, diff --git a/packages/client-insights/builds/node.ts b/packages/client-insights/builds/node.ts index b3bb7ceb1..10ef87091 100644 --- a/packages/client-insights/builds/node.ts +++ b/packages/client-insights/builds/node.ts @@ -19,7 +19,7 @@ import { createInsightsClient } from '../src/insightsClient'; import { Region, REGIONS } from '../src/insightsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/insightsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/insightsClient'; export function insightsClient( appId: string, diff --git a/packages/client-insights/src/insightsClient.ts b/packages/client-insights/src/insightsClient.ts index 97daf1b8d..663e2eb0a 100644 --- a/packages/client-insights/src/insightsClient.ts +++ b/packages/client-insights/src/insightsClient.ts @@ -25,6 +25,7 @@ export const apiClientVersion = '5.8.1'; export const REGIONS = ['de', 'us'] as const; export type Region = (typeof REGIONS)[number]; +export type RegionOptions = { region?: Region }; function getDefaultHosts(region?: Region): Host[] { const url = !region ? 'insights.algolia.io' : 'insights.{region}.algolia.io'.replace('{region}', region); @@ -39,7 +40,7 @@ export function createInsightsClient({ algoliaAgents, region: regionOption, ...options -}: CreateClientOptions & { region?: Region }) { +}: CreateClientOptions & RegionOptions) { const auth = createAuth(appIdOption, apiKeyOption, authMode); const transporter = createTransporter({ hosts: getDefaultHosts(regionOption), diff --git a/packages/client-personalization/builds/browser.ts b/packages/client-personalization/builds/browser.ts index a373c9543..b7f7657cc 100644 --- a/packages/client-personalization/builds/browser.ts +++ b/packages/client-personalization/builds/browser.ts @@ -18,7 +18,7 @@ import { apiClientVersion, createPersonalizationClient } from '../src/personaliz import { Region, REGIONS } from '../src/personalizationClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/personalizationClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/personalizationClient'; export function personalizationClient( appId: string, diff --git a/packages/client-personalization/builds/fetch.ts b/packages/client-personalization/builds/fetch.ts index 7d5c879d3..037a0f58e 100644 --- a/packages/client-personalization/builds/fetch.ts +++ b/packages/client-personalization/builds/fetch.ts @@ -18,7 +18,7 @@ import { createPersonalizationClient } from '../src/personalizationClient'; import { Region, REGIONS } from '../src/personalizationClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/personalizationClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/personalizationClient'; export function personalizationClient( appId: string, diff --git a/packages/client-personalization/builds/node.ts b/packages/client-personalization/builds/node.ts index d08aeadc1..ac32f8cf2 100644 --- a/packages/client-personalization/builds/node.ts +++ b/packages/client-personalization/builds/node.ts @@ -19,7 +19,7 @@ import { createPersonalizationClient } from '../src/personalizationClient'; import { Region, REGIONS } from '../src/personalizationClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/personalizationClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/personalizationClient'; export function personalizationClient( appId: string, diff --git a/packages/client-personalization/src/personalizationClient.ts b/packages/client-personalization/src/personalizationClient.ts index 8e4f0d7da..05f29235d 100644 --- a/packages/client-personalization/src/personalizationClient.ts +++ b/packages/client-personalization/src/personalizationClient.ts @@ -29,6 +29,7 @@ export const apiClientVersion = '5.8.1'; export const REGIONS = ['eu', 'us'] as const; export type Region = (typeof REGIONS)[number]; +export type RegionOptions = { region: Region }; function getDefaultHosts(region: Region): Host[] { const url = 'personalization.{region}.algolia.com'.replace('{region}', region); @@ -43,7 +44,7 @@ export function createPersonalizationClient({ algoliaAgents, region: regionOption, ...options -}: CreateClientOptions & { region: Region }) { +}: CreateClientOptions & RegionOptions) { const auth = createAuth(appIdOption, apiKeyOption, authMode); const transporter = createTransporter({ hosts: getDefaultHosts(regionOption), diff --git a/packages/client-query-suggestions/README.md b/packages/client-query-suggestions/README.md index 158d31cd9..717d2f59a 100644 --- a/packages/client-query-suggestions/README.md +++ b/packages/client-query-suggestions/README.md @@ -32,6 +32,9 @@ ## 💡 Getting Started +> [!TIP] +> This API client is already a dependency of [the algoliasearch client](https://www.npmjs.com/package/algoliasearch), you don't need to manually install `@algolia/client-query-suggestions` if you already have `algoliasearch` installed. + To get started, you first need to install @algolia/client-query-suggestions (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments. diff --git a/packages/client-query-suggestions/builds/browser.ts b/packages/client-query-suggestions/builds/browser.ts index 8f10336df..9b4a08a8a 100644 --- a/packages/client-query-suggestions/builds/browser.ts +++ b/packages/client-query-suggestions/builds/browser.ts @@ -18,7 +18,7 @@ import { apiClientVersion, createQuerySuggestionsClient } from '../src/querySugg import { Region, REGIONS } from '../src/querySuggestionsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/querySuggestionsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/querySuggestionsClient'; export function querySuggestionsClient( appId: string, diff --git a/packages/client-query-suggestions/builds/fetch.ts b/packages/client-query-suggestions/builds/fetch.ts index 439861d42..4114d54fd 100644 --- a/packages/client-query-suggestions/builds/fetch.ts +++ b/packages/client-query-suggestions/builds/fetch.ts @@ -18,7 +18,7 @@ import { createQuerySuggestionsClient } from '../src/querySuggestionsClient'; import { Region, REGIONS } from '../src/querySuggestionsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/querySuggestionsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/querySuggestionsClient'; export function querySuggestionsClient( appId: string, diff --git a/packages/client-query-suggestions/builds/node.ts b/packages/client-query-suggestions/builds/node.ts index 5c3031adf..eabb8ab69 100644 --- a/packages/client-query-suggestions/builds/node.ts +++ b/packages/client-query-suggestions/builds/node.ts @@ -19,7 +19,7 @@ import { createQuerySuggestionsClient } from '../src/querySuggestionsClient'; import { Region, REGIONS } from '../src/querySuggestionsClient'; export * from '../model'; -export { apiClientVersion, Region } from '../src/querySuggestionsClient'; +export { apiClientVersion, Region, RegionOptions } from '../src/querySuggestionsClient'; export function querySuggestionsClient( appId: string, diff --git a/packages/client-query-suggestions/src/querySuggestionsClient.ts b/packages/client-query-suggestions/src/querySuggestionsClient.ts index 5abd7559c..d71ab329c 100644 --- a/packages/client-query-suggestions/src/querySuggestionsClient.ts +++ b/packages/client-query-suggestions/src/querySuggestionsClient.ts @@ -34,6 +34,7 @@ export const apiClientVersion = '5.8.1'; export const REGIONS = ['eu', 'us'] as const; export type Region = (typeof REGIONS)[number]; +export type RegionOptions = { region: Region }; function getDefaultHosts(region: Region): Host[] { const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region); @@ -48,7 +49,7 @@ export function createQuerySuggestionsClient({ algoliaAgents, region: regionOption, ...options -}: CreateClientOptions & { region: Region }) { +}: CreateClientOptions & RegionOptions) { const auth = createAuth(appIdOption, apiKeyOption, authMode); const transporter = createTransporter({ hosts: getDefaultHosts(regionOption), diff --git a/packages/ingestion/README.md b/packages/ingestion/README.md index 30278eb4d..bd6de4de1 100644 --- a/packages/ingestion/README.md +++ b/packages/ingestion/README.md @@ -32,6 +32,9 @@ ## 💡 Getting Started +> [!TIP] +> This API client is already a dependency of [the algoliasearch client](https://www.npmjs.com/package/algoliasearch), you don't need to manually install `@algolia/ingestion` if you already have `algoliasearch` installed. + To get started, you first need to install @algolia/ingestion (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments. diff --git a/packages/ingestion/builds/browser.ts b/packages/ingestion/builds/browser.ts index f53cad1fe..25ae23cdc 100644 --- a/packages/ingestion/builds/browser.ts +++ b/packages/ingestion/builds/browser.ts @@ -24,6 +24,7 @@ export { isScheduleTrigger, isSubscriptionTrigger, Region, + RegionOptions, } from '../src/ingestionClient'; export function ingestionClient( diff --git a/packages/ingestion/builds/fetch.ts b/packages/ingestion/builds/fetch.ts index aa0491d69..20a8a48e8 100644 --- a/packages/ingestion/builds/fetch.ts +++ b/packages/ingestion/builds/fetch.ts @@ -24,6 +24,7 @@ export { isScheduleTrigger, isSubscriptionTrigger, Region, + RegionOptions, } from '../src/ingestionClient'; export function ingestionClient( diff --git a/packages/ingestion/builds/node.ts b/packages/ingestion/builds/node.ts index 0fc36d70f..3f92fc326 100644 --- a/packages/ingestion/builds/node.ts +++ b/packages/ingestion/builds/node.ts @@ -25,6 +25,7 @@ export { isScheduleTrigger, isSubscriptionTrigger, Region, + RegionOptions, } from '../src/ingestionClient'; export function ingestionClient( diff --git a/packages/ingestion/src/ingestionClient.ts b/packages/ingestion/src/ingestionClient.ts index 69669d982..6f331b99c 100644 --- a/packages/ingestion/src/ingestionClient.ts +++ b/packages/ingestion/src/ingestionClient.ts @@ -121,6 +121,7 @@ export const apiClientVersion = '1.8.1'; export const REGIONS = ['eu', 'us'] as const; export type Region = (typeof REGIONS)[number]; +export type RegionOptions = { region: Region }; function getDefaultHosts(region: Region): Host[] { const url = 'data.{region}.algolia.com'.replace('{region}', region); @@ -165,7 +166,7 @@ export function createIngestionClient({ algoliaAgents, region: regionOption, ...options -}: CreateClientOptions & { region: Region }) { +}: CreateClientOptions & RegionOptions) { const auth = createAuth(appIdOption, apiKeyOption, authMode); const transporter = createTransporter({ hosts: getDefaultHosts(regionOption), diff --git a/packages/monitoring/README.md b/packages/monitoring/README.md index f134090ab..2bc735c5c 100644 --- a/packages/monitoring/README.md +++ b/packages/monitoring/README.md @@ -32,6 +32,9 @@ ## 💡 Getting Started +> [!TIP] +> This API client is already a dependency of [the algoliasearch client](https://www.npmjs.com/package/algoliasearch), you don't need to manually install `@algolia/monitoring` if you already have `algoliasearch` installed. + To get started, you first need to install @algolia/monitoring (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments. diff --git a/yarn.lock b/yarn.lock index 19141a3c1..90eca7a7f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -54,7 +54,7 @@ __metadata: languageName: unknown linkType: soft -"@algolia/client-insights@workspace:packages/client-insights": +"@algolia/client-insights@npm:5.8.1, @algolia/client-insights@workspace:packages/client-insights": version: 0.0.0-use.local resolution: "@algolia/client-insights@workspace:packages/client-insights" dependencies: @@ -88,7 +88,7 @@ __metadata: languageName: unknown linkType: soft -"@algolia/client-query-suggestions@workspace:packages/client-query-suggestions": +"@algolia/client-query-suggestions@npm:5.8.1, @algolia/client-query-suggestions@workspace:packages/client-query-suggestions": version: 0.0.0-use.local resolution: "@algolia/client-query-suggestions@workspace:packages/client-query-suggestions" dependencies: @@ -105,7 +105,7 @@ __metadata: languageName: unknown linkType: soft -"@algolia/client-search@npm:5.8.1, @algolia/client-search@workspace:packages/client-search": +"@algolia/client-search@workspace:packages/client-search": version: 0.0.0-use.local resolution: "@algolia/client-search@workspace:packages/client-search" dependencies: @@ -122,7 +122,7 @@ __metadata: languageName: unknown linkType: soft -"@algolia/ingestion@workspace:packages/ingestion": +"@algolia/ingestion@npm:1.8.1, @algolia/ingestion@workspace:packages/ingestion": version: 0.0.0-use.local resolution: "@algolia/ingestion@workspace:packages/ingestion" dependencies: @@ -155,7 +155,7 @@ __metadata: languageName: unknown linkType: soft -"@algolia/monitoring@workspace:packages/monitoring": +"@algolia/monitoring@npm:1.8.1, @algolia/monitoring@workspace:packages/monitoring": version: 0.0.0-use.local resolution: "@algolia/monitoring@workspace:packages/monitoring" dependencies: @@ -2088,8 +2088,11 @@ __metadata: "@algolia/client-abtesting": "npm:5.8.1" "@algolia/client-analytics": "npm:5.8.1" "@algolia/client-common": "npm:5.8.1" + "@algolia/client-insights": "npm:5.8.1" "@algolia/client-personalization": "npm:5.8.1" - "@algolia/client-search": "npm:5.8.1" + "@algolia/client-query-suggestions": "npm:5.8.1" + "@algolia/ingestion": "npm:1.8.1" + "@algolia/monitoring": "npm:1.8.1" "@algolia/recommend": "npm:5.8.1" "@algolia/requester-browser-xhr": "npm:5.8.1" "@algolia/requester-fetch": "npm:5.8.1" @@ -3938,13 +3941,13 @@ __metadata: linkType: hard "form-data@npm:^4.0.0": - version: 4.0.0 - resolution: "form-data@npm:4.0.0" + version: 4.0.1 + resolution: "form-data@npm:4.0.1" dependencies: asynckit: "npm:^0.4.0" combined-stream: "npm:^1.0.8" mime-types: "npm:^2.1.12" - checksum: 10/7264aa760a8cf09482816d8300f1b6e2423de1b02bba612a136857413fdc96d7178298ced106817655facc6b89036c6e12ae31c9eb5bdc16aabf502ae8a5d805 + checksum: 10/6adb1cff557328bc6eb8a68da205f9ae44ab0e88d4d9237aaf91eed591ffc64f77411efb9016af7d87f23d0a038c45a788aa1c6634e51175c4efa36c2bc53774 languageName: node linkType: hard @@ -5819,11 +5822,11 @@ __metadata: linkType: hard "nan@npm:^2.14.0": - version: 2.20.0 - resolution: "nan@npm:2.20.0" + version: 2.21.0 + resolution: "nan@npm:2.21.0" dependencies: node-gyp: "npm:latest" - checksum: 10/5f16e4c9953075d9920229c703c1d781c0b74118ce3d9e926b448a4eef92b7d8be5ac6adc748a13a5fafb594436cbfe63250e3471aefdd78e3a0cd14603b9ba7 + checksum: 10/4517d316776b509a961c65241b72863e70f63aa5b0c354ca19fbbbf7c78254e54aa1f0de142fac1df986a04c27e74a1fb7e4aa85e9e3834daa172b8d9d1bbb07 languageName: node linkType: hard