Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Bump esbuild from 0.14.31 to 0.14.47 - #76

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/esbuild-0.14.47
Closed

Bump esbuild from 0.14.31 to 0.14.47#76
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/esbuild-0.14.47

Conversation

@dependabot

@dependabotdependabotBot commented on behalf of githubJun 27, 2022

Copy link
Copy Markdown
Contributor

Bumps esbuild from 0.14.31 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 codeexports.foo=123// Old output (with --format=iife --global-name=foo.bar.baz --minify)varfoo=foo||{};foo.bar=foo.bar||{};foo.bar.baz=(()=>{varb=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);varc=b(f=>{f.foo=123});returnc();})();// New output (with --format=iife --global-name=foo.bar.baz --minify)varfoo;((foo||={}).bar||={}).baz=(()=>{varb=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);varc=b(f=>{f.foo=123});returnc();})();

  • 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 codex.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 codefunctionfoo(obj){letfn=obj.prop;fn();}// Old output (with --minify)functionfoo(f){f.prop()}// New output (with --minify)functionfoo(o){letf=o.prop;f()}

... (truncated)

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 codeexports.foo=123// Old output (with --format=iife --global-name=foo.bar.baz --minify)varfoo=foo||{};foo.bar=foo.bar||{};foo.bar.baz=(()=>{varb=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);varc=b(f=>{f.foo=123});returnc();})();// New output (with --format=iife --global-name=foo.bar.baz --minify)varfoo;((foo||={}).bar||={}).baz=(()=>{varb=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);varc=b(f=>{f.foo=123});returnc();})();

  • 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 codex.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 codefunctionfoo(obj){letfn=obj.prop;fn();}// Old output (with --minify)functionfoo(f){f.prop()}// New output (with --minify)functionfoo(o){letf=o.prop;f()}

... (truncated)

Commits

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.31 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.31...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>
@dependabotdependabotBot added the dependencies Pull requests that update a dependency file label Jun 27, 2022
@dependabot@github

dependabotBot commented on behalf of githubJul 4, 2022

Copy link
Copy Markdown
ContributorAuthor

Superseded by #77.

@dependabotdependabotBot closed this Jul 4, 2022
@dependabot
dependabotBot deleted the dependabot/npm_and_yarn/esbuild-0.14.47 branch July 4, 2022 04:41
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependenciesPull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants