Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Search] - Update search-documents to the latest core packages #17393

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
}
}
64 changes: 60 additions & 4 deletions common/config/rush/pnpm-lock.yaml

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

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.3.0 (2021-09-??)
maorleger marked this conversation as resolved.
Show resolved Hide resolved

### 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.
maorleger marked this conversation as resolved.
Show resolved Hide resolved
- 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! Am surprised there are no code changes accompanying this. Is that because search does not have tests for tracing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most packages do not need code changes at the package level. This is really only an issue because we call Span#context in tracingPolicy which unfortunately is the method they decided to rename...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With that said, there is one build that is failing - so maybe code changes will be coming 😄 ...

I still think no code changes will be needed, as the rest of the builds are passing for this hotfix


## 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
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.3.0",
"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.3.0";
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.3.0";

/** @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.3.0";

/** @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"]
}