From 492a3766a73d6fc221cd256097efb840c7a5b71d Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Thu, 13 Jun 2024 12:12:52 -0700 Subject: [PATCH 1/3] Release notes --- .../changes/arm-lro-opt-2024-5-5-2-57-50.md | 2 +- .../discriminator_doc-2024-4-21-11-13-50.md | 2 +- .../changes/emitter_name-2024-5-3-22-57-49.md | 2 +- docs/release-notes/release-2024-06-11.md | 74 +++++++++++++++++++ 4 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 docs/release-notes/release-2024-06-11.md diff --git a/.chronus/changes/arm-lro-opt-2024-5-5-2-57-50.md b/.chronus/changes/arm-lro-opt-2024-5-5-2-57-50.md index 16b8e22136..19442f2127 100644 --- a/.chronus/changes/arm-lro-opt-2024-5-5-2-57-50.md +++ b/.chronus/changes/arm-lro-opt-2024-5-5-2-57-50.md @@ -6,4 +6,4 @@ packages: --- -- Add support for displaying lro options in typespec-autorest based on lro metadata +Add support for displaying lro options in typespec-autorest based on lro metadata diff --git a/.chronus/changes/discriminator_doc-2024-4-21-11-13-50.md b/.chronus/changes/discriminator_doc-2024-4-21-11-13-50.md index bda2efe7eb..37399d588e 100644 --- a/.chronus/changes/discriminator_doc-2024-4-21-11-13-50.md +++ b/.chronus/changes/discriminator_doc-2024-4-21-11-13-50.md @@ -4,4 +4,4 @@ packages: - "@azure-tools/typespec-client-generator-core" --- -add description for created discriminator property \ No newline at end of file +add description for created discriminator property diff --git a/.chronus/changes/emitter_name-2024-5-3-22-57-49.md b/.chronus/changes/emitter_name-2024-5-3-22-57-49.md index 4ff152d8fe..c654f7b175 100644 --- a/.chronus/changes/emitter_name-2024-5-3-22-57-49.md +++ b/.chronus/changes/emitter_name-2024-5-3-22-57-49.md @@ -4,4 +4,4 @@ packages: - "@azure-tools/typespec-client-generator-core" --- -support new typespec emitter naming rule \ No newline at end of file +support new typespec emitter naming rule diff --git a/docs/release-notes/release-2024-06-11.md b/docs/release-notes/release-2024-06-11.md new file mode 100644 index 0000000000..cc2e4b3874 --- /dev/null +++ b/docs/release-notes/release-2024-06-11.md @@ -0,0 +1,74 @@ +--- +title: 0.43.0 June 2024 +--- + +# Release Notes Version 0.43.0 - June 2024 + +See TypeSpec Core 0.57 [release notes](https://typespec.io/docs/release-notes/release-2024-06-11) + +:::warning +This release contains breaking changes and deprecation +::: + +## Breaking Changes + +### @azure-tools/typespec-autorest + +- [#473](https://github.com/Azure/typespec-azure/pull/473) Enums are not extensible by default anymore. Update to an extensible union `union Foo {a: "a", b: "b", string}` + +### @azure-tools/typespec-client-generator-core + +- [#925](https://github.com/Azure/typespec-azure/pull/925) change default of `.access` on a model or enum to `"public"` instead of `undefined` +- [#870](https://github.com/Azure/typespec-azure/pull/870) return nullable types as a new type called `SdkNullableType` + +## Features + +### @azure-tools/typespec-autorest + +- [#955](https://github.com/Azure/typespec-azure/pull/955) Use emit-lro-options emitter option to control emission of x-ms-long-running-operation-options +- [#955](https://github.com/Azure/typespec-azure/pull/955) Add support for displaying lro options in typespec-autorest based on lro metadata +- [#972](https://github.com/Azure/typespec-azure/pull/972) Add API to programmatically get all the OpenAPI2 documents for all services at all versions in a spec +- [#811](https://github.com/Azure/typespec-azure/pull/811) Add dependency on typespec-azure-resource-manager to resolve the spec repo common types paths +- [#813](https://github.com/Azure/typespec-azure/pull/813) `@summary` sets the title of definitions + +### @azure-tools/typespec-azure-core + +- [#955](https://github.com/Azure/typespec-azure/pull/955) Add override decorator @useFinalStateVia for lro resolution when multiple resolution pathways exist +- [#707](https://github.com/Azure/typespec-azure/pull/707) Remove linter rules that are not relevant anymore: `use-extensible-enum` and `no-fixed-enum-discriminator` +- [#432](https://github.com/Azure/typespec-azure/pull/432) Add support for values + +### @azure-tools/typespec-azure-resource-manager + +- [#811](https://github.com/Azure/typespec-azure/pull/811) Remove dependency on `typespec-autorest` emitter +- [#432](https://github.com/Azure/typespec-azure/pull/432) Add support for values + +## Bug Fixes + +### @azure-tools/typespec-autorest + +- [#923](https://github.com/Azure/typespec-azure/pull/923) When emitting version enum only include current version and mark with `modelAsString: true` +- [#902](https://github.com/Azure/typespec-azure/pull/902) Add support for new multipart constructs in http library +- [#432](https://github.com/Azure/typespec-azure/pull/432) Add support for tuple literals as default values + +### @azure-tools/typespec-azure-core + +- [#693](https://github.com/Azure/typespec-azure/pull/693) Add new `no-string-discriminator` linter rule suggesting using an explicit extensible union as the discriminator kind. +- [#851](https://github.com/Azure/typespec-azure/pull/851) Convert `OperationState` enum to an open union + +### @azure-tools/typespec-azure-resource-manager + +- [#955](https://github.com/Azure/typespec-azure/pull/955) Remove OpenAPI dependencies from ARM LRO templates and test LRO overrides +- [#929](https://github.com/Azure/typespec-azure/pull/929) Adding an overload parameter to ResourceNameParameter that allows `name` type to be set to string union type. +- [#860](https://github.com/Azure/typespec-azure/pull/860) Fix `percentComplete` property on `OperationStatus` should be a float not an int +- [#979](https://github.com/Azure/typespec-azure/pull/979) Make Resource Properties Bag Updatable + +### @azure-tools/typespec-client-generator-core + +- [#904](https://github.com/Azure/typespec-azure/pull/904) don't add constant value to generated name +- [#873](https://github.com/Azure/typespec-azure/pull/873) add description for created discriminator property +- [#947](https://github.com/Azure/typespec-azure/pull/947) support new typespec emitter naming rule +- [#930](https://github.com/Azure/typespec-azure/pull/930) expose enums on response headers +- [#962](https://github.com/Azure/typespec-azure/pull/962) refine logic of core model filtering +- [#950](https://github.com/Azure/typespec-azure/pull/950) remove duplicated types in TCGC +- [#936](https://github.com/Azure/typespec-azure/pull/936) enhance cross language definition id logic +- [#935](https://github.com/Azure/typespec-azure/pull/935) add read only logic to usage propagation From 704d242e961bb7feece055484da859782ee7ca69 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Thu, 13 Jun 2024 12:14:30 -0700 Subject: [PATCH 2/3] add missing entry --- docs/release-notes/release-2024-06-11.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/release-notes/release-2024-06-11.md b/docs/release-notes/release-2024-06-11.md index cc2e4b3874..d5e1817b4f 100644 --- a/docs/release-notes/release-2024-06-11.md +++ b/docs/release-notes/release-2024-06-11.md @@ -61,6 +61,7 @@ This release contains breaking changes and deprecation - [#929](https://github.com/Azure/typespec-azure/pull/929) Adding an overload parameter to ResourceNameParameter that allows `name` type to be set to string union type. - [#860](https://github.com/Azure/typespec-azure/pull/860) Fix `percentComplete` property on `OperationStatus` should be a float not an int - [#979](https://github.com/Azure/typespec-azure/pull/979) Make Resource Properties Bag Updatable +- [#998](https://github.com/Azure/typespec-azure/pull/998) Adding legacy v4 ManagedServiceIdentity model to avoid breaking changes in specs with mixed v3 and v4 common type reference ### @azure-tools/typespec-client-generator-core From e65a9986a591ba223ecf99af76a58d5c95869860 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Thu, 13 Jun 2024 12:15:01 -0700 Subject: [PATCH 3/3] . --- .chronus/changes/arm-lro-opt-2024-5-5-19-32-9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chronus/changes/arm-lro-opt-2024-5-5-19-32-9.md b/.chronus/changes/arm-lro-opt-2024-5-5-19-32-9.md index 5a9d225023..3a29fc5b9a 100644 --- a/.chronus/changes/arm-lro-opt-2024-5-5-19-32-9.md +++ b/.chronus/changes/arm-lro-opt-2024-5-5-19-32-9.md @@ -4,4 +4,4 @@ packages: - "@azure-tools/typespec-autorest" --- -Add suppress-lro-options emitter option to control emission of x-ms-long-running-operation-options \ No newline at end of file +Use emit-lro--options emitter option to control emission of x-ms-long-running-operation-options