Skip to content

Commit

Permalink
Add core-http-compat in Search Documents (#20940)
Browse files Browse the repository at this point in the history
Search Documents has already migrated to the new Core client and Core rest pipeline libraries, however, this introduced too many breaking changes. In order to minimize the braking changes, core-http-compat was created. This commit regenerates the client with the latest version of autorest, with the core-http-compat-mode flag set to true, and no longer depending on core-http.
  • Loading branch information
JonathanCrd authored Mar 30, 2022
1 parent e95dcd0 commit a344a79
Show file tree
Hide file tree
Showing 23 changed files with 2,921 additions and 2,444 deletions.
5,163 changes: 2,777 additions & 2,386 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions sdk/search/search-documents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 11.3.0-beta.8 (unreleased)

Added `core-http-compat` dependency

## 11.3.0-beta.7 (2022-03-08)

### Features Added
Expand Down
3 changes: 2 additions & 1 deletion sdk/search/search-documents/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/search-documents",
"version": "11.3.0-beta.7",
"version": "11.3.0-beta.8",
"description": "Azure client library to use Cognitive Search for node.js and browser.",
"sdk-type": "client",
"main": "dist/index.js",
Expand Down Expand Up @@ -79,6 +79,7 @@
"@azure/core-paging": "^1.1.1",
"@azure/core-tracing": "1.0.0-preview.13",
"@azure/core-rest-pipeline": "^1.3.0",
"@azure/core-http-compat": "^1.2.0",
"@azure/logger": "^1.0.0",
"tslib": "^2.2.0",
"events": "^3.0.0"
Expand Down
8 changes: 4 additions & 4 deletions sdk/search/search-documents/review/search-documents.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// <reference lib="esnext.asynciterable" />

import { AzureKeyCredential } from '@azure/core-auth';
import { CommonClientOptions } from '@azure/core-client';
import { ExtendedCommonClientOptions } from '@azure/core-http-compat';
import { KeyCredential } from '@azure/core-auth';
import { OperationOptions } from '@azure/core-client';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
Expand Down Expand Up @@ -1860,7 +1860,7 @@ export class SearchClient<T> implements IndexDocumentsClient<T> {
}

// @public
export interface SearchClientOptions extends CommonClientOptions {
export interface SearchClientOptions extends ExtendedCommonClientOptions {
// @deprecated
apiVersion?: string;
serviceVersion?: string;
Expand Down Expand Up @@ -1946,7 +1946,7 @@ export class SearchIndexClient {
}

// @public
export interface SearchIndexClientOptions extends CommonClientOptions {
export interface SearchIndexClientOptions extends ExtendedCommonClientOptions {
// @deprecated
apiVersion?: string;
serviceVersion?: string;
Expand Down Expand Up @@ -2008,7 +2008,7 @@ export class SearchIndexerClient {
}

// @public
export interface SearchIndexerClientOptions extends CommonClientOptions {
export interface SearchIndexerClientOptions extends ExtendedCommonClientOptions {
// @deprecated
apiVersion?: string;
serviceVersion?: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "11.3.0-beta.7";
export const SDK_VERSION: string = "11.3.0-beta.8";
1 change: 0 additions & 1 deletion sdk/search/search-documents/src/generated/data/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 48 additions & 5 deletions sdk/search/search-documents/src/generated/data/searchClient.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion sdk/search/search-documents/src/generated/service/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a344a79

Please sign in to comment.