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

2507 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng 405c244bb1 [linting] move perf tests to use eslint flat config
***NO_CI***

- add one flat config file for perf tests

- update NPM scripts of these packages to use that flat config for perf tests

  As eslint v8 still not switched to flat config by default, this change
  temporarily uses `cross-env` to set `ESLINT_USE_FLAT_CONFIG=true`

  Once we moved to eslint v9 the env var can be removed.
2024-08-15 10:56:56 -07:00
Maor Leger be4e4c4f9d
[keyvault-admin] Migrate to ESM and tshy (#30743)
### Packages impacted by this PR

@azure/keyvault-admin

### Issues associated with this PR


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

Migrates keyvault-admin to ESM and tshy
2024-08-15 10:48:12 -07:00
Jeremy Meng 732f0502dd
[lint] remove usage of passing internal eslintrc via command line (#30761)
and replacing them with eslint.config.mjs so that both command line
eslint and
the vscode eslint extension can use the same config.

- since vite-plugin-browser-test-map doesn't depend on
eslint-plugin-azure-sdk, add linter dev dependencies and a flat config
to it.

- add an internal flat config to our eslint plugin. use it in added flat
config for test utility packages
2024-08-14 18:37:10 -07:00
Jeremy Meng 40c5e01744
[EngSys] rush update --full to fix inconsistent playwright versions (#30753)
eventhubs-checkpointstore-blob still has playwright 1.45.3 in lockfile.
This PR updates the version to 1.46.0
2024-08-14 13:11:41 -07:00
Jeremy Meng 45dd8373db
[EngSys] fix some inconsistent dependency versions in our tools (#30745)
- use ^ version when possible
- upgrade fs-extra to v11
- unpin cross-env
- unpin @types/express-serve-static-core
2024-08-14 11:59:19 -07:00
Matthew Podwysocki f9d5a5e254
[test-utils] Adding @azure-tools/test-utils-vitest (#30740)
### Packages impacted by this PR

- @azure-tools/test-utils-vitest

### Issues associated with this PR

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

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

Adding in the tracing support and moving the matrix to a new module

### 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: Jeremy Meng <jeremy.ymeng@gmail.com>
Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
2024-08-14 14:05:33 -04:00
Deyaaeldeen Almahallawi 04e383e6f9
Upgrade tshy to v2 (#30747)
And in some cases downgrade from v3 to v2 (in event hubs and in
core-sse).
2024-08-13 16:01:59 -07:00
Deyaaeldeen Almahallawi 8637d50849
[clients] Upgrade vitest to v2 (#30730)
CI failure is unrelated, see
https://dev.azure.com/azure-sdk/public/_build/results?buildId=4046824&view=logs&j=58292cae-3c74-5729-4cfd-9ceee65fe129&t=5e44d412-b571-5a43-3bb4-5c5145c0a5aa.
2024-08-13 13:48:01 -07:00
Jeremy Meng 78671335a4
[EngSys] upgrade dev dependency `puppeteer` to ^23.0.2 (#30727)
- replace v22 version with v23 version
- run `rush update`
2024-08-13 12:05:49 -07:00
Deyaaeldeen Almahallawi d6e1da0636
[core] Upgrade to vitest v2 (#30728) 2024-08-13 10:16:53 -07:00
Haopeng Wang 9643b373cc
Add @azure-rest/batch package (#29306)
### Packages impacted by this PR
@azure-rest/batch

### Issues associated with this PR


### Describe the problem that is addressed by this PR
Add @azure-rest/batch 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
- [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: NickKouds <nickouds@hotmail.com>
2024-08-12 17:45:12 -07:00
Azure SDK Bot 0e27c77f8a
[EngSys] automatic rush update --full (#30716)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-08-12 10:21:40 -07:00
Minh-Anh Phan ffbd3e6fa2
[Test-Credential] Update to Azure Pipeline Credential (#30633)
### Packages impacted by this PR
test-credential

### Issues associated with this PR


### Describe the problem that is addressed by this PR
Update the `createTestCredential` to use Azure Pipeline Credential when
in the Dev Ops env
2024-08-12 09:50:52 -07:00
Matthew Podwysocki 958ceaff57
[core-amqp] Remove polyfills (#30708)
### Packages impacted by this PR

- @azure/core-amqp

### Issues associated with this PR


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

Removes the polyfills for vite and instead injects the given polyfills
for process and Buffer.

### 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-08-10 18:27:20 -04:00
Deyaaeldeen Almahallawi 679254d71e
[core-sse] Fix NodeJS socket behavior (#30707)
### Packages impacted by this PR
@azure/core-sse

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

### Describe the problem that is addressed by this PR
In NodeJS, when the response stream is exhausted and the server closes
the connection, the underlying socket gets set to null. This is
problematic because core-sse is misled by the type of
`http.IncomingMessage.socket` that stipulates the socket is always a
valid object. This PR checks first if the socket is defined before it
closes it.

### 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?)_
Yes!

### 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-08-09 17:42:36 -07:00
ZiWei Chen ab4c9cbf41
[mgmt] healthdataaiservices release (#30664)
https://github.com/Azure/sdk-release-request/issues/5387
2024-08-09 09:57:54 -07:00
EmmaZhu-MSFT f2e9d183da
Storage/stg95 (#30681)
[Storage] update to stage 95 versions
2024-08-08 11:26:38 -07:00
Jeremy Meng 95a2b38a63
[eslint-plugin] exports ./prettier.json (#30676)
so that VS Code prettier extension can import it via the "prettier" key
in most of our packages' package.json:

```
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
```

### Packages impacted by this PR
eslint-plugin-azure-sdk
2024-08-07 09:39:14 -07:00
ZiWei Chen d6bab1b74c
[mgmt] appcontainers release (#30407)
https://github.com/Azure/sdk-release-request/issues/5297
2024-08-07 15:05:24 +08:00
Jeremy Meng 664f087275
[eslint-plugin] add `eslint-plugin-n` (#30640)
This allows us to remove usage of the outdated and now archived
`eslint-plugin-node`. This PR

- adds `eslint-plugin-n` and its customization into our `eslint-plugin-azure-sdk`
- updates monitor-opentelemetry* packages to remove dev dependency on the old plugin

### Packages impacted by this PR
- eslint-plugin-azure-sdk
2024-08-05 10:59:53 -07:00
Azure SDK Bot a438b8ae96
[EngSys] automatic rush update --full
<p dir="auto">This is an automatic PR generated weekly with changes from running the command rush update --full</p>
2024-08-05 10:03:30 -07:00
Deyaaeldeen Almahallawi 085100584e
[Event Hubs Checkpoint Store Tables] Migrate to TSHY and vitest (#30639)
As the title says.

Live run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4021464&view=results
2024-08-02 22:16:59 -07:00
Deyaaeldeen Almahallawi 55682acf66
[mockhub] Migrate to TSHY and vitest (#30634)
- migrates mockhub to TSHY and vitest
- stubs a test suite
- add a review folder
- migrates samples to be published by dev-tool

/cc @harshanalluru
2024-08-02 16:51:09 -07:00
luc b0d1f9bf63
Update signaling version and Changelog (#30617)
### Packages impacted by this PR
@Azure/communication-chat 

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

- Update the dependency @azure/communication-signaling package version
to fix the regressions in real time notification support in React
Native.
- 
- Update the dependency @azure/core-rest-pipeline package version to fix
the regressions in client response support in React Native.


### 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-08-02 13:49:50 -07:00
Deyaaeldeen Almahallawi 689d583ddf
[Event Hubs Checkpoint Store] Migrate to TSHY and vitest (#30620)
### Packages impacted by this PR
@azure/eventhubs-checkpointstore-blob

### Issues associated with this PR

N/A

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

- migrates to use TSHY and vitest
- uses storage endpoint instead of storage connection string in the
tests
- enables browser testing
- updates test-resources.json accordingly
- fixes a behavior where an error is being wrapped in another

Live tests run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4018408&view=results

### 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-08-02 11:06:26 -07:00
ZiWei Chen d166c6983c
[mgmt] computefleet with modular (#30358)
https://github.com/Azure/sdk-release-request/issues/5256
2024-08-01 10:48:02 +08:00
Deyaaeldeen Almahallawi ea4c874241
[Event Hubs] Fix browser bundling (#30592)
The browser tests are
[failing](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4009481&view=logs&j=8f098e13-557e-5a76-9331-06424800e0fa&t=52fc44a1-b208-5374-c579-e601a962726b)
because some test suites import test-utils that imports chai@^4.0.0
which conflicts with chai@^5.0.0 that vitest depends on. This PR
consolidates the tests that depend on test-utils in one test suite and
excludes it from the browser tests for now.

Live tests run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4013779&view=results
2024-07-31 18:51:12 -07:00
Azure SDK Bot c043ed5226
[EngSys] automatic rush update --full (#30594)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-07-31 14:56:49 -07:00
Jeremy Meng 32e24895a5
[dev-tool] switch to ESLint flat config (#30565)
- add dev dependency to `@eslint/js` and `typescript-eslint`
- add a flat config eslint.config.mjs for dev-tool
2024-07-31 13:04:44 -07:00
ZiWei Chen 77bce1c227
[mgmt] refresh mongocluster (#30374)
fixes https://github.com/Azure/azure-sdk-for-js/issues/30327
2024-07-31 17:40:12 +08:00
Deyaaeldeen Almahallawi a1d93c49ad
[Event Hubs] Migrate to use TSHY and vitest (#30421)
### Packages impacted by this PR
@azure/event-hubs

### Issues associated with this PR

N/A

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

This PR does the following:
- migrates Event Hubs client library to the new world of using TSHY for
building the library and using vitest as the test runner
- consolidates client building in a single module and uses fully
qualified name spaces and token credentials to build clients instead of
using connection strings
- runs mock-hub once instead of in every test module
- disables min/max testing and samples testing because they're not
playing well with TSHY and vitest at the moment. I'll open an issue to
track turning them back on once the testing pipelines have been
upgraded.

Live Tests are passing:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4000037&view=results

### 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-30 12:04:11 -07:00
danielszaniszlo bb555ae72d
Fix dependency versions after testing package (#30564)
### 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-07-30 09:54:42 -07:00
Azure SDK Bot 1d5d98a632
[EngSys] automatic rush update --full
<p dir="auto">This is an automatic PR generated weekly with changes from running the command rush update --full</p>
2024-07-29 09:38:18 -07:00
ZiWei Chen 69d472a72e
[mgmt] network release (#30434)
https://github.com/Azure/sdk-release-request/issues/5305
2024-07-28 20:05:46 +08:00
ZiWei Chen c3ae1398ff
[mgmt] servicefabricmanagedclusters release (#30537)
https://github.com/Azure/sdk-release-request/issues/5375
2024-07-26 16:43:20 +08:00
ZiWei Chen 730ac9f9e1
[mgmt] redhatopenshift release (#30538)
https://github.com/Azure/sdk-release-request/issues/5368
2024-07-26 15:42:57 +08:00
ZiWei Chen 9451f22b6f
[mgmt] hrbridcompute release (#30469)
https://github.com/Azure/sdk-release-request/issues/5333
2024-07-26 14:40:20 +08:00
ZiWei Chen 443561eaff
[mgmt] rediscache release (#30405)
https://github.com/Azure/sdk-release-request/issues/5293
2024-07-26 14:02:42 +08:00
ZiWei Chen 99ad7e50bc
[mgmt] netapp release (#30436)
https://github.com/Azure/sdk-release-request/issues/5309
2024-07-26 13:52:33 +08:00
ZiWei Chen 1591f79cde
[mgmt] compute release (#30423)
https://github.com/Azure/sdk-release-request/issues/5301
breaking caused by
https://github.com/Azure/azure-rest-api-specs/pull/28891
2024-07-26 13:51:02 +08:00
ZiWei Chen 8136945bf9
[mgmt] qumulo release (#30440)
https://github.com/Azure/sdk-release-request/issues/5326
breaking caused by
https://github.com/Azure/azure-rest-api-specs/pull/29673
2024-07-26 13:38:25 +08:00
ZiWei Chen df20dc9902
[mgmt] dataprotection release (#30314)
https://github.com/Azure/sdk-release-request/issues/5277
2024-07-26 10:22:28 +08:00
ZiWei Chen df7179214d
[mgmt] search release (#30014)
https://github.com/Azure/sdk-release-request/issues/5244
2024-07-25 18:37:17 +08:00
danielszaniszlo b8a128da00
Adding Javascript SDK for health deid service (#30049)
### Packages impacted by this PR
This PR includes the JavaScript/Typescript SDK for health deid service.
It includes:
- tests
- samples
- Readme

### 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: Harsha Nalluru <sanallur@microsoft.com>
2024-07-24 11:38:47 -07:00
ZiWei Chen ddad23e69d
[mgmt] containerservice release (#30390)
https://github.com/Azure/sdk-release-request/issues/5290
2024-07-23 18:18:09 +08:00
ZiWei Chen 27067aa8f8
[mgmt] edgezones with modular (#30341)
https://github.com/Azure/sdk-release-request/issues/5072

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-07-23 11:44:56 +08:00
Deyaaeldeen Almahallawi fe595c963c
[OpenAI] Add companion library (#30467)
WIP

---------

Co-authored-by: Minh-Anh Phan <minhanhphan@microsoft.com>
Co-authored-by: Minh-Anh Phan <111523473+minhanh-phan@users.noreply.github.com>
2024-07-22 16:57:28 -07:00
Azure SDK Bot 450e4384c1
[EngSys] automatic rush update --full (#30486)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-07-22 10:55:33 -05:00
Hector Hernandez dcf717c9d2
[monitor-opentelemetry] Add support for Azure Functions v4 types (#30452)
### Packages impacted by this PR
@azure/monitor-opentelemetry

### Issues associated with this PR
https://github.com/microsoft/ApplicationInsights-node.js/issues/1332
2024-07-18 11:36:57 -07:00
Azure SDK Bot d367b3b142
[EngSys] automatic rush update --full (#30409)
This is an automatic PR generated weekly with changes from running the
command rush update --full
2024-07-16 21:26:49 +00:00
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