Skip to content

Commit

Permalink
chore(deps-dev): Bump esbuild from 0.18.6 to 0.18.7 (#6761)
Browse files Browse the repository at this point in the history
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.18.6 to 0.18.7.
<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.18.7</h2>
<ul>
<li>
<p>Add support for <code>using</code> declarations in TypeScript 5.2+
(<a
href="https://redirect.github.com/evanw/esbuild/issues/3191">#3191</a>)</p>
<p>TypeScript 5.2 (due to be released in August of 2023) will introduce
<code>using</code> declarations, which will allow you to automatically
dispose of the declared resources when leaving the current scope. You
can read the <a
href="https://redirect.github.com/microsoft/TypeScript/pull/54505">TypeScript
PR for this feature</a> for more information. This release of esbuild
adds support for transforming this syntax to target environments without
support for <code>using</code> declarations (which is currently all
targets other than <code>esnext</code>). Here's an example (helper
functions are omitted):</p>
<pre lang="js"><code>// Original code
class Foo {
  [Symbol.dispose]() {
    console.log('cleanup')
  }
}
using foo = new Foo;
foo.bar();
<p>// New output (with --target=es6)
var _stack = [];
try {
var Foo = class {
<a href="">Symbol.dispose</a> {
console.log(&quot;cleanup&quot;);
}
};
var foo = __using(<em>stack, new Foo());
foo.bar();
} catch (</em>) {
var _error = _, _hasError = true;
} finally {
__callDispose(_stack, _error, _hasError);
}
</code></pre></p>
<p>The injected helper functions ensure that the method named
<code>Symbol.dispose</code> is called on <code>new Foo</code> when
control exits the scope. Note that as with all new JavaScript APIs,
you'll need to polyfill <code>Symbol.dispose</code> if it's not present
before you use it. This is not something that esbuild does for you
because esbuild only handles syntax, not APIs. Polyfilling it can be
done with something like this:</p>
<pre lang="js"><code>Symbol.dispose ||= Symbol('Symbol.dispose')
</code></pre>
<p>This feature also introduces <code>await using</code> declarations
which are like <code>using</code> declarations but they call
<code>await</code> on the disposal method (not on the initializer).
Here's an example (helper functions are omitted):</p>
<pre lang="js"><code>// Original code
class Foo {
  async [Symbol.asyncDispose]() {
    await new Promise(done =&gt; {
      setTimeout(done, 1000)
    })
    console.log('cleanup')
  }
}
</code></pre>
</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.18.7</h2>
<ul>
<li>
<p>Add support for <code>using</code> declarations in TypeScript 5.2+
(<a
href="https://redirect.github.com/evanw/esbuild/issues/3191">#3191</a>)</p>
<p>TypeScript 5.2 (due to be released in August of 2023) will introduce
<code>using</code> declarations, which will allow you to automatically
dispose of the declared resources when leaving the current scope. You
can read the <a
href="https://redirect.github.com/microsoft/TypeScript/pull/54505">TypeScript
PR for this feature</a> for more information. This release of esbuild
adds support for transforming this syntax to target environments without
support for <code>using</code> declarations (which is currently all
targets other than <code>esnext</code>). Here's an example (helper
functions are omitted):</p>
<pre lang="js"><code>// Original code
class Foo {
  [Symbol.dispose]() {
    console.log('cleanup')
  }
}
using foo = new Foo;
foo.bar();
<p>// New output (with --target=es6)
var _stack = [];
try {
var Foo = class {
<a href="">Symbol.dispose</a> {
console.log(&quot;cleanup&quot;);
}
};
var foo = __using(<em>stack, new Foo());
foo.bar();
} catch (</em>) {
var _error = _, _hasError = true;
} finally {
__callDispose(_stack, _error, _hasError);
}
</code></pre></p>
<p>The injected helper functions ensure that the method named
<code>Symbol.dispose</code> is called on <code>new Foo</code> when
control exits the scope. Note that as with all new JavaScript APIs,
you'll need to polyfill <code>Symbol.dispose</code> if it's not present
before you use it. This is not something that esbuild does for you
because esbuild only handles syntax, not APIs. Polyfilling it can be
done with something like this:</p>
<pre lang="js"><code>Symbol.dispose ||= Symbol('Symbol.dispose')
</code></pre>
<p>This feature also introduces <code>await using</code> declarations
which are like <code>using</code> declarations but they call
<code>await</code> on the disposal method (not on the initializer).
Here's an example (helper functions are omitted):</p>
<pre lang="js"><code>// Original code
class Foo {
  async [Symbol.asyncDispose]() {
    await new Promise(done =&gt; {
      setTimeout(done, 1000)
    })
    console.log('cleanup')
  }
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/evanw/esbuild/commit/adb8d19b56d2ae2d65128305c875b577476fac93"><code>adb8d19</code></a>
publish 0.18.7 to npm</li>
<li><a
href="https://github.com/evanw/esbuild/commit/6c47cbaf655c99a91f96f32b5f2b9b5180845167"><code>6c47cba</code></a>
fix an issue with <code>SuppressedError</code></li>
<li><a
href="https://github.com/evanw/esbuild/commit/d6056b8fc4e4f66d65214f46fe67b27aeda01351"><code>d6056b8</code></a>
remove tsconfig <code>target</code> warning due to complaints</li>
<li><a
href="https://github.com/evanw/esbuild/commit/ecb33a3f84ff410ba67264cf90c9dfffedf75479"><code>ecb33a3</code></a>
implement lowering for <code>using</code> and <code>await using</code>
(<a
href="https://redirect.github.com/evanw/esbuild/issues/3192">#3192</a>)</li>
<li><a
href="https://github.com/evanw/esbuild/commit/5f57ee2592512f262dd0b7a9fa5c171399d55a20"><code>5f57ee2</code></a>
a better error for <code>export let</code></li>
<li><a
href="https://github.com/evanw/esbuild/commit/69a0c80572d9544ef4883b1c26db2fb0539f5dad"><code>69a0c80</code></a>
abstract out binding visiting code</li>
<li><a
href="https://github.com/evanw/esbuild/commit/71140268275932057a146fb66850e7785526fb13"><code>7114026</code></a>
small fix for template strings containing newlines</li>
<li><a
href="https://github.com/evanw/esbuild/commit/7d5df1004c34e04050d2ddc19be3114d5c258bd5"><code>7d5df10</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3170">#3170</a>:
add <code>--line-limit=</code> to limit long lines</li>
<li>See full diff in <a
href="https://github.com/evanw/esbuild/compare/v0.18.6...v0.18.7">compare
view</a></li>
</ul>
</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] committed Jun 24, 2023
1 parent 93653c8 commit 9f5b959
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 95 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"css-loader": "^6.8.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.7",
"esbuild": "^0.18.6",
"esbuild": "^0.18.7",
"eslint": "^8.43.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.32.2",
Expand Down
188 changes: 94 additions & 94 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -691,72 +691,72 @@ __metadata:
languageName: node
linkType: hard

"@esbuild/android-arm64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/android-arm64@npm:0.18.6"
"@esbuild/android-arm64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/android-arm64@npm:0.18.7"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard

"@esbuild/android-arm@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/android-arm@npm:0.18.6"
"@esbuild/android-arm@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/android-arm@npm:0.18.7"
conditions: os=android & cpu=arm
languageName: node
linkType: hard

"@esbuild/android-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/android-x64@npm:0.18.6"
"@esbuild/android-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/android-x64@npm:0.18.7"
conditions: os=android & cpu=x64
languageName: node
linkType: hard

"@esbuild/darwin-arm64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/darwin-arm64@npm:0.18.6"
"@esbuild/darwin-arm64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/darwin-arm64@npm:0.18.7"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@esbuild/darwin-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/darwin-x64@npm:0.18.6"
"@esbuild/darwin-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/darwin-x64@npm:0.18.7"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@esbuild/freebsd-arm64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/freebsd-arm64@npm:0.18.6"
"@esbuild/freebsd-arm64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/freebsd-arm64@npm:0.18.7"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard

"@esbuild/freebsd-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/freebsd-x64@npm:0.18.6"
"@esbuild/freebsd-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/freebsd-x64@npm:0.18.7"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard

"@esbuild/linux-arm64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-arm64@npm:0.18.6"
"@esbuild/linux-arm64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-arm64@npm:0.18.7"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard

"@esbuild/linux-arm@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-arm@npm:0.18.6"
"@esbuild/linux-arm@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-arm@npm:0.18.7"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard

"@esbuild/linux-ia32@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-ia32@npm:0.18.6"
"@esbuild/linux-ia32@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-ia32@npm:0.18.7"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard
Expand All @@ -768,86 +768,86 @@ __metadata:
languageName: node
linkType: hard

"@esbuild/linux-loong64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-loong64@npm:0.18.6"
"@esbuild/linux-loong64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-loong64@npm:0.18.7"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard

"@esbuild/linux-mips64el@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-mips64el@npm:0.18.6"
"@esbuild/linux-mips64el@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-mips64el@npm:0.18.7"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard

"@esbuild/linux-ppc64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-ppc64@npm:0.18.6"
"@esbuild/linux-ppc64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-ppc64@npm:0.18.7"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard

"@esbuild/linux-riscv64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-riscv64@npm:0.18.6"
"@esbuild/linux-riscv64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-riscv64@npm:0.18.7"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard

"@esbuild/linux-s390x@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-s390x@npm:0.18.6"
"@esbuild/linux-s390x@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-s390x@npm:0.18.7"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard

"@esbuild/linux-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/linux-x64@npm:0.18.6"
"@esbuild/linux-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/linux-x64@npm:0.18.7"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard

"@esbuild/netbsd-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/netbsd-x64@npm:0.18.6"
"@esbuild/netbsd-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/netbsd-x64@npm:0.18.7"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard

"@esbuild/openbsd-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/openbsd-x64@npm:0.18.6"
"@esbuild/openbsd-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/openbsd-x64@npm:0.18.7"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard

"@esbuild/sunos-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/sunos-x64@npm:0.18.6"
"@esbuild/sunos-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/sunos-x64@npm:0.18.7"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard

"@esbuild/win32-arm64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/win32-arm64@npm:0.18.6"
"@esbuild/win32-arm64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/win32-arm64@npm:0.18.7"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@esbuild/win32-ia32@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/win32-ia32@npm:0.18.6"
"@esbuild/win32-ia32@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/win32-ia32@npm:0.18.7"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@esbuild/win32-x64@npm:0.18.6":
version: 0.18.6
resolution: "@esbuild/win32-x64@npm:0.18.6"
"@esbuild/win32-x64@npm:0.18.7":
version: 0.18.7
resolution: "@esbuild/win32-x64@npm:0.18.7"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -2768,7 +2768,7 @@ __metadata:
css-loader: ^6.8.1
enzyme: ^3.11.0
enzyme-adapter-react-16: ^1.15.7
esbuild: ^0.18.6
esbuild: ^0.18.7
eslint: ^8.43.0
eslint-plugin-import: ^2.26.0
eslint-plugin-react: ^7.32.2
Expand Down Expand Up @@ -5075,32 +5075,32 @@ __metadata:
languageName: node
linkType: hard

"esbuild@npm:^0.18.6":
version: 0.18.6
resolution: "esbuild@npm:0.18.6"
dependencies:
"@esbuild/android-arm": 0.18.6
"@esbuild/android-arm64": 0.18.6
"@esbuild/android-x64": 0.18.6
"@esbuild/darwin-arm64": 0.18.6
"@esbuild/darwin-x64": 0.18.6
"@esbuild/freebsd-arm64": 0.18.6
"@esbuild/freebsd-x64": 0.18.6
"@esbuild/linux-arm": 0.18.6
"@esbuild/linux-arm64": 0.18.6
"@esbuild/linux-ia32": 0.18.6
"@esbuild/linux-loong64": 0.18.6
"@esbuild/linux-mips64el": 0.18.6
"@esbuild/linux-ppc64": 0.18.6
"@esbuild/linux-riscv64": 0.18.6
"@esbuild/linux-s390x": 0.18.6
"@esbuild/linux-x64": 0.18.6
"@esbuild/netbsd-x64": 0.18.6
"@esbuild/openbsd-x64": 0.18.6
"@esbuild/sunos-x64": 0.18.6
"@esbuild/win32-arm64": 0.18.6
"@esbuild/win32-ia32": 0.18.6
"@esbuild/win32-x64": 0.18.6
"esbuild@npm:^0.18.7":
version: 0.18.7
resolution: "esbuild@npm:0.18.7"
dependencies:
"@esbuild/android-arm": 0.18.7
"@esbuild/android-arm64": 0.18.7
"@esbuild/android-x64": 0.18.7
"@esbuild/darwin-arm64": 0.18.7
"@esbuild/darwin-x64": 0.18.7
"@esbuild/freebsd-arm64": 0.18.7
"@esbuild/freebsd-x64": 0.18.7
"@esbuild/linux-arm": 0.18.7
"@esbuild/linux-arm64": 0.18.7
"@esbuild/linux-ia32": 0.18.7
"@esbuild/linux-loong64": 0.18.7
"@esbuild/linux-mips64el": 0.18.7
"@esbuild/linux-ppc64": 0.18.7
"@esbuild/linux-riscv64": 0.18.7
"@esbuild/linux-s390x": 0.18.7
"@esbuild/linux-x64": 0.18.7
"@esbuild/netbsd-x64": 0.18.7
"@esbuild/openbsd-x64": 0.18.7
"@esbuild/sunos-x64": 0.18.7
"@esbuild/win32-arm64": 0.18.7
"@esbuild/win32-ia32": 0.18.7
"@esbuild/win32-x64": 0.18.7
dependenciesMeta:
"@esbuild/android-arm":
optional: true
Expand Down Expand Up @@ -5148,7 +5148,7 @@ __metadata:
optional: true
bin:
esbuild: bin/esbuild
checksum: 149bf2ac5675eaff7627de521533ac93daec2f5822bbec6a02f12d61eeb80c4cccac63e124759f63bc49d18839a97c0c6d0162bcb75034dfbee106cb84df4b62
checksum: 47b8ee7d436036d30df07ff7a7a013a0c8dabfb3187acdbb396c46d65a14978f184f4a499149fad0ab9afe0dc423270671de632f69f0fefbe445b4a249aeed97
languageName: node
linkType: hard

Expand Down

0 comments on commit 9f5b959

Please sign in to comment.