-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Snyk] Upgrade @typespec/compiler from 0.56.0 to 0.57.0 #1
Conversation
Snyk has created this PR to upgrade @typespec/compiler from 0.56.0 to 0.57.0. See this package in npm: @typespec/compiler See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/2d7e0832-afc9-498b-aaf9-735e1eddc8b5?utm_source=github&utm_medium=referral&page=upgrade-pr
👋 I'm here to help you review your pull request. When you're ready for me to perform a review, you can comment anywhere on this pull request with this command: As a reminder, here are some helpful tips on how we can collaborate together:
|
Your organization has reached the subscribed usage limit. You can upgrade your account by purchasing a subscription at Stripe payment link Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect. Current plan usage: 103.59% Have feedback or need help? |
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
This PR was automatically created by Snyk using the credentials of a real user.
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade @typespec/compiler from 0.56.0 to 0.57.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 23 versions ahead of your current version.
The recommended version was released on 21 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-BRACES-6838727
SNYK-JS-MICROMATCH-6838728
Release notes
Package name: @typespec/compiler
@ typespec/compiler
Bug Fixes
tsp code install
const a = 100.0
)@ param
doc tag on operation create withop is
to override upstream docPickProperties
type to dynamically select a subset of a modelBump dependencies
Features
#3280 Support completion for Model with extended properties
Example
model Device {
name: string;
description: string;
}
model Phone extends Device {
┆
} | [name]
| [description]
#3280 Support completion for object values and model expression properties.
Example
model User {
name: string;
age: int32;
address: string;
}
const user: User = #{name: "Bob", ┆}
| [age]
| [address]
#3375 Allow
@
to be escaped in doc comment with\
#3022 Add syntax for declaring values. See docs.
Object and array values
Scalar constructors
scalar utcDateTime {
init fromISO(value: string);
}
model DateRange {
minDate: utcDateTime = utcDateTime.fromISO("2024-02-15T18:36:03Z");
}
#3527 Add support for
@ prop
doc comment tag to describe model properties#3422 Formatter: Indent or dedent multiline strings to the current indentation
#3460 Hide deprecated items from completion list
#3443 Support completion for keyword 'extends' and 'is'
Example
model Dog ┆ {}
| [extends]
| [is]
scalar Addresss ┆
| [extends]
op jump ┆
| [is]
interface ResourceA ┆ {}
| [extends]
model Cat<T ┆> {}
| [extends]
#3462 Linter
all
rulesets is automatically created if not explicitly provided#3533 More logs and traces are added for diagnostic and troubleshooting in TypeSpec language server
Deprecations
model Test {
// Deprecated
values: string[] = ["a", "b", "c"];
// Correct
values: string[] = #["a", "b", "c"];
model Test {
// Deprecated
user: {name: string} = {name: "System"};
// Correct
user: {name: string} = #{name: "System"};
With the introduction of values, the decorator marshalling behavior has changed in some cases. This behavior is opt-in by setting the
valueMarshalling
package flag to"new"
, but will be the default behavior in future versions. It is strongly recommended to adopt this new behavior as soon as possible.Example:
Will now emit a deprecated warning because
value
is of typevalueof string
which would marshall toNumeric
under the new logic but asnumber
previously.To opt-in you can add the following to your library js/ts files.
@ typespec/http
Bug Fixes
Bump dependencies
Features
#3342 Add new multipart handling. Using
@ multipartBody
withHttpPart<Type, Options>
. See multipart docs for more information.#3462 Use new compiler automatic
all
ruleset instead of explicitly provided one@ typespec/versioning
Bug Fixes
@ madeRequired
decorator@ removed
on member types and@ added
on containing type could result in errorsBump dependencies
@ typespec/rest
Bug Fixes
Bump dependencies
@ typespec/openapi
Bump dependencies
@ typespec/openapi3
Bug Fixes
Bump dependencies
Features
decimals: decimal[] = #[123, 456.7];
)@ typespec/protobuf
Bug Fixes
Bump dependencies
@ typespec/prettier-plugin-typespec
Bump dependencies
@ typespec/eslint-plugin
Bump dependencies
@ typespec/html-program-viewer
Bump dependencies
Features
@ typespec/json-schema
Bug Fixes
Bump dependencies
Features
@ typespec/internal-build-utils
Bump dependencies
typespec-vs
Features
typespec-vscode
Bump dependencies
Features
@ typespec/library-linter
Bump dependencies
@ typespec/compiler
Bug Fixes
--nostdlib
flag will now work by only applying to optional standard library types{foo?: string}
cannot be assigned to a constraint of{foo: string}
)tsp install
on windows due to recent NodeJS breaking change to fix vulnerability.is
target in an interface operation templatefetch
API that is now stable since node18.13.0
Bump dependencies
Features
getEncode
returns the fully qualified enum member name if using a custom enum.sourceModels
property to model@ typespec/http
Bug Fixes
authorizationUrl
instead oftokenUrl
@ path
param mapping when spreading a record in operation parameters@ path
property shouldn't be applicableMetadata if the visibility containsRead
Bump dependencies
Breaking Changes
#2945 Empty model after removing metadata and applying visibility always results in "void"
This means the following case have changed from returning
{}
to no bodyWorkaround: Use explicit
@ body
#2945 Implicit status code always 200 except if response is explicitly
void
Solution: Add explicit
@ statusCode
#2945
@ body
means this is the bodyThis change makes using
@ body
mean this is the exact body and everything underneath will be included, including metadata properties. If metadata properties are present on the body, a warning will be logged.Use
@ bodyRoot
if you want to only change where to resolve the body from.#2945 Properties are not automatically omitted if everything was removed from metadata or visibility
Solution: use
@ bodyIgnore
@ typespec/versioning
Bug Fixes
@ service
appears inside a versioned namespaceBump dependencies
@ typespec/rest
Bump dependencies
Features
@ bodyRoot
and@ body
distinction@ typespec/openapi
Bump dependencies
@ typespec/openapi3
Bug Fixes
@ path
property should be included in unreachable modelsBump dependencies
Features
@ bodyRoot
and@ body
distinction@ typespec/protobuf
Bump dependencies
@ typespec/prettier-plugin-typespec
Bump dependencies
@ typespec/eslint-plugin
Bump dependencies
@ typespec/html-program-viewer
Bump dependencies
Features
sourceModels
property to model view@ typespec/json-schema
Bump dependencies
@ typespec/internal-build-utils
Bump dependencies
typespec-vs
No changes, version bump only.
typespec-vscode
Bump dependencies
@ typespec/library-linter
Bump dependencies
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: