chore(deps): update dependency esbuild to v0.13.13 #964

Merged
konrad merged 1 commits from renovate/esbuild-0.x into main 2021-11-09 22:50:55 +00:00
Member

This PR contains the following updates:

Package Type Update Change
esbuild devDependencies patch 0.13.12 -> 0.13.13

Release Notes

evanw/esbuild

v0.13.13

Compare Source

  • Add more information about skipping "main" in package.json (#​1754)

    Configuring mainFields: [] breaks most npm packages since it tells esbuild to ignore the "main" field in package.json, which most npm packages use to specify their entry point. This is not a bug with esbuild because esbuild is just doing what it was told to do. However, people may do this without understanding how npm packages work, and then be confused about why it doesn't work. This release now includes additional information in the error message:

     > foo.js:1:27: error: Could not resolve "events" (use "--platform=node" when building for node)
         1 │ var EventEmitter = require('events')
           ╵                            ~~~~~~~~
       node_modules/events/package.json:20:2: note: The "main" field was ignored because the list of main fields to use is currently set to []
        20 │   "main": "./events.js",
           ╵   ~~~~~~
    
  • Fix a tree-shaking bug with var exports (#​1739)

    This release fixes a bug where a variable named var exports = {} was incorrectly removed by tree-shaking (i.e. dead code elimination). The exports variable is a special variable in CommonJS modules that is automatically provided by the CommonJS runtime. CommonJS modules are transformed into something like this before being run:

    function(exports, module, require) {
      var exports = {}
    }
    

    So using var exports = {} should have the same effect as exports = {} because the variable exports should already be defined. However, esbuild was incorrectly overwriting the definition of the exports variable with the one provided by CommonJS. This release merges the definitions together so both are included, which fixes the bug.

  • Merge adjacent CSS selector rules with duplicate content (#​1755)

    With this release, esbuild will now merge adjacent selectors when minifying if they have the same content:

    /* Original code */
    a { color: red }
    b { color: red }
    
    /* Old output (with --minify) */
    a{color:red}b{color:red}
    
    /* New output (with --minify) */
    a,b{color:red}
    
  • Shorten top, right, bottom, left CSS property into inset when it is supported (#​1758)

    This release enables collapsing of inset related properties:

    /* Original code */
    div {
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }
    
    /* Output with "--minify-syntax" */
    div {
      inset: 0;
    }
    

    This minification rule is only enabled when inset property is supported by the target environment. Make sure to set esbuild's target setting correctly when minifying if the code will be running in an older environment (e.g. earlier than Chrome 87).

    This feature was contributed by @​sapphi-red.


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.13.12` -> `0.13.13`](https://renovatebot.com/diffs/npm/esbuild/0.13.12/0.13.13) | --- ### Release Notes <details> <summary>evanw/esbuild</summary> ### [`v0.13.13`](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md#&#8203;01313) [Compare Source](https://github.com/evanw/esbuild/compare/v0.13.12...v0.13.13) - Add more information about skipping `"main"` in `package.json` ([#&#8203;1754](https://github.com/evanw/esbuild/issues/1754)) Configuring `mainFields: []` breaks most npm packages since it tells esbuild to ignore the `"main"` field in `package.json`, which most npm packages use to specify their entry point. This is not a bug with esbuild because esbuild is just doing what it was told to do. However, people may do this without understanding how npm packages work, and then be confused about why it doesn't work. This release now includes additional information in the error message: > foo.js:1:27: error: Could not resolve "events" (use "--platform=node" when building for node) 1 │ var EventEmitter = require('events') ╵ ~~~~~~~~ node_modules/events/package.json:20:2: note: The "main" field was ignored because the list of main fields to use is currently set to [] 20 │ "main": "./events.js", ╵ ~~~~~~ - Fix a tree-shaking bug with `var exports` ([#&#8203;1739](https://github.com/evanw/esbuild/issues/1739)) This release fixes a bug where a variable named `var exports = {}` was incorrectly removed by tree-shaking (i.e. dead code elimination). The `exports` variable is a special variable in CommonJS modules that is automatically provided by the CommonJS runtime. CommonJS modules are transformed into something like this before being run: ```js function(exports, module, require) { var exports = {} } ``` So using `var exports = {}` should have the same effect as `exports = {}` because the variable `exports` should already be defined. However, esbuild was incorrectly overwriting the definition of the `exports` variable with the one provided by CommonJS. This release merges the definitions together so both are included, which fixes the bug. - Merge adjacent CSS selector rules with duplicate content ([#&#8203;1755](https://github.com/evanw/esbuild/issues/1755)) With this release, esbuild will now merge adjacent selectors when minifying if they have the same content: ```css /* Original code */ a { color: red } b { color: red } /* Old output (with --minify) */ a{color:red}b{color:red} /* New output (with --minify) */ a,b{color:red} ``` - Shorten `top`, `right`, `bottom`, `left` CSS property into `inset` when it is supported ([#&#8203;1758](https://github.com/evanw/esbuild/pull/1758)) This release enables collapsing of `inset` related properties: ```css /* Original code */ div { top: 0; right: 0; bottom: 0; left: 0; } /* Output with "--minify-syntax" */ div { inset: 0; } ``` This minification rule is only enabled when `inset` property is supported by the target environment. Make sure to set esbuild's `target` setting correctly when minifying if the code will be running in an older environment (e.g. earlier than Chrome 87). This feature was contributed by [@&#8203;sapphi-red](https://github.com/sapphi-red). </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-11-09 07:03:17 +00:00
renovate added 1 commit 2021-11-09 07:03:18 +00:00
continuous-integration/drone/pr Build is passing Details
ce1dbebe92
chore(deps): update dependency esbuild to v0.13.13
konrad merged commit f299241a6c into main 2021-11-09 22:50:55 +00:00
konrad deleted branch renovate/esbuild-0.x 2021-11-09 22:50:55 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.