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

Bump esbuild from 0.14.29 to 0.14.31 #638

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 4, 2022

Bumps esbuild from 0.14.29 to 0.14.31.

Release notes

Sourced from esbuild's releases.

v0.14.31

  • Add support for parsing "optional variance annotations" from TypeScript 4.7 (#2102)

    The upcoming version of TypeScript now lets you specify in and/or out on certain type parameters (specifically only on a type alias, an interface declaration, or a class declaration). These modifiers control type paramemter covariance and contravariance:

    type Provider<out T> = () => T;
    type Consumer<in T> = (x: T) => void;
    type Mapper<in T, out U> = (x: T) => U;
    type Processor<in out T> = (x: T) => T;

    With this release, esbuild can now parse these new type parameter modifiers. This feature was contributed by @​magic-akari.

  • Improve support for super() constructor calls in nested locations (#2134)

    In JavaScript, derived classes must call super() somewhere in the constructor method before being able to access this. Class public instance fields, class private instance fields, and TypeScript constructor parameter properties can all potentially cause code which uses this to be inserted into the constructor body, which must be inserted after the super() call. To make these insertions straightforward to implement, the TypeScript compiler doesn't allow calling super() somewhere other than in a root-level statement in the constructor body in these cases.

    Previously esbuild's class transformations only worked correctly when super() was called in a root-level statement in the constructor body, just like the TypeScript compiler. But with this release, esbuild should now generate correct code as long as the call to super() appears anywhere in the constructor body:

    // Original code
    class Foo extends Bar {
      constructor(public skip = false) {
        if (skip) {
          super(null)
          return
        }
        super({ keys: [] })
      }
    }
    // Old output (incorrect)
    class Foo extends Bar {
    constructor(skip = false) {
    if (skip) {
    super(null);
    return;
    }
    super({ keys: [] });
    this.skip = skip;
    }
    }
    // New output (correct)
    class Foo extends Bar {
    constructor(skip = false) {
    var __super = (...args) => {
    super(...args);
    this.skip = skip;

... (truncated)

Changelog

Sourced from esbuild's changelog.

0.14.31

  • Add support for parsing "optional variance annotations" from TypeScript 4.7 (#2102)

    The upcoming version of TypeScript now lets you specify in and/or out on certain type parameters (specifically only on a type alias, an interface declaration, or a class declaration). These modifiers control type paramemter covariance and contravariance:

    type Provider<out T> = () => T;
    type Consumer<in T> = (x: T) => void;
    type Mapper<in T, out U> = (x: T) => U;
    type Processor<in out T> = (x: T) => T;

    With this release, esbuild can now parse these new type parameter modifiers. This feature was contributed by @​magic-akari.

  • Improve support for super() constructor calls in nested locations (#2134)

    In JavaScript, derived classes must call super() somewhere in the constructor method before being able to access this. Class public instance fields, class private instance fields, and TypeScript constructor parameter properties can all potentially cause code which uses this to be inserted into the constructor body, which must be inserted after the super() call. To make these insertions straightforward to implement, the TypeScript compiler doesn't allow calling super() somewhere other than in a root-level statement in the constructor body in these cases.

    Previously esbuild's class transformations only worked correctly when super() was called in a root-level statement in the constructor body, just like the TypeScript compiler. But with this release, esbuild should now generate correct code as long as the call to super() appears anywhere in the constructor body:

    // Original code
    class Foo extends Bar {
      constructor(public skip = false) {
        if (skip) {
          super(null)
          return
        }
        super({ keys: [] })
      }
    }
    // Old output (incorrect)
    class Foo extends Bar {
    constructor(skip = false) {
    if (skip) {
    super(null);
    return;
    }
    super({ keys: [] });
    this.skip = skip;
    }
    }
    // New output (correct)
    class Foo extends Bar {
    constructor(skip = false) {
    var __super = (...args) => {
    super(...args);

... (truncated)

Commits
  • c02c99f publish 0.14.31 to npm
  • 4a6f64c feat: add more CSS-wide keywords in font-family (#2135)
  • 6cf0323 feat: support @​container (#2127)
  • e09acfc reuse default name in export default class
  • 494e2dc fix edge case where all class fields are undefined
  • 5447e9d fix #2134: nested super() in class transform
  • 9f0b45f prepare for visitClass to return multiple values
  • e550fae internal: avoid unnecessary call target checks
  • 8351c41 add support of TS Optional variance annotations (#2102)
  • cbe80de update @font-palette-values test to latest spec
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from tclindner as a code owner April 4, 2022 23:01
@dependabot dependabot bot added the dependencies 📦 Pull requests that update a dependency file label Apr 4, 2022
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/esbuild-0.14.31 branch from 0eba283 to 6f2ee78 Compare April 5, 2022 01:22
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.14.29 to 0.14.31.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.14.29...v0.14.31)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/esbuild-0.14.31 branch from 6f2ee78 to c23bf7e Compare April 5, 2022 01:25
@tclindner tclindner merged commit 5de584e into master Apr 5, 2022
@tclindner tclindner deleted the dependabot/npm_and_yarn/esbuild-0.14.31 branch April 5, 2022 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies 📦 Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant