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

Bump esbuild from 0.16.16 to 0.17.3 #186

Merged
merged 1 commit into from Jan 19, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 19, 2023

Bumps esbuild from 0.16.16 to 0.17.3.

Release notes

Sourced from esbuild's releases.

v0.17.3

  • Fix incorrect CSS minification for certain rules (#2838)

    Certain rules such as @media could previously be minified incorrectly. Due to a typo in the duplicate rule checker, two known @-rules that share the same hash code were incorrectly considered to be equal. This problem was made worse by the rule hashing code considering two unknown declarations (such as CSS variables) to have the same hash code, which also isn't optimal from a performance perspective. Both of these issues have been fixed:

    /* Original input */
    @media (prefers-color-scheme: dark) { body { --VAR-1: [#000](https://github.com/evanw/esbuild/issues/000); } }
    @media (prefers-color-scheme: dark) { body { --VAR-2: [#000](https://github.com/evanw/esbuild/issues/000); } }
    /* Old output (with --minify) */
    @​media (prefers-color-scheme: dark){body{--VAR-2: #000}}
    /* New output (with --minify) */
    @​media (prefers-color-scheme: dark){body{--VAR-1: #000}}@​media (prefers-color-scheme: dark){body{--VAR-2: #000}}

v0.17.2

  • Add onDispose to the plugin API (#2140, #2205)

    If your plugin wants to perform some cleanup after it's no longer going to be used, you can now use the onDispose API to register a callback for cleanup-related tasks. For example, if a plugin starts a long-running child process then it may want to terminate that process when the plugin is discarded. Previously there was no way to do this. Here's an example:

    let examplePlugin = {
      name: 'example',
      setup(build) {
        build.onDispose(() => {
          console.log('This plugin is no longer used')
        })
      },
    }

    These onDispose callbacks will be called after every build() call regardless of whether the build failed or not as well as after the first dispose() call on a given build context.

v0.17.1

  • Make it possible to cancel a build (#2725)

    The context object introduced in version 0.17.0 has a new cancel() method. You can use it to cancel a long-running build so that you can start a new one without needing to wait for the previous one to finish. When this happens, the previous build should always have at least one error and have no output files (i.e. it will be a failed build).

    Using it might look something like this:

    • JS:

      let ctx = await esbuild.context({
        // ...
      })
      let rebuildWithTimeLimit = timeLimit => {

... (truncated)

Changelog

Sourced from esbuild's changelog.

0.17.3

  • Fix incorrect CSS minification for certain rules (#2838)

    Certain rules such as @media could previously be minified incorrectly. Due to a typo in the duplicate rule checker, two known @-rules that share the same hash code were incorrectly considered to be equal. This problem was made worse by the rule hashing code considering two unknown declarations (such as CSS variables) to have the same hash code, which also isn't optimal from a performance perspective. Both of these issues have been fixed:

    /* Original input */
    @media (prefers-color-scheme: dark) { body { --VAR-1: [#000](https://github.com/evanw/esbuild/issues/000); } }
    @media (prefers-color-scheme: dark) { body { --VAR-2: [#000](https://github.com/evanw/esbuild/issues/000); } }
    /* Old output (with --minify) */
    @​media (prefers-color-scheme: dark){body{--VAR-2: #000}}
    /* New output (with --minify) */
    @​media (prefers-color-scheme: dark){body{--VAR-1: #000}}@​media (prefers-color-scheme: dark){body{--VAR-2: #000}}

0.17.2

  • Add onDispose to the plugin API (#2140, #2205)

    If your plugin wants to perform some cleanup after it's no longer going to be used, you can now use the onDispose API to register a callback for cleanup-related tasks. For example, if a plugin starts a long-running child process then it may want to terminate that process when the plugin is discarded. Previously there was no way to do this. Here's an example:

    let examplePlugin = {
      name: 'example',
      setup(build) {
        build.onDispose(() => {
          console.log('This plugin is no longer used')
        })
      },
    }

    These onDispose callbacks will be called after every build() call regardless of whether the build failed or not as well as after the first dispose() call on a given build context.

0.17.1

  • Make it possible to cancel a build (#2725)

    The context object introduced in version 0.17.0 has a new cancel() method. You can use it to cancel a long-running build so that you can start a new one without needing to wait for the previous one to finish. When this happens, the previous build should always have at least one error and have no output files (i.e. it will be a failed build).

    Using it might look something like this:

    • JS:

      let ctx = await esbuild.context({
        // ...

... (truncated)

Commits
  • acc5bec publish 0.17.3 to npm
  • f8c5139 fix #2838: bugs due to typos in the css minifier
  • a6a2f2f reduce hash collisions for css vars
  • a98870a publish 0.17.2 to npm
  • 2163bf6 attempt to work around a ci-only problem
  • 1d9e158 attempt to make cancel + rebuild more robust
  • 7ba9504 rename waitGroup to disposeWaitGroup
  • f0bff33 optimization: skip on-end packet when not needed
  • 345ac51 test coverage for js watch output to stdout
  • a691c04 test coverage for native watch output to stdout
  • Additional commits viewable 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.16.16 to 0.17.3.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.16.16...v0.17.3)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 19, 2023
@junedomingo junedomingo merged commit 536d5d2 into master Jan 19, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/esbuild-0.17.3 branch January 19, 2023 02:21
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.

None yet

1 participant