-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add release notes release 0.55 - April 2024 #3093
Merged
timotheeguerin
merged 5 commits into
microsoft:main
from
timotheeguerin:release-notes/april-2024
Apr 2, 2024
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b40f1ee
Release notes 0.55
timotheeguerin ae89fe2
Update docs/release-notes/release-2024-04-02.md
timotheeguerin 6fccc54
add deprecation
timotheeguerin 24f353d
Merge branch 'release-notes/april-2024' of https://github.com/timothe…
timotheeguerin 6b55569
wrong pr number
timotheeguerin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
title: 0.55 - April 2024 | ||
--- | ||
|
||
# Release Notes Version 0.55 - April 2024 | ||
|
||
:::warning | ||
This release contains deprecations | ||
::: | ||
|
||
## Deprecations | ||
|
||
### @typespec/compiler | ||
|
||
- [#2910](https://github.com/microsoft/typespec/pull/2910) Deprecate `@projectedName` decorator. `@encodedName` should be used instead. | ||
|
||
Example: | ||
|
||
```diff | ||
-@projectedName("json", "exp") | ||
+@encodedName("application/json", "exp") | ||
``` | ||
|
||
- [#3094](https://github.com/microsoft/typespec/pull/3094) Deprecate `@knownValues` decorator. Use a named union of string literal with a string variant to achieve the same result without a decorator | ||
|
||
Example: | ||
|
||
```diff | ||
-enum FooKV { a, b, c} | ||
-@knownValues(FooKV) | ||
-scalar foo extends string; | ||
+union Foo { "a", "b", "c", string } | ||
``` | ||
|
||
## Features | ||
|
||
### @typespec/compiler | ||
|
||
- [#2992](https://github.com/microsoft/typespec/pull/2992) Enable the use of `@encode` for model properties that have a union type. This supports cases like `@encode("rfc3339") prop: utcDateTime | null` | ||
|
||
### @typespec/versioning | ||
|
||
- [#3053](https://github.com/microsoft/typespec/pull/3053) Add support for versioning of scalars(Added, removed, renamed) | ||
|
||
## Bug Fixes | ||
|
||
### @typespec/compiler | ||
|
||
- [#3018](https://github.com/microsoft/typespec/pull/3018) Grammar: Fix comments in template params not tokenized | ||
- [#3052](https://github.com/microsoft/typespec/pull/3052) Fix: Union template declaration were incorrectly being finished in projection | ||
- [#2983](https://github.com/microsoft/typespec/pull/2983) Warnings converted to error with `warn-as-error` do not prevent compilation from moving to the next stage like regular warnings | ||
- [#3041](https://github.com/microsoft/typespec/pull/3041) Improve reliability of application of codefixes in IDE, often it would not do anything | ||
- [#3069](https://github.com/microsoft/typespec/pull/3069) TmLanguage: Fix tokenization of escaped identifiers, enums and unions | ||
|
||
### @typespec/openapi3 | ||
|
||
- [#3077](https://github.com/microsoft/typespec/pull/3077) Do not crash if using an unsupported intrinsic type | ||
- [#2967](https://github.com/microsoft/typespec/pull/2967) Fix crash: emit `{nullable: true}` when trying to emit `null` in openapi3 | ||
- [#3013](https://github.com/microsoft/typespec/pull/3013) Fix: OpenAPI3 not marking part of bytes or something else as `format: binary` | ||
- [#3090](https://github.com/microsoft/typespec/pull/3090) Fix: Literal unions with the same variants keep adding duplicate entries | ||
- [#3049](https://github.com/microsoft/typespec/pull/3049) Fix visibility naming conflict when a model used with `extends` was used in different visibility. | ||
timotheeguerin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### @typespec/eslint-config-typespec | ||
|
||
- [#2122](https://github.com/microsoft/typespec/pull/2122) Ignore `generated-defs` folder |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we not remove the
@knownValues
decorator?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we didn't yet, also that would have just been a deprecation, should I make a PR for that first?