chore(deps): update dependency esbuild to v0.14.6 #1218

Merged
konrad merged 1 commits from renovate/esbuild-0.x into main 2021-12-20 07:14:25 +00:00
Member

This PR contains the following updates:

Package Type Update Change
esbuild devDependencies patch 0.14.5 -> 0.14.6

Release Notes

evanw/esbuild

v0.14.6

Compare Source

  • Fix a minifier bug with BigInt literals

    Previously expression simplification optimizations in the minifier incorrectly assumed that numeric operators always return numbers. This used to be true but has no longer been true since the introduction of BigInt literals in ES2020. Now numeric operators can return either a number or a BigInt depending on the arguments. This oversight could potentially have resulted in behavior changes. For example, this code printed false before being minified and true after being minified because esbuild shortened === to == under the false assumption that both operands were numbers:

    var x = 0;
    console.log((x ? 2 : -1n) === -1);
    

    The type checking logic has been rewritten to take into account BigInt literals in this release, so this incorrect simplification is no longer applied.

  • Enable removal of certain unused template literals (#​1853)

    This release contains improvements to the minification of unused template literals containing primitive values:

    // Original code
    `${1}${2}${3}`;
    `${x ? 1 : 2}${y}`;
    
    // Old output (with --minify)
    ""+1+2+3,""+(x?1:2)+y;
    
    // New output (with --minify)
    x,`${y}`;
    

    This can arise when the template literals are nested inside of another function call that was determined to be unnecessary such as an unused call to a function marked with the /* @​__PURE__ */ pragma.

    This release also fixes a bug with this transformation where minifying the unused expression `foo ${bar}` into "" + bar changed the meaning of the expression. Template string interpolation always calls toString while string addition may call valueOf instead. This unused expression is now minified to `${bar}`, which is slightly longer but which avoids the behavior change.

  • Allow keyof/readonly/infer in TypeScript index signatures (#​1859)

    This release fixes a bug that prevented these keywords from being used as names in index signatures. The following TypeScript code was previously rejected, but is now accepted:

    interface Foo {
      [keyof: string]: number
    }
    

    This fix was contributed by @​magic-akari.

  • Avoid warning about import.meta if it's replaced (#​1868)

    It's possible to replace the import.meta expression using the --define: feature. Previously doing that still warned that the import.meta syntax was not supported when targeting ES5. With this release, there will no longer be a warning in this case.


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [esbuild](https://github.com/evanw/esbuild) | devDependencies | patch | [`0.14.5` -> `0.14.6`](https://renovatebot.com/diffs/npm/esbuild/0.14.5/0.14.6) | --- ### Release Notes <details> <summary>evanw/esbuild</summary> ### [`v0.14.6`](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md#&#8203;0146) [Compare Source](https://github.com/evanw/esbuild/compare/v0.14.5...v0.14.6) - Fix a minifier bug with BigInt literals Previously expression simplification optimizations in the minifier incorrectly assumed that numeric operators always return numbers. This used to be true but has no longer been true since the introduction of BigInt literals in ES2020. Now numeric operators can return either a number or a BigInt depending on the arguments. This oversight could potentially have resulted in behavior changes. For example, this code printed `false` before being minified and `true` after being minified because esbuild shortened `===` to `==` under the false assumption that both operands were numbers: ```js var x = 0; console.log((x ? 2 : -1n) === -1); ``` The type checking logic has been rewritten to take into account BigInt literals in this release, so this incorrect simplification is no longer applied. - Enable removal of certain unused template literals ([#&#8203;1853](https://github.com/evanw/esbuild/issues/1853)) This release contains improvements to the minification of unused template literals containing primitive values: ```js // Original code `${1}${2}${3}`; `${x ? 1 : 2}${y}`; // Old output (with --minify) ""+1+2+3,""+(x?1:2)+y; // New output (with --minify) x,`${y}`; ``` This can arise when the template literals are nested inside of another function call that was determined to be unnecessary such as an unused call to a function marked with the `/* @&#8203;__PURE__ */` pragma. This release also fixes a bug with this transformation where minifying the unused expression `` `foo ${bar}` `` into `"" + bar` changed the meaning of the expression. Template string interpolation always calls `toString` while string addition may call `valueOf` instead. This unused expression is now minified to `` `${bar}` ``, which is slightly longer but which avoids the behavior change. - Allow `keyof`/`readonly`/`infer` in TypeScript index signatures ([#&#8203;1859](https://github.com/evanw/esbuild/pull/1859)) This release fixes a bug that prevented these keywords from being used as names in index signatures. The following TypeScript code was previously rejected, but is now accepted: ```ts interface Foo { [keyof: string]: number } ``` This fix was contributed by [@&#8203;magic-akari](https://github.com/magic-akari). - Avoid warning about `import.meta` if it's replaced ([#&#8203;1868](https://github.com/evanw/esbuild/issues/1868)) It's possible to replace the `import.meta` expression using the `--define:` feature. Previously doing that still warned that the `import.meta` syntax was not supported when targeting ES5. With this release, there will no longer be a warning in this case. </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
renovate added the
dependencies
label 2021-12-20 07:02:47 +00:00
renovate added 1 commit 2021-12-20 07:02:48 +00:00
continuous-integration/drone/pr Build is passing Details
90a69d61ef
chore(deps): update dependency esbuild to v0.14.6
Member

Hi renovate!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://1218-renovateesbuild-0.x--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi renovate! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://1218-renovateesbuild-0.x--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
konrad merged commit fccb0dcc61 into main 2021-12-20 07:14:25 +00:00
konrad deleted branch renovate/esbuild-0.x 2021-12-20 07:14:25 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.