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

93 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng a28e8f0795 [EngSys] move to vendored version of cross-env via dev-tool
***NO_CI***

- apply the transformation

- update samples' README
2024-11-02 00:48:06 +00:00
Jeremy Meng 980f3cbb89 [EngSys] move `uglify-js` to dev-tool vendored
- add dep to `uglify-js` in dev-tool

- rush update

- replace "uglifyjs" with "dev-tool run vendored yglifyjs"

- remove dependency to "uglifyjs" in sdk packages

***NO_CI***
2024-10-30 18:01:20 +00:00
Jeremy Meng 6a2c7300eb [eslint-plugin] add rule "@typescript-eslint/consistent-type-imports": "warn"
- apply lint:fix results

- revert fixes that are not related to consistent-type-imports and cases error

- regenerate .api.md files

- format

- update core-comparison diff
2024-10-30 15:48:52 +00:00
Jeremy Meng 1cae9db8e1 [EngSys] remove "audit" NPM script and it's related file
as we no longer use it and rely on GitHub security features.

***NO_CI***
2024-10-25 19:28:06 +00:00
Jeremy Meng 59bb0809ba [EngSys] use vendored version of `mkdirp` and `rimraf` from dev-tool
also remove dependency on `@microsoft/api-extractor` as we already move to
`dev-tool run extract-api` which calls api-extractor Api instead.

***NO_CI***
2024-10-23 17:53:07 +00:00
Matthew Podwysocki 61c8b9aae4 [EngSys] Add update-snippets to all package.json files ***NO_CI*** 2024-09-26 17:59:37 +00:00
Maor Leger 64c72d5dda [engsys] Move all packages to build-package script ***NO_CI*** 2024-09-25 18:52:35 +00:00
Jeremy Meng a7b3656a05 [EngSys] upgrade dev dependency `typescript` version to `~5.6.2`
***NO_CI***

- replace version to "~5.6.2"
- rush update
- add `"skipLibCheck": true` for several packages that are affected by https://github.com/vitest-dev/vitest/issues/4688

- [formrecognizer] help TypeScript to understand with more explicit type

- [schema-registry-{avro,json}] skip lib check due to lru-cache issue with the Iterator TReturn change

https://github.com/isaacs/node-lru-cache/issues/348
2024-09-19 18:07:31 -07:00
Jeremy Meng d5f6d677ec [EngSys] standardize OSS copyright header
- [eslint-plugin] github-source-headers rule should use "MIT License".

  This change updates our linter rule and the whole repository to have consistent
  license header.

***NO_CI***

- remove "All rights reserved." from header

- "MIT license" => "MIT License"
2024-08-27 13:01:38 -07:00
Jeremy Meng 5adb09d715 [engsys] upgrade dev dependency eslint to v9
***NO_CI***

- bump eslint version to ^9.9.0
- [eslint-plugin] remove eslint-plugin-import for now. Will re-visit until it supports eslint v9
2024-08-23 16:37:40 -07:00
Jeremy Meng 4ab6590ffe Apply automated migration to eslint flat config 2024-08-22 11:43:19 -07: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
ZiWei Chen 856f05319f
[mgmt] revert skipped test cases (#30588) 2024-08-02 11:29:20 +08:00
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 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
Azure SDK Bot e5df73e897
Post release automated changes for devcenter releases (#30335)
Post release automated changes for azure-rest-developer-devcenter
2024-07-08 15:33:01 -07:00
Driele Neves Ribeiro 0671672281
[DevCenter] Update release date for DevCenter 1.0.0 (#30311)
Update release date on changelog. APIView has been approved
[@azure-rest/developer-devcenter -
apiview.dev](https://apiview.dev/Assemblies/Review/e17096012eb7466a8aab7c74742c6bff?revisionId=dcf9502b75b34a37ae47c475aa281d56&doc=False)
2024-07-05 14:05:26 -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
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
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
Driele Neves Ribeiro 8b5d6ddb7e
[DevCenter] Update release date (#29979)
Update release date for DevCenter 1.0.0 

Original dev center sdk 1.0.0 PR:
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)
2024-06-10 13:06:14 -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
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
Azure SDK Bot c83a16126a
Post release automated changes for devcenter releases (#29452)
Post release automated changes for azure-arm-devcenter
2024-04-26 09:20:19 -07: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
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
Maor Leger 446e9d831b [EngSys] Remove ESM dependency ***NO_CI*** 2024-04-19 15:45:48 +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 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
Maor Leger d7173879bf [EngSys] C8 major version update ***NO_CI*** 2024-03-22 13:26:43 -05: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 b9414555d7
Post release automated changes for devcenter releases (#27855)
Post release automated changes for azure-rest-developer-devcenter
2023-12-27 12:41:19 -08: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
Driele Neves Ribeiro cadb38c07c
DevCenter Data Plane TypeSpec beta SDK v2023-04-01 (#27835)
# Description

For js, we had a previous
[PR](https://github.com/Azure/azure-sdk-for-js/pull/25859) which was
mainly to address changes caused by updating the DevCenter Data Plane
API to 2023-04-01 version. Since the PR was not completed, I have picked
the commits from there with the intention of reusing tests and samples.
On top of that, I have regenerated the SDK from TypeSpec since this is
the new type of generation desired going forward.

This will be released as a beta SDK and later down the road we will be
working on the stable SDK for this same API version. The recordings were
updated to the [assets
repo](https://github.com/Azure/azure-sdk-assets/tree/js/devcenter/developer-devcenter-rest_89c2b6dafe).

The changes to add typespec support can be find at
[feature/devcenter-tsp](https://github.com/Azure/azure-rest-api-specs/pull/26359).
Note the PR hasn't been merged, so we will have a separate pr in the
future to update the commit hash pointing to the new tsp location.

# All SDK Contribution checklist:
- [ ] **The pull request does not introduce [breaking changes]**
- [x] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [x] **I have read the [contribution
guidelines](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md).**

## General Guidelines and Best Practices
- [x] Title of the pull request is clear and informative.
- [x] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### [Testing
Guidelines](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md##building-and-testing)
- [x] Pull request includes test coverage for the included changes.

### Pipeline runs

Dry runs on the release pipeline:

https://dev.azure.com/azure-sdk/internal/_build?definitionId=5622&_a=summary

### List of tests
(same as previous PR)

DevBox
 - [x] get_pool
 - [x] list_pools
 - [x] get_dev_box
 - [x] get_remote_connection
 - [x] get_action
 - [x] list_actions
 - [x] skip_action
 - [x] delay_action
 - [x] delay_all_actions
 - [x] get_schedule
 - [x] list_schedules
 - [x] list_dev_boxes
 - [x] list_all_dev_boxes
 - [x] list_all_dev_boxes_by_user
 - [x] begin_create_dev_box
 - [x] begin_delete_dev_box
 - [x] begin_start_dev_box
 - [x] begin_stop_dev_box
 - [x] begin_restart_dev_box

DevCenter
 - [x] get_project
 - [x] list_projects

Environments
 - [x] begin_delete_environment
 - [x] begin_create_or_update_environment
 - [x] list_environment_types
 - [x] list_catalogs
 - [x] list_environments
 - [x] list_all_environments
 - [x] get_environment_definition
 - [x] list_environment_definitions
 - [x]  list_environment_definitions_by_catalog
 - [x] get_catalog
 - [x] get_environment

Also updated samples.

---------

Co-authored-by: Sean Brennan <sebrenna@microsoft.com>
Co-authored-by: Oleg Demchenko <oldemche@microsoft.com>
2023-11-20 15:41:46 -08:00
Jeremy Meng d44ad35a73
[EngSys] Fix format checking error (#27602)
Some files are not formated in commits that were merged without CI. This
PR updates them with the result from `rush format`, and also fixes
`format` script for ts-http-runtime
2023-10-31 17:27:38 +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
kazrael2119 69f5150575
[mgmt] update package.json to remove rollup dependency (#27518) 2023-10-25 10:40:42 +08:00