Skip to content

Caret topic (pipe operator)#13749

Merged
JLHwung merged 6 commits intobabel:mainfrom
js-choi:caret-topic
Oct 28, 2021
Merged

Caret topic (pipe operator)#13749
JLHwung merged 6 commits intobabel:mainfrom
js-choi:caret-topic

Conversation

@js-choi
Copy link
Copy Markdown
Contributor

@js-choi js-choi commented Sep 11, 2021

Q                       A
Fixed Issues? No
Patch: Bug Fix? No
Major: Breaking Change? No
Minor: New Feature? Yes
Tests Added + Pass? Yes
Documentation PR Link babel/website#2575
Any Dependency Changes? No
License MIT

Adds option for "topicToken": "^" to the Hack pipe operator to match the current proposal. See tc39/proposal-pipeline-operator#91 (comment).

(This also fixes babel-generator only supporting "topicToken": "#" and not "topicToken": "%".)

CC @nicolo-ribaudo, @JLHwung, @tabatkins, @mAAdhaTTah, @jamiebuilds.

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented Sep 11, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c422321:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@nicolo-ribaudo nicolo-ribaudo added PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Pipeline Operator labels Sep 11, 2021
js-choi added a commit to tc39/proposal-pipeline-operator that referenced this pull request Oct 16, 2021
As per #91 (comment), I think my [change of the spec from `%` to `^`](#91 (comment)) was premature, partially because I now mildly prefer `%` again, but mostly because it’s what we presented to plenary on August and because it’s what Babel currently supports (see babel/babel#13749).

This is a tentative change and has no bearing on what the actual final topic token will be. It’s just a swap to the explainer and spec back to what we presented to the Committee plenary on August.

This will be almost certainly be the last time I switch the topic token until we hold our TC39 incubator sessions for bikeshedding the token in early November.
@nicolo-ribaudo nicolo-ribaudo added the PR: Ready to be Merged A pull request with already two approvals, but waiting for the next minor release label Oct 19, 2021
Copy link
Copy Markdown
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.

Awesome!

@JLHwung JLHwung merged commit ad59a2c into babel:main Oct 28, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jan 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories PR: Ready to be Merged A pull request with already two approvals, but waiting for the next minor release Spec: Pipeline Operator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants