0.61 - October 2024
Breaking Changes
@typespec/compiler
- #4539 Config parameters and emitters options cannot contains .. This conflict with newly added support for nested options.
- #4500 API: Update default of decoratorArgMarshallingfromlegacytonew
To revert to the old behavior export the following. Highly discouraged, this will be removed in a few versions.
export const $flags = definePackageFlags({  decoratorArgMarshalling: "legacy",});- TypeSpec compiler expect the entrypoint to be an absolute path. This used to work with some alternative CompilerHostthat handled relative path but this is no longer supported due to the newexportsfield support.
Features
@typespec/compiler
- #4442 Library diagnostic can now define a descriptionandurlthat links to a more detailed doc for this diagnostic
- #4290 Adding experimental (unstable) API fro Type Mutators
- #4595 Expose more accurate PackageJsontype and deprecateNodePackage
- #4606 Add support for node exportsfield. Specific typespec exports can be provided with thetypespecfield
"exports": {  ".": {    "typespec": "./lib/main.tsp",  },  "./named": {    "typespec": "./lib/named.tsp",  }}- #4539 Support nested emitter options
@typespec/http
- #4513 Adds HttpStream and JsonlStream models to to support streaming use-cases.
@typespec/openapi3
- #4423 Added support to use Scalar and Object as default types
@typespec/json-schema
- #4447 Example set with @exampledecorator will populate the schemaexamplesproperty
typespec-vscode
- #4330 Support Compile Task and Watch Task in vscode.
- #4498 Make extension web compatible with minimal functionality
Bug Fixes
@typespec/compiler
- #4513 Fixes issue with the semantic walker where exitTuplewas not being emitted.
- #4462 Fix examples with enums inside of unions
- #4574 Fix: Passing constof model type to@example
- #4551 Json serialization of example respect @encodedName
- #4514 Fix issue with decimal numeric and leading 0.0with multiple digit
- #4445 [API] model sourceModelsproperty are now projected correctly
- #4467 Changing tspconfig.yaml wonโt take effect in LSP server because of the cache
- #4563 tsp compile --watchreread fromtspconfig.yamlfile
- #4626 [API] Add missing exit callback
@typespec/openapi
- #4505 @infodecorator validate no extra properties not starting withx-are provided.
- #4483 @infodecorator validatetermsOfServiceis a valid url
@typespec/internal-build-utils
- #4498 Ignore test from third party notice generation
typespec-vscode
- #4430 Use โshellโ when spawning execution of .cmd file(i.e. tsp-server.cmd) in windows