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 esbuild from 0.14.37 to 0.14.38 #232

Merged
merged 4 commits into from
May 16, 2022

Conversation

ytetsuro
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade esbuild from 0.14.37 to 0.14.38.

merge advice
ℹ️ 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 1 version ahead of your current version.
  • The recommended version was released 24 days ago, on 2022-04-21.
Release notes
Package name: esbuild
  • 0.14.38 - 2022-04-21
    • Further fixes to TypeScript 4.7 instantiation expression parsing (#2201)

      This release fixes some additional edge cases with parsing instantiation expressions from the upcoming version 4.7 of TypeScript. Previously it was allowed for an instantiation expression to precede a binary operator but with this release, that's no longer allowed. This was sometimes valid in the TypeScript 4.7 beta but is no longer allowed in the latest version of TypeScript 4.7. Fixing this also fixed a regression that was introduced by the previous release of esbuild:

      Code TS 4.6.3 TS 4.7.0 beta TS 4.7.0 nightly esbuild 0.14.36 esbuild 0.14.37 esbuild 0.14.38
      a<b> == c<d> Invalid a == c Invalid a == c a == c Invalid
      a<b> in c<d> Invalid Invalid Invalid Invalid a in c Invalid
      a<b>>=c<d> Invalid Invalid Invalid Invalid a >= c Invalid
      a<b>=c<d> Invalid a < b >= c a = c a < b >= c a = c a = c
      a<b>>c<d> a < b >> c a < b >> c a < b >> c a < b >> c a > c a < b >> c

      This table illustrates some of the more significant changes between all of these parsers. The most important part is that esbuild 0.14.38 now matches the behavior of the latest TypeScript compiler for all of these cases.

  • 0.14.37 - 2022-04-21
    • Add support for TypeScript's moduleSuffixes field from TypeScript 4.7

      The upcoming version of TypeScript adds the moduleSuffixes field to tsconfig.json that introduces more rules to import path resolution. Setting moduleSuffixes to [".ios", ".native", ""] will try to look at the the relative files ./foo.ios.ts, ./foo.native.ts, and finally ./foo.ts for an import path of ./foo. Note that the empty string "" in moduleSuffixes is necessary for TypeScript to also look-up ./foo.ts. This was announced in the TypeScript 4.7 beta blog post.

    • Match the new ASI behavior from TypeScript nightly builds (#2188)

      This release updates esbuild to match some very recent behavior changes in the TypeScript parser regarding automatic semicolon insertion. For more information, see TypeScript issues #48711 and #48654 (I'm not linking to them directly to avoid Dependabot linkback spam on these issues due to esbuild's popularity). The result is that the following TypeScript code is now considered valid TypeScript syntax:

      class A<T> {}
      new A<number> / ASI now happens here */
      if (0) {}

      interface B {
      (a: number): typeof a /* ASI now happens here */
      <T>(): void
      }

      This fix was contributed by @ g-plane.

from esbuild GitHub release notes
Commit messages
Package name: esbuild
  • e7a9572 publish 0.14.38 to npm
  • 1a57168 fix #2201: more ts instantiation expression fixes

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@ytetsuro ytetsuro merged commit 2fe0393 into develop May 16, 2022
@ytetsuro ytetsuro deleted the snyk-upgrade-9843a104b9b4cb4383c57036d01235ac branch May 16, 2022 15:51
@github-actions
Copy link

🎉 This PR is included in version 0.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants