Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Bump esbuild from 0.12.29 to 0.14.31 #223

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps esbuild from 0.12.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)

Bumps [esbuild](https://github.com/evanw/esbuild) from 0.12.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.12.29...v0.14.31)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 4, 2022
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 6, 2022

Superseded by #224.

@dependabot dependabot bot closed this Apr 6, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/esbuild-0.14.31 branch April 6, 2022 11:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants