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

Update preset-env mappings #10742

Merged
merged 1 commit into from Nov 20, 2019
Merged

Update preset-env mappings #10742

merged 1 commit into from Nov 20, 2019

Conversation

existentialism
Copy link
Member

@existentialism existentialism commented Nov 20, 2019

Q                       A
Fixed Issues? Fixes #10740
Patch: Bug Fix? Y
Major: Breaking Change? N
Minor: New Feature? N
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

After this, we can rebase #10225 and land that as well.

@existentialism existentialism added pkg: preset-env PR: Bug Fix 🐛 A type of pull request used for our changelog categories labels Nov 20, 2019
@@ -6,7 +6,7 @@
"safari": "10.1",
"opera": "48",
"ios_saf": "10.3",
"and_chr": "71",
"and_ff": "64"
"and_chr": "74",
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to bump and_chr and and_ff because:

  1. CanIUse doesn't support mobile browsers versions
  2. caniuse-db is not bumped

Copy link
Member Author

Choose a reason for hiding this comment

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

CanIUse doesn't support mobile browsers versions

What do you mean? This data is generated directly via our script?

image

caniuse-db is not bumped

FWIW, if you run build-data on master, it updates these two values with the version of caniuse-db that it's pinned to. In fact, if we bump it, it'll update and_chr to 78.

Copy link
Contributor

Choose a reason for hiding this comment

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

They should not be updated because caniuse does not track old mobile browser versions, so and_chr will always return the latest version of all available Android Chrome, same as and_ff. (i.e. they are bumped in this commit of caniuse-db)

Could we skip and_ff and and_chr in

const skipList = new Set(["android", "samsung"]);

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, gotcha. Yep I'll make an update.

Copy link
Member

Choose a reason for hiding this comment

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

Related: #9978

Copy link
Member

Choose a reason for hiding this comment

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

According to #7344 (comment), it was you who explained it to me 😛

Copy link
Contributor

Choose a reason for hiding this comment

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

@nicolo-ribaudo Any idea why and_chr is removed from skipList in #9978?

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding them to skipList would remove them from the generated output altogether

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, and it doesn't really matter since browserlists returns the desktop version anyway.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then we need a doNotUpdateList then. Anyway let's address it in a separate PR.

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: preset-env PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@babel/preset-env includes transform-template-literals for safari
3 participants