Skip to content

Parse partial-application 2021-10 version - #17785

Closed
JLHwung wants to merge 15 commits into
babel:mainfrom
JLHwung:parse-partial-application-2021-10
Closed

JLHwung wants to merge 15 commits into
babel:mainfrom
JLHwung:parse-partial-application-2021-10

Conversation

@JLHwung

@JLHwung JLHwung commented Feb 9, 2026

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues? parse and print the latest 2021-10 version of the partial-application proposal
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR includes commits from #17781 and #17782, please review those PRs first.

This PR includes parse & print supports of the 2021-10 version. The Babel parser will now accepts version: "2021-10" as a valid candidate of the partialApplication parser plugin options. The parser will throw when users used the 2018-07 syntax within the 2021-10 syntax or vice. See the spec.md for the proposed AST change.

@JLHwung JLHwung added PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Partial Application labels Feb 9, 2026
@babel-bot

babel-bot commented Feb 9, 2026 •

Copy link
Copy Markdown
Collaborator

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

?0e5,
?1.6,
?07,
?08,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Technically this production is valid as it is covered by the DecimalIntegerLiteral production. I have open an issue and suggest disallowing such cases: tc39/proposal-partial-application#58

@pkg-pr-new

pkg-pr-new Bot commented Feb 9, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

commit: 1c65a5a

@JLHwung
JLHwung marked this pull request as ready for review February 9, 2026 21:32
@JLHwung
JLHwung force-pushed the parse-partial-application-2021-10 branch 2 times, most recently from 3d5e315 to a8f5413 Compare March 4, 2026 19:14
@JLHwung
JLHwung force-pushed the parse-partial-application-2021-10 branch from a8f5413 to c986d36 Compare March 12, 2026 14:27
@JLHwung
JLHwung force-pushed the parse-partial-application-2021-10 branch from e55d2d4 to b6e68fa Compare March 20, 2026 20:00
@JLHwung
JLHwung force-pushed the parse-partial-application-2021-10 branch from b6e68fa to c4524d3 Compare April 23, 2026 13:00
@nicolo-ribaudo nicolo-ribaudo added this to the v8.1.0 milestone Jul 14, 2026
@nicolo-ribaudo

Copy link
Copy Markdown
Member

@JLHwung I'm writing the release post. Does this need any change to @babel/plugin-proposal-partial-application? Do we just need to pass the option through?

@JLHwung

JLHwung commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@JLHwung I'm writing the release post. Does this need any change to @babel/plugin-proposal-partial-application? Do we just need to pass the option through?

Thanks for the heads-up. Without any change, the current proposal transform would only support a subset of the 2021-10 version: Ordered partial call like f~(?0, ?1, ?0), which is introduced in this version, are not yet supported. I can try to fast track the full support in the upcoming days or we can defer the complete syntax & transpiling support to 8.2.

Are there any internal discussion regards to this proposal?

@JLHwung
JLHwung force-pushed the parse-partial-application-2021-10 branch from c4524d3 to 9895075 Compare October 6, 2026 20:24
@nicolo-ribaudo

Copy link
Copy Markdown
Member

Are there any internal discussion regards to this proposal?

No. I will update the blog post to only mention parsing then, no need to rush.

@JLHwung

JLHwung commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

This PR is closed and reopen as #18328 such that we can use stacked PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Needs Docs PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Partial Application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants