- #4679 Upgrade dependencies - October 2024
- #4424 Bump dependencies
- #4139 Internals: Migrate to new api for declaring decorator implementation
- #4155 HotFix: Uri template not correctly built when using
@autoRoute
- #3948 Update dependencies
- #3932 Add support for URI templates in routes
- #3718 Dependency updates July 2024
- #3022 Update types to support new values in TypeSpec
- #3401 Update dependencies - May 2024
- #3169 Update dependencies
- #2945 Add support for new
@bodyRoot
and@body
distinction
- #3027 Update dependencies
- #2900 Update dependencies
Wed, 24 Jan 2024 05:46:53 GMT
- Handle custom @path name in the building of the route
- Rename template parameters in preparation for named template argument instantiation.
- Update dependencies
Wed, 06 Dec 2023 19:40:58 GMT
- Fix issue with
ResourceCreateModel
template collecting "update" properties instead of "create" properties.
Wed, 08 Nov 2023 00:07:17 GMT
TypeScript
usetypes
entry underexports
ofpackage.json
instead of legacytypesVersions
to provide the definition files- BREAKING CHANGE Dropped support for node 16, minimum node version is now 18
Wed, 11 Oct 2023 23:31:35 GMT
- Correct rest → http peer dependency. Fixes #2391
- Fix:
@key
can now appear on the base model of a resource. - Update dependencies
Tue, 12 Sep 2023 21:47:11 GMT
Version update only
Tue, 08 Aug 2023 22:32:10 GMT
Version update only
Tue, 11 Jul 2023 22:06:00 GMT
- Make internal
resourceTypeForKeyParam
decorator private - Add
isListOperation
function migrated from@typespec/compiler
- Update dependencies
Tue, 06 Jun 2023 22:44:16 GMT
- Update decorators to use
valueof
- Update decorators signature to use
{}
instead ofobject
- Add signature for missing decorators
Wed, 10 May 2023 21:24:00 GMT
- Cleanup deprecated use
- Update decorator declaration to use
Model
instead ofobject
- Add validation to ensure that @action or @collectionAction operations have a specified name when used with @sharedRoute
- Update dependencies
Tue, 11 Apr 2023 18:49:17 GMT
- Fix issue where
@action("")
was treated the same as@action
. Now this emits an error.
Mon, 13 Mar 2023 21:30:44 GMT
Version update only
Fri, 03 Mar 2023 19:59:17 GMT
- Revert back changelog
- Fix issue with filtering of visibility decorator on resource key not working when multiple copies of the compiler are loaded.
- Move core HTTP functionality from
@typespec/rest
into a new@typespec/http
library - Breaking change: The
@autoRoute
decorator can no longer be applied to namespaces - Breaking change: The unimplemented
@routeReset
decorator has been removed - Update package.json entrypoint to tspMain
- Rename to TypeSpec
- Readme.md update
- Update homepage link
Tue, 07 Feb 2023 21:56:17 GMT
- Give KeysOf and ParentKeysOf friendly name to dedupe parameters
- Removed
@segmentSeparator
,@produces
and@consumes
decorators. RemovedgetSegmentSeparator
,getProduces
andgetConsumes
functions. - Allow @route and @autoRoute to be used together.
Fri, 13 Jan 2023 00:05:26 GMT
- Support query/header/path encoding options
- Generate recursive update schemas with optional properties for resource update operation
Wed, 14 Dec 2022 20:34:58 GMT
- Fix: Broken doc comment causing IDE build to not show errors
Wed, 07 Dec 2022 17:21:52 GMT
- Internal: update to use new
getTypeName
andgetNamespaceString
helper - Add validation for
@route
to prevent@route
used twice on the same operation/interface/namespace - Add support for multiple services
- Uptake changes to compiler api to support Scalars
- Add
@actionSegment
decorator. Deprecate@segmentSeparator
. - Update
ResourceLocation
toextends url
instead of deprecateduri
- Validate
multipart/form-data
request body is aModel
- Deprecation Updated the
HttpOperationParameters
interface to include a newbody
field replacing thebodyType
andbodyParameter
.
- Add cadl docs on decorators
- Update docs.
- Update dependencies
Sat, 12 Nov 2022 00:14:04 GMT
- Declare decorators in cadl using
extern dec
- Add MetadataInfo.getEffectivePayloadType helper
- Deprecate write visibility
- Allow
@route
and@resetRoute
to accept ashared
property to suppress route uniqueness validation.
- Fix: Issue with duplicate key in spread models
- Move
duplicate-parent-key
check from theparentResource
decorator to a linting rule
Wed, 12 Oct 2022 21:12:35 GMT
- Empty object as a response will not produce a 204 response anymore
- Feature: Add
isContentTypeHeader
helper. - Implement automatic visibility transformations
- BREAKING Remove
@discriminator
decorator. (Moved to @cadl-lang/compiler) - Disallow optional path params even if they have a default value
- Add support for overloads(Using
@overload
decorator) - Reorganization of http data accessor.
getAllRoutes
is now deprecated and replaced withgetAllHttpServices
ResourceLocation<T>
isuri
- Remove workaround for issue microsoft#1069
- Detect unannotated path parameters that are specified in route path
Thu, 08 Sep 2022 01:04:53 GMT
- Deprecation: Mark
@produces
and@consumes
as deprecated - Uptake changes to compiler with current projection
- Update decororator state key to allow multiple instance of library to work together.
- React to Type suffix removal
- BREAKING CHANGE Rename
Page
toCollectionWithNextLink
- Fix doc for route and move autoRoute to rest library
- Api: Service Authentication oauth2 flow scopes is now an object with value and description
- Api: Route resolution take projection into account
- Guard against uninitialized parent type in
parentResource
decorator - Support more kinds of unions, fix various union bugs, and add support for @discriminator on unions
Thu, 11 Aug 2022 19:05:23 GMT
- Add new
@useAuth
decorator providing support to define service authentication - Uptake changes to type relations
- Update resource operation interfaces to configure Create and Update model properties correctly
- Support set of unannotated parameters as request body
- Add friendly name for Page as TPage
- Make OkResponse non-generic
- Remove
groupName
fromOperationDetails
- Emit diagnostic when defining @path property that is optional without a default value
- Update route resolution logic to be more consistent. If service namespace is provided use routes under otherwise use routes directly at the global namespace level(do not go into the nested namespaces)
- Internal: Uptake new compiler helpers to work with template types
- Add a @resource decorator to simplify how one defines resource types and specifies the collection (segment) name
- Add
ResourceCreateOrReplace
type andcreatesOrReplaces
decorator to model an "upsert" operation - Improve
cloneKeyProperties
implementation so that original model type is not affected - Ensure that all @key properties turned into @path parameters by KeysOf are required even if the original is optional
- Operations with a body and no verb will default route to POST
- Add
ResourceLocation<T>
to mark a property as containing a link to a specific resource type - Make response descriptions more consistent
- readme.md documentation change
Fri, 08 Jul 2022 23:22:57 GMT
- $consumes decorator better validation
- Add
@collectionAction
decorator for defining collection-level resource actions - Make string literal "Content-Type" header check case-insensitive
Mon, 13 Jun 2022 23:42:28 GMT
- 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
- Properly exclude operation templates when scanning for routes
- Skip templated operations when scanning for operation routes
- Enable customization of route segment separators in autoRoutes
- Upgrade to TS4.7
Fri, 06 May 2022 17:19:57 GMT
- Add RouteOptions and AutoRouteOptions types to enable customization of automatic route generation when calling getAllRoutes
- Uptake
mixes
->extends
rename - Remove node 14 support
- Fix issue where empty response model with children would result in 204"
- Add validation to
Resource
interface to ensureTError
is an error type
Thu, 31 Mar 2022 17:10:49 GMT
- 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.
- 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.
Wed, 09 Mar 2022 17:42:09 GMT
- Move @key decorator to core
- Filter out string literal typed path parameters when generating routes automatically
Tue, 15 Feb 2022 22:35:02 GMT
- Add validation to decorators
Mon, 14 Feb 2022 03:01:07 GMT
- refactor status code handling to http library
- Update decorators to take in api change
- Bump dependency versions
Fri, 04 Feb 2022 18:00:18 GMT
- Add support for discriminator decorator
- Internals: switch to internal path manipulation
- Added shared logic to resolve http operation parameters and validate compatibility(duplicate bodies)
- Added Validation for uniqueness of operation by verb and path
- Added
@head
decorator to describehead
http verb operation - Validate http verb decorators(
@get
,@post
, etc.) do not receive 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 dependencies to peerDependencies
- Move
@key
,@parentResource
, and@copyResourceKeyParameters
decorators intoCadl.Rest
- Operations marked with
@action
will now default toPOST
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
Thu, 16 Dec 2021 08:02:20 GMT
- Add Cadl.Http.PlainData
- 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
- Formatting changes
Wed, 01 Dec 2021 22:56:11 GMT
- Add README
Thu, 18 Nov 2021 13:58:15 GMT
- Refactor REST and HTTP decorators and split them into Cadl.Rest and Cadl.Http, respectively
- Add new Cadl.Rest.Resource namespace for new resource modelling pattern
- Add documentation strings to models and operations
Thu, 11 Nov 2021 21:46:21 GMT
Version update only
Thu, 28 Oct 2021 21:17:50 GMT
- Remove management.azure.com service host default
Fri, 15 Oct 2021 21:33:37 GMT
- Strongly defined diagnostics
Fri, 17 Sep 2021 00:49:37 GMT
Version update only
Sat, 21 Aug 2021 00:04:02 GMT
- Introduce naming convention
$name
for JavaScript-defined Cadl functions and decorators
Fri, 13 Aug 2021 19:10:21 GMT
- Add isHeader functionality to discover if a property is a header property
Tue, 10 Aug 2021 20:23:04 GMT
- Rename package to @cadl-lang/rest
Mon, 09 Aug 2021 21:14:12 GMT
Version update only
Mon, 02 Aug 2021 18:17:00 GMT
- Rename ADL to Cadl
Wed, 28 Jul 2021 19:40:06 GMT
- Add additional api to support code generation and host property
Fri, 09 Jul 2021 20:21:06 GMT
Version update only
Thu, 24 Jun 2021 03:57:43 GMT
- Add semantic error recovery
Tue, 18 May 2021 23:43:31 GMT
Version update only
Thu, 06 May 2021 14:56:01 GMT
- Implement alias and enum, remove model =
- Added New type NoContentResponse
- Replace several internal compiler errors with diagnostics
Tue, 20 Apr 2021 15:23:29 GMT
Initial release