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

Update dependency esbuild to v0.13.9 #195

Merged
merged 1 commit into from Oct 23, 2021
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 23, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild 0.13.8 -> 0.13.9 age adoption passing confidence

Release Notes

evanw/esbuild

v0.13.9

Compare Source

  • Add support for imports in package.json (#​1691)

    This release adds basic support for the imports field in package.json. It behaves similarly to the exports field but only applies to import paths that start with #. The imports field provides a way for a package to remap its own internal imports for itself, while the exports field provides a way for a package to remap its external exports for other packages. This is useful because the imports field respects the currently-configured conditions which means that the import mapping can change at run-time. For example:

    $ cat entry.mjs
    import '#example'
    
    $ cat package.json
    {
      "imports": {
        "#example": {
          "foo": "./example.foo.mjs",
          "default": "./example.mjs"
        }
      }
    }
    
    $ cat example.foo.mjs
    console.log('foo is enabled')
    
    $ cat example.mjs
    console.log('foo is disabled')
    
    $ node entry.mjs
    foo is disabled
    
    $ node --conditions=foo entry.mjs
    foo is enabled
    

    Now that esbuild supports this feature too, import paths starting with # and any provided conditions will be respected when bundling:

    $ esbuild --bundle entry.mjs | node
    foo is disabled
    
    $ esbuild --conditions=foo --bundle entry.mjs | node
    foo is enabled
    
  • Fix using npm rebuild with the esbuild package (#​1703)

    Version 0.13.4 accidentally introduced a regression in the install script where running npm rebuild multiple times could fail after the second time. The install script creates a copy of the binary executable using link followed by rename. Using link creates a hard link which saves space on the file system, and rename is used for safety since it atomically replaces the destination.

    However, the rename syscall has an edge case where it silently fails if the source and destination are both the same link. This meant that the install script would fail after being run twice in a row. With this release, the install script now deletes the source after calling rename in case it has silently failed, so this issue should now be fixed. It should now be safe to use npm rebuild with the esbuild package.

  • Fix invalid CSS minification of border-radius (#​1702)

    CSS minification does collapsing of border-radius related properties. For example:

    /* Original CSS */
    div {
      border-radius: 1px;
      border-top-left-radius: 5px;
    }
    
    /* Minified CSS */
    div{border-radius:5px 1px 1px}

    However, this only works for numeric tokens, not identifiers. For example:

    /* Original CSS */
    div {
      border-radius: 1px;
      border-top-left-radius: inherit;
    }
    
    /* Minified CSS */
    div{border-radius:1px;border-top-left-radius:inherit}

    Transforming this to div{border-radius:inherit 1px 1px}, as was done in previous releases of esbuild, is an invalid transformation and results in incorrect CSS. This release of esbuild fixes this CSS transformation bug.


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, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@maxmilton maxmilton merged commit 270b737 into master Oct 23, 2021
@maxmilton maxmilton deleted the renovate/esbuild-0.x branch October 23, 2021 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants