8000 fix apply()/call() annotated as pure by Lacsw · Pull Request #17231 · babel/babel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix apply()/call() annotated as pure #17231

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

Merged
merged 2 commits into from
Apr 16, 2025

Conversation

Lacsw
Copy link
Contributor
@Lacsw Lacsw commented Apr 10, 2025
Q                       A
Fixed Issues? Fixes #17227
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Handle check apply and call avoid #__PURE__ annotation in transform-async-to-generator

@babel-bot
Copy link
Collaborator
babel-bot commented Apr 10, 2025

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/59108

Copy link
Contributor
@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@liuxingbaoyu
Copy link
Member
liuxingbaoyu commented Apr 11, 2025

Thanks for the PR!
It seems like we should fix annotateAsPure to add parentheses or allow only certain patterns to be marked as pure. The following example, although rare, shows the issue.
repl

This patch should fix it.

diff --git a/packages/babel-helper-remap-async-to-generator/src/index.ts b/packages/babel-helper-remap-async-to-generator/src/index.ts
index 4afedfef0c..9ec3a02c77 100644
--- a/packages/babel-helper-remap-async-to-generator/src/index.ts
+++ b/packages/babel-helper-remap-async-to-generator/src/index.ts
@@ -72,37 +72,25 @@ export default function (
     }
 
     // try to catch calls to Function#bind, as emitted by arrowFunctionToExpression in spec mode
-    // this may also catch .bind(this)/.call()/.apply() written by users, but does it matter? 🤔
+    // this may also catch .bind(this) written by users, but does it matter? 🤔
     const { parentPath } = path;
+    if (parentPath.isMemberExpression()) {
+      if (isIdentifier(parentPath.node.property, { name: "bind" })) {
+        const { parentPath: bindCall } = parentPath;
 
-    if (
-      parentPath.isMemberExpression() &&
-      isIdentifier(parentPath.node.property)
-    ) {
-      const { parentPath: methodCall } = parentPath;
-      const { name: methodName } = parentPath.node.property;
-
-      if (["call", "apply"].includes(methodName)) {
-        // (function () { ... }).apply(...)
-        // (function () { ... }).call(...)
-
-        // check if the result of '.call()' or '.apply()' is immediately invoked
-        return methodCall.isCallExpression({ callee: parentPath.node });
-      }
-
-      if (methodName === "bind") {
         // (function () { ... }).bind(this)()
 
         return (
           // first, check if the .bind is actually being called
-          methodCall.isCallExpression() &&
+          bindCall.isCallExpression() &&
           // and whether its sole argument is 'this'
-          methodCall.node.arguments.length === 1 &&
-          isThisExpression(methodCall.node.arguments[0]) &&
+          bindCall.node.arguments.length === 1 &&
+          isThisExpression(bindCall.node.arguments[0]) &&
           // and whether the result of the .bind(this) is being called
-          methodCall.parentPath.isCallExpression({ callee: methodCall.node })
+          bindCall.parentPath.isCallExpression({ callee: bindCall.node })
         );
       }
+      return true;
     }
 
     return false;
diff --git a/packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/async-iife-apply-call-no-pure/input.js b/packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/async-iife-apply-call-no-pure/input.js
index 622480c39a..64d6e6ca0e 100644
--- a/packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/async-iife-apply-call-no-pure/input.js
+++ b/packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/async-iife-apply-call-no-pure/input.js
@@ -9,3 +9,6 @@
 
 (async function() {
 }).apply();
+
+(async function() {
+}).test();

@liuxingbaoyu liuxingbaoyu added PR: Bug Fix 🐛 A type of pull request used for our changelog categories Spec: Async Functions labels Apr 12, 2025
@liuxingbaoyu liuxingbaoyu requested a review from JLHwung April 16, 2025 00:03
@nicolo-ribaudo nicolo-ribaudo merged commit 92b5b16 into babel:main Apr 16, 2025
55 checks passed
mergify bot added a commit to reisene/HulajDusza-serwis that referenced this pull request Jun 9, 2025
![snyk-io[bot]](https://badgen.net/badge/icon/snyk-io%5Bbot%5D/green?label=)
![Contributor](https://badgen.net/badge/icon/Contributor/000000?label=)
[<img width="16" alt="Powered by Pull Request Badge"
src="https://user-images.githubusercontent.com/1393946/111216524-d2bb8e00-85d4-11eb-821b-ed4c00989c02.png">](https://pullrequestbadge.com/?utm_medium=github&utm_source=reisene&utm_campaign=badge_info)<!--
PR-BADGE: PLEASE DO NOT REMOVE THIS COMMENT -->


![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)


<h3>Snyk has created this PR to upgrade @babel/core from 7.26.7 to
7.27.1.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **4 versions** ahead of your current
version.

- The recommended version was released **a month ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>@babel/core</b></summary>
    <ul>
      <li>
<b>7.27.1</b> - <a
href="https://redirect.github.com/babel/babel/releases/tag/v7.27.1">2025-04-30</a></br><h2>v7.27.1
(2025-04-30)</h2>
<p>Thanks <a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/kermanx/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/kermanx">@ kermanx</a> and <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/woaitsAryan/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/woaitsAryan">@ woaitsAryan</a> for
your first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17254"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17254/hovercard">#17254</a> Allow
<code>using of</code> as lexical declaration within for (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
<li><a href="https://redirect.github.com/babel/babel/pull/17230"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17230/hovercard">#17230</a>
Disallow get/set in TSPropertySignature (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-types</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17193"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17193/hovercard">#17193</a>
Stricter TSImportType options parsing (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-plugin-proposal-destructuring-private</code>,
<code>babel-plugin-proposal-do-expressions</code>,
<code>babel-traverse</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17137"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17137/hovercard">#17137</a> fix:
do expressions should allow early exit (<a
href="https://redirect.github.com/kermanx">@ kermanx</a>)</li>
</ul>
</li>
<li><code>babel-helper-wrap-function</code>,
<code>babel-plugin-transform-async-to-generator</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17251"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17251/hovercard">#17251</a> Fix:
propagate argument evaluation errors through async promise chain (<a
href="https://redirect.github.com/magic-akari">@ magic-akari</a>)</li>
</ul>
</li>
<li><code>babel-helper-remap-async-to-generator</code>,
<code>babel-plugin-transform-async-to-generator</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17231"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17231/hovercard">#17231</a> fix
apply()/call() annotated as pure (<a
href="https://redirect.github.com/Lacsw">@ Lacsw</a>)</li>
</ul>
</li>
<li><code>babel-helper-fixtures</code>, <code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17233"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17233/hovercard">#17233</a> Create
ChainExpression within TSInstantiationExpression (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-generator</code>, <code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17226"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17226/hovercard">#17226</a> Fill
optional AST properties when both estree and typescript parser plugin
are enabled (Part 2) (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17224"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17224/hovercard">#17224</a> Fill
optional AST properties when both estree and typescript parser plugin
are enabled (Part 1) (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
<li><a href="https://redirect.github.com/babel/babel/pull/17080"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17080/hovercard">#17080</a> Fix
start of TSParameterProperty (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17228"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17228/hovercard">#17228</a> Update
firefox bugfix compat data (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-traverse</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17156"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17156/hovercard">#17156</a> fix:
Objects and arrays with multiple references should not be evaluated (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-generator</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17216"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17216/hovercard">#17216</a> Fix:
support const type parameter in generator (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>

<li><code>babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining</code>,
<code>babel-plugin-proposal-decorators</code>,
<code>babel-plugin-transform-arrow-functions</code>,
<code>babel-plugin-transform-class-properties</code>,
<code>babel-plugin-transform-destructuring</code>,
<code>babel-plugin-transform-object-rest-spread</code>,
<code>babel-plugin-transform-optional-chaining</code>,
<code>babel-plugin-transform-parameters</code>,
<code>babel-traverse</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17221"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17221/hovercard">#17221</a> Reduce
generated names size for the 10th-11th (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-runtime-corejs2</code>,
<code>babel-runtime-corejs3</code>, <code>babel-runtime</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17263"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17263/hovercard">#17263</a> Remove
unused <code>regenerator-runtime</code> dep in <code>@
babel/runtime</code> (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17256"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17256/hovercard">#17256</a> Tune
plugin compat data (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-standalone</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17236"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17236/hovercard">#17236</a>
migrate babel-compat-data build script to mjs (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-register</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/16844"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/16844/hovercard">#16844</a>
Migrate <code>@ babel/register</code> to cts (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>,
<code>babel-plugin-transform-async-generator-functions</code>,
<code>babel-plugin-transform-regenerator</code>,
<code>babel-preset-env</code>, <code>babel-runtime-corejs3</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17205"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17205/hovercard">#17205</a> Inline
regenerator in the relevant packages (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><em>All packages</em>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17207"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17207/hovercard">#17207</a>
Enforce node protocol import (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🔬 Output optimization</h4>
<ul>
<li><code>babel-helpers</code>,
<code>babel-plugin-transform-modules-commonjs</code>,
<code>babel-runtime-corejs3</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/16538"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/16538/hovercard">#16538</a> Reduce
<code>interopRequireWildcard</code> size (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>,
<code>babel-plugin-transform-async-generator-functions</code>,
<code>babel-plugin-transform-regenerator</code>,
<code>babel-preset-env</code>, <code>babel-runtime-corejs3</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17213"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17213/hovercard">#17213</a> Reduce
<code>regeneratorRuntime</code> size (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 9</h4>
<ul>
<li>Aryan Bharti (<a href="https://redirect.github.com/woaitsAryan">@
woaitsAryan</a>)</li>
<li>Babel Bot (<a href="https://redirect.github.com/babel-bot">@
babel-bot</a>)</li>
<li>Frolov Roman (<a href="https://redirect.github.com/Lacsw">@
Lacsw</a>)</li>
<li>Huáng Jùnliàng (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
<li>Nicolò Ribaudo (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
<li><a href="https://redirect.github.com/liuxingbaoyu">@
liuxingbaoyu</a></li>
<li><a href="https://redirect.github.com/magic-akari">@
magic-akari</a></li>
<li>_Kerman (<a href="https://redirect.github.com/kermanx">@
kermanx</a>)</li>
<li>fisker Cheung (<a href="https://redirect.github.com/fisker">@
fisker</a>)</li>
</ul>
      </li>
      <li>
<b>7.26.10</b> - <a
href="https://redirect.github.com/babel/babel/releases/tag/v7.26.10">2025-03-11</a></br><h2>v7.26.10
(2025-03-11)</h2>
<p>Thanks <a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/jordan-choi/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://
8000
redirect.github.com/jordan-choi">@ jordan-choi</a> and <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/mmmsssttt404/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/mmmsssttt404">@ mmmsssttt404</a> for
your first PRs!</p>
<p>This release includes a fix for <a title="GHSA-968p-4wvh-cqc8"
href="https://redirect.github.com/babel/babel/security/advisories/GHSA-968p-4wvh-cqc8">GHSA-968p-4wvh-cqc8</a>,
a security vulnerability which affects the <code>.replace</code> method
of transpiled regular expressions that use named capturing groups.</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17159"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17159/hovercard">#17159</a>
Disallow decorator in array pattern (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>, <code>babel-template</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17164"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17164/hovercard">#17164</a> Fix:
always initialize ExportDeclaration attributes (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17142"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17142/hovercard">#17142</a> fix:
"Map maximum size exceeded" in deepClone (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>,
<code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17154"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17154/hovercard">#17154</a> Update
typescript parser tests (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-traverse</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17151"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17151/hovercard">#17151</a> fix:
Should not evaluate vars in child scope (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-generator</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17153"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17153/hovercard">#17153</a> fix:
Correctly generate <code>abstract override</code> (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17107"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17107/hovercard">#17107</a> Fix
source type detection when parsing TypeScript (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>, <code>babel-runtime</code>,
<code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17173"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17173/hovercard">#17173</a> Fix
processing of replacement pattern with named capture groups (<a
href="https://redirect.github.com/%5Bmmmsssttt404%5D(https://redirect.github.com/mmmsssttt404)">@
mmmsssttt404</a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17158"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17158/hovercard">#17158</a> Avoid
warnings when re-bundling @ babel/standalone with webpack (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17160"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17160/hovercard">#17160</a>
Left-value parsing cleanup (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 6</h4>
<ul>
<li>Babel Bot (<a href="https://redirect.github.com/babel-bot">@
babel-bot</a>)</li>
<li>Huáng Jùnliàng (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
<li>Nicolò Ribaudo (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
<li>Yunyoung Jordan Choi (<a
href="https://redirect.github.com/jordan-choi">@ jordan-choi</a>)</li>
<li><a href="https://redirect.github.com/liuxingbaoyu">@
liuxingbaoyu</a></li>
<li><a href="https://redirect.github.com/mmmsssttt404">@
mmmsssttt404</a></li>
</ul>
      </li>
      <li>
<b>7.26.9</b> - <a
href="https://redirect.github.com/babel/babel/releases/tag/v7.26.9">2025-02-14</a></br><h2>v7.26.9
(2025-02-14)</h2>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-types</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17103"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17103/hovercard">#17103</a> fix:
Definition for <code>TSPropertySignature.kind</code> (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-generator</code>, <code>babel-types</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17062"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17062/hovercard">#17062</a> Print
TypeScript optional/definite in ClassPrivateProperty (<a
href="https://redirect.github.com/jamiebuilds-signal">@
jamiebuilds-signal</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-types</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17130"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17130/hovercard">#17130</a> Use
<code>.ts</code> files with explicit reexports to solve name conflicts
(<a href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17127"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17127/hovercard">#17127</a> Do not
depend on <code>@ types/gensync</code> in Babel 7 (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 5</h4>
<ul>
<li>Babel Bot (<a href="https://redirect.github.com/babel-bot">@
babel-bot</a>)</li>
<li>Huáng Jùnliàng (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
<li>Jamie Kyle (<a
href="https://redirect.github.com/jamiebuilds-signal">@
jamiebuilds-signal</a>)</li>
<li>Nicolò Ribaudo (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
<li><a href="https://redirect.github.com/liuxingbaoyu">@
liuxingbaoyu</a></li>
</ul>
      </li>
      <li>
<b>7.26.8</b> - <a
href="https://redirect.github.com/babel/babel/releases/tag/v7.26.8">2025-02-08</a></br><h2>v7.26.8
(2025-02-08)</h2>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-preset-env</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17097"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17097/hovercard">#17097</a> Update
dependency babel-plugin-polyfill-corejs3 to ^0.11.0</li>
</ul>
</li>
</ul>
      </li>
      <li>
<b>7.26.7</b> - <a
href="https://redirect.github.com/babel/babel/releases/tag/v7.26.7">2025-01-24</a></br><h2>v7.26.7
(2025-01-24)</h2>
<p>Thanks <a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/branchseer/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/branchseer">@ branchseer</a> and <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/tquetano-netflix/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/tquetano-netflix">@
tquetano-netflix</a> for your first PRs!</p>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-helpers</code>, <code>babel-preset-env</code>,
<code>babel-runtime-corejs3</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17086"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17086/hovercard">#17086</a> Make
"object without properties" helpers ES6-compatible (<a
href="https://redirect.github.com/tquetano-netflix">@
tquetano-netflix</a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typeof-symbol</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17085"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17085/hovercard">#17085</a> fix:
Correctly handle <code>typeof</code> in arrow functions (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17079"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17079/hovercard">#17079</a>
Respect <code>ranges</code> option in estree method value (<a
href="https://redirect.github.com/JLHwung">@ JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17052"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17052/hovercard">#17052</a> Do not
try to parse .ts configs as JSON if natively supported (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17050"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17050/hovercard">#17050</a> fix:
correctly resolve references to non-constant enum members (<a
href="https://redirect.github.com/branchseer">@ branchseer</a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>,
<code>babel-traverse</code>, <code>babel-types</code>
<ul>
<li><a href="https://redirect.github.com/babel/babel/pull/17025"
data-hovercard-type="pull_request"
data-hovercard-url="/babel/babel/pull/17025/hovercard">#17025</a> fix:
Remove type-only <code>import x = y.z</code> (<a
href="https://redirect.github.com/liuxingbaoyu">@ liuxingbaoyu</a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 6</h4>
<ul>
<li>Babel Bot (<a href="https://redirect.github.com/babel-bot">@
babel-bot</a>)</li>
<li>Huáng Jùnliàng (<a href="https://redirect.github.com/JLHwung">@
JLHwung</a>)</li>
<li>Nicolò Ribaudo (<a
href="https://redirect.github.com/nicolo-ribaudo">@
nicolo-ribaudo</a>)</li>
<li>Tony Quetano (<a
href="https://redirect.github.com/tquetano-netflix">@
tquetano-netflix</a>)</li>
<li><a href="https://redirect.github.com/branchseer">@
branchseer</a></li>
<li><a href="https://redirect.github.com/liuxingbaoyu">@
liuxingbaoyu</a></li>
</ul>
      </li>
    </ul>
from <a
href="https://redirect.github.com/babel/babel/releases">@babel/core
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiIxOGYyNGI4ZC0yYjIxLTQyODAtODBjZi00NjczMTQzMWRjNDIiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjE4ZjI0YjhkLTJiMjEtNDI4MC04MGNmLTQ2NzMxNDMxZGM0MiJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/reisene/project/55e114f8-489e-4f14-b900-20574b041e59?utm_source&#x3D;github-cloud-app&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/reisene/project/55e114f8-489e-4f14-b900-20574b041e59/settings/integration?utm_source&#x3D;github-cloud-app&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/reisene/project/55e114f8-489e-4f14-b900-20574b041e59/settings/integration?pkg&#x3D;@babel/core&amp;utm_source&#x3D;github-cloud-app&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@babel/core","from":"7.26.7","to":"7.27.1"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"18f24b8d-2b21-4280-80cf-46731431dc42","prPublicId":"18f24b8d-2b21-4280-80cf-46731431dc42","packageManager":"npm","priorityScoreList":[],"projectPublicId":"55e114f8-489e-4f14-b900-20574b041e59","projectUrl":"https://app.snyk.io/org/reisene/project/55e114f8-489e-4f14-b900-20574b041e59?utm_source=github-cloud-app&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":4,"publishedDate":"2025-04-30T15:09:25.758Z"},"vulns":[]}'

## Podsumowanie wygenerowane przez Sourcery

Prace porządkowe:
- Podniesienie wersji zależności @babel/core do 7.27.1

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Chores:
- Bump @babel/core dependency to 7.27.1

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bug Fix 🐛 A type of pull request used for our changelog categories Spec: Async Functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

transform-async-to-generator wrongly mark function as pure when called by apply()/call()
5 participants
0