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

128 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng 3a68e456b2 [Samples] update "src/**.ts" to "src/**/*.ts" in tsconfig.json
Previously dev-tool has been fixed to generate correct include path in samples
tsconfig.json but samples were not updated.

This PR fixes the samples tsconfig.json in one run; otherwise with the recent
branch protection policy changes, when individual packages re-publish samples,
js-core team would have to approve the tsconfig.json changes.

***NO_CI***
2024-07-24 13:53:00 +00:00
Jeremy Meng 25e9d423af
[apimanagement] remove console.log from bundling command output (#30430)
so that rush doesn't treat successful builds as completed with warnings

-------

### Packages impacted by this PR
@azure/api-management-custom-widgets-scaffolder
2024-07-16 13:52:55 -07: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
Jeremy Meng b93b62368b [EngSys] remove tsconfig.package.json
which only extends from tsconfig.json.  There might be more customization for
packages in the early days but not any more.

This PR removes it and updates packages to extends tsconfig.json directly

***NO_CI***
2024-07-16 13:27:25 +00: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
Matthew Podwysocki c8aa2f8fdf [EngSys] Update version of tshy ***NO_CI*** 2024-07-03 18:40:06 +00:00
Jeremy Meng 1c9a68133b [EngSys] ignore and remove .tshy directories
We currently don't have a use for them and they are safe to ignore based on the
answer in https://github.com/isaacs/tshy/issues/78#issuecomment-2203955286

***NO_CI***
2024-07-03 16:46:35 +00:00
Jeremy Meng e7312b346e [EngSys] commit file changes caused by tshy upgrades
this is a result of `rush build` on latest main.

***NO_CI***
2024-07-02 16:52:37 +00:00
ZiWei Chen 509b56e0ac
[mgmt] reduce playback test time (#30103) 2024-06-26 11:43:52 +08:00
Maor Leger d1149283dd
[engSys] Run rush build (#30129)
Run `rush build` on the repo to ensure the newly added `source` fields
are generated.

This avoids unnecessary noise on PRs that may build tshy packages as
part of their dependency graph (such as #29374)
2024-06-20 12:15:33 -07:00
Maor Leger 2e040fae8a Bump @azure/identity to 4.2.1 in samples ***NO_CI*** 2024-06-11 14:01:31 -07: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
Jeff Fisher 091d58a641
[api-management] Check in missing changes (#29891)
### Packages impacted by this PR

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

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

When building from main, these files showed as modified, just getting
them checked in to avoid having a dirty tree
2024-06-04 18:45:44 +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 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
Matthew Podwysocki 769c1b126e [EngSys] Update name of @azure-tools/test-utils ***NO_CI*** 2024-04-25 13:14:33 -07:00
Jeremy Meng e713574d65
[EngSys] remove `prettier` dev dependency from individual packages (#29378)
We already centralize prettier version in dev-tool and use `dev-tool run
vendored prettier` command to format. Looks that some packages brought
the dev dependency back during merge. This PR corrects those and also
includes the result of `rush format` on the repo.
2024-04-22 09:27:27 -07: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
Maor Leger 224f7c1c14 [EngSys] Migrate to dev-tool extract-api ***NO_CI*** 2024-04-19 18:13:41 +00:00
Jeremy Meng ffe81c5bcf [EngSys] upgrade dev dependency `mkdirp` to `^3.0.1`
***NO_CI***
2024-04-15 11:27:58 -07:00
Jeremy Meng e42962aad7
[api management tool] fix "main" entry in package.json (#29300)
This change is the result of running build. Looks the current path is
incorrect
as the CJS build output is under ./dist/commonjs
2024-04-15 08:57:28 -04: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
Matthew Podwysocki 7937a8e9fa
[apimanagement] Remove @types/mime (#29276)
### Packages impacted by this PR

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

### Issues associated with this PR

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

Removes `@types/mime` as the types are now included by default.

### 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 13:40:01 -04: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
Maor Leger d7173879bf [EngSys] C8 major version update ***NO_CI*** 2024-03-22 13:26:43 -05:00
Matthew Podwysocki ca72dcf5c9 [EngSys] move to rimraf 5 ***NO_CI*** 2024-03-07 16:48:30 -08: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
Jeremy Meng 09784c3724 [EngSys] upgrade dev dependency `pretter` to `^3.2.5`
There's some changes in 3.2.5 which caused formatting changes for tsconfig.json
which caused our rush automation failed in check-format when moving to latest 3.2.5.

https://github.com/prettier/prettier/blob/main/CHANGELOG.md#use-json-parser-for-tsconfigjson-by-default-16012-by-sosukesuzuki

This change upgrades prettier to version ^3.2.5 and format files using "rush format".

***NO_CI***
2024-02-06 12:13:14 -08:00
Maor Leger c0d505f086 [EngSys] Update to @azure/identity 4.x
This change migrates every package to the latest major version of
identity in order to ensure we can catch any regressions earlier in the
development process.

I chose to upgrade the samples' package.json as well - but happy to
revert that if there are objections.

***NO_CI***
2024-02-02 19:01:35 +00:00
Jeremy Meng fb74e0b24b [EngSys] ensure dev dependency `@types/mocha` when depending on `mocha`
Our tests use the type `Mocha.Context` when they need to pass the test context
to test recorder. However, without a dev dependency on `@types/mocha`
compilation may fail when recorder constructor is changed from taking a
`Mocha.Test` to taking an interface that is compatible.

This change ensures the dev depedency on `@types/mocha` too if there's a dev
dependency on `mocha`.

***NO_CI***
2024-02-02 18:41:28 +00:00
Jeremy Meng ee5c29d72d ***NO_CI***
bump to ~5.3.3
2024-01-26 11:25:48 -08:00
Matthew Podwysocki f70fa9821c [EngSys] Update TypeScript to 5.3 2024-01-26 11:25:47 -08:00
Jeremy Meng 0e1c8881f0 [EngSys] upgrade dev dependency `prettier` version to ^3.2.4
***NO_CI***

Latest versions of prettier now correctly formats `tsconfig.json`, which results
in differences with previous version of 3.1.1 in pnpm-lock.yaml. This is failing
the automated rush update pipeline because `check-format` fails with version
3.2.4.

This includes changes of
- bumping prettier version to ^3.2.4
- running `rush format`
2024-01-18 19:05:41 +00:00
Jeremy Meng 12b4dcc257 [EngSys] upgrade to prettier v3
***NO_CI***

- remove dev dependency `prettier` from non-tool packages when possible and
  update them to run vendored prettier for `check-format` and `format` scripts

- upgrade rest of packages to prettier v3

- run `rush format` for all rush packages

This is a follow-up to https://github.com/Azure/azure-sdk-for-js/pull/28127 to
move the rest of repo to prettier v3.
2024-01-10 18:45:01 -05:00
Azure SDK Bot 682f8096b3
Post release automated changes for apimanagement releases (#28160)
Post release automated changes for
azure-api-management-custom-widgets-scaffolder
2024-01-04 15:22:42 -06:00
Ján Mach 933b8abf59
api-management-custom-widgets-scaffolder@beta4 release (#28137)
### Packages impacted by this PR
api-management-custom-widgets-scaffolder

### Describe the problem that is addressed by this PR
setting release date of beta 4 version
2024-01-04 13:27:37 -06:00
Ján Mach ec0f34d767
api-management-custom-widgets-scaffolder displayNameToName fnc with prefix (#28099)
### Packages impacted by this PR
api-management-custom-widgets-scaffolder

### Issues associated with this PR
https://dev.azure.com/msazure/One/_workitems/edit/25953312

### Describe the problem that is addressed by this PR
conflicting names of custom and build-in widgets

### 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)
2023-12-22 13:42:07 -06:00
Ján Mach 0cd36e3549
package "mime" updated (#28078)
### Packages impacted by this PR
api-management-custom-widgets-tools

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

### Describe the problem that is addressed by this PR
update of an outdated package

### 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)
2023-12-20 13:50:38 -06:00
Jeremy Meng f6e6736d3a [EngSys] remove dev dependency `mocha-junit-reporter`
***NO_CI***

We have replaced it with Mocha builtin XUnit reporter in PR https://github.com/Azure/azure-sdk-for-js/pull/27992
2023-12-06 22:28:15 +00:00
Jeremy Meng 02491d75c2
[EngSys] upgrade dev dependency `rollup` version to `^4.0.0` (#27997)
### Issues associated with this PR
#27450
2023-12-06 17:43:06 +00:00
Jeremy Meng facc44641b
[EngSys] upgrade dev dependency @types/sinon to ^17.0.0 (#27836)
and sinon too to ^17.0.0 for packages that missed last upgrade.
2023-11-17 14:54:01 -08:00
Jeremy Meng c6dbe7ef23
[EngSys] upgrade dep dependency `sinon` version to `^17.0.0` (#27601) 2023-11-02 17:14:17 +00:00
Jeremy Meng 09111131ef [EngSys] Increment minimum supported node version to v18
***NO_CI***

- React to @types/node changes
- Fix eslint-plugin tests
2023-10-30 21:01:37 +00:00
Jeremy Meng 4371e976b1 [engsys] replace dev dependency `nyc` with `c8`
***NO_CI***

The combination of `nyc` + `esm` is broken in latest versions of
NodeJS (https://github.com/istanbuljs/nyc/issues/1530#issuecomment-1773403365).
Since `esm` package is no longer actively maintained and its repo is archived,
it's less likely that the issue will be fixed soon.

This change switches to use another code coverage tool `c8` which is not
affected. `c8` respects `.nycrc` config files so those are not renamed.
2023-10-23 17:08:26 -04:00
Jeremy Meng 6d7f6359cb [engsys] update dev dependency `typescript` version to `~5.2.0`
***NO_CI***

- Upgrade typedoc too as older version only supports TypeScript 5.0
2023-10-23 14:32:05 -04:00
Deyaaeldeen Almahallawi 72d460d5ba Use dev-tool bundle in arm libraries ***NO_CI*** 2023-10-16 21:03:26 +00:00
Deyaaeldeen Almahallawi 2a896139d4
Upgrade to rollup v3 (#27377)
### Packages impacted by this PR

[@azure/web-pubsub](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3154068&view=results)

[@azure/ai-form-recognizer](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3154070&view=results)

[@azure/communication-identity](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3154080&view=results)

[@azure/core-amqp](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3154074&view=results)
api management libs

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

### Describe the problem that is addressed by this PR
Upgrading rollup to v3

### 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)
2023-10-11 13:17:02 -07:00
Jeremy Meng c65d843a30 Increment minimum supported node version to 16
***NO_CI***

- update engine.node to >=16.0.0 in package.json
- update @types/node version to ^16.0.0
- update dev-tool sample's MIN_SUPPORTED_NODE_VERSION to 16
- update eslint-plugin's rules and tests related to engine.node version
- remove TextEncoder and TextDecoder stubs as they are now on global object
- fix tests compiler error due to better typings in v16
- update some README files to not reference version like 14.x.x
2023-10-09 21:09:54 +00:00
Azure SDK Bot fe6da13917
Post release automated changes for apimanagement releases (#27329)
Post release automated changes for
azure-api-management-custom-widgets-scaffolder
2023-10-05 11:25:05 -07:00
Jeff Fisher 9841a8a70c
API Managment - fix release dates (#27327)
### Packages impacted by this PR

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

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

I forgot to run the release pipeline for these packages last month, so
now I need to bump the date and release them out of band.
2023-10-05 16:43:33 +00:00