Skip to content
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

Add @babel/helper-validator-identifier #11289

Merged
merged 5 commits into from Mar 20, 2020

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Mar 19, 2020

Q                       A
Fixed Issues? Fixes #10434
Patch: Bug Fix? Yes
Minor: New Feature? Yes, new package is introduced
Tests Added + Pass? Yes
Documentation PR Link TODO
Any Dependency Changes?
License MIT

This PR extracts most utilities of babel-parser/utils/identifier into a dedicated package. By doing so we can replace esutils since we only use a small faction (validation) of it.

This PR also fixes the issue caused by out-of-dated Unicode version bundled by esutils.

@JLHwung JLHwung added PR: Internal 🏠 A type of pull request used for our changelog categories PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: parser labels Mar 19, 2020
Copy link
Member

@existentialism existentialism left a comment

Choose a reason for hiding this comment

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

❤️

@JLHwung JLHwung force-pushed the helper-validator-identifier branch from f519a47 to 153c057 Compare March 19, 2020 20:15
"access": "public"
},
"main": "./lib/index.js",
"exports": "./lib/index.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following practice from https://github.com/nodejs/node/pull/32098/files#diff-8e67f407bc32a0569e25d7ecaff6e494R208

"exports": string is supported on every version of node.js 13.

@JLHwung JLHwung force-pushed the helper-validator-identifier branch from 80343a1 to 8b34e8e Compare March 20, 2020 02:23
@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 Jun 20, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2020
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 pkg: parser PR: Bug Fix 🐛 A type of pull request used for our changelog categories PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the unicode definition of t.isValidIdentifier is outdated
4 participants