From 86c19b85a95f125c8c24ac495fe4701fe2b95890 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Tue, 13 Oct 2026 10:49:44 -0700 Subject: [PATCH] chore(http-client-python): release 0.39.0 --- .../changes/escape-python-enum-docstrings.md | 7 ------- ...pi-version-override-2026-09-18-02-03-00.md | 7 ------- ...se-body-or-no-content-2026-10-12-3-14-0.md | 7 ------- .../changes/python-sse-reconnect-option.md | 17 --------------- packages/http-client-python/CHANGELOG.md | 21 +++++++++++++++++++ packages/http-client-python/package-lock.json | 4 ++-- packages/http-client-python/package.json | 2 +- 7 files changed, 24 insertions(+), 41 deletions(-) delete mode 100644 .chronus/changes/escape-python-enum-docstrings.md delete mode 100644 .chronus/changes/python-api-version-override-2026-09-18-02-03-00.md delete mode 100644 .chronus/changes/python-response-body-or-no-content-2026-10-12-3-14-0.md delete mode 100644 .chronus/changes/python-sse-reconnect-option.md diff --git a/.chronus/changes/escape-python-enum-docstrings.md b/.chronus/changes/escape-python-enum-docstrings.md deleted file mode 100644 index 1cbcf72eb6b..00000000000 --- a/.chronus/changes/escape-python-enum-docstrings.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: fix -packages: - - "@typespec/http-client-python" ---- - -Escape quotes in enum and enum member documentation so embedded Python string delimiters remain documentation in generated code. diff --git a/.chronus/changes/python-api-version-override-2026-09-18-02-03-00.md b/.chronus/changes/python-api-version-override-2026-09-18-02-03-00.md deleted file mode 100644 index cb55a7412e6..00000000000 --- a/.chronus/changes/python-api-version-override-2026-09-18-02-03-00.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Add mock API coverage for Azure Core child-client API-version overrides. diff --git a/.chronus/changes/python-response-body-or-no-content-2026-10-12-3-14-0.md b/.chronus/changes/python-response-body-or-no-content-2026-10-12-3-14-0.md deleted file mode 100644 index 3aa81d6331b..00000000000 --- a/.chronus/changes/python-response-body-or-no-content-2026-10-12-3-14-0.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Add sync and async Spector tests for responses with a model body or no content, including raw response status and headers. diff --git a/.chronus/changes/python-sse-reconnect-option.md b/.chronus/changes/python-sse-reconnect-option.md deleted file mode 100644 index b0f9a45c1b1..00000000000 --- a/.chronus/changes/python-sse-reconnect-option.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -changeKind: feature -packages: - - "@typespec/http-client-python" ---- - -Make automatic SSE reconnection opt-in with the `enable-sse-reconnect` emitter option, which defaults to `false`. Without this option, SSE streams end at EOF without reconnect callbacks, retry delays, or `Last-Event-ID` request plumbing. SSE parsing, event ID and retry metadata (including metadata-only blocks), terminal events, and stream cleanup remain available. - -Enable reconnection when generating the client: - -```yaml -emit: - - "@typespec/http-client-python" -options: - "@typespec/http-client-python": - enable-sse-reconnect: true -``` diff --git a/packages/http-client-python/CHANGELOG.md b/packages/http-client-python/CHANGELOG.md index d9c63abb679..0e31d6dd18b 100644 --- a/packages/http-client-python/CHANGELOG.md +++ b/packages/http-client-python/CHANGELOG.md @@ -1,5 +1,26 @@ # Change Log - @typespec/http-client-python +## 0.39.0 + +### Features + +- [#12150](https://github.com/microsoft/typespec/pull/12150) Make automatic SSE reconnection opt-in with the `enable-sse-reconnect` emitter option, which defaults to `false`. Without this option, SSE streams end at EOF without reconnect callbacks, retry delays, or `Last-Event-ID` request plumbing. SSE parsing, event ID and retry metadata (including metadata-only blocks), terminal events, and stream cleanup remain available. + + Enable reconnection when generating the client: + + ```yaml + emit: + - "@typespec/http-client-python" + options: + "@typespec/http-client-python": + enable-sse-reconnect: true + ``` + +### Bug Fixes + +- [#11897](https://github.com/microsoft/typespec/pull/11897) Escape quotes in enum and enum member documentation so embedded Python string delimiters remain documentation in generated code. + + ## 0.38.1 ### Bump dependencies diff --git a/packages/http-client-python/package-lock.json b/packages/http-client-python/package-lock.json index a907c1286c3..17b4a53efb1 100644 --- a/packages/http-client-python/package-lock.json +++ b/packages/http-client-python/package-lock.json @@ -1,12 +1,12 @@ { "name": "@typespec/http-client-python", - "version": "0.38.1", + "version": "0.39.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@typespec/http-client-python", - "version": "0.38.1", + "version": "0.39.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/packages/http-client-python/package.json b/packages/http-client-python/package.json index df009a8f771..658262ab694 100644 --- a/packages/http-client-python/package.json +++ b/packages/http-client-python/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/http-client-python", - "version": "0.38.1", + "version": "0.39.0", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://typespec.io",