Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AddcreateImportExpressions parser option#15682

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

JLHwung
Copy link
Contributor

@JLHwungJLHwung commentedJun 2, 2023
edited
Loading

Q                      A
Fixed Issues?Implementsbabel/rfcs#4
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?Yes
Tests Added + Pass?Yes
Documentation PR Linkbabel/website#2803
Any Dependency Changes?
LicenseMIT

Added a new parser optioncreateImportExpression. When this option istrue, the dynamic importimport(foo, options) will be parsed as

{type:"ImportExpression",source:Identifier("foo"),options:Identifier("options")}

The option defaults tofalse in Babel 7. In Babel 8 we can consider default it totrue or materialize the option.

  • SupportImportExpression in current module transforms

coderaiser reacted with thumbs up emojifisker and coderaiser reacted with rocket emoji
@JLHwungJLHwung added the PR: New Feature 🚀A type of pull request used for our changelog categories labelJun 2, 2023
@babel-bot
Copy link
Collaborator

babel-bot commentedJun 2, 2023
edited
Loading

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

this.next(); // eat tt.parenL
node.source = this.parseMaybeAssignAllowIn();
if (this.eat(tt.comma)) {
this.expectPlugin("importAttributes");

Choose a reason for hiding this comment

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

Should we also acceptimportAssertions? We are going to remove it anyway in Babel 8, but I see no harm in maximizing internal compatibility here.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Agreed. As for compatibility, we can expectimportAttributes whenimportAssertions is not enabled, so new users will be referred to the latest proposal plugin.

nicolo-ribaudo reacted with thumbs up emoji
@JLHwungJLHwung marked this pull request as ready for reviewJune 6, 2023 18:49
@JLHwungJLHwungforce-pushed theimport-expression-ast branch 2 times, most recently fromb0f9302 to682e32dCompareJune 7, 2023 15:01
this.raise(Errors.ImportCallNotNewExpression, { at: node.callee });
const callee = this.parseNoCallExpr();
node.callee = callee;
if (callee.type === "Import" || callee.type === "ImportExpression") {

Choose a reason for hiding this comment

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

This is valid syntax, do we parse it correctly?new (import(a))

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good catch, currently it does not work with the import expression AST. I will add a test and fix it.

nicolo-ribaudo reacted with thumbs up emoji
@@ -424,6 +424,9 @@ export default (superClass: typeof Parser) =>
this.hasPlugin("importAttributes") ||
this.hasPlugin("importAssertions")
) {
(node as N.Node as N.EstreeImportExpression).options =
node.arguments[1] ?? null;
// compatibility with previous ESTree AST
(node as N.Node as N.EstreeImportExpression).attributes =

Choose a reason for hiding this comment

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

Can we maybe avoid this inBABEL_8_BREAKING? (in a separate PR)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Agreed, it was added for prettier compatibility only.

Copy link
Member

@liuxingbaoyuliuxingbaoyu left a comment

Choose a reason for hiding this comment

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

Let's add typings inpackages\babel-parser\typings\babel-parser.source.d.ts. :)

Comment on lines +272 to +273
if (path.isCallExpression() && !t.isImport(path.node.callee)) return;
if (path.isCallExpression()) {
Copy link
Member

Choose a reason for hiding this comment

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

if(path.isCallExpression()){if(!t.isImport(path.node.callee))return;xxx}

Would this be better?

@nicolo-ribaudonicolo-ribaudo added the PR: Ready to be MergedA pull request with already two approvals, but waiting for the next minor release labelJul 3, 2023
Comment on lines 221 to 227
createParenthesizedExpressions?: boolean;

/**
* By default, `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
* Set this to true to parse it as an `ImportExpression` node.
*/
createImportExpression?: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to the PR: bothExpressions andExpression are used here, maybe we can unify them?

JLHwung reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Agreed, in that case I tend to name it ascreateImportExpressions, to be consistent with the one of parenthesized expression.

nicolo-ribaudo reacted with thumbs up emoji
@JLHwungJLHwungforce-pushed theimport-expression-ast branch from3d7ebd5 toa3548f4CompareJuly 4, 2023 18:45
@JLHwungJLHwung changed the titleAddcreateImportExpression parser optionAddcreateImportExpressions parser optionJul 5, 2023
@nicolo-ribaudonicolo-ribaudo added this to thev7.23.0 milestoneJul 23, 2023
@nicolo-ribaudo
Copy link
Member

@JLHwung Did you forget to push? I see that you updated the title tocreateImportExpressions but the code still usescreateImportExpression.

@JLHwung
Copy link
ContributorAuthor

@JLHwung Did you forget to push? I see that you updated the title tocreateImportExpressions but the code still usescreateImportExpression.

You are right! Oops, I am sorry, how did I miss that.

@nicolo-ribaudo
Copy link
Member

nicolo-ribaudo commentedAug 2, 2023
edited
Loading

I'm struggling to reproduce the CI error locally

EDIT: I just had to rebase

JLHwung reacted with heart emoji

@nicolo-ribaudonicolo-ribaudo changed the base branch frommain tofeat-7.23.0/importsAugust 2, 2023 12:48
@nicolo-ribaudonicolo-ribaudo merged commit3c98fc1 intobabel:feat-7.23.0/importsAug 2, 2023
@nicolo-ribaudonicolo-ribaudo deleted the import-expression-ast branchAugust 2, 2023 12:48
nicolo-ribaudo added a commit that referenced this pull requestAug 2, 2023
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
nicolo-ribaudo added a commit that referenced this pull requestAug 16, 2023
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
nicolo-ribaudo added a commit that referenced this pull requestSep 5, 2023
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
nicolo-ribaudo added a commit that referenced this pull requestSep 14, 2023
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
nicolo-ribaudo added a commit that referenced this pull requestSep 18, 2023
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
nicolo-ribaudo added a commit that referenced this pull requestSep 25, 2023
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
nicolo-ribaudo added a commit that referenced this pull requestSep 25, 2023
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
Woodpile37 added a commit to Woodpile37/ethers.js that referenced this pull requestOct 17, 2023
<p>This PR was automatically created by Snyk using the credentials of areal user.</p><br /><h3>Snyk has created this PR to upgrade multipledependencies.</h3>👯‍♂ The following dependencies are linked and will therefore be updatedtogether.</br></br>:information_source: Keep your dependencies up-to-date. This makes iteasier to fix existing vulnerabilities and to more quickly identify andfix newly disclosed vulnerabilities when they affect your project.</br></br> Name         | Versions     | Released on:-------------|:-------------|:-------------**@babel/parser**</br>from 7.22.16 to 7.23.0 | **1 version** ahead ofyour current version | **22 days ago**</br>on 2023-09-25**@babel/types**</br>from 7.22.19 to 7.23.0 | **1 version** ahead ofyour current version | **22 days ago**</br>on 2023-09-25<details><summary><b>Release notes</b></summary><br/>  <details>    <summary>Package name: <b>@babel/parser</b></summary>    <ul>      <li><b>7.23.0</b> - <ahref="https://snyk.io/redirect/github/babel/babel/releases/tag/v7.23.0">2023-09-25</a></br><h2>v7.23.0(2023-09-25)</h2><p>Thanks <a data-hovercard-type="user"data-hovercard-url="/users/lorenzoferre/hovercard"data-octo-click="hovercard-link-click"data-octo-dimensions="link_type:self"href="https://snyk.io/redirect/github/lorenzoferre">@ lorenzoferre</a>and <a data-hovercard-type="user"data-hovercard-url="/users/RajShukla1/hovercard"data-octo-click="hovercard-link-click"data-octo-dimensions="link_type:self"href="https://snyk.io/redirect/github/RajShukla1">@ RajShukla1</a> foryour first PRs!</p><h4>🚀 New Feature</h4><ul><li><code>babel-plugin-proposal-import-wasm-source</code>,<code>babel-plugin-syntax-import-source</code>,<code>babel-plugin-transform-dynamic-import</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15870"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15870/hovercard">#15870</a>Support transforming <code>import source</code> for wasm (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-helper-module-transforms</code>,<code>babel-helpers</code>,<code>babel-plugin-proposal-import-defer</code>,<code>babel-plugin-syntax-import-defer</code>,<code>babel-plugin-transform-modules-commonjs</code>,<code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>,<code>babel-runtime</code>, <code>babel-standalone</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15878"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15878/hovercard">#15878</a>Implement <code>import defer</code> proposal transform support (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-generator</code>, <code>babel-parser</code>,<code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15845"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15845/hovercard">#15845</a>Implement <code>import defer</code> parsing support (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15829"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15829/hovercard">#15829</a> Addparsing support for the "source phase imports" proposal (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-generator</code>,<code>babel-helper-module-transforms</code>, <code>babel-parser</code>,<code>babel-plugin-transform-dynamic-import</code>,<code>babel-plugin-transform-modules-amd</code>,<code>babel-plugin-transform-modules-commonjs</code>,<code>babel-plugin-transform-modules-systemjs</code>,<code>babel-traverse</code>, <code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15682"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15682/hovercard">#15682</a> Add<code>createImportExpressions</code> parser option (<ahref="https://snyk.io/redirect/github/JLHwung">@ JLHwung</a>)</li></ul></li><li><code>babel-standalone</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15671"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15671/hovercard">#15671</a> Passthrough nonce to the transformed script element (<ahref="https://snyk.io/redirect/github/JLHwung">@ JLHwung</a>)</li></ul></li><li><code>babel-helper-function-name</code>,<code>babel-helper-member-expression-to-functions</code>,<code>babel-helpers</code>, <code>babel-parser</code>,<code>babel-plugin-proposal-destructuring-private</code>,<code>babel-plugin-proposal-optional-chaining-assign</code>,<code>babel-plugin-syntax-optional-chaining-assign</code>,<code>babel-plugin-transform-destructuring</code>,<code>babel-plugin-transform-optional-chaining</code>,<code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>,<code>babel-runtime</code>, <code>babel-standalone</code>,<code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15751"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15751/hovercard">#15751</a> Addsupport for optional chain in assignments (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-helpers</code>,<code>babel-plugin-proposal-decorators</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15895"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15895/hovercard">#15895</a>Implement the "decorator metadata" proposal (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-traverse</code>, <code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15893"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15893/hovercard">#15893</a> Add<code>t.buildUndefinedNode</code> (<ahref="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a>)</li></ul></li><li><code>babel-preset-typescript</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15913"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15913/hovercard">#15913</a> Add<code>rewriteImportExtensions</code> option to TS preset (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-parser</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15896"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15896/hovercard">#15896</a> AllowTS tuples to have both labeled and unlabeled elements (<ahref="https://snyk.io/redirect/github/yukukotani">@ yukukotani</a>)</li></ul></li></ul><h4>🐛 Bug Fix</h4><ul><li><code>babel-plugin-transform-block-scoping</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15962"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15962/hovercard">#15962</a> fix:<code>transform-block-scoping</code> captures the variables of themethod in the loop (<ahref="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a>)</li></ul></li></ul><h4>💅 Polish</h4><ul><li><code>babel-traverse</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15797"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15797/hovercard">#15797</a> Expandevaluation of global built-ins in <code>@ babel/traverse</code> (<ahref="https://snyk.io/redirect/github/lorenzoferre">@lorenzoferre</a>)</li></ul></li><li><code>babel-plugin-proposal-explicit-resource-management</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15985"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15985/hovercard">#15985</a>Improve source maps for blocks with <code>using</code> declarations (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li></ul><h4>🔬 Output optimization</h4><ul><li><code>babel-core</code>,<code>babel-helper-module-transforms</code>,<code>babel-plugin-transform-async-to-generator</code>,<code>babel-plugin-transform-classes</code>,<code>babel-plugin-transform-dynamic-import</code>,<code>babel-plugin-transform-function-name</code>,<code>babel-plugin-transform-modules-amd</code>,<code>babel-plugin-transform-modules-commonjs</code>,<code>babel-plugin-transform-modules-umd</code>,<code>babel-plugin-transform-parameters</code>,<code>babel-plugin-transform-react-constant-elements</code>,<code>babel-plugin-transform-react-inline-elements</code>,<code>babel-plugin-transform-runtime</code>,<code>babel-plugin-transform-typescript</code>,<code>babel-preset-env</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15984"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15984/hovercard">#15984</a> Inline<code>exports.XXX =</code> update in simple variable declarations (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li></ul><h4>Committers: 7</h4><ul><li>Babel Bot (<a href="https://snyk.io/redirect/github/babel-bot">@babel-bot</a>)</li><li>Huáng Jùnliàng (<a href="https://snyk.io/redirect/github/JLHwung">@JLHwung</a>)</li><li>Lorenzo Ferretti (<ahref="https://snyk.io/redirect/github/lorenzoferre">@lorenzoferre</a>)</li><li>Nicolò Ribaudo (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li><li>Raj Pawan Shukla (<ahref="https://snyk.io/redirect/github/RajShukla1">@ RajShukla1</a>)</li><li>Yuku Kotani (<a href="https://snyk.io/redirect/github/yukukotani">@yukukotani</a>)</li><li><a href="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a></li></ul>      </li>      <li><b>7.22.16</b> - <ahref="https://snyk.io/redirect/github/babel/babel/releases/tag/v7.22.16">2023-09-06</a></br><h2>v7.22.16(2023-09-06)</h2><h4>🐛 Bug Fix</h4><ul><li><code>babel-parser</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15935"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15935/hovercard">#15935</a> fix:<code>__esModule</code> is missing from published <code>@babel/parser</code> (<ahref="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a>)</li></ul></li></ul><h4>🏠 Internal</h4><ul><li><code>babel-traverse</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15936"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15936/hovercard">#15936</a> Skipdeprecation warning tests when in a folder named <code>@ babel</code>(<a href="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li></ul><h4>Committers: 3</h4><ul><li>Huáng Jùnliàng (<a href="https://snyk.io/redirect/github/JLHwung">@JLHwung</a>)</li><li>Nicolò Ribaudo (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li><li><a href="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a></li></ul>      </li>    </ul>from <ahref="https://snyk.io/redirect/github/babel/babel/releases">@babel/parserGitHub release notes</a>  </details>  <details>    <summary>Package name: <b>@babel/types</b></summary>    <ul>      <li><b>7.23.0</b> - <ahref="https://snyk.io/redirect/github/babel/babel/releases/tag/v7.23.0">2023-09-25</a></br><h2>v7.23.0(2023-09-25)</h2><p>Thanks <a data-hovercard-type="user"data-hovercard-url="/users/lorenzoferre/hovercard"data-octo-click="hovercard-link-click"data-octo-dimensions="link_type:self"href="https://snyk.io/redirect/github/lorenzoferre">@ lorenzoferre</a>and <a data-hovercard-type="user"data-hovercard-url="/users/RajShukla1/hovercard"data-octo-click="hovercard-link-click"data-octo-dimensions="link_type:self"href="https://snyk.io/redirect/github/RajShukla1">@ RajShukla1</a> foryour first PRs!</p><h4>🚀 New Feature</h4><ul><li><code>babel-plugin-proposal-import-wasm-source</code>,<code>babel-plugin-syntax-import-source</code>,<code>babel-plugin-transform-dynamic-import</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15870"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15870/hovercard">#15870</a>Support transforming <code>import source</code> for wasm (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-helper-module-transforms</code>,<code>babel-helpers</code>,<code>babel-plugin-proposal-import-defer</code>,<code>babel-plugin-syntax-import-defer</code>,<code>babel-plugin-transform-modules-commonjs</code>,<code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>,<code>babel-runtime</code>, <code>babel-standalone</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15878"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15878/hovercard">#15878</a>Implement <code>import defer</code> proposal transform support (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-generator</code>, <code>babel-parser</code>,<code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15845"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15845/hovercard">#15845</a>Implement <code>import defer</code> parsing support (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15829"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15829/hovercard">#15829</a> Addparsing support for the "source phase imports" proposal (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-generator</code>,<code>babel-helper-module-transforms</code>, <code>babel-parser</code>,<code>babel-plugin-transform-dynamic-import</code>,<code>babel-plugin-transform-modules-amd</code>,<code>babel-plugin-transform-modules-commonjs</code>,<code>babel-plugin-transform-modules-systemjs</code>,<code>babel-traverse</code>, <code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15682"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15682/hovercard">#15682</a> Add<code>createImportExpressions</code> parser option (<ahref="https://snyk.io/redirect/github/JLHwung">@ JLHwung</a>)</li></ul></li><li><code>babel-standalone</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15671"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15671/hovercard">#15671</a> Passthrough nonce to the transformed script element (<ahref="https://snyk.io/redirect/github/JLHwung">@ JLHwung</a>)</li></ul></li><li><code>babel-helper-function-name</code>,<code>babel-helper-member-expression-to-functions</code>,<code>babel-helpers</code>, <code>babel-parser</code>,<code>babel-plugin-proposal-destructuring-private</code>,<code>babel-plugin-proposal-optional-chaining-assign</code>,<code>babel-plugin-syntax-optional-chaining-assign</code>,<code>babel-plugin-transform-destructuring</code>,<code>babel-plugin-transform-optional-chaining</code>,<code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>,<code>babel-runtime</code>, <code>babel-standalone</code>,<code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15751"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15751/hovercard">#15751</a> Addsupport for optional chain in assignments (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-helpers</code>,<code>babel-plugin-proposal-decorators</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15895"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15895/hovercard">#15895</a>Implement the "decorator metadata" proposal (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-traverse</code>, <code>babel-types</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15893"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15893/hovercard">#15893</a> Add<code>t.buildUndefinedNode</code> (<ahref="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a>)</li></ul></li><li><code>babel-preset-typescript</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15913"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15913/hovercard">#15913</a> Add<code>rewriteImportExtensions</code> option to TS preset (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li><li><code>babel-parser</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15896"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15896/hovercard">#15896</a> AllowTS tuples to have both labeled and unlabeled elements (<ahref="https://snyk.io/redirect/github/yukukotani">@ yukukotani</a>)</li></ul></li></ul><h4>🐛 Bug Fix</h4><ul><li><code>babel-plugin-transform-block-scoping</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15962"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15962/hovercard">#15962</a> fix:<code>transform-block-scoping</code> captures the variables of themethod in the loop (<ahref="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a>)</li></ul></li></ul><h4>💅 Polish</h4><ul><li><code>babel-traverse</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15797"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15797/hovercard">#15797</a> Expandevaluation of global built-ins in <code>@ babel/traverse</code> (<ahref="https://snyk.io/redirect/github/lorenzoferre">@lorenzoferre</a>)</li></ul></li><li><code>babel-plugin-proposal-explicit-resource-management</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15985"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15985/hovercard">#15985</a>Improve source maps for blocks with <code>using</code> declarations (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li></ul><h4>🔬 Output optimization</h4><ul><li><code>babel-core</code>,<code>babel-helper-module-transforms</code>,<code>babel-plugin-transform-async-to-generator</code>,<code>babel-plugin-transform-classes</code>,<code>babel-plugin-transform-dynamic-import</code>,<code>babel-plugin-transform-function-name</code>,<code>babel-plugin-transform-modules-amd</code>,<code>babel-plugin-transform-modules-commonjs</code>,<code>babel-plugin-transform-modules-umd</code>,<code>babel-plugin-transform-parameters</code>,<code>babel-plugin-transform-react-constant-elements</code>,<code>babel-plugin-transform-react-inline-elements</code>,<code>babel-plugin-transform-runtime</code>,<code>babel-plugin-transform-typescript</code>,<code>babel-preset-env</code><ul><li><a href="https://snyk.io/redirect/github/babel/babel/pull/15984"data-hovercard-type="pull_request"data-hovercard-url="/babel/babel/pull/15984/hovercard">#15984</a> Inline<code>exports.XXX =</code> update in simple variable declarations (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li></ul></li></ul><h4>Committers: 7</h4><ul><li>Babel Bot (<a href="https://snyk.io/redirect/github/babel-bot">@babel-bot</a>)</li><li>Huáng Jùnliàng (<a href="https://snyk.io/redirect/github/JLHwung">@JLHwung</a>)</li><li>Lorenzo Ferretti (<ahref="https://snyk.io/redirect/github/lorenzoferre">@lorenzoferre</a>)</li><li>Nicolò Ribaudo (<ahref="https://snyk.io/redirect/github/nicolo-ribaudo">@nicolo-ribaudo</a>)</li><li>Raj Pawan Shukla (<ahref="https://snyk.io/redirect/github/RajShukla1">@ RajShukla1</a>)</li><li>Yuku Kotani (<a href="https://snyk.io/redirect/github/yukukotani">@yukukotani</a>)</li><li><a href="https://snyk.io/redirect/github/liuxingbaoyu">@liuxingbaoyu</a></li></ul>      </li>      <li><b>7.22.19</b> - <ahref="https://snyk.io/redirect/github/babel/babel/releases/tag/v7.22.19">2023-09-14</a></br><h2>v7.22.19(2023-09-14)</h2><p>Re-published 7.22.18, due to a releasing error.</p>      </li>    </ul>from <ahref="https://snyk.io/redirect/github/babel/babel/releases">@babel/typesGitHub release notes</a>  </details></details><hr/>**Note:** *You are seeing this because you or someone else with accessto this repository has authorized Snyk to open upgrade PRs.*For more information: <imgsrc="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJkYTdkYzgwNS0xMDczLTQxMWEtYWM1OC1mYTZjMTcyNTJjNzgiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImRhN2RjODA1LTEwNzMtNDExYS1hYzU4LWZhNmMxNzI1MmM3OCJ9fQ=="width="0" height="0"/>🧐 [View latest projectreport](https://app.snyk.io/org/woodpile37/project/e5e31077-489f-44c1-b24d-4af9a1a8d603?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)🛠 [Adjust upgrade PRsettings](https://app.snyk.io/org/woodpile37/project/e5e31077-489f-44c1-b24d-4af9a1a8d603/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)🔕 [Ignore this dependency or unsubscribe from future upgradePRs](https://app.snyk.io/org/woodpile37/project/e5e31077-489f-44c1-b24d-4af9a1a8d603/settings/integration?pkg&#x3D;@babel/parser&amp;pkg&#x3D;@babel/types&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)<!---(snyk:metadata:{"prId":"da7dc805-1073-411a-ac58-fa6c17252c78","prPublicId":"da7dc805-1073-411a-ac58-fa6c17252c78","dependencies":[{"name":"@babel/parser","from":"7.22.16","to":"7.23.0"},{"name":"@babel/types","from":"7.22.19","to":"7.23.0"}],"packageManager":"npm","type":"auto","projectUrl":"https://app.snyk.io/org/woodpile37/project/e5e31077-489f-44c1-b24d-4af9a1a8d603?utm_source=github&utm_medium=referral&page=upgrade-pr","projectPublicId":"e5e31077-489f-44c1-b24d-4af9a1a8d603","env":"prod","prType":"upgrade","vulns":[],"issuesToFix":[],"upgrade":[],"upgradeInfo":{"versionsDiff":1,"publishedDate":"2023-09-25T08:10:31.822Z"},"templateVariants":[],"hasFixes":false,"isMajorUpgrade":false,"isBreakingChange":false,"priorityScoreList":[]})--->
@github-actionsgithub-actionsbot added the outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue labelNov 2, 2023
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsNov 2, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@liuxingbaoyuliuxingbaoyuliuxingbaoyu approved these changes

@nicolo-ribaudonicolo-ribaudonicolo-ribaudo approved these changes

Assignees
No one assigned
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issuePR: New Feature 🚀A type of pull request used for our changelog categoriesPR: Ready to be MergedA pull request with already two approvals, but waiting for the next minor release
Projects
None yet
Milestone
v7.23.0
Development

Successfully merging this pull request may close these issues.

4 participants
@JLHwung@babel-bot@nicolo-ribaudo@liuxingbaoyu

[8]ページ先頭

©2009-2025 Movatter.jp