Граф коммитов

2507 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng 1b71788c5c
[EngSys] upgrade dev dependency `prettier` to 3.3.3 (#30429)
There's some behavior change that adds parentheses for nullish coalescing in
ternary.  So we will need to re-format our code base.

- remove prettier from packages that don't need them since we run the vendored
version via dev-tool
2024-07-16 13:52:10 -07:00
Azure SDK Bot f6cffeed9e
Post release automated changes for identity releases (#30424)
Post release automated changes for azure-identity

---------

Co-authored-by: Maor Leger <maorleger@users.noreply.github.com>
2024-07-16 15:45:06 +00:00
ZiWei Chen e506615a53
[mgmt] informaticadatamanagement release (#30388)
https://github.com/Azure/sdk-release-request/issues/5065
2024-07-15 15:53:08 +08:00
Jeremy Meng e6737fc679
[EngSys] remove `downlevelIteration` typescript option (#30398)
It helps old JS runtimes that only support ES 5 but we moved to ES 6
long time ago
and now moved to ES2017. Most of our packages don't have this option.
This PR
removes its usage.
2024-07-12 12:34:56 -07:00
Jeremy Meng 5dd28937bc
[EngSys] remove outdated tools (#30394)
- Management packages now support token credentials
- ESM workaround no longer used now that we moved to tsx loader
2024-07-12 11:37:44 -07:00
Matthew Podwysocki 880162583e
[monitor] update to latest OTEL (#30360)
### Packages impacted by this PR

- @azure/monitor-opentelemetry-exporter
- @azure/monitor-opentelemetry
- @azure/monitor-query
- @azure/opentelemetry-instrumentation-azure-sdk

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/issues/30324
- https://github.com/Azure/azure-sdk-for-js/issues/30323
- https://github.com/Azure/azure-sdk-for-js/issues/30322
- https://github.com/Azure/azure-sdk-for-js/issues/30321
- https://github.com/Azure/azure-sdk-for-js/issues/30320
- https://github.com/Azure/azure-sdk-for-js/issues/30318
- https://github.com/Azure/azure-sdk-for-js/issues/30317
- https://github.com/Azure/azure-sdk-for-js/issues/30316

### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-07-12 08:39:22 -07:00
Deyaaeldeen Almahallawi 6b2c45d7ee
[Vite Browser Map] Fix types (#30372)
### Packages impacted by this PR
@azure/-tools/vite-plugin-browser-test-map

### Issues associated with this PR

N/A

### Describe the problem that is addressed by this PR

The type declaration file wasn't set in package.json and the return type
of the plugin function was too permissive causing type errors when
imported.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

N/A

### Are there test cases added in this PR? _(If not, why?)_

N/A

### Provide a list of related PRs _(if any)_

N/A

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-07-12 06:42:16 -07:00
Jackson Weber 6fbc9881c4
[Monitor OpenTelemetry] Update Web Snippet (#30352)
### Packages impacted by this PR
@azure/monitor-opentelemetry

### Describe the problem that is addressed by this PR
Updates the @microsoft/applicationinsights-web-snippet package to the
latest version.

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
2024-07-11 10:34:13 -07:00
Jeremy Meng 05b9cc7a05
[EngSys] unpin @microsoft/applicationinsights-web-snippet version (#30369)
Now that https://github.com/microsoft/ApplicationInsights-JS/issues/2369
has
been fixed.

Revert "[EngSys] temporarily pin
@microsoft/applicationinsights-web-snippet version (#30233)"

This reverts commit 1df8d78576.
2024-07-10 23:21:28 +00:00
Jeremy Meng ccd66b77cc
[eslint-plugin] upgrade typescript-eslint dependencies to ~7.16.0 (#30365)
Two places were missed in previous PR of upgrading to 7.15.0 so linting
still
warn about TypeScript 5.5. This PR fixes the warnings too.
2024-07-10 15:16:03 -07:00
Sarangan Rajamanickam f9e4e1ff16
[@azure/eventgrid-namespaces][@azure/eventgrid]Migrate EventGrid Packages away from Local Authentication (#30309)
### Packages impacted by this PR

1. @azure/eventgrid-namespaces 
2. @azure/eventgrid

### Issues associated with this PR
https://github.com/Azure/azure-sdk-for-js/issues/29699

### Describe the problem that is addressed by this PR
This PR has been created to move the eventgrid packages away from Local
Authentication. The migration guide has been used for reference.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

No special design consideration.

### Are there test cases added in this PR? _(If not, why?)_
NA. Existing test cases are sufficient.

### Provide a list of related PRs _(if any)_
1. https://github.com/Azure/azure-sdk-for-js/issues/29699
2. https://github.com/Azure/azure-sdk-for-js/pull/30209

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-07-10 12:56:51 -07:00
ZiWei Chen 3a1fa84aa6
[mgmt] redisenterprisecache release (#29679)
https://github.com/Azure/sdk-release-request/issues/5176
2024-07-10 14:27:57 +08:00
Jeremy Meng a5b44acf25
[EngSys] upgrade @typescript-eslint/* dev dependencies to ~7.15.0 (#30326)
TypeScript 5.5 is supported. No changes impact us.
2024-07-08 10:10:09 -07:00
Azure SDK Bot 189363701c
[EngSys] automatic rush update --full (#30319)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-07-08 09:02:34 -07:00
Driele Neves Ribeiro fd3536cf9c
[DevCenter] Update tsp latest commit (#30033)
Update tsp-location.yaml to point to a commit from main in the spec repo
and regenerate. The previous commit hash was from a branch never merged,
blocking the attempt to release the sdk

After regenerating from latest tsp main, those were the changes
introduced:
* EnvionmentType name was updated to readonly (later fix added on the
typespec)
* PollingHelper and lro packages got updated (updated by code gen). Live
test for the LRO operations was executed and no issue was detected.

Previous PR for current sdk:
https://github.com/Azure/azure-sdk-for-js/pull/29512
APIView: [@azure-rest/developer-devcenter -
apiview.dev](https://apiview.dev/Assemblies/Review/e17096012eb7466a8aab7c74742c6bff?revisionId=b4d2f5f84d98499dacfcc5e7cdd15d52)

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-07-05 11:53:39 -07:00
ZiWei Chen a9397f7729
[mgmt] Mongocluster with modular (#30102)
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
Co-authored-by: qiaozha <qiaozha@microsoft.com>
2024-07-05 15:31:41 +08:00
Jeremy Meng 1a09f43108 [EngSys] upgrade dev dependency `typescript` version to `~5.5.3`
***NO_CI***

- also include *.api.md updates due to the following TypeScript 5.5 change

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-5.html#simplified-reference-directive-declaration-emit
2024-07-03 22:24:35 +00:00
Jeremy Meng 48341baf6a
[eslint-plugin] update to check whether package is ESM (#30287)
Previously it was checking the existence of .tshy directory. Now that we
removed
all .tshy the code is broken. This PR updates to check the package.json
instead.
2024-07-03 14:23:23 -07:00
Matthew Podwysocki c8aa2f8fdf [EngSys] Update version of tshy ***NO_CI*** 2024-07-03 18:40:06 +00:00
Jeremy Meng 1880e2f4fe
[dev-tool] fix linting error (#30220)
of


>/datadrive/git/jssdk/common/tools/dev-tool/src/commands/admin/migrate-package.ts
  242:45  error  Unnecessary escape character: \i  no-useless-escape
2024-07-02 16:21:08 -04:00
Jeremy Meng 907b4edd0b
[schemaregistry-avro] upgrade dev dependency `stream` to ^0.0.3 (#30257)
and update pnpm-lock.yaml

Resolves issue https://github.com/Azure/azure-sdk-for-js/issues/30249
2024-07-01 16:51:54 -07:00
Jeremy Meng 1df8d78576
[EngSys] temporarily pin @microsoft/applicationinsights-web-snippet version (#30233)
our `rush update --full` automation introduced a compilation error due
to

https://github.com/microsoft/ApplicationInsights-JS/issues/2369

This PR pins its version to 1.1.2 until the issue is fixed.
2024-07-01 20:23:29 +00:00
Azure SDK Bot 8e25c7a303
[EngSys] automatic rush update --full (#30248)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-07-01 09:40:50 -07:00
Jeremy Meng 74dfa883b9 [EngSys] upgrade dep dependency `nyc` to ^17.0.0
***NO_CI***
2024-06-28 17:57:40 +00:00
hamshavathimunibyraiah 72f170abc7
Document Translation service SDK (#29916)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-27 17:35:07 -07:00
Deyaaeldeen Almahallawi 67e0fcb1fc
[Event Hubs] Update deps (#30213) 2024-06-27 13:47:58 -07:00
Glenn Harper 57e1223581
[AI] [Inference] RLC for Inference SDK (#29863)
### Packages impacted by this PR
 @azure/ai-inference

### Issues associated with this PR


### Describe the problem that is addressed by this PR
Initial release of @azure/ai-inference SDK

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-27 11:23:51 -07:00
ZiWei Chen 515c08e7b7
[mgmt] storage release (#30039)
https://github.com/Azure/sdk-release-request/issues/5260
2024-06-27 17:43:05 +08:00
ZiWei Chen 9330021261
[mgmt] appcomplianceautomation release (#30015)
https://github.com/Azure/sdk-release-request/issues/5248
2024-06-27 12:45:18 +08:00
ZiWei Chen f97b049007
[mgmt] selfhelp release (#30181)
https://github.com/Azure/sdk-release-request/issues/5281
2024-06-27 12:40:42 +08:00
ZiWei Chen b4d9885209
[mgmt] scvmm release (#30012)
https://github.com/Azure/sdk-release-request/issues/5268
2024-06-26 10:53:16 +08:00
Jana R e6db98ecb5
[doc] fixed typos and punctuation (#29225)
Fixed typos and added punctuations to improve readability of README.md
files.

---------

Co-authored-by: Maor Leger <maorleger@users.noreply.github.com>
2024-06-25 07:02:57 -07:00
ZiWei Chen 59c7f7d209
[mgmt] storagemover release (#30041)
https://github.com/Azure/sdk-release-request/issues/5264
2024-06-25 13:56:18 +08:00
Matthew Podwysocki dd1e54afee
[dev-tool] Update ts-morph (#30162)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR

- #30160

### Describe the problem that is addressed by this PR

Updates to latest ts-morph package.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-24 16:51:37 +00:00
Azure SDK Bot 21e6cf64af
[EngSys] automatic rush update --full (#30159)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-06-24 10:48:04 -05:00
ZiWei Chen 29ecebee5d
[mgmt] avs release (#29692)
https://github.com/Azure/sdk-release-request/issues/5190
2024-06-24 13:31:02 +08:00
ZiWei Chen b3009def8f
[mgmt] mysql-flexible release (#29478)
https://github.com/Azure/sdk-release-request/issues/5151
2024-06-21 19:04:37 +08:00
ZiWei Chen fc95498783
[mgmt] mobilenetwork release (#29950)
https://github.com/Azure/sdk-release-request/issues/5236
2024-06-21 18:54:51 +08:00
ZiWei Chen 68705a58d3
[mgmt] deploymentstacks release (#29944)
https://github.com/Azure/sdk-release-request/issues/5218

swagger pr: https://github.com/Azure/azure-rest-api-specs/pull/29361
2024-06-21 18:45:45 +08:00
ZiWei Chen 5eba9218fe
[mgmt] imagebuilder release (#30036)
https://github.com/Azure/sdk-release-request/issues/5252
2024-06-21 17:57:09 +08:00
ZiWei Chen cfc93dc37b
[mgmt] appservice release (#29690)
https://github.com/Azure/sdk-release-request/issues/5181
2024-06-21 17:53:07 +08:00
ZiWei Chen 86fc1e0702
[mgmt] network release (#29947)
https://github.com/Azure/sdk-release-request/issues/5221
2024-06-21 17:28:43 +08:00
ZiWei Chen 0d59772ec5
[mgmt] cosmosdb preview release (#30067)
https://github.com/Azure/sdk-release-request/issues/5210
2024-06-21 16:48:42 +08:00
Minh-Anh Phan 571f5484ae
Run rush update --full (#30126)
- Run rush update --full after release hot fix for test-credential 1.2
2024-06-20 10:59:22 -07:00
Matthew Podwysocki ccbaaecd3f
[dev-tool] Update migration tool for Sinon and Node Imports (#30115)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Adds the following:
- Global regex replace for context replacements
- Changes sinon spy to `vi.spyOn`
- Adds node specifiers to node imports

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-20 12:58:45 -04:00
Azure SDK Bot 9ba448355a
[EngSys] automatic rush update --full (#30078)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-06-19 10:53:23 -07:00
Matthew Podwysocki d4afe6477a
[dev-tool] Update migration tool to include beforeEach fixes (#30098)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Fixed the `beforeEach` statements to get rid of the Mocha `Context` and
replace with `vitest` context and fixes the test-recorder creation.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-18 20:55:09 +00:00
Jeremy Meng 57d1bd9c76
[eslint-plugin] set package version back to 3.0.0 (#30090)
to fix broken nightly pipelines where we update `@azure` package
versions to
nightly versions and dependency versions to a range for their nightly
versions.
Versino `^3.0.0` would not get updated because of the following chech in
`set-dev.js` then `rush install` would fail to find matching one and
report error.


9488fe4bd7/eng/tools/versioning/set-dev.js (L80)
2024-06-18 11:36:16 -07:00
Minh-Anh Phan c2583d2eeb
[Test-Credential] Update DAC to ChainedTokenCredential (#29955)
### Packages impacted by this PR
@azure-tools/test-credentials

### Issues associated with this PR


### Describe the problem that is addressed by this PR
- Exclude Managed Identity from DAC so that we can run live test
pipeline successfully. The 4 credentials that we try is: Powershell,
Cli, Developer Cli, Environment Credential in listed order. See [the migration
guide](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/1080/Secret-auth-migration)
- Increase the default timeout for vitest to our default timeout (18000
ms)

Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
2024-06-17 11:13:26 -07:00
Matthew Podwysocki b0dcd6649c
[dev-tool] Add additional fixes for the migration tool (#30064)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Adds updates for the following:
- Changes assert to only use `vitest` for now and not sure the
`@azure-tools/test-utils`
- Any utility in the `/test` folders will be updated to use `vitest` for
assertions
- Add `beforeEach`, `afterEach`, `vi` and `expect` to any test class
using `sinon` for easy replacement
- Fix pathing issue so that `import { foo } from "..";` is translated to
`import { foo } from "../index.js";`
- Removes `source-map-support` as we're not using Karma.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-14 21:33:46 -04:00
Matthew Podwysocki 46679dfecf
[dev-tool] Create migration tool (#30030)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Creates a starter migration toolkit for projects to move to ESM and
vitest. This project for dev-tool introduces a tool invoked such as the
following to migrate service-bus

```
dev-tool admin migrate-package --package-name=@azure/service-bus
```

This does the following:
- Changes the package.json for the following:
  - Removes chai/mocha/karma
  - Adds vitest and tshy
  - Modifies the build and test commands
- Renames the mapped files to the proper output type such as
`-browser.mts`
- Changes the tsconfig.json for the following:
  - Moves module and moduleResolution to NodeNext
  - Removes outDir and declarationDir
- Fixes the source files
  - Uses extension for files such as "foo.js" instead of "foo"
  - Removes "chai" usage
  - Adds vitest usage for spec files
- Fixes api-extractor.json
  - Fixes input path for source
  - Fixes output trimmed path
- Migrate Testing
  - Writes for both browser and node unit tests
  - Writes config for building browser bundle     
  - Removes .nycrc and Karma configuration

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-14 10:36:48 -07:00
Jeremy Meng 8aa962a895
[dev-tool] sort collected sources by their paths first (#30052)
before they are later sorted by weight.

- also format code
2024-06-14 10:34:33 -07:00
Jeremy Meng e798d4749c
[dev-tool] fix samples typescript source to include sub directory (#30024)
Sample source structure used to be flat but later nested directories are
supported as well. This PR fix the glob pattern to also include sub
directories.

- also re-publish samples for @azure/service-bus

I didn't update all the other samples as there are no complaints. They
can get new update in their next publish.
2024-06-13 21:47:21 -07:00
luc 1feeb00285
Update the Core Client Version and Test Recorder (#30032)
### Packages impacted by this PR
@Azure/communication-chat 

### Issues associated with this PR
### Describe the problem that is addressed by this PR

Customer escalated the issue:
The issue was introduced from the @azure/communication-chat@1.4.0. Chat
client updated the internal API client by generating the new service
client version with the `endpoint` param to replace the `baseUri` and
kept the dependency version @azure/core-client@1.3.0 and higher. While
the `endpoint` is introduced only in @azure/core-client@1.6.0.
Customer see error "baseUrl is not specified" if the dependency version
not updated.

Update the @azure/core-client version to fix the issue


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
2024-06-13 10:43:47 -07:00
EmmaZhu-MSFT 4d825599a5
[storage] added support for snapshot management support via REST for NFS shares (#29843)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-12 21:59:17 +08:00
Maor Leger a2a36b9cbf
[communication] Use Identity 4.2.1 (#30010)
Resolves dependabot alerts and ensure the repo is on 4.2.1
2024-06-11 23:39:45 +00:00
Azure SDK Bot ec6c4a830a
[EngSys] automatic rush update --full (#30005)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-06-11 22:01:55 +00:00
Matthew Podwysocki ca2023d048
[monitor] update to latest OTEL (#29984)
### Packages impacted by this PR

- @azure/monitor-opentelemetry
- @azure/monitor-opentelemetry-exporter
- @azure/opentelemetry-instrumentation-azure-sdk

### Issues associated with this PR

- #29972
- #29971
- #29970
- #29969
- #29968
- #29967
- #29966
- #29965
- #29964
- #29963
- #29962

### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Jackson Weber <jacksonweber@microsoft.com>
2024-06-11 17:28:55 +00:00
ZiWei Chen c4b9f924cc
[mgmt] datafactory release (#29992)
https://github.com/Azure/sdk-release-request/issues/5240
2024-06-11 18:20:45 +08:00
Maor Leger c6aa75d312
[identity] Identity bug fix (#29982)
Identity bug fix
2024-06-10 23:36:58 +00:00
Sarangan Rajamanickam 5165940b8e
[@azure/eventgrid-system-events]Initial Commit V1.0.0-beta.1 (#29688)
### Packages impacted by this PR

@azure/eventgrid-system-events

### Issues associated with this PR

NA

### Describe the problem that is addressed by this PR

1. Originally, there was one unified package -
[`@azure/eventgrid`](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid).
This package was generated from Swagger specification.
2. Earlier in April 2024, some parts of the `@azure/eventgrid` package
were extracted out to create a new package -
[`@azure/eventgrid-namespaces`](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-namespaces).
This package was generated from Typespec specification.
3. Now, with this PR, we are looking at the second split of the
`@azure/eventgrid` package. All System Events have been extracted out of
the swagger specification to Typespec specification. This is a new
package named `@azure/eventgrid-system-events`.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

1. In the Typespec core generator, We have an issue where client name
overrides are not applied to `alias`. I have created an issue
https://github.com/microsoft/typespec/issues/3240 to fix this. In the
meantime, I have handled this issue in the custom code.
2. With the new generator, `Known*` models are not generated. I have
created an issue
https://github.com/Azure/autorest.typescript/issues/2476 to fix this. In
the meantime, I have handled this issue in the custom code.
3. In the previous generator, we had several properties which were
overridden as mandatory parameters. With the new generator, such mass
overrides are not possible. So, we are allowing them to be optional and
close to the Wore specification. This is in parity with the other
language SDKs.

### Are there test cases added in this PR? _(If not, why?)_

No. They are all model objects. No code functionality is involved.

### Provide a list of related PRs _(if any)_

1. https://github.com/microsoft/typespec/issues/3240
2. https://github.com/Azure/autorest.typescript/issues/2476
3. https://github.com/Azure/azure-sdk-for-js/pull/29245

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

`npx tsp compile client.tsp`

### Checklists
- [X] Added impacted package name to the issue description
- [X] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [X] Added a changelog (if necessary)

@xirzec @joheredi @lmazuel FYI......

---------

Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
2024-06-06 21:07:44 -07:00
ZiWei Chen 7edce69a40
[mgmt] fix sample readme parse issue in dev tool (#29873)
fixes https://github.com/Azure/azure-sdk-for-js/issues/29858
2024-06-07 09:22:45 +08:00
Deyaaeldeen Almahallawi 427c8527c7
[EH Checkpoint Store Blob] Prepare release (#29939) 2024-06-07 00:29:45 +00:00
Jeremy Meng f0fb922dda
[eslint-plugin] skip some package json linting for packages using tshy (#29912)
as packages using tshy has been migrated to ESM and these rules no
longer apply to them.
This PR skip these rules to avoid having to turn them off for individual
packages.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
We could remove these rules too. Although it's still nice to have them
before we migrage all packages to ESM with tshy.
2024-06-06 15:54:19 -07:00
Deyaaeldeen Almahallawi 82d89dc58f
[Event Hubs] Support GeoDR (#29932)
### Packages impacted by this PR
@azure/core-amqp, @azure/event-hubs, and
@azure/eventhubs-checkpointstore-blob

### Issues associated with this PR
Gist: https://gist.github.com/conniey/f96d64547efa955a9e763cee6b65d1fc

### Describe the problem that is addressed by this PR

Enable the SDK to communicate with GeoDR-enabled Event Hubs.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

The PR follows closely what the crew agreed on for now which is changing
the type of `offset`s to be a string but this will be revisited later.

### Are there test cases added in this PR? _(If not, why?)_

Tests will come later.

### Provide a list of related PRs _(if any)_

N/A

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
2024-06-06 13:40:37 -07:00
ZiWei Chen c22412fa3a
[mgmt] hybridcompute release (#29908)
https://github.com/Azure/sdk-release-request/issues/5229
2024-06-05 17:03:33 +08:00
Matthew Podwysocki 6b41dae31a
[dev-tool] Create list migrations tool (#29893)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Creates a list tool to track our migration to ESM efforts.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-04 20:09:36 -04:00
Jeremy Meng 2b4b381bc9
[eslint-plugin] Fix broken global ignore pattern (#29889)
In an ESLint configuration object, if an `ignores` key is used without any other
keys, then the patterns act as global ignores. I added a `name` in my previous
PR which broke it.

This PR fixes the issue by removing the extraneous name. A pattern of
`*.config.{js,cjs,mjs}` is also add to global ignores because we don't need to
lint them.

Also in this PR

- move app-configuration package to use Flat Config format as a test.
- enable cosmosdb test config that was in legacy config format but missed in migration.
2024-06-04 13:40:26 -07:00
Matthew Podwysocki 6cb2dd46d9
[web pub sub] update express to ESM (#29862)
### Packages impacted by this PR

- @azure/web-pubsub-express

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Updates to ESM via `tshy` and moves from Mocha/Chai/Sinon to `vitest`

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-06-03 20:46:15 +00:00
Azure SDK Bot 55d0676037
[EngSys] automatic rush update --full (#29875)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-06-03 20:13:49 +00:00
ZiWei Chen 85382568a3
[mgmt] devopsinfrastructure release (#29658)
https://github.com/Azure/sdk-release-request/issues/5138
2024-05-31 14:35:52 +08:00
ZiWei Chen 578e4ca4ea
[mgmt] informatica release (#29785)
https://github.com/Azure/sdk-release-request/issues/5065
2024-05-31 13:11:55 +08:00
Jeremy Meng 5c6b5e405d
[engsys] upgrade dev dependency rimraf to ^5.0.0 (#29847)
most of packages in this repo already have version v5. This PR upgrades the rest to not have the now deprecated v3.
2024-05-30 19:27:28 +00:00
Maor Leger 42d66c4d0c
Revert "[test-util] Move core-tracing to peerDependencies (#29775)" (#29835)
This reverts commit 11da215483.

Unfortunately, rush does not play well with peerDeps and I am bumping
into https://github.com/microsoft/rushstack/issues/1415

I really wanted this to work but rather than continue going down this
path I think it's safer to revert and find an alternative
given the issues with rush and pnpm
2024-05-28 16:04:16 -07:00
Minh-Anh Phan 9c601051d8
[Dev Tool] Update allow headers for relay server (#29828)
### Packages impacted by this PR
dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR
We run into preflight CORS issue while testing App Config migration to
DAC in the browser. This PR update the relay server to allow
"Content-Type" and other headers to mitigate the issue.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
The other solution is to use `cors` middleware package to ensure the
preflight request succeeds.
2024-05-28 14:15:50 -07:00
Maor Leger 8d4bc5d25e
[test-util] Update package version (#29829)
Updates @azure-tools/test-utils to 1.0.2 since 1.0.1 has been published
to NPM already.

Also, run rush update --full to ensure everyone is on the repo-source
version of test-utils until we can fix the NPM version.
2024-05-28 10:45:59 -07:00
Azure SDK Bot 2caa758549
[EngSys] automatic rush update --full (#29822)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-05-28 08:23:58 -07:00
EmmaZhu-MSFT e8058d3e82
[Storage]Add support to indicate audience in client options (#28898)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-05-28 02:58:24 +00:00
Jeremy Meng 85fcbb3733
[ServiceBus] upgrade dependency @azure/abort-controller to ^2.1.2 (#29807)
- fix compilation errors
- fix v7-beta sample tagetting version
2024-05-24 22:57:03 +00:00
ZiWei Chen aa0b0c7659
[mgmt] refresh machinelearning (#29756)
https://github.com/Azure/azure-sdk-for-js/issues/29328
2024-05-24 11:55:31 +08:00
ZiWei Chen 86c72ad0a7
[mgmt] storagecache release (#29642)
https://github.com/Azure/sdk-release-request/issues/5144
2024-05-24 11:31:08 +08:00
ZiWei Chen f6e0038c15
[mgmt] netapp release (#29693)
https://github.com/Azure/sdk-release-request/issues/5168
2024-05-24 11:13:35 +08:00
ZiWei Chen dc92c83df0
[mgmt] oracledatabase release (#29701)
https://github.com/Azure/sdk-release-request/issues/5194
2024-05-24 11:09:09 +08:00
Jeremy Meng d32460cd31
[eslint-plugin] enable no-only-tests, import and tsdoc plugins for flat config (#29791)
with the help of  @eslint/compat
2024-05-23 16:38:41 -07:00
Jeremy Meng 074519189c
[engsys] upgrade typescript-eslint dependency to ~7.10.0 (#29781)
also explicitly set module type to "commonjs". This follows what
`typescript-eslint` does.
2024-05-23 15:13:51 -04:00
Jeremy Meng 8cd1d2c1c4
[EngSys] Unpin http(s)-proxy-agent versions (#29379)
The latest versions were causing tests to fail. Now we removed dependency on `esm` they work fine.
2024-05-23 12:12:50 -07:00
Maor Leger 11da215483
[test-util] Move core-tracing to peerDependencies (#29775)
### Packages impacted by this PR

@azure-tools/test-utils

### Issues associated with this PR

Resolves #29736

### Describe the problem that is addressed by this PR

When @azure-tools/test-utils moves to `npm` it will no longer default to
the on-disk version of core-tracing. This impacts our `supportsTracing`
test helper as it no longer sets the instrumenter on the same version as
the client package. Imagine this flow:

<img
src="https://github.com/Azure/azure-sdk-for-js/assets/753570/12d52e8e-16c1-44b3-b57d-edd31a1e4627"
width=70% height=70%>

In this case, test-util and app-configuration are not talking to the
same "module global" instrumenter.

This PR fixes this by removing core-tracing from test-utils, setting it
as a peerDependency instead. All packages that test tracing also
implement tracing, and as such are already depending on core-tracing.

This was verified locally, but I'll need to get it out to NPM before
verification can complete

### Alternatives

See #29709 for a few alternatives:
1. Pass the instrumenter through
2. Use mocks

Both require updates to multiple packages and/or adding public API
surface which is unnecessary. We can fallback to those options if we
have to, but this is a promising alternative.
2024-05-23 10:13:30 -07:00
chungshengfu 39cfc07a8a
Updates of @azure-rest/ai-vision-face (#29676)
### Packages impacted by this PR

@azure-rest/ai-vision-face

### Issues associated with this PR


### Describe the problem that is addressed by this PR

1. tsp-client update to
60161e2f7d
([commit](2189b834bb))
- Ref: history of face spec
https://github.com/Azure/azure-rest-api-specs/commits/main/specification/ai/Face
2. Refine customization to not set MFD filename when there has already
been one.
([commit](d688279d32))
3. Use the `extraFiles` config to copy sample images.
([commit](389b01dc87))
4. Fix sanitizer issues in tests.
([commit](3354597f01))
5. Update the core-lro to v3 preview version.
([commit](7ac973d218))
- Cherry-picked from
56d85526df
6. tsp-client update to
1d2253d1e2
([commit](9e3a10a519))

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Chung Sheng Fu <Chung.Fu@microsoft.com>
2024-05-23 17:39:42 +08:00
ZiWei Chen 2fba31f671
[mgmt] sql release (#29681)
https://github.com/Azure/sdk-release-request/issues/5170
2024-05-23 16:49:38 +08:00
Driele Neves Ribeiro 5415d4d539
Dev Center Stable SDK (#29512)
To do:
[x] Regenerate from merged tsp spec
[x] Update tests to use vitest
[x] Record tests
[x] Update samples
[] ~~Update Readme~~
[x] Update Changelog
[x] Update LRO status model fixed in tsp latest api version pr  

---------

Co-authored-by: Lei Tian <leti@microsoft.com>
2024-05-22 14:21:45 -07:00
ZiWei Chen 1c40836f05
[mgmt] recoveryservices release (#29350)
https://github.com/Azure/sdk-release-request/issues/5131
2024-05-22 16:19:18 +08:00
ZiWei Chen 1f56d16189
[mgmt] maintenance release (#29664)
https://github.com/Azure/sdk-release-request/issues/5160
2024-05-22 16:02:55 +08:00
ZiWei Chen bfa3301623
[mgmt] containerservicefleet release (#29704)
https://github.com/Azure/sdk-release-request/issues/5146
2024-05-22 15:47:46 +08:00
ZiWei Chen 4adfb974e8
[mgmt] recoverysrevicesbackup release (#29620)
https://github.com/Azure/sdk-release-request/issues/5133
2024-05-22 14:52:22 +08:00
Maor Leger 82150670ad
[identity] Re-enable tests (#29778)
Re-enabled tests in playback mode, including better filtering in live
mode to skip the MI tests
2024-05-21 14:56:14 -07:00
Matthew Podwysocki 618556cee3
[core-amqp] Remove esbuild for vite (#29773)
### Packages impacted by this PR

- @azure/core-amqp

### Issues associated with this PR

- #29683

### Describe the problem that is addressed by this PR

Removes esbuild and its polyfills for Node in favor of vite and vite
node plugins.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-05-21 18:22:49 +00:00
Jeremy Meng 15096dfa54
[eslint-plugin] support Flat Config (#29751)
ESLint v9 drops support for legacy .eslintrc style configuration files.
To move to v9 we need to migrate to the new Flat Config files. This PR
adds support for Flat Config file and migrate cosmos and identity-broker
packages to use the flat config. Legacy config files are still
supported.

Some eslint plugins that we use don't support flat config yet so they
are disabled.

Related issue: https://github.com/Azure/azure-sdk-for-js/issues/29750
2024-05-21 18:12:00 +00:00
Azure SDK Bot a2c38cf332
[EngSys] automatic rush update --full (#29757)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-05-20 11:20:00 -07:00
Matthew Podwysocki c709b137c5
[web pub sub] upgrade protobufjs (#29752)
### Packages impacted by this PR

- @azure/web-pubsub-client-protobuf

### Issues associated with this PR

- #29684
2024-05-17 14:56:55 -07:00
ZiWei Chen 8ae1c05d40
[mgmt] security release (#28814)
https://github.com/Azure/sdk-release-request/issues/4897
2024-05-16 14:57:53 +08:00
Jeremy Meng 76eafc5142
[engsys] upgrade dev dependency eslint-plugin-markdown to ^5.0.0 (#29697)
The breaking change that impacts us is that now `typescript` and `javascript` code blocks in markdown files are maped to virtual files with `.ts` or `.js`, instead of `.typescript` or `.javascript` as previously in v4.

This PR reacts to the change:

- Add an overrides entry for `**/*.md/*.ts` because they now match the files pattern of our first overrides entry. Previously they are not linted because of their old `.typescript` extension. Their `project` is set to `null` as they don't belong to any project. They still are benefited from rules that don't require type checking.
2024-05-16 00:38:36 +00:00
Harsha Nalluru 2b71281fb7
`rush update --full` and testing #29471 (#29655)
## What's happening?
- [x] Get Scott's test-proxy version from #29471 
- [x] Update `recorder 3.5.0` with
    - [x] Central Sanitizers
    - [x] /removeSanitizers API
    - [x] remove fallback sanitizers
    - [x] Publish `recorder 3.5.0`
- [x] Update `recorder 4.x` with the `recorder 3.5.0` changes and make
sure they are in sync.
- [x] Update lock file with `rush update --full` to get latest recorder
and test-credential packages
- [x] Test/fix packages
    - [x] recorder
    - [x] storage 
    - [x] template 
    - [x] '@azure-rest/synapse-access-control'
    - [x] '@azure/arm-resources'
    - [x] arm-links
    - [x] arm-resources
    - [x] event-grid
    - [x] template-dpg
    - [x] synpase packages
    - [ ] '@azure/identity' (future PR)
    - [x] '@azure/arm-eventgrid'
    - [x] '@azure/ai-text-analytics'

## Future Work
- [ ] Figure out identity tests/recordings
- [ ] Make sure CI pipelines for each of the services that are not
triggered in this PR get to green by either re-recording or tweaking the
recorder config for the package

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2024-05-14 21:06:13 +00:00
ZiWei Chen 1733bfa3b6
[mgmt] selfhelp release (#29660)
https://github.com/Azure/sdk-release-request/issues/5198
2024-05-11 11:26:09 +08:00
Jeremy Meng 242f65c933
[Test][core-amqp] fix deprecated dependency warnings (#29668)
Use `esbuild-plugin-polyfill-node` for node polyfills per recommendation
at https://github.com/remorses/esbuild-plugins
2024-05-10 12:39:39 -07:00
chungshengfu 4a102992b4
Generate and implement Face SDK via TypeSpec (#29557)
### Packages impacted by this PR

@azure-rest/ai-vision-face

### Issues associated with this PR

### Describe the problem that is addressed by this PR

Generate and implement Face SDK via TypeSpec.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_


### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Chung Sheng Fu <Chung.Fu@microsoft.com>
2024-05-10 22:33:34 +08:00
Daniel Getu 4c53b599a0
[Search] Miscellaneous small fixups (#29600) 2024-05-09 22:28:04 +00:00
Timo van Veenendaal c66cad23c4
[test-credential] Credential relay for browser tests (#29616)
### Packages impacted by this PR

- `@azure-tools/dev-tool`
- `@azure-tools/test-credential`

### Describe the problem that is addressed by this PR

We want to move to user auth and `DefaultAzureCredential` to
authenticate our tests, but `DefaultAzureCredential` does not work in
the browser, blocking this transition.

This PR proposes a solution -- create a short-lived, local-only, server
which can create tokens in Node using DefaultAzureCredential. In the
browser, createTestCredential provides a credential implementation which
calls this server whenever it needs a token, and the server relays the
request to DefaultAzureCredential.

Here's what's changed:

- `test-credential` now returns a credential which requests tokens from
a local web endpoint when running browser tests against a live service.
- `dev-tool` contains an implementation of this web endpoint. The
dev-tool scripts used to run browser tests now start this server
automatically when running browser tests. A separate command to start
the server is also provided for pipelines.
- Update live test pipelines to start the server when running browser
tests.

### Provide a list of related PRs _(if any)_

- Draft version with loads of commits and `/azp run` spam: #29581 
- Harsha's earlier PR to enable DefaultAzureCredential:
https://github.com/Azure/azure-sdk-for-js/pull/29577
2024-05-09 01:37:12 +00:00
Harsha Nalluru 5071f20655
[test-credential] DAC update (#29577)
### Packages impacted by this PR
`@azure-tools/test-credential`

### Describe the problem that is addressed by this PR
Need to move away from client secrets in the dev workflow.

### Breaking Changes

Updates the `createTestCredential` method to consume
`DefaultAzureCredential` instead of `ClientSecretCredential` in order to
offer autonomy to the devs and to move away from clietn secrets in
environment varaibles.

- `NoOpCredential` is offered for playback and `DefaultAzureCredential`
in record/live modes.
- [`User Auth` and `Auth via development
tools`](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#authenticate-users)
are preferred in record mode to record the tests.

### TO DO
Hotfix 1.x release with the same change.

---------

Co-authored-by: Timo van Veenendaal <me@timo.nz>
2024-05-06 15:18:05 -07:00
Azure SDK Bot e55ad57c5c
[EngSys] automatic rush update --full (#29588)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-05-06 12:43:28 -07:00
Matthew Podwysocki 99026aaf6b
[core-amqp] Move to ESM/vitest (#29303)
### Packages impacted by this PR

- @azure/core-amqp

### Describe the problem that is addressed by this PR

Moves `@azure/core-amqp` to ESM via `tshy` and unit tests from `mocha`
to `vitest`.

---------

Co-authored-by: Jeff Fisher <jeffish@microsoft.com>
Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2024-05-06 01:44:18 +00:00
Jeremy Meng bf1cc6cc1d
[engsys][formrecognizer] upgrade dependency `magic-string` to `~0.30.10` (#29508)
-------

### Packages impacted by this PR
`@azure/ai-form-recognizer`

### Issues associated with this PR
#24124
2024-05-02 16:31:27 +00:00
Jeremy Meng 3b8bab5045
[EngSys] upgrade typescript-eslint version to ~7.8.0 (#29542)
- fix some new errors now appears
- add package-specific .eslintrc.json to suppress errors that are
expected
2024-05-02 09:28:10 -07:00
Jeremy Meng 2744775dca
[eslint-plugin] improve ts-doc-internal UX experience (#29551)
- fix false positive when there are no comments at all. There may be
some internal cache nodes in the array but they don't hold any comments.
- instead of showing squiggles for whole declaration body, only report
on the id node if its available.
2024-05-01 19:46:31 -07:00
Matthew Podwysocki 984a148899
[template] Fix loupe issue (#29550)
### Packages impacted by this PR

- @azure/template

### Issues associated with this PR

- #29538

### Describe the problem that is addressed by this PR

Adding `loupe` directly to `template` and removing from `test-recorder`.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-05-01 17:24:22 -04:00
Jeff Fisher 2f98f70ef6
[engsys] Update eslint plugin to 6.x (#29505)
### Packages impacted by this PR

`@azure/eslint-plugin-azure-sdk`

### Issues associated with this PR

https://github.com/Azure/azure-sdk-for-js/issues/22698
https://github.com/Azure/azure-sdk-for-js/issues/22699
https://github.com/Azure/azure-sdk-for-js/issues/22700
https://github.com/Azure/azure-sdk-for-js/issues/22701

### Describe the problem that is addressed by this PR

This moves us from v5 -> v6 of eslint-typescript dependencies. The
current stable is 7 with 8 in early alpha. Since major changes include
breaks, it was easier to do this migration one major version at a time,
hence starting with the upgrade to 6. I am hopeful that 6 -> 7 will be
less messy, but I make no promises.

The major annoyance I ran into is you have to create mock "fixtures"
(dummy files) for any test asset paths (e.g. you tell the linter you are
testing `foo/bar/baz.ts` you need a tsconfig somewhere with that file
listed as included *and* you need that exact directory/file structure on
disk somewhere. eslint-typescript blames typescript for this limitation,
but I'm not familiar enough with the parser APIs to know if they're
correct in their analysis.

Note: I haven't gone through to audit all the rules yet, as some are
still a bit busted or need to be removed, but for the sake of updating
our dependencies, I moved everything forward as-is.
2024-04-30 20:56:00 +00:00
Jeremy Meng b6808ddedb
[dev-tool] fix test:vitest browser config issue (#29532)
We should use `=== -1` which means not found.

While at this, also fix result file names for NodeJS tests.
2024-04-30 19:06:55 +00:00
Matthew Podwysocki 0741a202ed
[monitor] update to latest OTEL (#29506)
### Packages impacted by this PR

- @azure/opentelemetry-instrumentation-azure-sdk
- @azure/monitor-opentelemetry
- @azure/monitor-opentelemetry-exporter
- @azure/monitor-query

### Issues associated with this PR

- #29486
- #29487
- #29488 
- #29489
- #29490
- #29491
- #29492
- #29493
- #29494
- #29495
- #29496
- #29497

### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-04-30 05:16:56 +00:00
Matthew Podwysocki 3f3340d4af
[dev-tool] Update to use vitest with ESM (#29504)
### Packages impacted by this PR

- @azure/dev-tool
- @azure/eslint-plugin-azure-sdk

### Issues associated with this PR

- #29502

### Describe the problem that is addressed by this PR

Moves the `vitest` to use `.mts` for the config to opt in to ESM builds
for `vite`.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

Updated as per recommendation here
https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated

### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
-  [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-04-29 22:11:01 +00:00
Matthew Podwysocki f86bbe70b4
[apimanagement] Update inquirer for @azure/api-management-custom-widgets-scaffolder (#29155)
### Packages impacted by this PR

- @azure/api-management-custom-widgets-scaffolder

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/issues/22972
- #24124
- https://github.com/Azure/azure-sdk-for-js/issues/25509

### Describe the problem that is addressed by this PR

Updates `inquirer` which uses ESM only, so this moves to ESM, but also
allows for CJS.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Jeff Fisher <jeffish@microsoft.com>
2024-04-29 20:49:42 +00:00
Jeremy Meng cfd95be4ae
[EngSys][eventgrid-namespace] upgrade dev dependency `typescript` to `~5.4.5` (#29402)
The old version was caused by in-progress PR to add new package while
the version in the repo has been upgraded.
2024-04-29 11:30:21 -07:00
Azure SDK Bot 5fff25b86c
[EngSys] automatic rush update --full (#29485)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-04-29 09:10:54 -07:00
ZiWei Chen cd8cb38e9c
[mgmt] guestconfiguration release (#29394)
https://github.com/Azure/sdk-release-request/issues/5141
swagger pr: https://github.com/Azure/azure-rest-api-specs/pull/28832
2024-04-28 16:22:22 +08:00
Jackson Weber 3aa135f183
[Monitor OpenTelemetry] Add Winston Log Instrumentation (#29321)
### Packages impacted by this PR
@azure/monitor-opentelemetry

Adds support for winston log instrumentation.
2024-04-26 16:01:16 -07:00
Jeremy Meng bd4ccb16c2
[EngSys] shorten `-no-test-proxy=true` test option (#29466)
The "=true" part is no longer needed after PR #28978
2024-04-26 19:33:31 +00:00
ZiWei Chen 7cac3d24a0
[mgmt] containerservice stable release (#29457)
https://github.com/Azure/sdk-release-request/issues/5080
2024-04-26 17:39:45 +08:00
Mary Gao f471cf0f95
Sync core-lro v3-beta to main branch (#29311)
Sync core-lro v3-beta to main branch:
- api view: [diff compared with
v3](https://apiview.dev/Assemblies/Review/2c2e6c39be9f4efcb7dcb5812ec03caa?revisionId=024991bbcc9e4f10ac52b484d6ff3267&diffRevisionId=c2c407f93624426090afa05dfb58d7c1#@azure/core-lro!CreateHttpPollerOptions:interface)
- migration guide:
[here](https://github.com/Azure/azure-sdk-for-js/pull/29311/files?short_path=149185f#diff-149185f78f3ba6e8a607806071880f4954bae228de2fd7a63965abbc85c869ce)
- design doc: [loop
1](https://microsoft.sharepoint.com/:fl:/s/61554b56-c90b-4961-ba7c-61caae235335/ERp0F2QPyX9ElPkeL2U5pioB7_ar6uwHWYiTa7roChsHVw?e=FcS0YL&nav=cz0lMkZzaXRlcyUyRjYxNTU0YjU2LWM5MGItNDk2MS1iYTdjLTYxY2FhZTIzNTMzNSZkPWIhWkhjMnhhbl9nVXVNc3RET0NHaTNKMjZEQ09nVk5FRkxtTDg4UUNsZUpwaklYajhzTWlFSFRZVC02bTRGV2JkNSZmPTAxREdGMk9FWTJPUUxXSUQ2SlA1Q0pKNkk2RjVTVFRKUksmYz0lMkYmZmx1aWQ9MSZhPUxvb3BBcHAmcD0lNDBmbHVpZHglMkZsb29wLXBhZ2UtY29udGFpbmVyJng9JTdCJTIydyUyMiUzQSUyMlQwUlRVSHh0YVdOeWIzTnZablF1YzJoaGNtVndiMmx1ZEM1amIyMThZaUZhU0dNeWVHRnVYMmRWZFUxemRFUlBRMGRwTTBveU5rUkRUMmRXVGtWR1RHMU1PRGhSUTJ4bFNuQnFTVmhxT0hOTmFVVklWRmxVTFRadE5FWlhZbVExZkRBeFJFZEdNazlGTkZSRlRWRTBOMUpHUVRkYVJUSlBSazVEUkRSV1dEWTBNa1UlM0QlMjIlMkMlMjJpJTIyJTNBJTIyYjA3OTYyZWQtMWM4Ni00Zjg3LWE3OTctYjE0MDg1ZmEwYzY4JTIyJTdE),
[loop
2](https://microsoft.sharepoint.com/:fl:/s/61554b56-c90b-4961-ba7c-61caae235335/EdO7c7zhNQ5PouqkX5YbPZ4BXAnvlDCvW9SiARuN8gMcww?e=LufGPM&nav=cz0lMkZzaXRlcyUyRjYxNTU0YjU2LWM5MGItNDk2MS1iYTdjLTYxY2FhZTIzNTMzNSZkPWIhWkhjMnhhbl9nVXVNc3RET0NHaTNKMjZEQ09nVk5FRkxtTDg4UUNsZUpwaklYajhzTWlFSFRZVC02bTRGV2JkNSZmPTAxREdGMk9FNlRYTlozWllKVkJaSDJGMlZFTDZMQldQTTYmYz0lMkYmZmx1aWQ9MSZhPUxvb3BBcHAmcD0lNDBmbHVpZHglMkZsb29wLXBhZ2UtY29udGFpbmVyJng9JTdCJTIydyUyMiUzQSUyMlQwUlRVSHh0YVdOeWIzTnZablF1YzJoaGNtVndiMmx1ZEM1amIyMThZaUZhU0dNeWVHRnVYMmRWZFUxemRFUlBRMGRwTTBveU5rUkRUMmRXVGtWR1RHMU1PRGhSUTJ4bFNuQnFTVmhxT0hOTmFVVklWRmxVTFRadE5FWlhZbVExZkRBeFJFZEdNazlGTkZSRlRWRTBOMUpHUVRkYVJUSlBSazVEUkRSV1dEWTBNa1UlM0QlMjIlMkMlMjJpJTIyJTNBJTIyYjA3OTYyZWQtMWM4Ni00Zjg3LWE3OTctYjE0MDg1ZmEwYzVjJTIyJTdE)

Impacted SDKs:
- Currently I think no SDKs would be impacted.
    - Existing HLC SDKs would use v2, no impact;
- RLC LRO wrapped its interface with v3 and without any breakings([see
pr detail](https://github.com/Azure/autorest.typescript/pull/2443)), no
impact;
- Modular would use v3. The only modular SDK that is OpenAI without LRO
operations, so no impact.

- In future there would be breaking when migrating HLC to Modular.

Main changes:
```diff
- export function createHttpPoller<TResult, TState extends OperationState<TResult>>(lro: LongRunningOperation, options?: CreateHttpPollerOptions<TResult, TState>): Promise<SimplePollerLike<TState, TResult>>;
+ export function createHttpPoller<TResult, TState extends OperationState<TResult>>(lro: RunningOperation, options?: CreateHttpPollerOptions<TResult, TState>): PollerLike<TState, TResult>;

- export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
+ export interface PollerLike<TState extends OperationState<TResult>, TResult> extends Promise<TResult> {
-    getOperationState(): TState;
+    readonly operationState: TState | undefined;
-    getResult(): TResult | undefined;
+    readonly result: TResult | undefined;
-    isDone(): boolean;
+    readonly isDone: boolean;
-    isStopped(): boolean;
-    stopPolling(): void;
-    toString(): string;
+    serialize(): Promise<string>;
+    submitted(): Promise<void>;
    onProgress(callback: (state: TState) => void): CancelOnProgress;
    poll(options?: {
        abortSignal?: AbortSignalLike;
-     }): Promise<void>;
+     }): Promise<TState>;
    pollUntilDone(pollOptions?: {
        abortSignal?: AbortSignalLike;
    }): Promise<TResult>;   
}
```

The preview pr is merged here:
https://github.com/Azure/azure-sdk-for-js/pull/28213.

---------

Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
2024-04-26 14:58:37 +08:00
ZiWei Chen d67190a251
[mgmt] devcenter release (#29308)
https://github.com/Azure/sdk-release-request/issues/5103
2024-04-26 13:37:06 +08:00
ZiWei Chen 7291119826
[mgmt] deviceregistry release (#29313)
https://github.com/Azure/sdk-release-request/issues/5108
2024-04-26 13:07:27 +08:00
ZiWei Chen 2d6c6bf4cc
[mgmt] hybridcompute release (#29337)
https://github.com/Azure/sdk-release-request/issues/5043
2024-04-26 11:44:26 +08:00
KarishmaGhiya 63dce5e28b
[identity] Support Federated Identity for Service connections - new credential (#29392) 2024-04-26 01:28:32 +00:00
Azure SDK Bot 88d244a809
Sync eng/common directory with azure-sdk-tools for PR 8158 (#29423)
* allow an override FILE to be honored by test-proxy-tool
* update test-utils to honor proxy override version by default

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2024-04-25 15:30:37 -07:00
Matthew Podwysocki 769c1b126e [EngSys] Update name of @azure-tools/test-utils ***NO_CI*** 2024-04-25 13:14:33 -07:00
Timo van Veenendaal 8cd5bc2620
[core] New multipart/form-data primitive in core-client-rest (#29047)
### Packages impacted by this PR

- `@azure/core-client-rest`

### Issues associated with this PR

- Resolves #28971

### Describe the problem that is addressed by this PR

- Major bump of `@azure-rest/core-client` to 2.0.0 due to introduced
behavioral breaking change.
- The expected body shape for `multipart/form-data` is now an array of
`PartDescriptor`, which has the following fields:
- `headers` and `body` representing the multipart request headers and
body
  - Convenience fields for MIME header values:
    - `contentType`, for the `Content-Type` MIME header
- `name`, `filename`, `dispositionType`, for constructing the
`Content-Disposition` MIME header
- These convenience values take precedence over any existing MIME
information (name and filename) present in the request body (i.e. the
`name` property on `File` and the `type` property on both `File` and
`Blob`)
- If the headers are set explicitly in the `headers` bag, the headers
bag value takes precedence above all.
- Implemented part serialization flowchart more or less as described in
the Loop, with a couple of notable differences (and other less notable
ones):
- `string` values are put directly on the wire regardless of content
type; this allows for customers to pass pre-serialized JSON to the
service
- If no content type is specified, and we cannot infer the content type,
we default to `application/json` (i.e. there is no situation where we
would throw a "cannot encode type" error)
- Added support for `FormData` objects. If a `FormData` object is
encountered, it is passed directly to `core-rest-pipeline` for it to
handle.

### Are there test cases added in this PR? _(If not, why?)_

Yes

### To do

- [ ] Port Core change to ts-http-runtime before merging
2024-04-25 10:47:30 -07:00
ZiWei Chen d9038c5b1d
[mgmt] standbypool release (#29250)
https://github.com/Azure/sdk-release-request/issues/5055
2024-04-25 21:51:35 +08:00
Jeremy Meng 7bfa1b76a4
[dev-tool] extend `admin list packages` command to run custom tasks (#29410)
This PR extends dev-tool's `admin list packages` to optionally run
custom tasks on each package in the list.

For example,

`npx dev-tool admin list packages --task=/path/to/echo-packages.js` with
a echo-package.js of

```js
const path = require("path");

export default async function EchoPackage(project, paths, cwd, root) {
  console.dir({
    project,
    paths,
    cwd,
    root,
  });
}
```

would output items like

```
{
  project: {
    packageName: '@azure/arm-springappdiscovery',
    projectFolder: 'sdk/springappdiscovery/arm-springappdiscovery',
    versionPolicyName: 'management'
  },
  paths: false,
  cwd: '/home/meng/git/jsmain/sdk/tables/data-tables',
  root: '/home/meng/git/jsmain'
}
```

while

`npx dev-tool admin list packages
--task=/home/meng/git/jsmain/common/tools/dev-tool/src/commands/admin/list/tasks/update-package.ts`

would perform updates on projects whose package.json satisfies some
condition.

I had to downgrade `strip-json-comments` because v5 is pure ESM which
broke the
`admin list` command.
2024-04-24 13:10:02 -07:00
ZiWei Chen abefec37a1
update version (#29417) 2024-04-24 18:25:58 +08:00
ZiWei Chen 2d5f9efb9c
[mgmt] quota release (#29335)
https://github.com/Azure/sdk-release-request/issues/5125
2024-04-24 17:41:47 +08:00
ZiWei Chen 88a102e59b
[mgmt] confidentialledger release (#29326)
https://github.com/Azure/sdk-release-request/issues/5115
2024-04-24 13:01:28 +08:00
Azure SDK Bot b46e005b73
[EngSys] automatic rush update --full (#29386)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-04-23 16:49:56 +00:00
Harsha Nalluru e356825255
[Recorder] Skip unit-test pipelines that are failing | Central sanitizers (#29368)
Updating the recorder to the latest v3.2.0 to consume the latest central
sanitizers through `rush update -full`

Skipping the following unit test pipelines with failures
- storage-file-share (browser unit tests only)
- storage-file-datalake
- text analytics
- ai-language-text
- ai-language-conversations

This is expected and is needed for the spring grove efforts.
Issue to track unskipping
https://github.com/Azure/azure-sdk-for-js/issues/29367
2024-04-23 02:04:24 +00:00
Jeremy Meng de9dc043cd
[EngSys] upgrade rush version to 5.120.6 (#29389)
This should resolve the install issue on Windows.
2024-04-22 17:43:05 +00:00
Jeremy Meng e9561c1a52 [EngSys] back to use `nyc` for code coverage
now that we removed `esm` dependency, `nyc` should be working again, and `nyc`
appears to have better results than `c8` does.

***NO_CI***
2024-04-19 12:19:32 -07:00
Jeremy Meng fcd46c0f7d
[communication-identity] upgrade dependency @azure/msal-node to ^2.7.0 (#29358)
as @azure/msal-node v1 has been deprecated.
2024-04-18 21:24:20 +00:00
Jeremy Meng f564596c2f
[engsys] modular packages need ts-node/esm loader to run tests (#29360)
Some packages have the option in .mocharc but this is more centralized.
Packages whose tests haven't been migrated to vitest yet still need
this.
2024-04-18 21:22:45 +00:00
Jeremy Meng 9af9804e84
[dev-tool] Resolve linter errors (#29343)
- use `unknown` for catch variable type
- suppress error where `any` is desired
2024-04-18 08:52:51 -07:00
Maor Leger 6da7f749da
[EngSys] Remove esm from default ts-node (#29340)
### Packages impacted by this PR

All via dev-tool

### Issues associated with this PR

Contributes to #28617

### Describe the problem that is addressed by this PR

esm is still being required in our test:node-ts-input and I don't
believe it is necessary. I'm removing it, but PLEASE do let me know what I'm missing -
I don't know much about mocha config to be honest.
2024-04-17 15:15:02 -07:00
Maor Leger 456ee9a38a
[EngSys] Support tshy in extract-api (#29153)
### Packages impacted by this PR

@azure/core-client 
@azure/core-tracing 
@azure/template

### Issues associated with this PR

Resolves #28820

### Describe the problem that is addressed by this PR

This PR:
- Updates extract-api to work with both tshy aware packages and subpath
export packages
- Migrates core-client, core-tracing, and template to the extract-api
script
2024-04-17 15:13:30 -07:00
Harsha Nalluru 71588a0485
[template] Upgrade template to recorder v4 (#29016)
### Packages impacted by this PR
`@azure/template`

### Issues associated with this PR
`@azure/template` being upgraded 
- commonJS to esm
- mocha/karma to vite/playwright
- recorder v3 to recorder v4
- test-credential v1 to v2

This would also serve as an example for future migrations.

---------

Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2024-04-16 09:03:12 -07:00
Maor Leger d00878b333
[EngSys] Remove esm4mocha (#29320)
We no longer use esm4mocha, instead relying on tsx for our node-js-input
tests.

Now that this has been in place for some time, we can remove esm4mocha
followed by the esm dependency.

Contributes to #28617
2024-04-15 13:01:27 -07:00
Jeremy Meng ffe81c5bcf [EngSys] upgrade dev dependency `mkdirp` to `^3.0.1`
***NO_CI***
2024-04-15 11:27:58 -07:00
Azure SDK Bot 16f4c8ed86
[EngSys] automatic rush update --full (#29317)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-04-15 08:14:42 -07:00
ZiWei Chen 6d6a25184b
[mgmt] frontdoor release (#29249)
https://github.com/Azure/sdk-release-request/issues/5089
2024-04-15 15:21:13 +08:00
ZiWei Chen d6cbc82c03
[mgmt] cdn release (#29201)
https://github.com/Azure/sdk-release-request/issues/5084
2024-04-15 15:05:59 +08:00
Matthew Podwysocki c980494803
[notification-hubs] Move to vitest (#28943)
### Packages impacted by this PR

- @azure/notification-hubs

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Moves the `@azure/notification-hubs` to `vitest` with different configs
for browser, and node.js with different configs for unit tests versus
integration tests.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-04-12 08:16:22 -07:00
Sarangan Rajamanickam f9ead4612f
[@azure/eventgrid-namespaces] - Release EG Namespaces SDK V1.0.0-beta.1 (#29245)
### Packages impacted by this PR

@azure/eventgrid-namespaces

### Issues associated with this PR

NA

### Describe the problem that is addressed by this PR

This PR is to create a new package `@azure/eventgrid-namespaces`. This
new package is associated with the existing package `@azure/eventgrid`.
Earlier, we has a beta version of the `@azure/eventgrid` package and the
source code for this beta version is available in the
[`feature/eventgrid/4_13_beta_1`](https://github.com/Azure/azure-sdk-for-js/tree/feature/eventgrid/4_13_beta_1).
In this beta version, in addition to the regular
`EventGridPublisherClient`, we also have a new
[`EventGridClient`](https://github.com/Azure/azure-sdk-for-js/blob/feature/eventgrid/4_13_beta_1/sdk/eventgrid/eventgrid/src/eventGridClientV2.ts).
With this PR, we are extracting this client alone into its own new
package.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

No special design considerations to discuss.

### Are there test cases added in this PR? _(If not, why?)_

Yes.

### Provide a list of related PRs _(if any)_

NA

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

NA

### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [X] Added a changelog (if necessary)

---------

Co-authored-by: Jeremy Meng <yumeng@microsoft.com>
2024-04-11 18:26:24 -07:00
Jeremy Meng 398494acd8 [EngSys] upgrade dev dependency `typescript` to `~5.4.5`
The only package that still stays on ~5.3.3 is search-document (tracked by issue #29283)

***NO_CI***
2024-04-11 23:19:38 +00:00
John 0600974555
[ACS][Chat][Interop] Promote File Sharing from Beta to GA (#28317) 2024-04-11 23:10:18 +00:00
Matthew Podwysocki d8baba1e68
[EngSys] Update nock (#29220)
### Packages impacted by this PR

- @azure/app-configuration
- @azure/cosmos
- @azure/monitor-opentelemetry
- @azure/monitor-opentelemetry-exporter

### Issues associated with this PR

- #29219

### Describe the problem that is addressed by this PR

Updates to latest `nock`.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-04-11 11:55:30 -07:00
Harsha Nalluru 02d3907477
[Recorder] Recorder upgrade to 3.1.2 - rush update --full (#29265)
### Packages impacted by this PR
Test pipelines have been broken because of the min-max build test
failure

### Issues associated with this PR

https://github.com/Azure/azure-sdk-for-js/issues/29232
https://github.com/Azure/azure-sdk-for-js/issues/29246

### Describe the problem that is addressed by this PR
This PR is the followup of the `@azure-tools/test-recorder@3.1.2`
release that upgraded the min version of `core-client` to get the needed
types https://github.com/Azure/azure-sdk-for-js/pull/29247
2024-04-11 12:17:52 -05:00
Azure SDK Bot f8225ddf46
[EngSys] automatic rush update --full (#29209)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-04-10 16:31:09 +00:00
Harsha Nalluru 02716c32c7
[test-utils] 2024-04-08 release date (#29228)
### Packages impacted by this PR
`recorder v4` `test-credential v2` and the `template upgrade to vitest
and esm`
### Describe the problem that is addressed by this PR
ESRP step was blocking the release last week, trying again
To unblock #29016
2024-04-10 00:09:11 +00:00
Matthew Podwysocki ce66022758
[monitor] Update to latest OTEL libraries (#29221)
### Packages impacted by this PR

- @azure/opentelemetry-instrumentation-azure-sdk
- @azure/monitor-opentelemetry
- @azure/monitor-opentelemetry-exporter
- @azure/monitor-query

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/issues/29217
- https://github.com/Azure/azure-sdk-for-js/issues/29216
- https://github.com/Azure/azure-sdk-for-js/issues/29215
- https://github.com/Azure/azure-sdk-for-js/issues/29214
- https://github.com/Azure/azure-sdk-for-js/issues/29213
- https://github.com/Azure/azure-sdk-for-js/issues/29212
- https://github.com/Azure/azure-sdk-for-js/issues/29211
- https://github.com/Azure/azure-sdk-for-js/issues/29210
- https://github.com/Azure/azure-sdk-for-js/issues/29208
- https://github.com/Azure/azure-sdk-for-js/issues/29207

### Describe the problem that is addressed by this PR

Updates OTEL to latest libraries

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Jackson Weber <jacksonweber@microsoft.com>
2024-04-09 15:02:32 -04:00
Jeff Fisher 1d60a7b672
[ai-personalizer] Service has been deprecated (#29169)
### Packages impacted by this PR

@azure-rest/ai-personalizer

### Describe the problem that is addressed by this PR

When investigating why the live tests were failing, I discovered that
new personalizer resources are no longer able to be created:
https://learn.microsoft.com/en-us/azure/ai-services/personalizer/frequently-asked-questions

Since this package never left beta, I'm marking it as deprecated.
2024-04-03 23:29:42 +00:00
Jeff Fisher f6542f6a10
[communication-network-traversal] Remove deprecated package (#29166)
### Packages impacted by this PR

@azure/communication-network-traversal

### Issues associated with this PR

https://github.com/Azure/azure-sdk-for-js/issues/29165

### Describe the problem that is addressed by this PR

Package is no longer maintained by service.
2024-04-03 16:15:35 -05:00
ZiWei Chen fbaef6592f
[mgmt] hdinsightcontainers release (#29159)
https://github.com/Azure/sdk-release-request/issues/5095
2024-04-03 17:48:50 +08:00
Matthew Podwysocki 6079f3871f
[apimanagement] Update mime dependency (#29149)
### Packages impacted by this PR

- @azure/api-management-custom-widgets-tools

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/issues/29128

### Describe the problem that is addressed by this PR

Updates the code to ESM core and vitest so we can use `mime` which is
ESM only via `await import("mime")`.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-04-02 21:48:27 +00:00
Harsha Nalluru 7f1f103900
[Test Utils] [Recorder] Migrate to esm (#28667)
### Packages impacted by this PR
`@azure-tools/test-recorder`

### Issues associated with this PR
https://github.com/Azure/azure-sdk-for-js/issues/28475

### Describe the problem that is addressed by this PR
Migrates `@azure-tools/test-recorder` to ESM, supports both vitest and
mocha.


### What's in the PR
This PR also pulls in @jeremymeng's change to update recorder file path
calculation that got reverted
https://github.com/Azure/azure-sdk-for-js/pull/28423


#### One major non-breaking change to `env`
This involves bumping recorder to 4.0.0, a new major due to the nature
of the change.
`process.env` is employed in both node and browser vitest with
playwright.
- removes dotenv dependency
- env shims for browser
- deletes karma.conf

```
                       Exported "env" in 3.1.0                             Exported "env" in 4.0.0
node                    Process.env	                                    Process.env
browser                 Window.__env__	                                    --No shim--
```
Depends on https://github.com/Azure/azure-sdk-for-js/pull/28917

### Exposed sanitizer types 
- Enhanced the `addSanitizers` method and `SanitizerOptions` options bag
by exposing the following sanitizer types for more flexible usage:

- `FindReplaceSanitizer`: A sanitizer that finds and replaces specified
strings.
- `RegexSanitizer`: A sanitizer that uses regular expressions for
pattern matching and replacement.
- `StringSanitizer`: A sanitizer that handles string-based sanitization
tasks.
- `HeaderSanitizer`: A sanitizer specifically designed for handling HTTP
headers.
- `ConnectionStringSanitizer`: A sanitizer that securely handles
connection strings.
- `RemoveHeaderSanitizer`: A sanitizer that removes specified headers
from HTTP requests or responses.

This update aims to provide users with a more comprehensive and
customizable sanitization process.

### Breaking Changes

- The `@azure-tools/test-recorder@4.0.0` package now supports `vitest`
and `playwright` (stops support for `mocha` and `karma`), employs
`process.env` in both Node and browser environments. This aligns with
the latest testing frameworks and provides improved testing
capabilities.

- The package has been simplified by removing the `dotenv` dependency
and the `karma.conf` file, env shims for the browser. This streamlines
the package dependencies and configuration files, respectively.
- These changes introduce a new `env` strategy for all SDKs once they
migrate to ESM and depend on `@azure-tools/test-recorder` version 4, as
we employ `process.env` through vitest to access environment variables
in both Node and browser environments.

---------

Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
Co-authored-by: Matthew Podwysocki <matthewp@microsoft.com>
2024-04-01 20:39:23 +00:00
Matthew Podwysocki 0c23b08688
[monitor] update to latest otel (#29130)
### Packages impacted by this PR

- @azure/monitor-opentelemetry

### Issues associated with this PR

- #29127
2024-04-01 13:09:08 -05:00
Azure SDK Bot ca0ce824d4
[EngSys] automatic rush update --full (#29126)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-04-01 09:30:44 -05:00
ZiWei Chen cdb419dacc
[mgmt] migrationdiscoverysap release (#28887)
https://github.com/Azure/sdk-release-request/issues/5010
2024-04-01 17:28:20 +08:00
ZiWei Chen 854bff20b5
[mgmt] refresh monitor (#29089)
fixes https://github.com/Azure/azure-sdk-for-js/issues/29013
2024-03-29 17:15:26 +08:00
ZiWei Chen ead6f2a2cc
[mgmt] cosmosforpostgresql release (#28851)
https://github.com/Azure/sdk-release-request/issues/4993
2024-03-29 15:24:27 +08:00
Timo van Veenendaal 0725abec9e
[core] Upgrade `tshy` to ^1.13.0 (#29111)
### Packages impacted by this PR

- Core packages using ESM migration

### Issues associated with this PR

- #28940
- #28918

### Describe the problem that is addressed by this PR

Upgrade to new version of `tshy` which does not force `target` to
`ES2022` (see [PR](https://github.com/isaacs/tshy/pull/55)). This should
resolve some issues for people whose environments do not support newer
syntax (e.g. Node 14 and the Webpack 4 bundler).
2024-03-28 22:13:59 +00:00
Matthew Podwysocki 92a3d9128d
[schema registry] Update LRU cache (#29102)
### Packages impacted by this PR

- @azure/schema-registry
- @azure/schema-registry-avro

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/issues/25221

### Describe the problem that is addressed by this PR

Updates to latest `lru-cache`

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-28 14:28:56 -07:00
Maor Leger f1a5ba120f
[EngSys] Generate subpath export review files (#28730)
### Packages impacted by this PR

@azure/notifications-hub

### Issues associated with this PR

Contributes to #28750 but completion requires updating all the packages
to use this

### Describe the problem that is addressed by this PR

Building off of @jeremymeng's work in #27646, this PR configures API
review files for packages containing subpath exports.

While APIView is not yet ready to support multiple json files, this
provides us with appropriate API reviews tracking any public API changes.

Follow-up PRs will add support for this in APIView, but this feels like
a quick win and step forward.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

A few alternatives, and I am open to feedback:

1. Update the EngSys script to allow multiple DocModel json files - I
chose to go with a flag to disable generating them instead, so that we
can build off of it in pieces
2. File naming convention - I already got and applied some feedback on
that, thanks Timo
2024-03-28 17:41:03 +00:00
Matthew Podwysocki eb6db0728a
[eslint-plugin-azure-sdk] Update Markdown plugin (#29099)
### Packages impacted by this PR

- @azure/eslint-plugin-azure-sdk

### Issues associated with this PR

- #28861

### Describe the problem that is addressed by this PR

Updates to latest plugin version.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-28 17:00:02 +00:00
Maor Leger 7f0beef186
[cosmos] jsbi major version upgrade (#29031)
### Packages impacted by this PR

@azure/cosmos

### Issues associated with this PR

Resolves #28954

### Describe the problem that is addressed by this PR

JSBI is a BigInt polyfill that is used by @azure/cosmos. CI has
identified that
we're a little behind.

They don't have a CHANGELOG but diffing

[v3.2.5...v4.3.0](https://github.com/GoogleChromeLabs/jsbi/compare/v3.2.5...v4.3.0)
did not show any changes that will impact our usage.

This should still be validated by the cosmos team

### Checklists
- [x] Added impacted package name to the issue description.
- [x] Does this PR need any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here.)_
- [x] Added a changelog (if necessary).

Co-authored-by: Matthew Podwysocki <matthewp@microsoft.com>
2024-03-28 16:25:27 +00:00
Azure SDK Bot e1f01f75b0
[EngSys] automatic rush update --full (#29065)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-03-26 11:08:49 -05:00
ZiWei Chen d07bbc6902
[mgmt] sphere release (#29048)
https://github.com/Azure/sdk-release-request/issues/5061
2024-03-26 17:08:26 +08:00
Azure SDK Bot e31c4c27db
[EngSys] automatic rush update --full (#29043)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-03-25 12:01:30 -05:00
ZiWei Chen 7cb16fd57f
[mgmt] containerservice stable (#29026)
https://github.com/Azure/sdk-release-request/issues/4964
2024-03-25 09:57:13 +08:00
Maor Leger d7173879bf [EngSys] C8 major version update ***NO_CI*** 2024-03-22 13:26:43 -05:00
ZiWei Chen 445270c802
[mgmt] mobilenetwork re (#29009)
regen from https://github.com/Azure/azure-sdk-for-js/pull/28831
2024-03-22 15:27:25 +08:00
ZiWei Chen e2e4ba3dbe
[mgmt] storageactions release (#28817)
https://github.com/Azure/sdk-release-request/issues/4876
2024-03-22 14:48:26 +08:00
ZiWei Chen 3af79f2702
[mgmt] workloadssapvirtualinstance release (#28606)
https://github.com/Azure/sdk-release-request/issues/4842
swagger pr: https://github.com/Azure/azure-rest-api-specs/pull/27819
2024-03-22 11:12:34 +08:00
ZiWei Chen d1105b7c0d
[mgmt] support re (#29006)
regen from https://github.com/Azure/azure-sdk-for-js/pull/28902
2024-03-22 10:34:40 +08:00
Azure SDK Bot 49503f3c1c
[EngSys] automatic rush update --full (#28976)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-03-21 15:43:19 -05:00
ZiWei Chen 312acd03fc
[mgmt] appcontainers release (#28832)
https://github.com/Azure/sdk-release-request/issues/5026
2024-03-21 15:13:43 +08:00
ZiWei Chen a3fc305ae2
[mgmt] newrelicobservability release (#28829)
https://github.com/Azure/sdk-release-request/issues/4960
2024-03-21 15:04:49 +08:00
Timo van Veenendaal 0c63ab6b63
[dev-tool] Fix `--no-test-proxy` option for test run commands (#28978)
### Describe the problem that is addressed by this PR

Invert the `no-test-proxy` option in our test run commands, creating a
`test-proxy` option instead. The command line parsing library dev-tool
uses, `minimist`, special cases CLI options starting with `--no-`, such
that passing `--no-test-proxy` sets the `test-proxy` option to `false`,
instead of setting the `no-test-proxy` option to `true` as our commands
assume. This fix corrects that assumption by inverting the option.

Passing `--no-test-proxy` in to the run command, as many of our
package.json scripts do, will work properly after this change.
2024-03-20 13:03:40 -07:00
Matthew Podwysocki 2e9e303bd0
[eslint-plugin-azure-sdk] Move from Mocha to Vitest (#28969)
### Packages impacted by this PR

- @azure/eslint-plugin-azure-sdk

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Moves from `mocha` to `vitest` for `eslint`.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-20 17:11:43 +00:00
Matthew Podwysocki eb5815cc6a
[notification-hubs] Fix FCM notification (#28973)
### Packages impacted by this PR

- @azure/notification-hubs

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/issues/28936

### Describe the problem that is addressed by this PR

Fixes to expand the API to include the FCM V1 Message type as part of
the `Notification` type.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-19 18:24:41 -04:00
Harsha Nalluru 8d3374a81a
[Perf] Make perf package public for consumption outside this repo (#28916)
### Packages impacted by this PR
`@azure-tools/test-perf`

### Describe the problem that is addressed by this PR
Making perf package public for consumption outside this repo.
This marks the initial release of the `@azure-tools/test-perf` library
to npm, providing a robust test utility framework that assists with the
performance testing of Azure SDKs for JS/TS.

### Key Concepts

1. **Introduction of PerfTest**: A test utility designed to execute
performance and stress tests for Azure SDK for JavaScript packages.
2. **Test Execution**: Tests are run asynchronously, influenced by
parameters like duration, iterations, and parallelism.
3. **Command Line Parameters**: Utilizes `minimist` for parsing command
line options into a `PerfOptionDictionary<string>` for test
configuration.
4. **Default Options**: Includes standard parameters such as `help`,
`no-cleanups`, `parallel`, `duration`, `warmup`, `iterations`,
`no-cleanup`, and `milliseconds-to-log`.
5. **Test Lifecycle**: Tests run repeatedly within the specified
`duration` and `iterations`, with a `warmup` period for runtime
optimization.
6. **Setup and Cleanup**: Features `globalSetup`/`globalCleanup` methods
for CPU-level preparation and `setup`/`cleanup` methods for
instance-specific state management.
2024-03-19 10:05:34 +00:00
ZiWei Chen 600c5dece3
[mgmt] iotfirmwaredefense release (#28828)
https://github.com/Azure/sdk-release-request/issues/4955
2024-03-19 15:00:12 +08:00
ZiWei Chen 9b6fc5d15e
[mgmt] search release (#28886)
https://github.com/Azure/sdk-release-request/issues/5005
2024-03-19 14:40:11 +08:00
ZiWei Chen 077f435210
[mgmt] notificationhub release (#28881)
https://github.com/Azure/sdk-release-request/issues/4999
swagger pr : https://github.com/Azure/azure-rest-api-specs/pull/28215
2024-03-19 14:03:02 +08:00
Azure SDK Bot a17c49445d
[EngSys] automatic rush update --full (#28952)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-03-18 13:05:01 -05:00
ZiWei Chen e8109d6e82
[mgmt] quantum release (#28880)
https://github.com/Azure/sdk-release-request/issues/4998
2024-03-18 14:26:54 +08:00
Harsha Nalluru ded4957ec4
[dev-tool] Fix lint errors (#28930)
### Packages impacted by this PR
`@azure/dev-tool`

### Issues associated with this PR
Fixing lint errors in `dev-tool` to unblock
https://github.com/Azure/azure-sdk-for-js/pull/28916 and [js -
eslint-plugin -
ci](https://dev.azure.com/azure-sdk/public/_build/results?buildId=3595289&view=logs&j=58292cae-3c74-5729-4cfd-9ceee65fe129&t=5e44d412-b571-5a43-3bb4-5c5145c0a5aa)
2024-03-14 23:21:31 +00:00
Erica 536d8096f4
Convert number lookup ga to preview (#28662)
### Packages impacted by this PR
@azure/communication-phone-numbers

### Issues associated with this PR


### Describe the problem that is addressed by this PR
Update the Number Lookup public preview to include the Number Format
features we've been preparing for GA.

https://github.com/Azure/azure-rest-api-specs/pull/27799

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
This design has been reviewed by the stewardship board

### Are there test cases added in this PR? _(If not, why?)_
yes

### Provide a list of related PRs _(if any)_
https://github.com/Azure/azure-rest-api-specs/pull/27799
https://github.com/Azure/azure-sdk-for-java/pull/38885
.NET _pending_
Python _pending_

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
n/a

### Checklists
- [x] Added impacted package name to the issue description
- [x] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
2024-03-14 16:03:12 -07:00
Jeff Fisher 2409cdeb44
[monitor] Fix pipeline issue from missing dependency (#28906)
### Packages impacted by this PR

`@azure/monitor-opentelemetry`
`@azure/monitor-opentelemetry-exporter`

### Describe the problem that is addressed by this PR

`cross-env` was removed from the devdeps of monitor-opentelemetry and
monitor-opentelemetry-exporter which causes pipeline failures when
running the test pipeline since the integration test command uses this
binary.
2024-03-13 19:52:23 +00:00
Maor Leger e3aaa5abef
remove use-esm-workaround (#28826)
Builds off of Matt's work on moving to tsx in #28801 by removing the
`use-esm-workaround` flag from packages that needed it before we moved to tsx.

There's additional cleanup to be had, but I am trying not to cause a
build storm.

We are at a point where we can delete `esm` globally!

Contributes to #28617 which can be completed with a no-ci change to
remove `esm` globally

****NO_CI****
2024-03-12 12:32:59 -07:00
Matthew Podwysocki 71c5eacaa9
[dev-tool] Update to use vitest (#28876)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Updates to latest dependencies and move from mocha to vitest.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-12 14:38:57 +00:00
Azure SDK Bot 303a178bbc
[EngSys] automatic rush update --full (#28874)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-03-11 22:10:14 +00:00
Matthew Podwysocki c49462c363
[monitor] Update to latest OTEL (#28868)
### Packages impacted by this PR

- @azure-tests/perf-monitor-opentelemetry

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Updates to latest OTEL packages

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-11 13:23:47 -07:00
Matthew Podwysocki 15f13e9565
[instrumentation] Uprade to the latest OTEL (#28811)
### Packages impacted by this PR

- `@azure/opentelemetry-instrumentation-azure-sdk`

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Updates to latest OTEL

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-11 14:16:47 -04:00
Jeff Fisher 916a59facb
[rush] [engsys] Disable build cache (#28866)
The `azsdkjsrush` storage account has seemingly been deleted, so this
will always fail and waste effort during CI.

Tracking issue for a full fix: #28865
2024-03-11 16:34:52 +00:00
Matthew Podwysocki 85409f5182
[dev-tool] revert old files back to ts-node (#28844)
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Reverts back to the original for the testing ts-node for JS and TS.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_

- https://github.com/Azure/azure-sdk-for-js/pull/28801

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-08 16:01:50 -08:00
Jackson Weber cbb87057d0
[Azure Monitor OpenTelemetry] Update Application Insights Web Snippet Package (#28827)
### Packages impacted by this PR
@azure/monitor-opentelemetry

### Describe the problem that is addressed by this PR
Package should be updated to the latest version and tests updated
appropriately.

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
2024-03-08 13:47:18 -08:00
Matthew Podwysocki ca72dcf5c9 [EngSys] move to rimraf 5 ***NO_CI*** 2024-03-07 16:48:30 -08:00
Hector Hernandez bf4efc7457
[Azure Monitor OpenTelemetry] Use dev-tool to run tests (#28805)
### Packages impacted by this PR
@azure/monitor-opentelemetry
@azure/monitor-opentelemetry-exporter
2024-03-06 16:11:30 -08:00
Matthew Podwysocki 870f817d5e
[EngSys] Move from ts-node to tsx for tests (#28801)
### Packages impacted by this PR

- @azure/app-configuration

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Removes dependency on `ts-node` and `esm` and moves in favor of using
`tsx`

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-06 22:15:21 +00:00
ZiWei Chen c99e94d485
[dev-tool] `sample publish` fix duplicate env vars in readme.md from samples (#28771)
fix https://github.com/Azure/azure-sdk-for-js/issues/28745
2024-03-06 14:38:35 -06:00
koen-mertens e49cb8addb
SDK implementation for Radiology Insights (in public preview) (#28577)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Asaf Levi <asaflevi@microsoft.com>
Co-authored-by: KarolGel <138193722+KarolGel@users.noreply.github.com>
Co-authored-by: tomsft <138026577+tomsft@users.noreply.github.com>
Co-authored-by: Karolien Gellynck <kgellynck@microsoft.com>
Co-authored-by: Tom Deray <tomderay@microsoft.com>
2024-03-06 09:55:05 +01:00
Jeff Fisher 22fa172a36
[dev-tool] Update dev-tool dependency `archiver` to latest major (#28780)
### Packages impacted by this PR

`dev-tool`

### Issues associated with this PR

Fixes #28763

### Describe the problem that is addressed by this PR

From their CHANGELOG.md entry, the only "breaking" change is removal of
Node 12 support, so this is a simple bump.
2024-03-05 16:46:36 +00:00
Matthew Podwysocki 86f4da0be4
[EngSys] Remove git hooks (#28782)
### Packages impacted by this PR

- All

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Removes the git hooks for now so that we do not block our workflows with
automation.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-05 16:17:57 +00:00
Sarangan Rajamanickam 9a840cd6d3
Adding an environment variable to skip the pre push checks (#28770)
The Pre Push script has some scenarios which is causing issues to
developers. I am working on resolving these issues. But, In the mean
time, there must be an easy way for the developers to push their commits
to github,

As discussed with @xirzec, I am adding an environment variable to skip
these checks.
2024-03-04 22:01:25 -08:00
Matthew Podwysocki 1657a4cc98
[ai-document-intelligence] Remove ESM depenendency (#28766)
### Packages impacted by this PR

- @azure-rest/ai-document-intelligence

### Issues associated with this PR

### Describe the problem that is addressed by this PR

Removes the ESM module and updates to ES2020

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-03-04 16:18:03 -05:00
Yifan Zhou 6c8741279f
Sdk auto/26702/@azure rest purview datamap (#28520)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-03-04 15:27:08 +08:00
Sarangan Rajamanickam 06766db5ce
Fix the Pre Push Script (#28748)
This PR is not related to any specific package. It is related to the fix
in the pre-push script. In the previous version of the script, there
were 2 issues reported:

1. Script was slow
2. There was a error in the line `err = error.stdout.toString();`.

The second issue is simple and straightforward. There was a missing
check. Once, it is added, the issue is resolved. The first issue is
little tricky.

I always assumed the new packages will be created from the `main` branch
in the `Azure` fork. Based on my recent conversations, it does not seem
to be valid. Some people (based on our project documentation) create the
branch from the `main` branch in their respective fork. (They do sync
their `main` branch with the `Azure` fork frequently. But, this is not
mandatory which causes the problem).As a result, sometimes I see the
difference in about 300+ commits to be validated which causes excess
time.

Now, I have fixed the issue with adding a new remote specific to prepush
tool and using that for comparison. This will reduce the number of
commits significantly which has increased the speed.

@HarshaNalluru Please approve the PR
2024-03-01 17:34:08 -08:00
Jeff Fisher 6304a8f041
Revert "Pre Push Hook to check and fix code format (#28500)" (#28752)
This reverts commit 91df305c67.

### Issues associated with this PR

Fixes #28737

### Describe the problem that is addressed by this PR

Revert the pre-push hook until we can test it a bit more.
2024-03-01 12:54:01 -08:00
ZiWei Chen aa667fae5d
[mgmt] streamanalytics release (#28314)
https://github.com/Azure/sdk-release-request/issues/4861
2024-02-29 12:29:04 +08:00
Timo van Veenendaal 8a03969680
[core] Enable lint and format for `.mts` files and others (#28630)
### Packages impacted by this PR

- `@azure/abort-controller`
- `@azure/core-auth`
- `@azure/core-client`
- `@azure/core-http-compat`
- `@azure/core-lro`
- `@azure/core-paging`
- `@azure/core-rest-pipeline`
- `@azure/core-sse`
- `@azure/core-tracing`
- `@azure/core-util`
- `@azure/core-xml`
- `@azure/logger`
- `@azure-rest/core-client`
- `@typespec/ts-http-runtime`

### Describe the problem that is addressed by this PR

Fix `.mts` files (used for platform mappings) not being included in
lint/format pass. Also fixed a couple of lint errors that showed up as a
result.
2024-02-27 12:44:15 -08:00
Sarangan Rajamanickam 91df305c67
Pre Push Hook to check and fix code format (#28500)
### Packages impacted by this PR
No specific package is impacted. This PR is to ensure that the code is
formatted before checking the code to a github repository.

### Issues associated with this PR
No

### Describe the problem that is addressed by this PR
In our repository we have several projects. When we make changes to them
and start the PR process, the build and analyze process starts. During
this process, the code formatter checks and reports any errors. In an
ideal world, it works great. But, in reality, I have found these errors
only after 30 - 45 minutes after creating the PR. This has occurred many
times and it would be great if there is a solution that can report
formatting issue before I create the PR.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
A few things are considered in the current design:
1. This solution must help the developer and not create another hurdle.
So, If the developer wants to do multiple commits locally, without
worrying about formatting, he should be able to do it. (So, pre-commit
hook is not used)
2. The solution must work across multiple projects and multiple commits.
3. Direct Git hooks are the ideal solution. But, unfortunately, the
hooks cannot be distributed to the team, since git ignores everything
under `.git` folder.
4. So, I have used the rush hooks directory. So, this will be available
to all the team members who clone the repository. Now, they have 2
options. A) They could copy the hook to their `.git\hooks\` folder. B) A
better recommended solution is to execute the following command: `rush
install` which will automatically handle the linking for them

### Are there test cases added in this PR? _(If not, why?)_
No. This is a pre-push git hook

### Provide a list of related PRs _(if any)_
None

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
None

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

@xirzec @deyaaeldeen @jeremymeng @joheredi @maorleger Please review and
approve the PR. Thanks
2024-02-26 14:07:26 -08:00
Jeremy Meng 7bed4a750c
[dev-tool] remove `-r esm` from `test:node-ts-input` options (#28587)
Turns out that it is not needed. Mocha is able to load .ts test files
without it.
2024-02-26 12:53:50 -06:00
Azure SDK Bot a8308726ee
[EngSys] automatic rush update --full (#28658)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-02-26 12:52:26 -06:00
Azure SDK Bot 4644097a61
[EngSys] automatic rush update --full (#28654)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-02-23 22:03:51 +00:00
ZiWei Chen bcfab23f11
[mgmt] apicenter release (#28622)
https://github.com/Azure/sdk-release-request/issues/4870
2024-02-23 17:25:25 +08:00
ZiWei Chen 99a9122e05
[mgmt] playwrighttesting release (#28425)
https://github.com/Azure/sdk-release-request/issues/4885
2024-02-23 15:46:10 +08:00
ZiWei Chen 95ee008e90
[mgmt] redisenterprisecache release (#28430)
https://github.com/Azure/sdk-release-request/issues/4905
2024-02-23 15:43:04 +08:00
ZiWei Chen 34a2629f40
[mgmt] recoveryservices-siterecovery release (#28532)
https://github.com/Azure/sdk-release-request/issues/4943
2024-02-23 15:25:15 +08:00
ZiWei Chen 6f83f2f1f2
[mgmt] astro release (#28505)
https://github.com/Azure/sdk-release-request/issues/4937
2024-02-23 15:17:46 +08:00
ZiWei Chen 3b50df6c06
[mgmt] storagecache release (#28439)
https://github.com/Azure/sdk-release-request/issues/4908
2024-02-23 15:00:03 +08:00
ZiWei Chen edda474cd5
[mgmt] largeinstance release (#28530)
https://github.com/Azure/sdk-release-request/issues/4931
2024-02-23 11:08:34 +08:00
Maor Leger 4415ff81a7
[EngSys] Bump puppeteer to 22.2.0 (#28639)
Looks like Google updated their URLs for chrome for testing downloads,
planning to retire the `hdgedl.me.gvt1.com...` URLs with
`storage.googleapis.com` URLs

It may have been deprecated for quite some time, but looks like as of
last night the old URLs have died, returning 500 instead.

As a result, puppeteer postinstall breaks the build

According to https://github.com/puppeteer/puppeteer/issues/11967
puppeteer 22.2.0 already uses the new URLs which
we can easily upgrade to.

This PR bumps the min-version to 22.2.0 across the board.
2024-02-22 18:49:19 +00:00
Arif Ibrahim Mohamed e34c0ff9d1
Azure Communication Messages SDK (#28298)
### Packages impacted by this PR
@azure-rest/communication-messages
API View =>
https://apiview.dev/Assemblies/Review/17216b4144934c31be61a27fc66f03b8?revisionId=91186996fce447488b468acfd07eb2f5&doc=False

### Issues associated with this PR


### Describe the problem that is addressed by this PR
Azure Communication Message SDK Onboarding

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_
Yes

### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
2024-02-21 12:36:52 -08:00
Jeremy Meng edf2760fc3
[dev-tool] fix TypeError warning in load-source-maps Rollup plugin (#28616)
By conventions rollup plugins prefix virtual modules with \0. Other
plugins should not try to process those virtual modules.

This PR updates our load-source-maps plugin to ignore modules whose id
starts with "\x00" thus fixes the following warning.

```
(!) Plugin load-source-maps: TypeError: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '\x00commonjsHelpers.js'
    at open (node:internal/fs/promises:605:10)
    at readFile (node:internal/fs/promises:1085:20)
    at Object.load (/home/runner/work/rushstack/rushstack/jssdk/common/tools/dev-tool/src/config/rollup.base.config.ts:141:36)
    at /home/runner/work/rushstack/rushstack/jssdk/common/temp/node_modules/.pnpm/rollup@4.12.0/node_modules/rollup/dist/shared/rollup.js:1009:40
    at async PluginDriver.hookFirstAndGetPlugin (/home/runner/work/rushstack/rushstack/jssdk/common/temp/node_modules/.pnpm/rollup@4.12.0/node_modules/rollup/dist/shared/rollup.js:909:28)
    at async /home/runner/work/rushstack/rushstack/jssdk/common/temp/node_modules/.pnpm/rollup@4.12.0/node_modules/rollup/dist/shared/rollup.js:19726:33
    at async Queue.work (/home/runner/work/rushstack/rushstack/jssdk/common/temp/node_modules/.pnpm/rollup@4.12.0/node_modules/rollup/dist/shared/rollup.js:20113:32)
  ...19 lines omitted...
```
2024-02-20 14:30:51 -08:00
Azure SDK Bot 68849261cc
[EngSys] automatic rush update --full (#28612)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-02-20 11:33:17 -08:00
Matthew Podwysocki 3b785dc400
[core] Upgrade to ES-Modules for core (#26238)
### Packages impacted by this PR

- @azure/abort-controller
- @azure/core-auth
- @azure/core-client
- @azure-rest/core-client
- @azure/core-http-compat
- @azure/core-lro
- @azure/core-paging
- @azure/core-rest-pipeline
- @azure/core-sse
- @azure/core-tracing
- @azure/core-util
- @azure/core-xml
- @azure/logger
- @typespec/ts-http-runtime

### Issues associated with this PR


### Describe the problem that is addressed by this PR

This migrates the core packages from a hybrid of CJS and ESM to an ESM
solution using [`tshy`](https://github.com/isaacs/tshy). The core is now
ESM, implemented as a module, and projects using `tshy` to CommonJS and
ESM.

The ESM build targets we will target include:  
- ESM (Node)
- Browser
- React-Native
- Bun
- Deno

This will allow each system to pick up the correct output instead of
picking the browser bundle which has happened in the past. Currently,
our bun and deno support is strictly through npm compatibility and we
are not forking logic at this point for those runtimes.

In order to support ESM, `sinon` does not allow for ESM module mocking,
so we looked for an alterative in `vitest`. This PR also migrates all
core packages stated above from Mocha/Chai for Node and Mocha/Chai/Karma
for the browser to using `vitest` for all tests. Currently, the system
builds a test bundle which targets the correct files such as those
targeted for the browser, eg `log-browser.mts` becomes `log.js` in the
compiled output.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
Co-authored-by: Maor Leger <maorleger@users.noreply.github.com>
Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2024-02-20 17:42:23 +00:00
ZiWei Chen 45738d31c4
[mgmt] springappdiscovery release (#28113)
https://github.com/Azure/sdk-release-request/issues/4835
2024-02-19 17:08:21 +08:00
Jeremy Meng 77bf651164
[EngSys] add missing `c8` dev dependency (#28602)
to `communication-job-router-rest` and `iot-device-update-rest` as they
are using the `dev-tool run test:node-js-test` command which runs `c8`
for code coverage.
2024-02-16 19:29:27 -08:00
Jeremy Meng cd4d6b9f6f
[EngSys] switch to use `esm4mocha` loader by default for *.js tests (#28589)
- Switch to use esm4mocha loader by default
- Add `--use-esm-workaround=true` to packages that need more work
(mostly due to usage of `__dirname` that is no longer available in ESM)
- Change some usage of `__dirname` to `"."` when possible
- [esm4mocha] only transform modules whose format is changed
- [load-testing-rest] update tsconfig.json to be consistent with other
packages
2024-02-16 14:37:24 -08:00
Maor Leger 2e50e2a716
[identity] Use esm4mocha, re-enable IBC test, remove unnecessary stub (#28580)
### Packages impacted by this PR

@azure/identity

### Issues associated with this PR

Resolves #28373 

### Describe the problem that is addressed by this PR

This PR addresses 3 things, all thanks to @jeremymeng's work on
esm4mocha:

1. Re-enables IBC test that was skipped due to #28373
3. Removes sinon stubbing of uuid, replacing it with recorder replacer
4. Fixes min/max tests for identity

Unfortunately we are not out of the woods regarding msal-node and esm.
We would need to get everyone migrated over
to this loader before we can upgrade msal-node repo-wide :(

### Provide a list of related PRs _(if any)_

#28556
2024-02-15 11:52:12 -08:00
Jeremy Meng b82222b3e1
[EngSys] add a workaround to load ESM tests for Mocha (#28556)
Currently most of our '*.js' tests and sources under dist-esm/ are
transformed by `esm` package (now outdated and archived) before being
feeded to Mocha because when a package.json has `"type":
"commonjs"` thus Mocha treats `.js` files as CommonJS.

This PR takes another approach by telling Mocha that the loaded modules
under dist-esm/ are ESM via a custom loader (`esm4mocha.mjs`).
This is done mainly in two parts:

1. During resolving, this loader checks the path of resolved modules and
if it includes `"dist-esm/"` we set the format of the resolved module to
`"module"`.
2. Also in ESM the full extension is required for relative modules in
import/export declarations, so a transformation is applied
to add `".js"` extension to relative imports/exports on the fly when
loading the module.

ServiceBus integration-test:node script has been updated to use this
approach. For now, the dev-tool command is unrolled and the old
workaround is replaced by the new one:

```diff
- -r ../../../common/tools/esm-workaround -r esm
+ --loader=../../../common/tools/esm4mocha.mjs
```

In the future, the dev-tool command would be updated to use the new
workaround for the majority of our packages.
2024-02-13 19:35:37 -08:00
Jeremy Meng b705d89332
[EngSys] pin http(s)-proxy-agent versions (#28568)
The latest versions broke our tests:

```
> mocha -r ../../../common/tools/esm-workaround.js -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js  --reporter-option output=test-results.xml --timeout 1200000 --full-trace "dist-esm/test/internal/**/*.test.js"

/home/meng/git/jssdk/common/temp/node_modules/.pnpm/https-proxy-agent@7.0.3/node_modules/https-proxy-agent/dist/index.js:1
Error: Cannot find module 'node:url'
Require stack:
- /home/meng/git/jssdk/common/temp/node_modules/.pnpm/https-proxy-agent@7.0.3/node_modules/https-proxy-agent/dist/index.js
- /home/meng/git/jssdk/sdk/core/core-rest-pipeline/dist/index.js
- /home/meng/git/jssdk/sdk/monitor/monitor-opentelemetry-exporter/dist-esm/src/platform/nodejs/httpSender.js
...
```
2024-02-13 14:24:49 -08:00
Timo van Veenendaal 7f7ec3f922
[dev-tool] Customization v2 prototype (#28503)
### Packages impacted by this PR

- `@azure-tools/dev-tool`

### Describe the problem addressed by this PR

New concept for customization tool I want to check in so we can test
whether it works better for our needs than the existing tool.

As a high-level overview, this tool leverages Git and its diff/merge
capabilities to take handwritten modifications to the old generated code
and apply it to new generated code after regenerating. The user will
resolve any merge conflicts if present after the fact.
2024-02-13 12:51:25 -08:00
Azure SDK Bot 14a796f67f
[EngSys] automatic rush update --full (#28565)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-02-13 12:20:17 -08:00
Matthew Podwysocki fadd8a78e3
[messaging] Update https-proxy-agent (#28564)
### Packages impacted by this PR

- @azure/event-hubs
- @azure/service-bus

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/security/dependabot/49

### Describe the problem that is addressed by this PR

Updates with the latest `https-proxy-agent` which does not have the
vulnerability.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-02-13 19:04:28 +00:00
Matthew Podwysocki ba2f5e66ee
[core] Upgrade http(s)-proxy-agent (#28563)
### Packages impacted by this PR

- @azure/core-rest-pipeline
- @typespec/ts-http-runtime

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/security/dependabot/49

### Describe the problem that is addressed by this PR

Upgrades to the 7.x version of the `https-proxy-agent` and
`http-proxy-agent` used for our proxy pipelines.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-02-13 17:48:53 +00:00
Deyaaeldeen Almahallawi 64b62c641a
[OpenAI] Introduce generated RLC (#28528)
WIP
2024-02-12 13:28:33 -08:00