Skip to content

Commit

Permalink
fix(javascript): use beta version (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4385

Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Jan 22, 2025
1 parent 2ac2f2f commit 95b4c7d
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 40 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"packages/*"
],
"scripts": {
"build": "lerna run build --skip-nx-cache --scope '@algolia/requester-testing' --scope '@algolia/logger-console' --scope 'algoliasearch' --scope '@algolia/client-composition' --include-dependencies",
"build": "lerna run build --skip-nx-cache --scope '@algolia/requester-testing' --scope '@algolia/logger-console' --scope 'algoliasearch' --scope '@algolia/client-composition' --scope '@algolia/composition' --include-dependencies",
"clean": "lerna run clean",
"release:publish": "tsc --project scripts/tsconfig.json && node scripts/dist/publish.js",
"test": "lerna run test $*",
Expand Down
7 changes: 0 additions & 7 deletions packages/algoliasearch/builds/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import type { QuerySuggestionsClient } from '@algolia/client-query-suggestions';
import { querySuggestionsClient } from '@algolia/client-query-suggestions';
import type { SearchClient } from '@algolia/client-search';
import { searchClient } from '@algolia/client-search';
import type { CompositionClient } from '@algolia/composition';
import { compositionClient } from '@algolia/composition';
import type { IngestionClient } from '@algolia/ingestion';
import { ingestionClient } from '@algolia/ingestion';
import type { MonitoringClient } from '@algolia/monitoring';
Expand All @@ -38,7 +36,6 @@ export * from './models';
export type Algoliasearch = SearchClient & {
initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions) => AbtestingClient;
initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions) => AnalyticsClient;
initComposition: (initOptions?: InitClientOptions) => CompositionClient;
initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions) => IngestionClient;
initInsights: (initOptions: InitClientOptions & InsightsRegionOptions) => InsightsClient;
initMonitoring: (initOptions?: InitClientOptions) => MonitoringClient;
Expand Down Expand Up @@ -86,10 +83,6 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt
);
},

initComposition: (initOptions: InitClientOptions = {}): CompositionClient => {
return compositionClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options);
},

initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions): IngestionClient => {
return ingestionClient(
initOptions.appId || appId,
Expand Down
7 changes: 0 additions & 7 deletions packages/algoliasearch/builds/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import type { QuerySuggestionsClient } from '@algolia/client-query-suggestions';
import { querySuggestionsClient } from '@algolia/client-query-suggestions';
import type { SearchClient } from '@algolia/client-search';
import { searchClient } from '@algolia/client-search';
import type { CompositionClient } from '@algolia/composition';
import { compositionClient } from '@algolia/composition';
import type { IngestionClient } from '@algolia/ingestion';
import { ingestionClient } from '@algolia/ingestion';
import type { MonitoringClient } from '@algolia/monitoring';
Expand All @@ -38,7 +36,6 @@ export * from './models';
export type Algoliasearch = SearchClient & {
initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions) => AbtestingClient;
initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions) => AnalyticsClient;
initComposition: (initOptions?: InitClientOptions) => CompositionClient;
initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions) => IngestionClient;
initInsights: (initOptions: InitClientOptions & InsightsRegionOptions) => InsightsClient;
initMonitoring: (initOptions?: InitClientOptions) => MonitoringClient;
Expand Down Expand Up @@ -86,10 +83,6 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt
);
},

initComposition: (initOptions: InitClientOptions = {}): CompositionClient => {
return compositionClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options);
},

initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions): IngestionClient => {
return ingestionClient(
initOptions.appId || appId,
Expand Down
2 changes: 0 additions & 2 deletions packages/algoliasearch/builds/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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';

Expand Down Expand Up @@ -121,7 +120,6 @@ export * from '@algolia/client-insights';
export * from '@algolia/client-personalization';
export * from '@algolia/client-query-suggestions';
export * from '@algolia/client-search';
export * from '@algolia/composition';
export * from '@algolia/ingestion';
export * from '@algolia/monitoring';
export * from '@algolia/recommend';
Expand Down
7 changes: 0 additions & 7 deletions packages/algoliasearch/builds/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import type { QuerySuggestionsClient } from '@algolia/client-query-suggestions';
import { querySuggestionsClient } from '@algolia/client-query-suggestions';
import type { SearchClient } from '@algolia/client-search';
import { searchClient } from '@algolia/client-search';
import type { CompositionClient } from '@algolia/composition';
import { compositionClient } from '@algolia/composition';
import type { IngestionClient } from '@algolia/ingestion';
import { ingestionClient } from '@algolia/ingestion';
import type { MonitoringClient } from '@algolia/monitoring';
Expand All @@ -38,7 +36,6 @@ export * from './models';
export type Algoliasearch = SearchClient & {
initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions) => AbtestingClient;
initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions) => AnalyticsClient;
initComposition: (initOptions?: InitClientOptions) => CompositionClient;
initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions) => IngestionClient;
initInsights: (initOptions: InitClientOptions & InsightsRegionOptions) => InsightsClient;
initMonitoring: (initOptions?: InitClientOptions) => MonitoringClient;
Expand Down Expand Up @@ -86,10 +83,6 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt
);
},

initComposition: (initOptions: InitClientOptions = {}): CompositionClient => {
return compositionClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options);
},

initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions): IngestionClient => {
return ingestionClient(
initOptions.appId || appId,
Expand Down
7 changes: 0 additions & 7 deletions packages/algoliasearch/builds/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import type { QuerySuggestionsClient } from '@algolia/client-query-suggestions';
import { querySuggestionsClient } from '@algolia/client-query-suggestions';
import type { SearchClient } from '@algolia/client-search';
import { searchClient } from '@algolia/client-search';
import type { CompositionClient } from '@algolia/composition';
import { compositionClient } from '@algolia/composition';
import type { IngestionClient } from '@algolia/ingestion';
import { ingestionClient } from '@algolia/ingestion';
import type { MonitoringClient } from '@algolia/monitoring';
Expand All @@ -38,7 +36,6 @@ export * from './models';
export type Algoliasearch = SearchClient & {
initAbtesting: (initOptions: InitClientOptions & AbtestingRegionOptions) => AbtestingClient;
initAnalytics: (initOptions: InitClientOptions & AnalyticsRegionOptions) => AnalyticsClient;
initComposition: (initOptions?: InitClientOptions) => CompositionClient;
initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions) => IngestionClient;
initInsights: (initOptions: InitClientOptions & InsightsRegionOptions) => InsightsClient;
initMonitoring: (initOptions?: InitClientOptions) => MonitoringClient;
Expand Down Expand Up @@ -86,10 +83,6 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt
);
},

initComposition: (initOptions: InitClientOptions = {}): CompositionClient => {
return compositionClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options);
},

initIngestion: (initOptions: InitClientOptions & IngestionRegionOptions): IngestionClient => {
return ingestionClient(
initOptions.appId || appId,
Expand Down
1 change: 0 additions & 1 deletion packages/algoliasearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
"@algolia/client-personalization": "5.19.0",
"@algolia/client-query-suggestions": "5.19.0",
"@algolia/client-search": "5.19.0",
"@algolia/composition": "0.0.1",
"@algolia/ingestion": "1.19.0",
"@algolia/monitoring": "1.19.0",
"@algolia/recommend": "5.19.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/composition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ All of our clients comes with type definition, and are available for both browse
### With a package manager

```bash
yarn add @algolia/[email protected]
yarn add @algolia/[email protected]-beta.1
# or
npm install @algolia/[email protected]
npm install @algolia/[email protected]-beta.1
# or
pnpm add @algolia/[email protected]
pnpm add @algolia/[email protected]-beta.1
```

### Without a package manager

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

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

### Usage
Expand Down
2 changes: 1 addition & 1 deletion packages/composition/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.1",
"version": "0.0.1-beta.1",
"repository": {
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/composition/src/compositionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type { SearchResponse } from '../model/searchResponse';

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

export const apiClientVersion = '0.0.1';
export const apiClientVersion = '0.0.1-beta.1';

function getDefaultHosts(appId: string): Host[] {
return (
Expand Down
3 changes: 1 addition & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ __metadata:
languageName: unknown
linkType: soft

"@algolia/composition@npm:0.0.1, @algolia/composition@workspace:packages/composition":
"@algolia/composition@workspace:packages/composition":
version: 0.0.0-use.local
resolution: "@algolia/composition@workspace:packages/composition"
dependencies:
Expand Down Expand Up @@ -2317,7 +2317,6 @@ __metadata:
"@algolia/client-personalization": "npm:5.19.0"
"@algolia/client-query-suggestions": "npm:5.19.0"
"@algolia/client-search": "npm:5.19.0"
"@algolia/composition": "npm:0.0.1"
"@algolia/ingestion": "npm:1.19.0"
"@algolia/monitoring": "npm:1.19.0"
"@algolia/recommend": "npm:5.19.0"
Expand Down

0 comments on commit 95b4c7d

Please sign in to comment.