Skip to content

Commit

Permalink
[Search] - Update search-documents to the latest core packages (#17393)
Browse files Browse the repository at this point in the history
* update version and add changelog

* Update search-document versions

* target ES2017

* update engines section and README

* use 11.2.1, and make engines rule warn

* revert engines change and eslintrc

* Remove identity from rush.json

* rush update
  • Loading branch information
maorleger authored Sep 3, 2021
1 parent 6a227f2 commit a23a118
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 88 deletions.
6 changes: 4 additions & 2 deletions common/config/rush/common-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"@types/node": ["^10.0.0", "^10.12.0"],
// @azure/test-utils-perfstress should depend on lowest version of @azure/core-http for maximum compatibility, allowing test
// projects to choose a higher version if desired.
"@azure/core-http": ["^1.0.0"],
// @azure/container-registry is using the beta version for CAE support
"@azure/core-rest-pipeline": ["1.1.0-beta.3"],
// @azure/event-processor-host is on a much lower major version
Expand All @@ -74,6 +73,9 @@
"@azure/keyvault-secrets": ["^4.1.0", "^4.2.0-beta.4"],
// Issue #14771 tracks updating to these versions
"@microsoft/api-extractor": ["7.13.2"],
"prettier": ["2.2.1"]
"prettier": ["2.2.1"],
// For this hotfix branch we will only update search-documents to latest core-http and core-tracing
"@azure/core-tracing": ["1.0.0-preview.13"],
"@azure/core-http": ["^1.0.0", "^2.1.0"]
}
}
133 changes: 60 additions & 73 deletions common/config/rush/pnpm-lock.yaml

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

5 changes: 0 additions & 5 deletions rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,6 @@
"projectFolder": "sdk/eventhub/mock-hub",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/identity",
"projectFolder": "sdk/identity/identity",
"versionPolicyName": "client"
},
{
"packageName": "@azure/keyvault-common",
"projectFolder": "sdk/keyvault/keyvault-common",
Expand Down
8 changes: 8 additions & 0 deletions sdk/search/search-documents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 11.2.1 (2021-09-07)

### New Features

- Support for Node.js 8 and IE 11 has been dropped. Please see our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
- Changed TS compilation target to ES2017 to produce smaller bundles and use more native platform features.
- Updated our internal core package dependencies to their latest versions to add support for Opentelemetry 1.0.0, which is compatible with the latest versions of our other client libraries.

## 11.2.0 (2021-06-08)

The list of changes in 11.2.0 since 11.1.0 & 11.2.0-beta.2 are provided below:
Expand Down
11 changes: 10 additions & 1 deletion sdk/search/search-documents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,17 @@ Use the @azure/search-documents client library to:
npm install @azure/search-documents
```

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites
This package supports [Node.js](https://nodejs.org/) version 8.x.x or higher. You need an [Azure subscription][azure_sub] and a [search service][create_search_service_docs] to use this package.

- An [Azure subscription](https://azure.microsoft.com/free/)
- A [Search service][create_search_service_docs]

To create a new search service, you can use the [Azure portal][create_search_service_docs], [Azure PowerShell][create_search_service_ps], or the [Azure CLI][create_search_service_cli]. Here's an example using the Azure CLI to create a free instance for getting started:

Expand Down
6 changes: 3 additions & 3 deletions 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.2.0",
"version": "11.2.1",
"description": "Azure client library to use Cognitive Search for node.js and browser.",
"sdk-type": "client",
"main": "dist/index.js",
Expand Down Expand Up @@ -76,9 +76,9 @@
"sideEffects": false,
"dependencies": {
"@azure/core-auth": "^1.3.0",
"@azure/core-http": "^1.2.0",
"@azure/core-http": "^2.1.0",
"@azure/core-paging": "^1.1.1",
"@azure/core-tracing": "1.0.0-preview.11",
"@azure/core-tracing": "1.0.0-preview.13",
"@azure/logger": "^1.0.0",
"tslib": "^2.0.0",
"events": "^3.0.0"
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.2.0";
export const SDK_VERSION: string = "11.2.1";
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
import { ApiVersion20200630, SearchClientOptionalParams } from "./models";

const packageName = "@azure/search-documents";
const packageVersion = "11.2.0";
const packageVersion = "11.2.1";

/** @internal */
export class SearchClientContext extends coreHttp.ServiceClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "./models";

const packageName = "@azure/search-documents";
const packageVersion = "11.2.0";
const packageVersion = "11.2.1";

/** @internal */
export class SearchServiceClientContext extends coreHttp.ServiceClient {
Expand Down
3 changes: 2 additions & 1 deletion sdk/search/search-documents/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../../tsconfig.package",
"compilerOptions": {
"outDir": "./dist-esm",
"declarationDir": "./types"
"declarationDir": "./types",
"target": "ES2017"
},
"exclude": ["node_modules", "types", "temp", "browser", "dist", "dist-esm", "./samples/**/*.ts"]
}

0 comments on commit a23a118

Please sign in to comment.