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

[babel 8] Other Babel 8 misc changes #15576

Merged
merged 10 commits into from Apr 27, 2023

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Apr 19, 2023

Q                       A
Documentations PR Link babel/website#2765
License MIT

These are almost all the remaining TODO(Babel 8) comments :)

What remains to do (in other PRs):

@babel-bot
Copy link
Collaborator

babel-bot commented Apr 19, 2023

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

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.

So the breaking changes of this PR are:

Other changes like removing the compat code for legacy helpers are not actually breaking. Did I miss any breaking changes?

@nicolo-ribaudo
Copy link
Member Author

@JLHwung That's correct 👍 All the other changes are just internal changes.

Comment on lines 11 to 21
function escape(code: number) {
let str = code.toString(16);
// Sigh, node 6 doesn't have padStart
// TODO: Remove in Babel 8, when we drop node 6.
while (str.length < 4) str = "0" + str;
return "\\u" + str;
if (process.env.BABEL_8_BREAKING) {
return "\\u" + code.toString(16);
} else {
let str = code.toString(16);
// Sigh, node 6 doesn't have padStart
// TODO: Remove in Babel 8, when we drop node 6.
while (str.length < 4) str = "0" + str;
return "\\u" + str;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I think I've made a mistake, but it seems the tests don't cover it.

@nicolo-ribaudo nicolo-ribaudo merged commit c060e5e into babel:main Apr 27, 2023
54 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the babel-8-misc-again branch April 27, 2023 11:56
@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 Jul 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2023
@nicolo-ribaudo nicolo-ribaudo added this to the v8.0.0 milestone Aug 8, 2023
@JLHwung JLHwung added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release and removed babel 8 labels Aug 9, 2023
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: Breaking Change 💥 A type of pull request used for our changelog categories for next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants