Skip to content
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.47.1 to 0.59.0 #7861

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sylvainsf
Copy link
Contributor

snyk-top-banner

Snyk has created this PR to upgrade @typespec/compiler from 0.47.1 to 0.59.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 217 versions ahead of your current version.

  • The recommended version was released on 21 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Uncontrolled resource consumption
SNYK-JS-BRACES-6838727
482 Proof of Concept
high severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
482 No Known Exploit
Release notes
Package name: @typespec/compiler
  • 0.59.0 - 2024-08-08

    @ typespec/compiler

    Bug Fixes

    • #3881 Fixes a bug where ending a non-terminal line in a multi-line comment with a backslash caused the next star to show up in the parsed doc string.
    • #4050 Allow using compact namespace form Foo.Bar when inside another namespace
      namespace MyOrg.MyProject {
        namespace MyModule.MySubmodule { // <-- this used to emit an error
          // ...
        }
      }
      
    • #3898 Fix decimal numeric with leading zeros
    • #4046 Fix type comparison of literal and scalar when in projection context
    • #4022 tsp compile --watch will not stop when a crash happens during compilation
    • #3933 Add const template parameter to get the precise lib type

    Bump dependencies

    • #3948 Update dependencies

    Features

    • #3906 Support completion for template parameter extending model or object value

      Example

      model User<T extends {name: string, age: int16}> {
      }
      alias user = User< {┆
                          | [age]
                          | [name]
      
    • #4020 Add support for encoding numeric types as string

    • #4023 Warn when using \ in config file field that expect a path.

    • #3932 Add ArrayEncoding enum to define simple serialization of arrays

    Breaking Changes

    • #4050 Fix issue where naming a namespace with the same name as the blockless namespace would merge with it instead of creating a subnamespace like any other name would.

      namespace MyOrg.MyProject;

      namespace MyOrg.MyProject.MyArea {
      model A {}
      }

      namespace MyArea2 {
      model B {}
      }

      Previously model A would end-up in namespace MyOrg.MyProject.MyArea and model B in MyOrg.MyProject.MyArea2. With this change model A will now be in MyOrg.MyProject.MyOrg.MyProject.MyArea. To achieve the previous behavior the above code should be written as:

      namespace MyOrg.MyProject;

      namespace MyArea {
      model A {}
      }

      namespace MyArea2 {
      model B {}
      }

    @ typespec/http

    Bug Fixes

    • #3909 Fix HttpPart not respecting explicit part name by always using the property name
    • #3933 Fix some diagnostic not showing the right message

    Bump dependencies

    • #3948 Update dependencies

    Features

    • #4046 API: Expose properties: HttpProperty[] on operation parameter and response which reference all the properties of interest(Body, statusCode, contentType, implicitBodyProperty, etc.)

    • #3932 @ route can now take a uri template as defined by RFC-6570

      @ route("files{+path}") download(path: string): void;
      

    Deprecations

    • #3932 API deprecation: HttpOperation#pathSegments is deprecated. Use HttpOperation#uriTemplate instead.

    • #3932 Deprecated @ query({format: }) option. Use @ query(#{explode: true}) instead of form or multi format. Previously csv/simple is the default now.
      Decorator is also expecting an object value now instead of a model. A deprecation warning with a codefix will help migrating.

      - @ query({format: "form"}) select: string[];
      + @ query(#{explode: true}) select: string[];

    @ typespec/versioning

    Bug Fixes

    • #3911 Allow spreading a model that has props added in previous version
    • #3951 Fixes issue where spreading a versioned model as a parameter to an incompatible versioned operation would cause the compiler to crash.

    Bump dependencies

    • #3948 Update dependencies

    @ typespec/rest

    Bump dependencies

    • #3948 Update dependencies

    Features

    • #3932 Add support for URI templates in routes

    @ typespec/openapi

    Bump dependencies

    • #3948 Update dependencies

    @ typespec/openapi3

    Bug Fixes

    • #4046 Fix issue where operation example would produce an empty object when @ body/@ bodyRoot was used
    • #4046 Fix operation response body examples showing up for each response.
    • #3912 Fixes bug where union documentation was being applied to each union member in emitted output.
    • #3908 Fixes bug where circular references in unions caused an empty object to be emitted instead of a ref.

    Bump dependencies

    • #3948 Update dependencies

    Features

    • #3894 Add support for @ useRef on responses
    • #4020 Add support for encoding numeric types as string
    • #3890 @ extension used on the service namespace will set extension at the root of the document
    • #3932 Add support for URI templates in routes

    @ typespec/protobuf

    Bug Fixes

    • #3933 Fix some diagnostic not showing the right message

    Bump dependencies

    • #3948 Update dependencies

    @ typespec/prettier-plugin-typespec

    Bump dependencies

    • #3948 Update dependencies

    @ typespec/eslint-plugin

    Bump dependencies

    • #3948 Update dependencies

    @ typespec/html-program-viewer

    Bump dependencies

    • #3948 Update dependencies

    @ typespec/json-schema

    Bump dependencies

    • #3948 Update dependencies

    Breaking Changes

    • #3558 Updates @ extension decorator to support TypeSpec values in addition to types.

    In previous versions of the json-schema emitter, the @ extension decorator only accepted types as the value. These are emitted as JSON schemas. In order to add extensions as raw values, types had to be wrapped in the Json<> template when being passed to the @ extension decorator.

    This change allows setting TypeSpec values (introduced in TypeSpec 0.57.0) directly instead.

    The following example demonstrates using values directly:

    @ extension("x-example", #{ foo: "bar" })
    model Foo {}
    

    This change results in scalars being treated as values instead of types. This will result in the @ extension decorator emitting raw values for scalar types instead of JSON schema. To preserve the previous behavior, use typeof when passing in a scalar value.

    The following example demonstrates how to pass a scalar value that emits a JSON schema:

    @ extension("x-example", "foo")
    model Foo {}
    

    To preserve this same behavior, the above example can be updated to the following:

    @ extension("x-example", typeof "foo")
    model Foo {}
    

    @ typespec/internal-build-utils

    Bump dependencies

    • #3948 Update dependencies

    typespec-vs

    Bug Fixes

    • #4115 Fixed a router bug where paths would sometimes fail to match after a parameter was bound.

    typespec-vscode

    Bump dependencies

    • #3948 Update dependencies

    @ typespec/library-linter

    Bump dependencies

    • #3948 Update dependencies
  • 0.59.0-dev.14 - 2024-08-06
  • 0.59.0-dev.13 - 2024-08-05
  • 0.59.0-dev.12 - 2024-08-05
  • 0.59.0-dev.10 - 2024-08-05
  • 0.59.0-dev.9 - 2024-07-30
  • 0.59.0-dev.8 - 2024-07-30
  • 0.59.0-dev.7 - 2024-07-24
  • 0.59.0-dev.6 - 2024-07-23
  • 0.59.0-dev.5 - 2024-07-22
  • 0.59.0-dev.4 - 2024-07-19
  • 0.59.0-dev.2 - 2024-07-18
  • 0.59.0-dev.1 - 2024-07-17
  • 0.59.0-dev.0 - 2024-07-17
  • 0.58.1 - 2024-07-17
  • 0.58.0 - 2024-07-17
  • 0.58.0-dev.18 - 2024-07-16
  • 0.58.0-dev.17 - 2024-07-16
  • 0.58.0-dev.16 - 2024-07-16
  • 0.58.0-dev.15 - 2024-07-12
  • 0.58.0-dev.14 - 2024-07-11
  • 0.58.0-dev.13 - 2024-07-11
  • 0.58.0-dev.12 - 2024-07-10
  • 0.58.0-dev.11 - 2024-07-10
  • 0.58.0-dev.10 - 2024-07-10
  • 0.58.0-dev.9 - 2024-07-08
  • 0.58.0-dev.8 - 2024-07-08
  • 0.58.0-dev.3 - 2024-07-01
  • 0.58.0-dev.2 - 2024-06-25
  • 0.58.0-dev.1 - 2024-06-14
  • 0.58.0-dev.0 - 2024-06-13
  • 0.57.0 - 2024-06-13
  • 0.57.0-dev.28 - 2024-06-13
  • 0.57.0-dev.27 - 2024-06-12
  • 0.57.0-dev.26 - 2024-06-11
  • 0.57.0-dev.25 - 2024-06-11
  • 0.57.0-dev.24 - 2024-06-11
  • 0.57.0-dev.23 - 2024-06-11
  • 0.57.0-dev.22 - 2024-06-11
  • 0.57.0-dev.21 - 2024-06-11
  • 0.57.0-dev.20 - 2024-06-11
  • 0.57.0-dev.19 - 2024-06-10
  • 0.57.0-dev.18 - 2024-06-05
  • 0.57.0-dev.17 - 2024-06-04
  • 0.57.0-dev.16 - 2024-06-03
  • 0.57.0-dev.15 - 2024-05-29
  • 0.57.0-dev.13 - 2024-05-20
  • 0.57.0-dev.10 - 2024-05-17
  • 0.57.0-dev.8 - 2024-05-16
  • 0.57.0-dev.7 - 2024-05-16
  • 0.57.0-dev.6 - 2024-05-10
  • 0.57.0-dev.5 - 2024-05-09
  • 0.57.0-dev.4 - 2024-05-08
  • 0.57.0-dev.0 - 2024-05-08
  • 0.56.0 - 2024-05-08
  • 0.56.0-dev.25 - 2024-05-06
  • 0.56.0-dev.23 - 2024-04-29
  • 0.56.0-dev.22 - 2024-04-26
  • 0.56.0-dev.21 - 2024-04-26
  • 0.56.0-dev.20 - 2024-04-26
  • 0.56.0-dev.19 - 2024-04-24
  • 0.56.0-dev.18 - 2024-04-23
  • 0.56.0-dev.17 - 2024-04-23
  • 0.56.0-dev.16 - 2024-04-23
  • 0.56.0-dev.15 - 2024-04-23
  • 0.56.0-dev.14 - 2024-04-23
  • 0.56.0-dev.13 - 2024-04-18
  • 0.56.0-dev.12 - 2024-04-18
  • 0.56.0-dev.11 - 2024-04-16
  • 0.56.0-dev.10 - 2024-04-15
  • 0.56.0-dev.9 - 2024-04-15
  • 0.56.0-dev.8 - 2024-04-13
  • 0.56.0-dev.7 - 2024-04-12
  • 0.56.0-dev.6 - 2024-04-12
  • 0.56.0-dev.5 - 2024-04-11
  • 0.56.0-dev.4 - 2024-04-09
  • 0.56.0-dev.3 - 2024-04-09
  • 0.56.0-dev.2 - 2024-04-09
  • 0.56.0-dev.1 - 2024-04-04
  • 0.56.0-dev.0 - 2024-04-02
  • 0.55.0 - 2024-04-02
  • 0.55.0-dev.11 - 2024-03-28
  • 0.55.0-dev.10 - 2024-03-27
  • 0.55.0-dev.9 - 2024-03-27
  • 0.55.0-dev.8 - 2024-03-22
  • 0.55.0-dev.7 - 2024-03-22
  • 0.55.0-dev.6 - 2024-03-19
  • 0.55.0-dev.5 - 2024-03-18
  • 0.55.0-dev.4 - 2024-03-13
  • 0.55.0-dev.3 - 2024-03-12
  • 0.55.0-dev.2 - 2024-03-12
  • 0.55.0-dev.1 - 2024-03-06
  • 0.55.0-dev.0 - 2024-03-05
  • 0.54.0 - 2024-03-05
  • 0.54.0-dev.24 - 2024-03-05
  • 0.54.0-dev.23 - 2024-03-04
  • 0.54.0-dev.22 - 2024-03-04
  • 0.54.0-dev.21 - 2024-03-01
  • 0.54.0-dev.20 - 2024-03-01
  • 0.54.0-dev.18 - 2024-02-29
  • 0.54.0-dev.17 - 2024-02-28
  • 0.54.0-dev.16 - 2024-02-28
  • 0.54.0-dev.15 - 2024-02-28
  • 0.54.0-dev.14 - 2024-02-27
  • 0.54.0-dev.13 - 2024-02-23
  • 0.54.0-dev.12 - 2024-02-20
  • 0.54.0-dev.10 - 2024-02-20
  • 0.54.0-dev.9 - 2024-02-20
  • 0.54.0-dev.8 - 2024-02-20
  • 0.54.0-dev.7 - 2024-02-17
  • 0.54.0-dev.6 - 2024-02-15
  • 0.54.0-dev.2 - 2024-02-09
  • 0.54.0-dev.1 - 2024-02-08
  • 0.54.0-dev.0 - 2024-02-07
  • 0.53.1 - 2024-02-08
  • 0.53.0 - 2024-02-07
  • 0.53.0-dev.4 - 2024-02-06
  • 0.53.0-dev.3 - 2024-02-05
  • 0.53.0-dev.2 - 2024-02-05
  • 0.53.0-dev.1 - 2024-02-02
  • 0.53.0-dev.0 - 2024-01-24
  • 0.52.0 - 2024-01-24
  • 0.52.0-dev.18 - 2024-01-22
  • 0.52.0-dev.17 - 2024-01-19
  • 0.52.0-dev.16 - 2024-01-18
  • 0.52.0-dev.15 - 2024-01-17
  • 0.52.0-dev.14 - 2024-01-12
  • 0.52.0-dev.13 - 2024-01-04
  • 0.52.0-dev.12 - 2024-01-04
  • 0.52.0-dev.11 - 2024-01-04
  • 0.52.0-dev.10 - 2024-01-02
  • 0.52.0-dev.9 - 2023-12-23
  • 0.52.0-dev.7 - 2023-12-21
  • 0.52.0-dev.6 - 2023-12-20
  • 0.52.0-dev.5 - 2023-12-20
  • 0.52.0-dev.3 - 2023-12-18
  • 0.52.0-dev.2 - 2023-12-18
  • 0.52.0-dev.1 - 2023-12-13
  • 0.52.0-dev.0 - 2023-12-06
  • 0.51.0 - 2023-12-06
  • 0.51.0-dev.12 - 2023-12-05
  • 0.51.0-dev.11 - 2023-12-01
  • 0.51.0-dev.10 - 2023-12-01
  • 0.51.0-dev.9 - 2023-11-28
  • 0.51.0-dev.8 - 2023-11-28
  • 0.51.0-dev.7 - 2023-11-21
  • 0.51.0-dev.6 - 2023-11-21
  • 0.51.0-dev.5 - 2023-11-21
  • 0.51.0-dev.4 - 2023-11-17
  • 0.51.0-dev.3 - 2023-11-16
  • 0.51.0-dev.2 - 2023-11-15
  • 0.51.0-dev.1 - 2023-11-14
  • 0.51.0-dev.0 - 2023-11-08
  • 0.50.0 - 2023-11-08
  • 0.50.0-dev.19 - 2023-11-07
  • 0.50.0-dev.18 - 2023-11-06
  • 0.50.0-dev.17 - 2023-11-06
  • 0.50.0-dev.16 - 2023-11-06
  • 0.50.0-dev.15 - 2023-11-02
  • 0.50.0-dev.14 - 2023-11-01
  • 0.50.0-dev.12 - 2023-10-31
  • 0.50.0-dev.11 - 2023-10-30
  • 0.50.0-dev.10 - 2023-10-30
  • 0.50.0-dev.9 - 2023-10-26
  • 0.50.0-dev.8 - 2023-10-20
  • 0.50.0-dev.7 - 2023-10-19
  • 0.50.0-dev.6 - 2023-10-19
  • 0.50.0-dev.5 - 2023-10-19
  • 0.50.0-dev.4 - 2023-10-18
  • 0.50.0-dev.3 - 2023-10-18
  • 0.50.0-dev.2 - 2023-10-13
  • 0.50.0-dev.1 - 2023-10-13
  • 0.50.0-dev.0 - 2023-10-12
  • 0.49.0 - 2023-10-12
  • 0.49.0-dev.26 - 2023-10-10
  • 0.49.0-dev.25 - 2023-10-10
  • 0.49.0-dev.24 - 2023-10-04
  • 0.49.0-dev.23 - 2023-10-03
  • 0.49.0-dev.22 - 2023-10-03
  • 0.49.0-dev.21 - 2023-10-02
  • 0.49.0-dev.20 - 2023-09-29
  • 0.49.0-dev.19 - 2023-09-29
  • 0.49.0-dev.18 - 2023-09-28
  • 0.49.0-dev.16 - 2023-09-26
  • 0.49.0-dev.15 - 2023-09-25
  • 0.49.0-dev.14 - 2023-09-25
  • 0.49.0-dev.13 - 2023-09-25
  • 0.49.0-dev.12 - 2023-09-25
  • 0.49.0-dev.11 - 2023-09-21
  • 0.49.0-dev.10 - 2023-09-20
  • 0.49.0-dev.8 - 2023-09-20
  • 0.49.0-dev.7 - 2023-09-19
  • 0.49.0-dev.5 - 2023-09-19
  • 0.49.0-dev.4 - 2023-09-15
  • 0.49.0-dev.3 - 2023-09-14
  • 0.49.0-dev.2 - 2023-09-13
  • 0.49.0-dev.1 - 2023-09-13
  • 0.49.0-dev.0 - 2023-09-13
  • 0.48.1 - 2023-09-19
  • 0.48.0 - 2023-09-13
  • 0.48.0-dev.18 - 2023-09-12
  • 0.48.0-dev.17 - 2023-09-11
  • 0.48.0-dev.16 - 2023-09-08
  • 0.48.0-dev.14 - 2023-09-07
  • 0.48.0-dev.13 - 2023-09-06
  • 0.48.0-dev.12 - 2023-09-06
  • 0.48.0-dev.11 - 2023-09-06
  • 0.48.0-dev.9 - 2023-08-24
  • 0.48.0-dev.8 - 2023-08-21
  • 0.48.0-dev.7 - 2023-08-19
  • 0.48.0-dev.6 - 2023-08-19
  • 0.48.0-dev.5 - 2023-08-18
  • 0.48.0-dev.4 - 2023-08-18
  • 0.48.0-dev.3 - 2023-08-17
  • 0.48.0-dev.2 - 2023-08-17
  • 0.48.0-dev.1 - 2023-08-10
  • 0.48.0-dev.0 - 2023-08-08
  • 0.47.1 - 2023-08-10
from @typespec/compiler GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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:

Snyk has created this PR to upgrade @typespec/compiler from 0.47.1 to 0.59.0.

See this package in npm:
@typespec/compiler

See this project in Snyk:
https://app.snyk.io/org/sylvainsf/project/1c6d6805-012f-4872-824f-6444fde9c055?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

Unit Tests

3 299 tests  ±0   3 293 ✅ ±0   3m 58s ⏱️ -2s
  263 suites ±0       6 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 234bb0b. ± Comparison against base commit a58b8cb.

Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.05%. Comparing base (a58b8cb) to head (234bb0b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7861      +/-   ##
==========================================
- Coverage   61.05%   61.05%   -0.01%     
==========================================
  Files         523      523              
  Lines       27466    27466              
==========================================
- Hits        16770    16768       -2     
- Misses       9211     9212       +1     
- Partials     1485     1486       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants