-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix(es/preset-env): update data.rs for core-js3 #7023
Conversation
includes: ["es.array.includes", "es.string.includes"], | ||
indexed: INDEXED, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.indexed
was removed from the iterators helpers proposal, so it makes no sense to add it.
indexOf: ["es.array.index-of"], | ||
italics: ["es.string.italics"], | ||
isWellFormed: ["esnext.string.is-well-formed"], | ||
italic: ["es.string.italics"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
italics
import "core-js/modules/es.typed-array.to-string.js"; | ||
import "core-js/modules/es.typed-array.with.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's strange that it's added here since I see just corejs: 3
without specifying a minor version where those modules were added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted 👍
@@ -425,28 +476,33 @@ pub static INSTANCE_PROPERTIES: DataMap<&[&str]> = data_map!(Map { | |||
getYear: "es.date.get-year", | |||
groupBy: "esnext.array.group-by", | |||
groupByToMap: ["esnext.array.group-by-to-map", "es.map", "es.object.to-string"], | |||
groupToMap:["esnext.array.group-to-map", "es.map", "es.object.to-string"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.group
is missing.
trim: ["es.string.trim"], | ||
trimEnd: ["es.string.trim-end"], | ||
trimLeft: ["es.string.trim-start"], | ||
trimRight: ["es.string.trim-end"], | ||
trimStart: ["es.string.trim-start"], | ||
uniqueBy: ["esnext.array.unique-by", "es.map"], | ||
unshift: ["es.array.unshift"], | ||
unThis: "esnext.function.un-this", | ||
values: ARRAY_NATURE_ITERATORS_WITH_TAG, | ||
with: "esnext.array.with", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
es.array.with
toSorted: ["esnext.array.to-sorted", "es.array.sort"], | ||
toSpliced: "esnext.array.to-spliced", | ||
toSorted: ["es.array.to-sorted", "es.array.sort"], | ||
toSpliced: "es.array.to-spliced", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.toReversed
is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
swc-bump:
- swc_ecma_preset_env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated review comment generated by auto-rebase script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated review comment generated by auto-rebase script
Description:
I updated data.rs for core-js3 based on https://github.com/babel/babel-polyfills/blob/main/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.ts
see: #7012 (comment)
BREAKING CHANGE:
Related issue (if exists): #7012