diff --git a/core b/core index a964f34ec4..334950f4ff 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit a964f34ec49a598bb88276568b29b75f23e8948f +Subproject commit 334950f4ff31c737bb9badf55475ac5c1b19c281 diff --git a/typespec-extension/package-lock.json b/typespec-extension/package-lock.json index 0a35536299..60d37cdd58 100644 --- a/typespec-extension/package-lock.json +++ b/typespec-extension/package-lock.json @@ -19,14 +19,14 @@ "@azure-tools/typespec-azure-core": "0.67.0", "@azure-tools/typespec-azure-resource-manager": "0.67.0", "@azure-tools/typespec-azure-rulesets": "0.67.0", - "@azure-tools/typespec-client-generator-core": "0.67.0", + "@azure-tools/typespec-client-generator-core": "0.67.1", "@azure-tools/typespec-liftr-base": "0.13.0", - "@microsoft/api-extractor": "^7.58.1", + "@microsoft/api-extractor": "^7.58.2", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.24", "@types/node": "~25.5.2", - "@typescript-eslint/eslint-plugin": "~8.58.0", - "@typescript-eslint/parser": "~8.58.0", + "@typescript-eslint/eslint-plugin": "~8.58.1", + "@typescript-eslint/parser": "~8.58.1", "@typespec/compiler": "1.11.0", "@typespec/events": "0.81.0", "@typespec/http": "1.11.0", @@ -41,14 +41,14 @@ "@vitest/coverage-v8": "^4.1.3", "@vitest/ui": "^4.1.3", "c8": "~11.0.0", - "eslint": "~10.1.0", + "eslint": "~10.2.0", "eslint-plugin-deprecation": "~3.0.0", "eslint-plugin-import": "^2.32.0", "eslint-plugin-unicorn": "^64.0.0", "prettier": "~3.8.1", "rimraf": "~6.1.3", "typescript": "~5.9.2", - "typescript-eslint": "^8.58.0", + "typescript-eslint": "^8.58.1", "vitest": "^4.1.3" }, "engines": { @@ -248,9 +248,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.67.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.67.0.tgz", - "integrity": "sha512-cJZHRDnSSNhx8DpHudUMDpajpDQD3+lsAXI633dsQYIKdTuP10UEgRUgIKSkF0+ck0kJOeI25r/TBH2P+V/k6Q==", + "version": "0.67.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.67.1.tgz", + "integrity": "sha512-Bh7M1KSrgBOMeueK+YiJiaZ+uo3119mNIcbHgU8006CSToDHSTeIM7rndUmCSn+leAKonpXhQ6eElOWj0teBWA==", "dev": true, "license": "MIT", "dependencies": { @@ -430,13 +430,13 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.23.3", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.3.tgz", - "integrity": "sha512-j+eEWmB6YYLwcNOdlwQ6L2OsptI/LO6lNBuLIqe5R7RetD658HLoF+Mn7LzYmAWWNNzdC6cqP+L6r8ujeYXWLw==", + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/object-schema": "^3.0.3", + "@eslint/object-schema": "^3.0.5", "debug": "^4.3.1", "minimatch": "^10.2.4" }, @@ -445,13 +445,13 @@ } }, "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.2" + "brace-expansion": "^5.0.5" }, "engines": { "node": "18 || 20 || >=22" @@ -461,22 +461,22 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.5.3.tgz", - "integrity": "sha512-lzGN0onllOZCGroKJmRwY6QcEHxbjBw1gwB8SgRSqK8YbbtEXMvKynsXc3553ckIEBxsbMBU7oOZXKIPGZNeZw==", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.5.5.tgz", + "integrity": "sha512-eIJYKTCECbP/nsKaaruF6LW967mtbQbsw4JTtSVkUQc9MneSkbrgPJAbKl9nWr0ZeowV8BfsarBmPpBzGelA2w==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^1.1.1" + "@eslint/core": "^1.2.1" }, "engines": { "node": "^20.19.0 || ^22.13.0 || >=24" } }, "node_modules/@eslint/core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.1.1.tgz", - "integrity": "sha512-QUPblTtE51/7/Zhfv8BDwO0qkkzQL7P/aWWbqcf4xWLEYn1oKjdO0gglQBB4GAsu7u6wjijbCmzsUTy6mnk6oQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -487,9 +487,9 @@ } }, "node_modules/@eslint/object-schema": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.3.tgz", - "integrity": "sha512-iM869Pugn9Nsxbh/YHRqYiqd23AmIbxJOcpUMOuWCVNdoQJ5ZtwL6h3t0bcZzJUlC3Dq9jCFCESBZnX0GTv7iQ==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", "dev": true, "license": "Apache-2.0", "engines": { @@ -497,13 +497,13 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.6.1.tgz", - "integrity": "sha512-iH1B076HoAshH1mLpHMgwdGeTs0CYwL0SPMkGuSebZrwBp16v415e9NZXg2jtrqPVQjf6IANe2Vtlr5KswtcZQ==", + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz", + "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^1.1.1", + "@eslint/core": "^1.2.1", "levn": "^0.4.1" }, "engines": { @@ -970,19 +970,19 @@ } }, "node_modules/@microsoft/api-extractor": { - "version": "7.58.1", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.58.1.tgz", - "integrity": "sha512-kF3GFME4lN22O5zbnXk2RP4y/4PDQdps0xKiYTipMYprkwCmmpsWLZt/N2Fkbil540cSLfJX0BW7LkHzgMVUYg==", + "version": "7.58.2", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.58.2.tgz", + "integrity": "sha512-qmqWa0Fx1xn3irQy8MyuAKUs8e3CdwMJOujaPkM8gx5v/V7RcLhTjBU0/uL2kdhmROpW+5WG1FD98O441kkvQQ==", "dev": true, "license": "MIT", "dependencies": { - "@microsoft/api-extractor-model": "7.33.5", + "@microsoft/api-extractor-model": "7.33.6", "@microsoft/tsdoc": "~0.16.0", "@microsoft/tsdoc-config": "~0.18.1", - "@rushstack/node-core-library": "5.21.0", + "@rushstack/node-core-library": "5.22.0", "@rushstack/rig-package": "0.7.2", - "@rushstack/terminal": "0.22.4", - "@rushstack/ts-command-line": "5.3.4", + "@rushstack/terminal": "0.22.5", + "@rushstack/ts-command-line": "5.3.5", "diff": "~8.0.2", "lodash": "~4.18.1", "minimatch": "10.2.3", @@ -996,15 +996,15 @@ } }, "node_modules/@microsoft/api-extractor-model": { - "version": "7.33.5", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.33.5.tgz", - "integrity": "sha512-Xh4dXuusndVQqVz4nEN9xOp0DyzsKxeD2FFJkSPg4arAjDSKPcy6cAc7CaeBPA7kF2wV1fuDlo2p/bNMpVr8yg==", + "version": "7.33.6", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.33.6.tgz", + "integrity": "sha512-E9iI4yGEVVusbTAqSLetVFxDuBVCVqCigcoQwdJuOjsLq5Hry3MkBgUQhSZNzLCu17pgjk58MI80GRDJLht/1A==", "dev": true, "license": "MIT", "dependencies": { "@microsoft/tsdoc": "~0.16.0", "@microsoft/tsdoc-config": "~0.18.1", - "@rushstack/node-core-library": "5.21.0" + "@rushstack/node-core-library": "5.22.0" } }, "node_modules/@microsoft/api-extractor/node_modules/minimatch": { @@ -1417,9 +1417,9 @@ "license": "MIT" }, "node_modules/@rushstack/node-core-library": { - "version": "5.21.0", - "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.21.0.tgz", - "integrity": "sha512-LFzN+1lyWROit/P8Md6yxAth7lLYKn37oCKJHirEE2TQB25NDUM7bALf0ar+JAtwFfRCH+D+DGOA7DAzIi2r+g==", + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.22.0.tgz", + "integrity": "sha512-S/Dm/N+8tkbasS6yM5cF6q4iDFt14mQQniiVIwk1fd0zpPwWESspO4qtPyIl8szEaN86XOYC1HRRzZrOowxjtw==", "dev": true, "license": "MIT", "dependencies": { @@ -1484,13 +1484,13 @@ } }, "node_modules/@rushstack/terminal": { - "version": "0.22.4", - "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.22.4.tgz", - "integrity": "sha512-fhtLjnXCc/4WleVbVl6aoc7jcWnU6yqjS1S8WoaNREG3ycu/viZ9R/9QM7Y/b4CDvcXoiDyMNIay7JMwBptM3g==", + "version": "0.22.5", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.22.5.tgz", + "integrity": "sha512-umej8J6A+WRbfQV1G/uNfnz4bMa8CzFU9IJzQb/ZcH4j7Ybg3BQ8UBKOCF3o5U3/2yah1TDU/zE71ugg2JJv+Q==", "dev": true, "license": "MIT", "dependencies": { - "@rushstack/node-core-library": "5.21.0", + "@rushstack/node-core-library": "5.22.0", "@rushstack/problem-matcher": "0.2.1", "supports-color": "~8.1.1" }, @@ -1520,13 +1520,13 @@ } }, "node_modules/@rushstack/ts-command-line": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.3.4.tgz", - "integrity": "sha512-MLkVKVEN6/2clKTrjN2B2KqKCuPxRwnNsWY7a+FCAq2EMdkj10cM8YgiBSMeGFfzM0mDMzargpHNnNzaBi9Whg==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.3.5.tgz", + "integrity": "sha512-ToJQu3+o6aEdDoApGrwb/RsbwDi/NSC7jIEaAezzWM470TRrsXfSHoYAm1eWkhh34xJ+kZxU1ZzKSHiOMlOFPA==", "dev": true, "license": "MIT", "dependencies": { - "@rushstack/terminal": "0.22.4", + "@rushstack/terminal": "0.22.5", "@types/argparse": "1.0.38", "argparse": "~1.0.9", "string-argv": "~0.3.1" @@ -1818,17 +1818,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.58.0.tgz", - "integrity": "sha512-RLkVSiNuUP1C2ROIWfqX+YcUfLaSnxGE/8M+Y57lopVwg9VTYYfhuz15Yf1IzCKgZj6/rIbYTmJCUSqr76r0Wg==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.58.1.tgz", + "integrity": "sha512-eSkwoemjo76bdXl2MYqtxg51HNwUSkWfODUOQ3PaTLZGh9uIWWFZIjyjaJnex7wXDu+TRx+ATsnSxdN9YWfRTQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.58.0", - "@typescript-eslint/type-utils": "8.58.0", - "@typescript-eslint/utils": "8.58.0", - "@typescript-eslint/visitor-keys": "8.58.0", + "@typescript-eslint/scope-manager": "8.58.1", + "@typescript-eslint/type-utils": "8.58.1", + "@typescript-eslint/utils": "8.58.1", + "@typescript-eslint/visitor-keys": "8.58.1", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -1841,7 +1841,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.58.0", + "@typescript-eslint/parser": "^8.58.1", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } @@ -1870,16 +1870,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.58.0.tgz", - "integrity": "sha512-rLoGZIf9afaRBYsPUMtvkDWykwXwUPL60HebR4JgTI8mxfFe2cQTu3AGitANp4b9B2QlVru6WzjgB2IzJKiCSA==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.58.1.tgz", + "integrity": "sha512-gGkiNMPqerb2cJSVcruigx9eHBlLG14fSdPdqMoOcBfh+vvn4iCq2C8MzUB89PrxOXk0y3GZ1yIWb9aOzL93bw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.58.0", - "@typescript-eslint/types": "8.58.0", - "@typescript-eslint/typescript-estree": "8.58.0", - "@typescript-eslint/visitor-keys": "8.58.0", + "@typescript-eslint/scope-manager": "8.58.1", + "@typescript-eslint/types": "8.58.1", + "@typescript-eslint/typescript-estree": "8.58.1", + "@typescript-eslint/visitor-keys": "8.58.1", "debug": "^4.4.3" }, "engines": { @@ -1895,14 +1895,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.58.0.tgz", - "integrity": "sha512-8Q/wBPWLQP1j16NxoPNIKpDZFMaxl7yWIoqXWYeWO+Bbd2mjgvoF0dxP2jKZg5+x49rgKdf7Ck473M8PC3V9lg==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.58.1.tgz", + "integrity": "sha512-gfQ8fk6cxhtptek+/8ZIqw8YrRW5048Gug8Ts5IYcMLCw18iUgrZAEY/D7s4hkI0FxEfGakKuPK/XUMPzPxi5g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.58.0", - "@typescript-eslint/types": "^8.58.0", + "@typescript-eslint/tsconfig-utils": "^8.58.1", + "@typescript-eslint/types": "^8.58.1", "debug": "^4.4.3" }, "engines": { @@ -1917,14 +1917,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.58.0.tgz", - "integrity": "sha512-W1Lur1oF50FxSnNdGp3Vs6P+yBRSmZiw4IIjEeYxd8UQJwhUF0gDgDD/W/Tgmh73mxgEU3qX0Bzdl/NGuSPEpQ==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.58.1.tgz", + "integrity": "sha512-TPYUEqJK6avLcEjumWsIuTpuYODTTDAtoMdt8ZZa93uWMTX13Nb8L5leSje1NluammvU+oI3QRr5lLXPgihX3w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.58.0", - "@typescript-eslint/visitor-keys": "8.58.0" + "@typescript-eslint/types": "8.58.1", + "@typescript-eslint/visitor-keys": "8.58.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1935,9 +1935,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.58.0.tgz", - "integrity": "sha512-doNSZEVJsWEu4htiVC+PR6NpM+pa+a4ClH9INRWOWCUzMst/VA9c4gXq92F8GUD1rwhNvRLkgjfYtFXegXQF7A==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.58.1.tgz", + "integrity": "sha512-JAr2hOIct2Q+qk3G+8YFfqkqi7sC86uNryT+2i5HzMa2MPjw4qNFvtjnw1IiA1rP7QhNKVe21mSSLaSjwA1Olw==", "dev": true, "license": "MIT", "engines": { @@ -1952,15 +1952,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.58.0.tgz", - "integrity": "sha512-aGsCQImkDIqMyx1u4PrVlbi/krmDsQUs4zAcCV6M7yPcPev+RqVlndsJy9kJ8TLihW9TZ0kbDAzctpLn5o+lOg==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.58.1.tgz", + "integrity": "sha512-HUFxvTJVroT+0rXVJC7eD5zol6ID+Sn5npVPWoFuHGg9Ncq5Q4EYstqR+UOqaNRFXi5TYkpXXkLhoCHe3G0+7w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.58.0", - "@typescript-eslint/typescript-estree": "8.58.0", - "@typescript-eslint/utils": "8.58.0", + "@typescript-eslint/types": "8.58.1", + "@typescript-eslint/typescript-estree": "8.58.1", + "@typescript-eslint/utils": "8.58.1", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -1990,9 +1990,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.58.0.tgz", - "integrity": "sha512-O9CjxypDT89fbHxRfETNoAnHj/i6IpRK0CvbVN3qibxlLdo5p5hcLmUuCCrHMpxiWSwKyI8mCP7qRNYuOJ0Uww==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.58.1.tgz", + "integrity": "sha512-io/dV5Aw5ezwzfPBBWLoT+5QfVtP8O7q4Kftjn5azJ88bYyp/ZMCsyW1lpKK46EXJcaYMZ1JtYj+s/7TdzmQMw==", "dev": true, "license": "MIT", "engines": { @@ -2004,16 +2004,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.58.0.tgz", - "integrity": "sha512-7vv5UWbHqew/dvs+D3e1RvLv1v2eeZ9txRHPnEEBUgSNLx5ghdzjHa0sgLWYVKssH+lYmV0JaWdoubo0ncGYLA==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.58.1.tgz", + "integrity": "sha512-w4w7WR7GHOjqqPnvAYbazq+Y5oS68b9CzasGtnd6jIeOIeKUzYzupGTB2T4LTPSv4d+WPeccbxuneTFHYgAAWg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.58.0", - "@typescript-eslint/tsconfig-utils": "8.58.0", - "@typescript-eslint/types": "8.58.0", - "@typescript-eslint/visitor-keys": "8.58.0", + "@typescript-eslint/project-service": "8.58.1", + "@typescript-eslint/tsconfig-utils": "8.58.1", + "@typescript-eslint/types": "8.58.1", + "@typescript-eslint/visitor-keys": "8.58.1", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -2061,16 +2061,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.58.0.tgz", - "integrity": "sha512-RfeSqcFeHMHlAWzt4TBjWOAtoW9lnsAGiP3GbaX9uVgTYYrMbVnGONEfUCiSss+xMHFl+eHZiipmA8WkQ7FuNA==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.58.1.tgz", + "integrity": "sha512-Ln8R0tmWC7pTtLOzgJzYTXSCjJ9rDNHAqTaVONF4FEi2qwce8mD9iSOxOpLFFvWp/wBFlew0mjM1L1ihYWfBdQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.58.0", - "@typescript-eslint/types": "8.58.0", - "@typescript-eslint/typescript-estree": "8.58.0" + "@typescript-eslint/scope-manager": "8.58.1", + "@typescript-eslint/types": "8.58.1", + "@typescript-eslint/typescript-estree": "8.58.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2085,13 +2085,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.58.0.tgz", - "integrity": "sha512-XJ9UD9+bbDo4a4epraTwG3TsNPeiB9aShrUneAVXy8q4LuwowN+qu89/6ByLMINqvIMeI9H9hOHQtg/ijrYXzQ==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.58.1.tgz", + "integrity": "sha512-y+vH7QE8ycjoa0bWciFg7OpFcipUuem1ujhrdLtq1gByKwfbC7bPeKsiny9e0urg93DqwGcHey+bGRKCnF1nZQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.58.0", + "@typescript-eslint/types": "8.58.1", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -3884,18 +3884,18 @@ } }, "node_modules/eslint": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.1.0.tgz", - "integrity": "sha512-S9jlY/ELKEUwwQnqWDO+f+m6sercqOPSqXM5Go94l7DOmxHVDgmSFGWEzeE/gwgTAr0W103BWt0QLe/7mabIvA==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.2.0.tgz", + "integrity": "sha512-+L0vBFYGIpSNIt/KWTpFonPrqYvgKw1eUI5Vn7mEogrQcWtWYtNQ7dNqC+px/J0idT3BAkiWrhfS7k+Tum8TUA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", - "@eslint/config-array": "^0.23.3", - "@eslint/config-helpers": "^0.5.3", - "@eslint/core": "^1.1.1", - "@eslint/plugin-kit": "^0.6.1", + "@eslint/config-array": "^0.23.4", + "@eslint/config-helpers": "^0.5.4", + "@eslint/core": "^1.2.0", + "@eslint/plugin-kit": "^0.7.0", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -4300,13 +4300,13 @@ "license": "MIT" }, "node_modules/eslint/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.2" + "brace-expansion": "^5.0.5" }, "engines": { "node": "18 || 20 || >=22" @@ -7630,16 +7630,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.58.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.58.0.tgz", - "integrity": "sha512-e2TQzKfaI85fO+F3QywtX+tCTsu/D3WW5LVU6nz8hTFKFZ8yBJ6mSYRpXqdR3mFjPWmO0eWsTa5f+UpAOe/FMA==", + "version": "8.58.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.58.1.tgz", + "integrity": "sha512-gf6/oHChByg9HJvhMO1iBexJh12AqqTfnuxscMDOVqfJW3htsdRJI/GfPpHTTcyeB8cSTUY2JcZmVgoyPqcrDg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.58.0", - "@typescript-eslint/parser": "8.58.0", - "@typescript-eslint/typescript-estree": "8.58.0", - "@typescript-eslint/utils": "8.58.0" + "@typescript-eslint/eslint-plugin": "8.58.1", + "@typescript-eslint/parser": "8.58.1", + "@typescript-eslint/typescript-estree": "8.58.1", + "@typescript-eslint/utils": "8.58.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" diff --git a/typespec-extension/package.json b/typespec-extension/package.json index 67862b5df7..49e02c384c 100644 --- a/typespec-extension/package.json +++ b/typespec-extension/package.json @@ -73,14 +73,14 @@ "@azure-tools/typespec-azure-core": "0.67.0", "@azure-tools/typespec-azure-resource-manager": "0.67.0", "@azure-tools/typespec-azure-rulesets": "0.67.0", - "@azure-tools/typespec-client-generator-core": "0.67.0", + "@azure-tools/typespec-client-generator-core": "0.67.1", "@azure-tools/typespec-liftr-base": "0.13.0", - "@microsoft/api-extractor": "^7.58.1", + "@microsoft/api-extractor": "^7.58.2", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.24", "@types/node": "~25.5.2", - "@typescript-eslint/eslint-plugin": "~8.58.0", - "@typescript-eslint/parser": "~8.58.0", + "@typescript-eslint/eslint-plugin": "~8.58.1", + "@typescript-eslint/parser": "~8.58.1", "@typespec/compiler": "1.11.0", "@typespec/events": "0.81.0", "@typespec/http": "1.11.0", @@ -95,19 +95,19 @@ "@vitest/coverage-v8": "^4.1.3", "@vitest/ui": "^4.1.3", "c8": "~11.0.0", - "eslint": "~10.1.0", + "eslint": "~10.2.0", "eslint-plugin-deprecation": "~3.0.0", "eslint-plugin-import": "^2.32.0", "eslint-plugin-unicorn": "^64.0.0", "prettier": "~3.8.1", "rimraf": "~6.1.3", "typescript": "~5.9.2", - "typescript-eslint": "^8.58.0", + "typescript-eslint": "^8.58.1", "vitest": "^4.1.3" }, "overrides": { - "eslint": "~10.1.0", - "@typescript-eslint/eslint-plugin": "~8.58.0", - "@typescript-eslint/parser": "~8.58.0" + "eslint": "~10.2.0", + "@typescript-eslint/eslint-plugin": "~8.58.1", + "@typescript-eslint/parser": "~8.58.1" } } diff --git a/typespec-tests/package.json b/typespec-tests/package.json index 6170e72330..373b7196a3 100644 --- a/typespec-tests/package.json +++ b/typespec-tests/package.json @@ -31,7 +31,7 @@ "@typespec/sse": "0.81.0", "@typespec/streams": "0.81.0", "@azure-tools/typespec-azure-core": "0.67.0", - "@azure-tools/typespec-client-generator-core": "0.67.0", + "@azure-tools/typespec-client-generator-core": "0.67.1", "@azure-tools/typespec-azure-resource-manager": "0.67.0", "@azure-tools/typespec-autorest": "0.67.0", "@azure-tools/typespec-liftr-base": "0.13.0" diff --git a/typespec-tests/src/main/java/type/file/FileAsyncClient.java b/typespec-tests/src/main/java/type/file/FileAsyncClient.java index 6115e9a2e1..6c07d30c1c 100644 --- a/typespec-tests/src/main/java/type/file/FileAsyncClient.java +++ b/typespec-tests/src/main/java/type/file/FileAsyncClient.java @@ -197,7 +197,6 @@ public Mono> downloadFileMultipleContentTypesWithResponse(S * } * * - * @param contentType Body parameter's content type. Known values are */*. * @param file The file parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -208,9 +207,9 @@ public Mono> downloadFileMultipleContentTypesWithResponse(S */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> uploadFileDefaultContentTypeWithResponse(String contentType, BinaryData file, + public Mono> uploadFileDefaultContentTypeWithResponse(BinaryData file, RequestOptions requestOptions) { - return this.serviceClient.uploadFileDefaultContentTypeWithResponseAsync(contentType, file, requestOptions); + return this.serviceClient.uploadFileDefaultContentTypeWithResponseAsync(file, requestOptions); } /** @@ -223,7 +222,6 @@ public Mono> uploadFileDefaultContentTypeWithResponse(String cont * } * * - * @param accept The accept parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -233,9 +231,8 @@ public Mono> uploadFileDefaultContentTypeWithResponse(String cont */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> downloadFileDefaultContentTypeWithResponse(String accept, - RequestOptions requestOptions) { - return this.serviceClient.downloadFileDefaultContentTypeWithResponseAsync(accept, requestOptions); + public Mono> downloadFileDefaultContentTypeWithResponse(RequestOptions requestOptions) { + return this.serviceClient.downloadFileDefaultContentTypeWithResponseAsync(requestOptions); } /** @@ -338,7 +335,6 @@ public Mono downloadFileMultipleContentTypes(DownloadFileMultipleCon /** * The uploadFileDefaultContentType operation. * - * @param contentType Body parameter's content type. Known values are */*. * @param file The file parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -350,17 +346,15 @@ public Mono downloadFileMultipleContentTypes(DownloadFileMultipleCon */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono uploadFileDefaultContentType(String contentType, BinaryData file) { + public Mono uploadFileDefaultContentType(BinaryData file) { // Generated convenience method for uploadFileDefaultContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - return uploadFileDefaultContentTypeWithResponse(contentType, file, requestOptions).flatMap(FluxUtil::toMono); + return uploadFileDefaultContentTypeWithResponse(file, requestOptions).flatMap(FluxUtil::toMono); } /** * The downloadFileDefaultContentType operation. * - * @param accept The accept parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. @@ -370,9 +364,9 @@ public Mono uploadFileDefaultContentType(String contentType, BinaryData fi */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono downloadFileDefaultContentType(String accept) { + public Mono downloadFileDefaultContentType() { // Generated convenience method for downloadFileDefaultContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - return downloadFileDefaultContentTypeWithResponse(accept, requestOptions).flatMap(FluxUtil::toMono); + return downloadFileDefaultContentTypeWithResponse(requestOptions).flatMap(FluxUtil::toMono); } } diff --git a/typespec-tests/src/main/java/type/file/FileClient.java b/typespec-tests/src/main/java/type/file/FileClient.java index 6c9b71af7d..7d00760c11 100644 --- a/typespec-tests/src/main/java/type/file/FileClient.java +++ b/typespec-tests/src/main/java/type/file/FileClient.java @@ -194,7 +194,6 @@ public Response downloadFileMultipleContentTypesWithResponse(String * } * * - * @param contentType Body parameter's content type. Known values are */*. * @param file The file parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -205,9 +204,8 @@ public Response downloadFileMultipleContentTypesWithResponse(String */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response uploadFileDefaultContentTypeWithResponse(String contentType, BinaryData file, - RequestOptions requestOptions) { - return this.serviceClient.uploadFileDefaultContentTypeWithResponse(contentType, file, requestOptions); + public Response uploadFileDefaultContentTypeWithResponse(BinaryData file, RequestOptions requestOptions) { + return this.serviceClient.uploadFileDefaultContentTypeWithResponse(file, requestOptions); } /** @@ -220,7 +218,6 @@ public Response uploadFileDefaultContentTypeWithResponse(String contentTyp * } * * - * @param accept The accept parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -230,9 +227,8 @@ public Response uploadFileDefaultContentTypeWithResponse(String contentTyp */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response downloadFileDefaultContentTypeWithResponse(String accept, - RequestOptions requestOptions) { - return this.serviceClient.downloadFileDefaultContentTypeWithResponse(accept, requestOptions); + public Response downloadFileDefaultContentTypeWithResponse(RequestOptions requestOptions) { + return this.serviceClient.downloadFileDefaultContentTypeWithResponse(requestOptions); } /** @@ -332,7 +328,6 @@ public BinaryData downloadFileMultipleContentTypes(DownloadFileMultipleContentTy /** * The uploadFileDefaultContentType operation. * - * @param contentType Body parameter's content type. Known values are */*. * @param file The file parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -343,17 +338,15 @@ public BinaryData downloadFileMultipleContentTypes(DownloadFileMultipleContentTy */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public void uploadFileDefaultContentType(String contentType, BinaryData file) { + public void uploadFileDefaultContentType(BinaryData file) { // Generated convenience method for uploadFileDefaultContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - uploadFileDefaultContentTypeWithResponse(contentType, file, requestOptions).getValue(); + uploadFileDefaultContentTypeWithResponse(file, requestOptions).getValue(); } /** * The downloadFileDefaultContentType operation. * - * @param accept The accept parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. @@ -363,9 +356,9 @@ public void uploadFileDefaultContentType(String contentType, BinaryData file) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public BinaryData downloadFileDefaultContentType(String accept) { + public BinaryData downloadFileDefaultContentType() { // Generated convenience method for downloadFileDefaultContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - return downloadFileDefaultContentTypeWithResponse(accept, requestOptions).getValue(); + return downloadFileDefaultContentTypeWithResponse(requestOptions).getValue(); } } diff --git a/typespec-tests/src/main/java/type/file/implementation/BodiesImpl.java b/typespec-tests/src/main/java/type/file/implementation/BodiesImpl.java index 715b03483f..029aff61c1 100644 --- a/typespec-tests/src/main/java/type/file/implementation/BodiesImpl.java +++ b/typespec-tests/src/main/java/type/file/implementation/BodiesImpl.java @@ -522,7 +522,6 @@ public Response downloadFileMultipleContentTypesWithResponse(String * } * * - * @param contentType Body parameter's content type. Known values are */*. * @param file The file parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -532,8 +531,9 @@ public Response downloadFileMultipleContentTypesWithResponse(String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> uploadFileDefaultContentTypeWithResponseAsync(String contentType, BinaryData file, + public Mono> uploadFileDefaultContentTypeWithResponseAsync(BinaryData file, RequestOptions requestOptions) { + final String contentType = "*/*"; return FluxUtil.withContext(context -> service.uploadFileDefaultContentType(this.client.getEndpoint(), contentType, file, requestOptions, context)); } @@ -548,7 +548,6 @@ public Mono> uploadFileDefaultContentTypeWithResponseAsync(String * } * * - * @param contentType Body parameter's content type. Known values are */*. * @param file The file parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -558,8 +557,8 @@ public Mono> uploadFileDefaultContentTypeWithResponseAsync(String * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response uploadFileDefaultContentTypeWithResponse(String contentType, BinaryData file, - RequestOptions requestOptions) { + public Response uploadFileDefaultContentTypeWithResponse(BinaryData file, RequestOptions requestOptions) { + final String contentType = "*/*"; return service.uploadFileDefaultContentTypeSync(this.client.getEndpoint(), contentType, file, requestOptions, Context.NONE); } @@ -574,7 +573,6 @@ public Response uploadFileDefaultContentTypeWithResponse(String contentTyp * } * * - * @param accept The accept parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -583,8 +581,8 @@ public Response uploadFileDefaultContentTypeWithResponse(String contentTyp * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> downloadFileDefaultContentTypeWithResponseAsync(String accept, - RequestOptions requestOptions) { + public Mono> downloadFileDefaultContentTypeWithResponseAsync(RequestOptions requestOptions) { + final String accept = "*/*"; return FluxUtil.withContext(context -> service.downloadFileDefaultContentType(this.client.getEndpoint(), accept, requestOptions, context)); } @@ -599,7 +597,6 @@ public Mono> downloadFileDefaultContentTypeWithResponseAsyn * } * * - * @param accept The accept parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -608,8 +605,8 @@ public Mono> downloadFileDefaultContentTypeWithResponseAsyn * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response downloadFileDefaultContentTypeWithResponse(String accept, - RequestOptions requestOptions) { + public Response downloadFileDefaultContentTypeWithResponse(RequestOptions requestOptions) { + final String accept = "*/*"; return service.downloadFileDefaultContentTypeSync(this.client.getEndpoint(), accept, requestOptions, Context.NONE); } diff --git a/typespec-tests/src/test/java/type/file/FileTests.java b/typespec-tests/src/test/java/type/file/FileTests.java index 8d9349184b..a6e36026a2 100644 --- a/typespec-tests/src/test/java/type/file/FileTests.java +++ b/typespec-tests/src/test/java/type/file/FileTests.java @@ -3,6 +3,8 @@ package type.file; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.rest.RequestOptions; import com.azure.core.util.BinaryData; import java.nio.file.Path; import org.junit.jupiter.api.Assertions; @@ -54,12 +56,13 @@ public void testDownloadFileMultipleContentTypes() { @Test public void testUploadFileDefaultContentType() { - client.uploadFileDefaultContentType("image/png", BinaryData.fromFile(PNG_FILE)); + client.uploadFileDefaultContentTypeWithResponse(BinaryData.fromFile(PNG_FILE), + new RequestOptions().setHeader(HttpHeaderName.CONTENT_TYPE, "image/png")); } @Test public void testDownloadFileDefaultContentType() { - BinaryData response = client.downloadFileDefaultContentType("image/png"); + BinaryData response = client.downloadFileDefaultContentType(); Assertions.assertNotNull(response); } }