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

1245 Коммитов

Автор SHA1 Сообщение Дата
EmmaZhu-MSFT e3475bc17b
Update blob swagger spec to a commit on main branch (#31851)
### 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-11-20 16:52:36 +08:00
EmmaZhu-MSFT e42618ca0e
[Storage] Bump version for STG96 GA release (#31755)
[Storage] Bump version for STG96 GA release (#31755)
2024-11-18 14:12:03 +08:00
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
EmmaZhu-MSFT d8764f9e6e
[Storage]Bump package version for STG96 features preview (#31404) 2024-10-16 01:19:57 +08:00
EmmaZhu-MSFT 86a89f4e4a
STG96 blob and datalake (#31385) 2024-10-15 11:05:59 +08:00
EmmaZhu-MSFT 3d5db3864a
STG96 File (#31381)
### 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-10-15 10:59:21 +08:00
Wes Haggard 1c50b6ac49
Switch to TME test subscription (#31329) 2024-10-14 18:19:12 -07:00
Jeremy Meng 652a7ffa89 [eslint-plugin] fix ts-naming-options rule issue
***NO_CI***

Currently the rule only handles the case of

```ts
  clientMethod(options: MethodOptions) {}
```

but not when the options bag parameter has a default value

```ts
  clientMethod(options: MethodOptions = {}) {}
```

This change adds code to handle the latter.

- Add two unit tests

- Update the affected packages to suppress this rule as a warning

- react to the fix
2024-10-02 16:40:01 +00:00
Azure SDK Bot 70dbb1bd53
Post release automated changes for storage releases (#31194)
Post release automated changes for azure-storage-blob
2024-09-29 10:59:38 +08:00
Azure SDK Bot 041e2c0804
Post release automated changes for storage releases (#31221)
Post release automated changes for azure-storage-file-share
2024-09-29 02:38:24 +00:00
Matthew Podwysocki 61c8b9aae4 [EngSys] Add update-snippets to all package.json files ***NO_CI*** 2024-09-26 17:59:37 +00:00
EmmaZhu-MSFT 8e42833d78
[Storage]Update file swagger spec to a commit on main (#31210)
### 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-09-25 17:19:16 +08:00
EmmaZhu-MSFT eb31ab6e78
[Storage]Bump SDK versions for STG95 GA (#31171) 2024-09-23 15:27:18 +08:00
EmmaZhu-MSFT 7babca948d
[Storage] Add CPK support in uploadStream function (#31159) 2024-09-20 09:16:28 +08: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
EmmaZhu-MSFT 51e1cac7e6
[Storage]Bump dependency version on @azure/core-xml (#31091) 2024-09-18 13:47:44 +08:00
Jeremy Meng 9e6b7e9224
[Storage] Fix broken browser tests (#31048)
After `puppeteer` upgrade from 23.1.1 to 23.2.1, storage browser tests
failed to start chrome headless browsers. However, other package's
browser tests are not impacted. This PR copies the browser settings in
karma config from a working package.
2024-09-09 18:13:55 -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 f04044e34e [eslint] remove ESLINT_USE_FLAT_CONFIG=true env variable
now that we have moved to eslint v9.

***NO_CI***
2024-08-26 12:52:48 -07:00
Deyaaeldeen Almahallawi f41503d47e
[Storage] Migrate to Bicep (#30852)
And update API versions

Live tests run: 
-
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4070027&view=results
-
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4070131&view=results
-
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4079093&view=results
-
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4070138&view=results
2024-08-24 13:36:40 -07:00
Jeremy Meng 61659734c7 - [storage] remove redundant eslint settings. One file only needs to have it once. 2024-08-23 16:38:09 -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 2ce3c5feb4 [eslint-plugin] upgrade typescript-eslint to v8
***NO_CI***

- bump typescript-eslint dependencies version to ~8.2.0

- [eslint-plugin] suppress new linting errors appearing with v8

- [eslint-plugin] react to removed typescript-eslint property

  related PR https://github.com/typescript-eslint/typescript-eslint/pull/9025

- [eslint-plugin] turn off @typescript-eslint/no-unused-expressions

  as no-unused-expressions is already reported by eslint

- [dev-tool] fix new linting errors

- Remove @typescript-eslint/ban-types that no longer exists

  and replace with more specific rules wherever applicable.

- [cosmosdb] combine the test eslint config with the main one

- delete catch expression when caught error is not used

- fix or suppress linting errors in code files
2024-08-23 10:19:23 -07:00
Jeremy Meng 4ab6590ffe Apply automated migration to eslint flat config 2024-08-22 11:43:19 -07:00
Jeremy Meng 12a7d241eb
[eslint] move storage packages to use flat config (#30808)
- replace .eslintrc.json with eslint.config.mjs
- fix or suppressing linting errors
2024-08-21 12:03:50 -07:00
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
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
Azure SDK Bot cf5394fdab
Post release automated changes for storage releases (#30703)
Post release automated changes for azure-storage-blob
2024-08-11 15:05:15 +08:00
EmmaZhu-MSFT f2e9d183da
Storage/stg95 (#30681)
[Storage] update to stage 95 versions
2024-08-08 11:26:38 -07:00
EmmaZhu-MSFT b459849a11
Added ability to retrieve SAS string to sign for debugging purposes (#30683)
### 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-08-08 11:29:06 +08:00
Adam Perry d518e616d1
[DataLake] Update storage-blob includes in package.json (#30612)
Fix https://github.com/Azure/azure-sdk-for-js/issues/30463 by including
the portions of @azure/storage-blob required by
@azure/storage-file-datalake.


### Packages impacted by this PR

@azure/storage-file-datalake

### Issues associated with this PR

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

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

Imports are broken. The package is unusable.

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

No. No code has changed.

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

N/A

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

N/A

### Checklists
- [x] Added impacted package name to the issue description
- [ ] 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-07 22:56:44 +08:00
Jeremy Meng 7e0a07c568
[storage] upgrade dependency @azure/abort-controller to ^2.1.2 (#29808)
- fix compilation errors
- remove test cases that no longer apply.
2024-07-29 11:00:58 -07:00
Ben Broderick Phillips 73193a2bab
Default to sub config file paths/svc connection for public + sovereign live tests (#30530)
This doesn't cover the many files still using secret sub configs with
custom principals, those will be migrated separately. This changes the
defaults to use file-based sub configs and service connections
everywhere else. It is intended to be merged after/alongside federated
auth mode becoming the default.

Relies on https://github.com/Azure/azure-sdk-tools/pull/8680
2024-07-25 16:07:48 -04: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
Azure SDK Bot 992f43393c
Post release automated changes for storage releases (#30499)
Post release automated changes for azure-storage-blob
2024-07-23 16:18:40 +08:00
Minh-Anh Phan 681de6db5b
[Eng] Set Default for Federated Auth to True (#30163)
### Describe the problem that is addressed by this PR
Remove local federated auth in tests.yml and enable Federated Auth by
default in eng folder
2024-07-22 17:24:20 -07:00
EmmaZhu-MSFT fb7ab94e61
[Storage]Bump package version, upgrade @azure/core-tracing dependency (#30437)
### Packages impacted by this PR


### Issues associated with this PR


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


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


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


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


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

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

---------

Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2024-07-22 08:54:44 -07:00
EmmaZhu-MSFT 4fde7e9b2b
[Storage]Added to pack referenced files under storage-blob folder. (#30306)
[Storage]Added to pack referenced files under storage-blob folder.
### 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-17 10:44:58 +08: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
EmmaZhu-MSFT fa77fc670f
[Storage] Correct content-length header with request body length (#30186)
### 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-10 11:41:31 +08:00
Jeremy Meng d3446abaf1
[Storage] fix broken unit-test after typescript 5.5.3 upgrade (#30334)
Not exactly sure what changes cause this error:

>[node-tests] Exception during run: ../storage-common/src/index.ts(4,1):
error TS2354: This syntax requires an imported helper but module 'tslib'
cannot be found.

It seems to only happen for shared source when running unit tests and
could be
related to `tsx` loader since normal tsc build works fine.

This PR change `export *` to export items explicitly.

-------

### Packages impacted by this PR
`@azure/storage-*`
2024-07-09 09:21:52 -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
EmmaZhu-MSFT 5d9c258be9
[Storage]Remove service principal secret from storage testing (#30185)
### 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-02 18:59:05 +08:00
Jeremy Meng 74dfa883b9 [EngSys] upgrade dep dependency `nyc` to ^17.0.0
***NO_CI***
2024-06-28 17:57:40 +00:00
Azure SDK Bot 7b02c7275f
Post release automated changes for storage releases (#30221)
Post release automated changes for azure-arm-storage
2024-06-28 12:28:59 +08:00