Skip to content

Releases: Azure/typespec-azure

@azure-tools/[email protected]

23 Oct 16:26
0ec0106
Compare
Choose a tag to compare

Bug Fixes

  • #1731 fix wrong compare target for response body with anonymous model when finding anonymous model context
  • #1698 have paging respect renames

@azure-tools/[email protected]

15 Oct 12:24
ddf28f1
Compare
Choose a tag to compare

Bug Fixes

  • #1606 overwrite original value when set multiple value for same decorator

@azure-tools/[email protected]

14 Oct 21:10
ddf28f1
Compare
Choose a tag to compare

Bug Fixes

  • #1673 Fix ArmProviderActionAsync to correctly return 202 responses.

[email protected]

10 Oct 00:13
e20b38b
Compare
Choose a tag to compare

@azure-tools/typespec-autorest

Bump dependencies

  • #1534 Bump dependencies

Features

  • #1547 Added support to use Scalar and Object as default types
  • #1627 Adding support for loading example files from nested sub-folders.

@azure-tools/typespec-azure-core

Bug Fixes

  • #1416 Fix #1180 Return StatusMonitor result field for non-resource PUT operations in getLroMetadata.finalResult

Bump dependencies

  • #1534 Bump dependencies

@azure-tools/typespec-azure-portal-core

Bump dependencies

  • #1534 Bump dependencies

@azure-tools/typespec-azure-resource-manager

Bug Fixes

  • #1416 Fix #1180 Return StatusMonitor result field for non-resource PUT operations in getLroMetadata.finalResult
  • #1551 Correct ManagedServiceIdentityType versioning issue
  • #1537 Fix missing-x-ms-identifier rule not checking base class for properties

Bump dependencies

  • #1534 Bump dependencies

Features

  • #1639 Adding ArmProviderActionSync and ArmProviderActionAsync templates to the ARM library to perform actions at the subscription and tenant levels.
  • #1512 x-ms-skip-url-encoding should be replaced with allowReserved
  • #1505 Added common-types managed identity with delegation and network security perimeter
  • #1555 Add no-empty-model rule

@azure-tools/typespec-client-generator-core

Bug Fixes

  • #1511 Fix logic to check conflicting usage for model of multipart body and regular body
  • #1629 do not promote api version param to client if service is not versioned
  • #1630 do not override client default value for api version param in non-versioning service
  • #1607 set service of og in using time instead of setting time

Bump dependencies

  • #1534 Bump dependencies

Features

  • #1631 support value type for client default value
  • #1515 add SdkLroServiceMetadata

Deprecations

  • #1613 deprecate description in SdkExampleBase

Breaking Changes

  • #1560 Remove .description and .details from deprecated api surface

@azure-tools/[email protected]

10 Oct 08:10
e20b38b
Compare
Choose a tag to compare

Bug Fixes

  • #1659 remove projection for source model since typespec core has already fixed the issue

@azure-tools/[email protected]

10 Oct 00:13
e20b38b
Compare
Choose a tag to compare

Bump dependencies

  • #1534 Bump dependencies

Features

  • #1555 Add no-empty-model rule to ruleset

@azure-tools/[email protected]

10 Oct 00:13
e20b38b
Compare
Choose a tag to compare

Bump dependencies

  • #1534 Bump dependencies

@azure-tools/[email protected]

24 Sep 08:44
6faaac8
Compare
Choose a tag to compare

Bug Fixes

  • #1592 change example mapping logic to allow operation id with/without renaming
  • #1589 In 0.46.1 we changed the type of responses in SdkHttpOperation from Map<number | HttpRange, SdkHttpResponse> to SdkHttpResponse[], exceptions in SdkHttpOperation from Map<number | HttpRange | "*", SdkHttpResponse> to SdkHttpResponse[],
    and added a statusCodes property to SdkHttpResponse. But the statusCodes is defined as number | HttpRange | "*", which loses the information that the responses in responses property could never have a * as its statusCodes.
    This PR adds a new type SdkHttpErrorResponse with the statusCodes of number | HttpRange | "*", and changes the type of statusCodes in SdkHttpResponse to number | HttpRange to be precise.

@azure-tools/[email protected]

24 Sep 08:44
6faaac8
Compare
Choose a tag to compare

Bug Fixes

  • #1512 x-ms-skip-url-encoding should be replaced with allowReserved

@azure-tools/[email protected]

19 Sep 04:00
2b288d0
Compare
Choose a tag to compare

Bug Fixes

  • #1491 Fix naming logic for anonymous model wrapped by HttpPart
  • #1542 Fix subscriptionId for ARM SDK
  • #1558 Handle orphan types in nested namespaces
  • #1554 Fix onClient setting for client initialization parameters applied to an interface

Breaking Changes

  • #1540
    1. The type of responses and exceptions in SdkHttpOperation changed from Map<number | HttpStatusCodeRange | "*", SdkHttpResponse> to SdkHttpResponse[].
    2. The type of responses in SdkHttpOperationExample changed from Map<number, SdkHttpResponseExampleValue> to SdkHttpResponseExampleValue[].
    3. SdkHttpResponse adds a new property statusCodes to store its corresponding status code or status code range.
      Migration hints:
      The type changed from map to array, and the key of the map is moved as a new property of the value type. For example, for code like this:
    for (const [statusCodes, response] of operation.responses)
    
    you could do the same in this way:
    for (const response of operation.responses)
    {
      const statusCodes = response.statusCodes;
    }
    
  • #1463
    1. The kind for unknown renamed from any to unknown.
    2. The values property in SdkUnionType renamed to variantTypes.
    3. The values property in SdkTupleType renamed to valueTypes.
    4. The example types for parameter, response and SdkType has been renamed to XXXExampleValue to emphasize that they are values instead of the example itself.
    5. The @format decorator is no longer able to change the type of the property.
  • #1539
    1. change encode in SdkBuiltInType to optional.
    2. no longer use the value of kind as encode when there is no encode on this type.
  • #1541 no longer export the SdkExampleValueBase interface. This type should have no usage in downstream consumer's code. If there is any usage, please replace it with SdkExampleValue.