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

chore(deps-dev): Bump esbuild from 0.17.19 to 0.18.2 #1083

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 14, 2023

Bumps esbuild from 0.17.19 to 0.18.2.

Release notes

Sourced from esbuild's releases.

v0.18.2

  • Lower static blocks when static fields are lowered (#2800, #2950, #3025)

    This release fixes a bug where esbuild incorrectly did not lower static class blocks when static class fields needed to be lowered. For example, the following code should print 1 2 3 but previously printed 2 1 3 instead due to this bug:

    // Original code
    class Foo {
      static x = console.log(1)
      static { console.log(2) }
      static y = console.log(3)
    }
    // Old output (with --supported:class-static-field=false)
    class Foo {
    static {
    console.log(2);
    }
    }
    __publicField(Foo, "x", console.log(1));
    __publicField(Foo, "y", console.log(3));
    // New output (with --supported:class-static-field=false)
    class Foo {
    }
    __publicField(Foo, "x", console.log(1));
    console.log(2);
    __publicField(Foo, "y", console.log(3));

  • Use static blocks to implement --keep-names on classes (#2389)

    This change fixes a bug where the name property could previously be incorrect within a class static context when using --keep-names. The problem was that the name property was being initialized after static blocks were run instead of before. This has been fixed by moving the name property initializer into a static block at the top of the class body:

    // Original code
    if (typeof Foo === 'undefined') {
      let Foo = class {
        static test = this.name
      }
      console.log(Foo.test)
    }
    // Old output (with --keep-names)
    if (typeof Foo === "undefined") {
    let Foo2 = /* @PURE */ __name(class {
    static test = this.name;
    }, "Foo");
    console.log(Foo2.test);
    }

... (truncated)

Changelog

Sourced from esbuild's changelog.

0.18.2

  • Lower static blocks when static fields are lowered (#2800, #2950, #3025)

    This release fixes a bug where esbuild incorrectly did not lower static class blocks when static class fields needed to be lowered. For example, the following code should print 1 2 3 but previously printed 2 1 3 instead due to this bug:

    // Original code
    class Foo {
      static x = console.log(1)
      static { console.log(2) }
      static y = console.log(3)
    }
    // Old output (with --supported:class-static-field=false)
    class Foo {
    static {
    console.log(2);
    }
    }
    __publicField(Foo, "x", console.log(1));
    __publicField(Foo, "y", console.log(3));
    // New output (with --supported:class-static-field=false)
    class Foo {
    }
    __publicField(Foo, "x", console.log(1));
    console.log(2);
    __publicField(Foo, "y", console.log(3));

  • Use static blocks to implement --keep-names on classes (#2389)

    This change fixes a bug where the name property could previously be incorrect within a class static context when using --keep-names. The problem was that the name property was being initialized after static blocks were run instead of before. This has been fixed by moving the name property initializer into a static block at the top of the class body:

    // Original code
    if (typeof Foo === 'undefined') {
      let Foo = class {
        static test = this.name
      }
      console.log(Foo.test)
    }
    // Old output (with --keep-names)
    if (typeof Foo === "undefined") {
    let Foo2 = /* @PURE */ __name(class {
    static test = this.name;
    }, "Foo");
    console.log(Foo2.test);

... (truncated)

Commits
  • a7a9096 publish 0.18.2 to npm
  • d5b317a fix #2389: use a static block for --keep-names
  • fb38ef6 inline static blocks that are all expressions
  • 8bdc589 use X instead of in expected logs on windows
  • b76b433 ignore uglify failure about default arugment tdz
  • 70e59c3 run more class lowering tests with bundling on
  • c12cc90 fix #2800, fix #2950, fix #3025: static blocks
  • a1a1e44 auto-annotate pure iife expressions
  • 3aa3ec2 publish 0.18.1 to npm
  • 394941b #3149: @__NO_SIDE_EFFECTS__ on async functions
  • 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.17.19 to 0.18.2.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.17.19...v0.18.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 14, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 15, 2023

Superseded by #1085.

@dependabot dependabot bot closed this Jun 15, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/esbuild-0.18.2 branch June 15, 2023 22:18
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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants