Skip to content

Commit

Permalink
[core-client] Prepare release for v1.3.3 out of a hotfix branch (#18856)
Browse files Browse the repository at this point in the history
* Check is value is undefined in appendQueryParams (#18621)

* Check is value is undefined in appendQueryParams

* Minor change

* Response to PR comments

* Update sdk/core/core-client/src/urlHelpers.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* Minor refactor

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* Post release automated changes for core releases (#18358)

Post release automated changes for azure-core-client

* Remove the word experimental in readmes (#18773)

We have the word "Experimental" in the titles in the readme files for our core packages.

My guess is that we started with this when we were working on core v2, forgot to remove it when core v2 went GA and all our newer core packages from them did a copy/paste :)

@xirzec, @joheredi Am I missing something?

* Update Changelog to include query param check (#18851)

* Update Changelog to include query param check

* Update sdk/core/core-client/CHANGELOG.md

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

* fix reinstall native dependency (#18582)

* Generate absolute path for symlink to reinstall native dependency

Co-authored-by: Sarangan Rajamanickam <sarajama@microsoft.com>
Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com>
  • Loading branch information
6 people authored Dec 2, 2021
1 parent 79aa07f commit 6674a2f
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 12 deletions.
5 changes: 3 additions & 2 deletions eng/pipelines/templates/steps/use-node-test-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ steps:
}
# Map from the symlink path to the target path (npm has issues installing into symlink dirs)
# Example: common/temp/node_modules/.pnpm/keytar@5.6.0/node_modules/keytar
$targetPath = (Get-Item $symlink).Target
$symlinkInfo = Get-Item $symlink
$targetPath = [IO.Path]::Combine($symlinkInfo.Parent, $symlinkInfo.Target)
Write-Host "Target of symlink : $($targetPath)"
# Need to run "npm install" at path containing "node_modules" folder
# Example: common/temp/node_modules/.pnpm/keytar@5.6.0
Expand All @@ -42,7 +44,6 @@ steps:
# pnpm v6 replaces '/' in package names with '+' to reduce nesting directory in virtual store so we need to
# change it back
$packageAtVersion = $packageAtVersion.Replace("+", "/")
# Check if package has org name. for e.g @azure/msal-node-enxtensions
# This returns either @azure or .pnpm( if no org is present)
$packageParentName = Split-path -Leaf (Split-Path -Parent -Resolve $packageInstallPath)
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-client-lro-rest/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure Rest Core LRO library for JavaScript (Experimental)
# Azure Rest Core LRO library for JavaScript

This library is primarily intended to be used in code generated by [AutoRest](https://github.com/Azure/Autorest) and [`autorest.typescript`](https://github.com/Azure/autorest.typescript). Specifically for rest level clients, as a helper to handle long running operations. This package implements support for Autorest `x-ms-long-running-operation` specification.

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-client-paging-rest/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure Rest Core Paging library for JavaScript (Experimental)
# Azure Rest Core Paging library for JavaScript

This library is primarily intended to be used in code generated by [AutoRest](https://github.com/Azure/Autorest) and [`autorest.typescript`](https://github.com/Azure/autorest.typescript). Specifically for rest level clients, as a helper to handle Pageable operations. This package implements support for Autorest `x-ms-pageable` specification.

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-client-rest/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure Rest Core client library for JavaScript (Experimental)
# Azure Rest Core client library for JavaScript

This library is primarily intended to be used in code generated by [AutoRest](https://github.com/Azure/Autorest) and [`autorest.typescript`](https://github.com/Azure/autorest.typescript). Specifically for rest level clients

Expand Down
6 changes: 6 additions & 0 deletions sdk/core/core-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.3.3 (2021-12-02)

### Bugs Fixed

- Added a check to handle undefined value during the parsing of query parameters. Please refer to [PR #18621](https://github.com/Azure/azure-sdk-for-js/pull/18621) for further details.

## 1.3.2 (2021-10-25)

### Bugs Fixed
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-client/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure Core Service client library for JavaScript (Experimental)
# Azure Core Service client library for JavaScript

This library is primarily intended to be used in code generated by [AutoRest](https://github.com/Azure/Autorest) and [`autorest.typescript`](https://github.com/Azure/autorest.typescript).

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/core-client",
"version": "1.3.2",
"version": "1.3.3",
"description": "Core library for interfacing with AutoRest generated code",
"sdk-type": "client",
"main": "dist/index.js",
Expand Down
11 changes: 8 additions & 3 deletions sdk/core/core-client/src/urlHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,11 @@ function calculateQueryParameters(
};
}

function simpleParseQueryParams(queryString: string): Map<string, string | string[]> {
const result: Map<string, string | string[]> = new Map<string, string | string[]>();
function simpleParseQueryParams(queryString: string): Map<string, string | string[] | undefined> {
const result: Map<string, string | string[] | undefined> = new Map<
string,
string | string[] | undefined
>();
if (!queryString || queryString[0] !== "?") {
return result;
}
Expand Down Expand Up @@ -288,11 +291,13 @@ export function appendQueryParams(
for (const [name, value] of combinedParams) {
if (typeof value === "string") {
searchPieces.push(`${name}=${value}`);
} else {
} else if (Array.isArray(value)) {
// QUIRK: If we get an array of values, include multiple key/value pairs
for (const subValue of value) {
searchPieces.push(`${name}=${subValue}`);
}
} else {
searchPieces.push(`${name}=${value}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-rest-pipeline/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure Core HTTP client library for JavaScript (Experimental)
# Azure Core HTTP client library for JavaScript

This is the core HTTP pipeline for Azure SDK JavaScript libraries which work in the browser and Node.js. This library is primarily intended to be used in code generated by [AutoRest](https://github.com/Azure/Autorest) and [`autorest.typescript`](https://github.com/Azure/autorest.typescript).

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-xml/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure Core XML client library for JavaScript (Experimental)
# Azure Core XML client library for JavaScript

This library is primarily intended to be used in code generated by [AutoRest](https://github.com/Azure/Autorest) and [`autorest.typescript`](https://github.com/Azure/autorest.typescript) for APIs that require parsing XML payloads.

Expand Down

0 comments on commit 6674a2f

Please sign in to comment.