Bump esbuild from 0.16.14 to 0.17.2 #345

Closed
dependabot[bot] wants to merge 1 commit from dependabot/npm_and_yarn/esbuild-0.17.2 into master
dependabot[bot] commented 2023-01-17 11:04:51 +01:00 (Migrated from github.com)

Bumps esbuild from 0.16.14 to 0.17.2.

Release notes

Sourced from esbuild's releases.

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 => { let timeout = setTimeout(() => ctx.cancel(), timeLimit) return ctx.rebuild().finally(() => clearTimeout(timeout)) }

      let build = await rebuildWithTimeLimit(500)

    • Go:

      ctx, err := api.Context(api.BuildOptions{
        // ...
      })
      if err != nil {
        return
      }
      

... (truncated)

Changelog

Sourced from esbuild's changelog.

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({
        // ...
      })
      

      let rebuildWithTimeLimit = timeLimit => { let timeout = setTimeout(() => ctx.cancel(), timeLimit) return ctx.rebuild().finally(() => clearTimeout(timeout)) }

      let build = await rebuildWithTimeLimit(500)

    • Go:

      ctx, err := api.Context(api.BuildOptions{
        // ...
      })
      if err != nil {
        return
      

... (truncated)

Commits
  • 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
  • a3d3369 semantic change: always run onStart callbacks
  • 8ffa1b7 fix rebuildCancel test flakes
  • 462b286 add timeout for js tests for debugging ci
  • 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.14 to 0.17.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/evanw/esbuild/releases">esbuild's releases</a>.</em></p> <blockquote> <h2>v0.17.2</h2> <ul> <li> <p>Add <code>onDispose</code> to the plugin API (<a href="https://github-redirect.dependabot.com/evanw/esbuild/issues/2140">#2140</a>, <a href="https://github-redirect.dependabot.com/evanw/esbuild/issues/2205">#2205</a>)</p> <p>If your plugin wants to perform some cleanup after it's no longer going to be used, you can now use the <code>onDispose</code> 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:</p> <pre lang="js"><code>let examplePlugin = { name: 'example', setup(build) { build.onDispose(() =&gt; { console.log('This plugin is no longer used') }) }, } </code></pre> <p>These <code>onDispose</code> callbacks will be called after every <code>build()</code> call regardless of whether the build failed or not as well as after the first <code>dispose()</code> call on a given build context.</p> </li> </ul> <h2>v0.17.1</h2> <ul> <li> <p>Make it possible to cancel a build (<a href="https://github-redirect.dependabot.com/evanw/esbuild/issues/2725">#2725</a>)</p> <p>The context object introduced in version 0.17.0 has a new <code>cancel()</code> 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).</p> <p>Using it might look something like this:</p> <ul> <li> <p>JS:</p> <pre lang="js"><code>let ctx = await esbuild.context({ // ... }) <p>let rebuildWithTimeLimit = timeLimit =&gt; { let timeout = setTimeout(() =&gt; ctx.cancel(), timeLimit) return ctx.rebuild().finally(() =&gt; clearTimeout(timeout)) }</p> <p>let build = await rebuildWithTimeLimit(500) </code></pre></p> </li> <li> <p>Go:</p> <pre lang="go"><code>ctx, err := api.Context(api.BuildOptions{ // ... }) if err != nil { return } <p></code></pre></p> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/evanw/esbuild/blob/main/CHANGELOG.md">esbuild's changelog</a>.</em></p> <blockquote> <h2>0.17.2</h2> <ul> <li> <p>Add <code>onDispose</code> to the plugin API (<a href="https://github-redirect.dependabot.com/evanw/esbuild/issues/2140">#2140</a>, <a href="https://github-redirect.dependabot.com/evanw/esbuild/issues/2205">#2205</a>)</p> <p>If your plugin wants to perform some cleanup after it's no longer going to be used, you can now use the <code>onDispose</code> 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:</p> <pre lang="js"><code>let examplePlugin = { name: 'example', setup(build) { build.onDispose(() =&gt; { console.log('This plugin is no longer used') }) }, } </code></pre> <p>These <code>onDispose</code> callbacks will be called after every <code>build()</code> call regardless of whether the build failed or not as well as after the first <code>dispose()</code> call on a given build context.</p> </li> </ul> <h2>0.17.1</h2> <ul> <li> <p>Make it possible to cancel a build (<a href="https://github-redirect.dependabot.com/evanw/esbuild/issues/2725">#2725</a>)</p> <p>The context object introduced in version 0.17.0 has a new <code>cancel()</code> 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).</p> <p>Using it might look something like this:</p> <ul> <li> <p>JS:</p> <pre lang="js"><code>let ctx = await esbuild.context({ // ... }) <p>let rebuildWithTimeLimit = timeLimit =&gt; { let timeout = setTimeout(() =&gt; ctx.cancel(), timeLimit) return ctx.rebuild().finally(() =&gt; clearTimeout(timeout)) }</p> <p>let build = await rebuildWithTimeLimit(500) </code></pre></p> </li> <li> <p>Go:</p> <pre lang="go"><code>ctx, err := api.Context(api.BuildOptions{ // ... }) if err != nil { return </code></pre> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/evanw/esbuild/commit/a98870a2fa9f7af7024be24cb6833e638aa71da3"><code>a98870a</code></a> publish 0.17.2 to npm</li> <li><a href="https://github.com/evanw/esbuild/commit/2163bf61f07e03ee509f93c3ca6ddfc37728e029"><code>2163bf6</code></a> attempt to work around a ci-only problem</li> <li><a href="https://github.com/evanw/esbuild/commit/1d9e1585ef7d05ad6df150f2be62f95096ad8a4f"><code>1d9e158</code></a> attempt to make <code>cancel</code> + <code>rebuild</code> more robust</li> <li><a href="https://github.com/evanw/esbuild/commit/7ba9504785519f125dc0c874d0330731905cdb7a"><code>7ba9504</code></a> rename <code>waitGroup</code> to <code>disposeWaitGroup</code></li> <li><a href="https://github.com/evanw/esbuild/commit/f0bff33d91fb47bab9d37a9b72e50334c847526c"><code>f0bff33</code></a> optimization: skip <code>on-end</code> packet when not needed</li> <li><a href="https://github.com/evanw/esbuild/commit/345ac51e1017722ca7243c3412c24d0e7d0e5582"><code>345ac51</code></a> test coverage for js watch output to stdout</li> <li><a href="https://github.com/evanw/esbuild/commit/a691c04d505c1dfaad7250e81fbb8ef381fa5b43"><code>a691c04</code></a> test coverage for native watch output to stdout</li> <li><a href="https://github.com/evanw/esbuild/commit/a3d336906580c83cfe189cd23be6d1b07e08bc5a"><code>a3d3369</code></a> semantic change: always run <code>onStart</code> callbacks</li> <li><a href="https://github.com/evanw/esbuild/commit/8ffa1b7262ebd31e181d625d3ba27dee76f09b8c"><code>8ffa1b7</code></a> fix <code>rebuildCancel</code> test flakes</li> <li><a href="https://github.com/evanw/esbuild/commit/462b28601b54b73cf6617e561552ea9b696e74ab"><code>462b286</code></a> add timeout for js tests for debugging ci</li> <li>Additional commits viewable in <a href="https://github.com/evanw/esbuild/compare/v0.16.14...v0.17.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=esbuild&package-manager=npm_and_yarn&previous-version=0.16.14&new-version=0.17.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details>
dependabot[bot] commented 2023-01-19 11:03:44 +01:00 (Migrated from github.com)

Superseded by #346.

Superseded by #346.
Commenting is not possible because the repository is archived.
No description provided.