From 8a5b2b4d2fc128da7b4b5a91f8e178d788d88d8b Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 27 Nov 2024 18:27:50 +0800 Subject: [PATCH] Fix crash if no valid client define in typespec file (#2935) * Update dependencies (2024-11-27 03:40:25) * update dependency * changelog * changelog --------- Co-authored-by: AutoPrFromHttpClientPython --- packages/autorest.python/CHANGELOG.md | 8 ++++++++ packages/autorest.python/package.json | 4 ++-- packages/typespec-python/CHANGELOG.md | 8 ++++++++ packages/typespec-python/package.json | 4 ++-- pnpm-lock.yaml | 14 +++++++------- 5 files changed, 27 insertions(+), 11 deletions(-) diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index c8f35bc853..e8ce00f747 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -1,5 +1,13 @@ # Release +## 6.26.6 + +### Bug Fixes + +- [#2935](https://github.com/Azure/autorest.python/pull/2935) Fix crash if no valid client define in typespec file +- [#2935](https://github.com/Azure/autorest.python/pull/2935) Pad special property name in model to avoid conflict + + ## 6.26.5 ### Bump dependencies diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 681c290acd..567a03fb28 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "6.26.5", + "version": "6.26.6", "description": "The Python extension for generators in AutoRest.", "scripts": { "start": "node ./scripts/run-python3.js ./scripts/start.py", @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "~0.3.10", + "@typespec/http-client-python": "~0.3.11", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/typespec-python/CHANGELOG.md b/packages/typespec-python/CHANGELOG.md index 34bfdff0e1..2b5b5e55a6 100644 --- a/packages/typespec-python/CHANGELOG.md +++ b/packages/typespec-python/CHANGELOG.md @@ -1,5 +1,13 @@ # Release +## 0.36.6 + +### Bug Fixes + +- [#2935](https://github.com/Azure/autorest.python/pull/2935) Fix crash if no valid client define in typespec file +- [#2935](https://github.com/Azure/autorest.python/pull/2935) Pad special property name in model to avoid conflict + + ## 0.36.5 ### Bump dependencies diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index dd3d2b40cf..01bbd065c1 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/typespec-python", - "version": "0.36.5", + "version": "0.36.6", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://github.com/Azure/autorest.python", @@ -60,7 +60,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.3.10", + "@typespec/http-client-python": "~0.3.11", "fs-extra": "~11.2.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8f38294f09..3e2ead08a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,8 +54,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: ~0.3.10 - version: 0.3.10(adr36ipppdbqiaonm57cbaqjli) + specifier: ~0.3.11 + version: 0.3.11(adr36ipppdbqiaonm57cbaqjli) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -76,8 +76,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: ~0.3.10 - version: 0.3.10(adr36ipppdbqiaonm57cbaqjli) + specifier: ~0.3.11 + version: 0.3.11(adr36ipppdbqiaonm57cbaqjli) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1233,8 +1233,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - '@typespec/http-client-python@0.3.10': - resolution: {integrity: sha512-39aRwTEv/2KtnneX2RQ1W6jRDnUjOrIXXwk+kUN6ldcYEZCPVtas2t0zEVzmPn2+8JHYf44LddY4yMrWOdmbzA==} + '@typespec/http-client-python@0.3.11': + resolution: {integrity: sha512-cgLX8oAkEjnc07CagYLRiMp7Jrd8SEtsS2/EUEctyZw2HgggXc+YM4MC+ATepJLbfGVjvGX2Whm6DlRvYymaxg==} engines: {node: '>=18.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.48.0 <1.0.0' @@ -4918,7 +4918,7 @@ snapshots: yaml: 2.5.1 yargs: 17.7.2 - '@typespec/http-client-python@0.3.10(adr36ipppdbqiaonm57cbaqjli)': + '@typespec/http-client-python@0.3.11(adr36ipppdbqiaonm57cbaqjli)': dependencies: '@azure-tools/typespec-autorest': 0.48.0(eltkenvcfknbgsjpk2r2c3erra) '@azure-tools/typespec-azure-core': 0.48.0(@typespec/compiler@0.62.0)(@typespec/http@0.62.0(@typespec/compiler@0.62.0))(@typespec/rest@0.62.0(@typespec/compiler@0.62.0)(@typespec/http@0.62.0(@typespec/compiler@0.62.0)))