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

142 Коммитов

Автор 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 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
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
ZiWei Chen 928149383a
[mgmt] add Sanitized rule and update changelog template to fix ci fai… (#30226) 2024-09-06 17:10:40 +08: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 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 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
Maor Leger 2e040fae8a Bump @azure/identity to 4.2.1 in samples ***NO_CI*** 2024-06-11 14:01:31 -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 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
Jeff Fisher fd49623dd2
Remove track1 cognitive packages (#29178)
### Packages impacted by this PR

`@azure/cognitiveservices-face`
`@azure/cognitiveservices-computervision`
`@azure/cognitiveservices-contentmoderator`
`@azure/cognitiveservices-customvision-prediction`
`@azure/cognitiveservices-customvision-training`
`@azure/cognitiveservices-personalizer`
`@azure/cognitiveservices-translatortext`

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

These are old track1 packages that haven't been built or maintained in
years. They're not managed by Rush, nor do they use the common core.
2024-04-04 17:12:48 -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
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 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
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
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
kazrael2119 ab391b646b
[mgmt] update quick-start link in changelog (#27260)
https://github.com/Azure/azure-sdk-for-js/pull/27223#discussion_r1338094846
2023-09-27 17:51:50 +08:00
Jeremy Meng b2dfb59d59 [test] upgrade dev dependency `mocha` to `^10.0.0`
- along with it, `@types/mocha` version to `^10.0.0`
- add `esm` dev dependency as they are used, but not explicitly list
- use dev-tool run command for test scripts as much as possible
- fix test issue caused by Mocha behavior change around test name
- move `import "chai/register-should"` to mocha -r command line option for core
  http tests

***NO_CI***
2023-09-26 18:54:14 +00:00
Deyaaeldeen Almahallawi e95422bbd0 Fix up Azure dependencies ***NO_CI*** 2023-09-22 18:38:37 +00:00
Jeremy Meng ddc5a19e0c [test][mgmt] add `testPollingOptions`/`updateIntervalInMs` of 0
***NO_CI***

so that LRO operations in playback mode don't wait.
2023-09-22 18:26:46 +00:00
Jeremy Meng 56d2330abe [EngSys] add `ts-node` dev dependencies to rush projects
***NO_CI***

Most of our packages, if not all, have dev dependency on `ts-node` either
directly (`mocha --require ts-node/register`) or indirectly via dev-tool (`run
test:node-ts-input`). Currently tests are running fine because mocha is able to
resolve ts-node currently. It may fail in other cases though (e.g., after
migrating a package to ESM).

This ensures `ts-node@^10.0.0` and `types/node` are included for our rush
packages.
2023-08-23 14:36:24 -07:00
kazrael2119 6890b404f8
cognitiveservices release (#26410)
https://github.com/Azure/sdk-release-request/issues/4283

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2023-07-25 16:16:39 +08:00
Jeff Fisher dd3bd4f520
Remove track1 packages for services that are being spun down (#26343)
### Packages impacted by this PR

`@azure/cognitiveservices-luis-authoring`
`@azure/cognitiveservices-luis-runtime`
`@azure/cognitiveservices-qnamaker`
`@azure/cognitiveservices-qnamaker-runtime`

### Issues associated with this PR

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

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

Removing deprecated packages for services that are in the process of
being decommissioned and their workloads migrated to other services.
2023-06-28 12:02:02 -04:00
Jeff Fisher 496607158b
Remove track 1 packages that have track 2 equivalents (#26342)
### Packages impacted by this PR

`@azure/cognitiveservices-textanalytics`
`@azure/cognitiveservices-formrecognizer`
`@azure/cognitiveservices-anomalydetector`


### Issues associated with this PR

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

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

All three of these packages have track 2 packages that supersede them.
2023-06-28 12:01:40 -04:00
Jeff Fisher 1669a6796f
Remove track1 Bing packages (#26341)
### Packages impacted by this PR

`@azure/cognitiveservices-autosuggest`
`@azure/cognitiveservices-customsearch`
`@azure/cognitiveservices-customimagesearch`
`@azure/cognitiveservices-entitysearch`
`@azure/cognitiveservices-imagesearch`
`@azure/cognitiveservices-newssearch`
`@azure/cognitiveservices-localsearch`
`@azure/cognitiveservices-spellcheck`
`@azure/cognitiveservices-videosearch`
`@azure/cognitiveservices-visualsearch`
`@azure/cognitiveservices-websearch`


### Issues associated with this PR

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

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

These APIs were migrated from Cognitive into Bing Search.
2023-06-28 11:59:41 -04:00
kazrael2119 2d1e0a369d
migrate sdk recording files 1 (#25637)
https://github.com/Azure/azure-sdk-for-js/issues/25410
2023-04-27 11:20:57 +08:00
Jeremy Meng d3a06a7349 [EngSys] upgrade dev dependency `typescript` to `~5.0.0`
***NO_CI***

- update versions in package.json
- change a couple ^ version to ~ version because typescript doesn't follow semver
2023-04-18 23:04:26 +00:00
Mary Gao 90f8b8a054
Update test cases for open ai management plane (#25411)
Update test cases for open ai
2023-04-03 14:22:33 +08:00
Azure SDK Bot 0ac6d1c06d
Post release automated changes for cognitiveservices releases (#24912)
Post release automated changes for azure-arm-cognitiveservices
2023-03-20 20:14:22 +00:00
Jeff Fisher b1509d6756 Update test-recorder to drop support for `@Azure/core-http` and
bump the major version accordingly.

***NO_CI***
2023-03-02 15:21:26 -08:00
kazrael2119 ac4391946f
cognativeservices release (#24752)
https://github.com/Azure/sdk-release-request/issues/3681
2023-02-17 18:18:38 +08:00
Jeremy Meng 42d359f404 [engsys] upgrade @rollup plugins dev dependencies
***NO_CI***

- `@rollup/plugin-commonjs` to `^24.0.0`
- `@rollup/plugin-json` to `^6.0.0`
- `@rollup/plugin-multi-entry` to `^6.0.0`
- `rollup-plugin-polyfill-node` to `^0.12.0`
- `@rollup/plugin-inject` to `^5.0.0`
- `@rollup/plugin-replace` to `^5.0.0`

Fix notification-hubs rollup test config: now sourcemaps plugin is complaining
about .ts file. Move typescript plugin before it.

Fix service-bus to include needed rollup dependencies. It was lucky to be able
to re-use on other packages to install them but is failing in some builds.
2023-02-10 15:12:48 -08:00
Jeremy Meng ab536fc39a [engsys] make typescript version consistent to ~4.8.0
***NO_CI***

This is the result of

- `rush add --dev -m -p typescript@~4.8.0`

- and update versions in non-rush projects
2023-02-10 11:41:53 -08:00
Stevan Freeborn 8c731212f3
fix: cogserv-luis-runtime: remove mocha arrow functions (#24126)
### Packages impacted by this PR

`sdk\cognitiveservices\cognitiveservices-luis-runtime`

### Issues associated with this PR

#13005 

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

The existing mocha tests for the
`sdk\cognitiveservices\cognitiveservices-luis-runtime` made use of the
arrow syntax for callback functions. Mocha recommends not to do this
because you lose access to the mocha context
(https://mochajs.org/#arrow-functions).

### 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 reason for utilizing the function keyword instead of an arrow syntax
to write the callback functions in these mocha tests is to maintain
access to the mocha context.

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

No additional test cases were added in this PR as the change only
required modifying existing test cases.

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

#23761 - Same fix, but for the `sdk\search\search-documents` package
#23789 - Same fix but for the `sdk\attestation\attestation` package
#23835 - Same fix but for the `sdk\batch\batch` package
#23850 - Same fix but for the
`sdk\cognitivelanguage\ai-language-conversations` package
#23881 - Same fix but for the
`sdk\cognitiveservices\cognitiveservices-luis-authoring`

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

**_Not applicable_**

### 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)_
   - **_I don't believe this is relevant._**
- [ ] Added a changelog (if necessary)
  - **_I don't believe this is necessary_**
2023-02-06 12:11:56 -08:00
Dina Berry (personal) 05174d3f5b
@azure/cognitiveservices-contentmoderator ref doc changes (#24350) 2023-01-25 12:31:29 -08:00
Stevan Freeborn 0a9b6a4ed4
fix: cogserv-luis-authoring: remove mocha arrow functions (#23881) 2023-01-20 17:27:49 +00:00
kazrael2119 115bf74f2f
Update CHANGELOG.md (#23962)
* Update CHANGELOG.md

* Update CHANGELOG.md
2022-11-23 03:21:42 +00:00
kazrael2119 7881072271
cognitiveservices refresh (#23957)
* cognitiveservices refresh

* update files

* update files
2022-11-22 17:17:28 +08:00
kazrael2119 af9ee8fc9e
cognitiveservice release (#23648)
* cognitiveservice release

* update files
2022-11-03 10:53:14 +08:00
Jeremy Meng 98508cfa18 [EngSys] update engines required node version and @types/node version to v14
***NO_CI***

- string replace in package json: 12 => 14 for engines/node and for dependency @types/node
- eslint: update `json-engine-is-present` rule to 14.0.0 as LTS version
- identity: react to typing improvements for `readFile()`'s `options.encoding`
- trivial generated api.md file changes due to @types/node version bump
2022-10-14 14:29:35 -07:00