Skip to content

Latest commit

 

History

History
233 lines (144 loc) · 5.25 KB

File metadata and controls

233 lines (144 loc) · 5.25 KB

Change Log - @cadl-lang/rest

This log was last generated on Mon, 13 Jun 2022 23:42:28 GMT and should not be manually modified.

0.15.0

Mon, 13 Jun 2022 23:42:28 GMT

Minor changes

  • Uptake changes to compiler with decorator validator helpers
  • Update accessor functions getAllRoutes, getContentTypes, etc. to follow the new Accessor pattern which return any encountered diagnostics along with the expected value
  • Uptake changes to decorator context
  • Added @server decorator to specify namespace endpoints
  • Fix decorator and functions not belonging to a namespace

Patches

  • Properly exclude operation templates when scanning for routes
  • Skip templated operations when scanning for operation routes
  • Enable customization of route segment separators in autoRoutes

0.14.0

Fri, 06 May 2022 17:19:57 GMT

Minor changes

  • Add RouteOptions and AutoRouteOptions types to enable customization of automatic route generation when calling getAllRoutes
  • Uptake mixes -> extends rename
  • Remove node 14 support

Patches

  • Fix issue where empty response model with children would result in 204"
  • Add validation to Resource interface to ensure TError is an error type

0.13.0

Thu, 31 Mar 2022 17:10:49 GMT

Minor changes

  • Handle error type being passed to KeyOf model
  • Add validation when using Resource interfaces when missing @key on resource
  • Add logic to interpret the http responses.

Patches

  • Fix issue with empty routes in namespace/interface and operation causing path with '//'
  • Support browser builds
  • Raise a diagnostic when a resource type specifies a parent type which holds the same key name.

0.12.0

Wed, 09 Mar 2022 17:42:09 GMT

Minor changes

  • Move @key decorator to core

Patches

  • Filter out string literal typed path parameters when generating routes automatically

0.11.0

Tue, 15 Feb 2022 22:35:02 GMT

Minor changes

  • Add validation to decorators

0.10.0

Mon, 14 Feb 2022 03:01:07 GMT

Minor changes

  • refactor status code handling to http library
  • Update decorators to take in api change

Patches

  • Bump dependency versions

0.9.0

Fri, 04 Feb 2022 18:00:18 GMT

Minor changes

  • Add support for discriminator decorator
  • Internals: switch to internal path manipulatio
  • Added shared logic to resolve http operation parameters and validate compatibility(duplicate bodies)
  • Added Validation for uniquness of operation by verb and path
  • Added @head decorator to describe head http verb operation
  • Validate http verb decorators(@get, @post, etc.) do not recieve any argument
  • Expose response template in Http library and refactor
  • Add statusCode decorator for http status code
  • **Validate @route decorator is used only once
  • Update cadl depdendencies to peerDependencies

Patches

  • Move @key, @parentResource, and @copyResourceKeyParameters decorators into Cadl.Rest
  • Operations marked with @action will now default to POST verb unless another verb has been explicitly specified
  • Add interfaces for modelling extension and singleton resources
  • Fix Duplicate @key on model properties will produce diagnostic instead of exception

0.8.0

Thu, 16 Dec 2021 08:02:20 GMT

Minor changes

  • Add Cadl.Http.PlainData

Patches

  • Adding @CreateOrUpdate (PUT) and standard operation in REST.
  • camelCase operations
  • Add new route scanning functionality which provides the same capabilities (both explicit and autogenerated routes) to normal operations and those defined inside of interfaces

0.7.1

Wed, 01 Dec 2021 22:56:11 GMT

Patches

  • Add README

0.7.0

Thu, 18 Nov 2021 13:58:15 GMT

Minor changes

  • Refactor REST and HTTP decorators and split them into Cadl.Rest and Cadl.Http, respectively

Patches

  • Add new Cadl.Rest.Resource namespace for new resource modelling pattern
  • Add documentation strings to models and operations

0.6.4

Thu, 11 Nov 2021 21:46:21 GMT

Version update only

0.6.3

Thu, 28 Oct 2021 21:17:50 GMT

Patches

  • Remove management.azure.com service host default

0.6.2

Fri, 15 Oct 2021 21:33:37 GMT

Patches

  • Strongly defined diagnostics

0.6.1

Fri, 17 Sep 2021 00:49:37 GMT

Version update only

0.6.0

Sat, 21 Aug 2021 00:04:02 GMT

Minor changes

  • Introduce naming convention $name for JavaScript-defined Cadl functions and decorators

0.5.1

Fri, 13 Aug 2021 19:10:21 GMT

Patches

  • Add isHeader functionality to discover if a proprty is a header property

0.5.0

Tue, 10 Aug 2021 20:23:04 GMT

Minor changes

  • Rename package to @cadl-lang/rest

0.4.1

Mon, 09 Aug 2021 21:14:12 GMT

Version update only

0.4.0

Mon, 02 Aug 2021 18:17:00 GMT

Minor changes

  • Rename ADL to Cadl

0.3.2

Wed, 28 Jul 2021 19:40:06 GMT

Patches

  • Add additional api to support code generation and host property

0.3.1

Fri, 09 Jul 2021 20:21:06 GMT

Version update only

0.3.0

Thu, 24 Jun 2021 03:57:43 GMT

Minor changes

  • Add semantic error recovery

0.2.1

Tue, 18 May 2021 23:43:31 GMT

Version update only

0.2.0

Thu, 06 May 2021 14:56:01 GMT

Minor changes

  • Implement alias and enum, remove model =

Patches

  • Added New type NoContentResponse
  • Replace several internal compiler errors with diagnostics

0.1.2

Tue, 20 Apr 2021 15:23:29 GMT

Initial release