Skip to content

chore(deps-dev): bump esbuild from 0.14.46 to 0.14.47#45

Merged
googlemaps-bot merged 1 commit intomainfrom
dependabot/npm_and_yarn/esbuild-0.14.47
Jun 27, 2022
Merged

chore(deps-dev): bump esbuild from 0.14.46 to 0.14.47#45
googlemaps-bot merged 1 commit intomainfrom
dependabot/npm_and_yarn/esbuild-0.14.47

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 27, 2022

Bumps esbuild from 0.14.46 to 0.14.47.

Release notes

Sourced from esbuild's releases.

v0.14.47

  • Make global names more compact when ||= is available (#2331)

    With this release, the code esbuild generates for the --global-name= setting is now slightly shorter when you don't configure esbuild such that the ||= operator is unsupported (e.g. with --target=chrome80 or --supported:logical-assignment=false):

    // Original code
    exports.foo = 123
    // Old output (with --format=iife --global-name=foo.bar.baz --minify)
    var foo=foo||{};foo.bar=foo.bar||{};foo.bar.baz=(()=>{var b=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var c=b(f=>{f.foo=123});return c();})();
    // New output (with --format=iife --global-name=foo.bar.baz --minify)
    var foo;((foo||={}).bar||={}).baz=(()=>{var b=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var c=b(f=>{f.foo=123});return c();})();

  • Fix --mangle-quoted=false with --minify-syntax=true

    If property mangling is active and --mangle-quoted is disabled, quoted properties are supposed to be preserved. However, there was a case when this didn't happen if --minify-syntax was enabled, since that internally transforms x['y'] into x.y to reduce code size. This issue has been fixed:

    // Original code
    x.foo = x['bar'] = { foo: y, 'bar': z }
    // Old output (with --mangle-props=. --mangle-quoted=false --minify-syntax=true)
    x.a = x.b = { a: y, bar: z };
    // New output (with --mangle-props=. --mangle-quoted=false --minify-syntax=true)
    x.a = x.bar = { a: y, bar: z };

    Notice how the property foo is always used unquoted but the property bar is always used quoted, so foo should be consistently mangled while bar should be consistently not mangled.

  • Fix a minification bug regarding this and property initializers

    When minification is enabled, esbuild attempts to inline the initializers of variables that have only been used once into the start of the following expression to reduce code size. However, there was a bug where this transformation could change the value of this when the initializer is a property access and the start of the following expression is a call expression. This release fixes the bug:

    // Original code
    function foo(obj) {
      let fn = obj.prop;
      fn();
    }
    // Old output (with --minify)
    function foo(f){f.prop()}
    // New output (with --minify)
    function foo(o){let f=o.prop;f()}

Changelog

Sourced from esbuild's changelog.

0.14.47

  • Make global names more compact when ||= is available (#2331)

    With this release, the code esbuild generates for the --global-name= setting is now slightly shorter when you don't configure esbuild such that the ||= operator is unsupported (e.g. with --target=chrome80 or --supported:logical-assignment=false):

    // Original code
    exports.foo = 123
    // Old output (with --format=iife --global-name=foo.bar.baz --minify)
    var foo=foo||{};foo.bar=foo.bar||{};foo.bar.baz=(()=>{var b=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var c=b(f=>{f.foo=123});return c();})();
    // New output (with --format=iife --global-name=foo.bar.baz --minify)
    var foo;((foo||={}).bar||={}).baz=(()=>{var b=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var c=b(f=>{f.foo=123});return c();})();

  • Fix --mangle-quoted=false with --minify-syntax=true

    If property mangling is active and --mangle-quoted is disabled, quoted properties are supposed to be preserved. However, there was a case when this didn't happen if --minify-syntax was enabled, since that internally transforms x['y'] into x.y to reduce code size. This issue has been fixed:

    // Original code
    x.foo = x['bar'] = { foo: y, 'bar': z }
    // Old output (with --mangle-props=. --mangle-quoted=false --minify-syntax=true)
    x.a = x.b = { a: y, bar: z };
    // New output (with --mangle-props=. --mangle-quoted=false --minify-syntax=true)
    x.a = x.bar = { a: y, bar: z };

    Notice how the property foo is always used unquoted but the property bar is always used quoted, so foo should be consistently mangled while bar should be consistently not mangled.

  • Fix a minification bug regarding this and property initializers

    When minification is enabled, esbuild attempts to inline the initializers of variables that have only been used once into the start of the following expression to reduce code size. However, there was a bug where this transformation could change the value of this when the initializer is a property access and the start of the following expression is a call expression. This release fixes the bug:

    // Original code
    function foo(obj) {
      let fn = obj.prop;
      fn();
    }
    // Old output (with --minify)
    function foo(f){f.prop()}
    // New output (with --minify)
    function foo(o){let f=o.prop;f()}

... (truncated)

Commits
  • 20f4b45 publish 0.14.47 to npm
  • f3c6248 fix minify bug with variable inlining and this
  • 1dd274d fix --mangle-quoted=false with --minify-syntax
  • f808dab fix #2331: use ||= to make global names shorter
  • See full diff 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.14.46 to 0.14.47.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.14.46...v0.14.47)

---
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 added the dependencies Pull requests that update a dependency file label Jun 27, 2022
@googlemaps-bot googlemaps-bot enabled auto-merge (squash) June 27, 2022 13:35
@googlemaps-bot googlemaps-bot merged commit 116e2e7 into main Jun 27, 2022
@googlemaps-bot googlemaps-bot deleted the dependabot/npm_and_yarn/esbuild-0.14.47 branch June 27, 2022 13:35
googlemaps-bot pushed a commit that referenced this pull request Jul 25, 2022
### [1.0.12](v1.0.11...v1.0.12) (2022-07-25)

### Miscellaneous Chores

* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#40](#40)) ([cd6a6cb](cd6a6cb))
* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#44](#44)) ([5aa4ffb](5aa4ffb))
* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#47](#47)) ([1b197f6](1b197f6))
* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#53](#53)) ([5582be0](5582be0))
* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#56](#56)) ([a04fdcf](a04fdcf))
* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#61](#61)) ([2ca96f1](2ca96f1))
* **deps-dev:** bump @typescript-eslint/parser from 5.27.1 to 5.28.0 ([#39](#39)) ([8ea9b9d](8ea9b9d))
* **deps-dev:** bump @typescript-eslint/parser from 5.28.0 to 5.30.4 ([#48](#48)) ([313eacf](313eacf))
* **deps-dev:** bump @typescript-eslint/parser from 5.30.4 to 5.30.5 ([#52](#52)) ([ce59d56](ce59d56))
* **deps-dev:** bump @typescript-eslint/parser from 5.30.5 to 5.30.7 ([#63](#63)) ([963520a](963520a))
* **deps-dev:** bump esbuild from 0.14.43 to 0.14.46 ([#36](#36)) ([0835f3c](0835f3c))
* **deps-dev:** bump esbuild from 0.14.46 to 0.14.47 ([#45](#45)) ([116e2e7](116e2e7))
* **deps-dev:** bump esbuild from 0.14.47 to 0.14.49 ([#51](#51)) ([8a7aa34](8a7aa34))
* **deps-dev:** bump esbuild from 0.14.49 to 0.14.50 ([#62](#62)) ([d5d4610](d5d4610))
* **deps-dev:** bump eslint from 8.17.0 to 8.18.0 ([#38](#38)) ([57e48e8](57e48e8))
* **deps-dev:** bump eslint from 8.18.0 to 8.19.0 ([#55](#55)) ([672f66c](672f66c))
* **deps-dev:** bump eslint from 8.19.0 to 8.20.0 ([#58](#58)) ([464bc9f](464bc9f))
* **deps-dev:** bump eslint-plugin-jest from 26.5.3 to 26.6.0 ([#60](#60)) ([19d8ed6](19d8ed6))
* **deps-dev:** bump eslint-plugin-prettier from 4.0.0 to 4.1.0 ([#42](#42)) ([cf6628e](cf6628e))
* **deps-dev:** bump eslint-plugin-prettier from 4.1.0 to 4.2.1 ([#49](#49)) ([9534fa3](9534fa3))
* **deps-dev:** bump jest from 28.1.1 to 28.1.2 ([#46](#46)) ([84a2f6f](84a2f6f))
* **deps-dev:** bump jest from 28.1.2 to 28.1.3 ([#59](#59)) ([1e0bec8](1e0bec8))
* **deps-dev:** bump typescript from 4.7.3 to 4.7.4 ([#37](#37)) ([d890065](d890065))
* **deps:** bump commander from 9.3.0 to 9.4.0 ([#57](#57)) ([b494cde](b494cde))
* **deps:** bump directory-schema-validator from 1.0.12 to 1.0.13 ([#43](#43)) ([e536711](e536711))
* **deps:** bump glob from 7.2.0 to 8.0.3 ([#18](#18)) ([21ea618](21ea618))
* **deps:** bump ora from 6.1.0 to 6.1.2 ([#54](#54)) ([0c237b1](0c237b1))
* **deps:** bump prettier from 2.6.2 to 2.7.1 ([#41](#41)) ([94ce708](94ce708))
* **deps:** bump probot from 12.2.4 to 12.2.5 ([#50](#50)) ([2cae11d](2cae11d))
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.

2 participants