Skip to content

Update preset-env mappings#10742

Merged
JLHwung merged 1 commit intomasterfrom
issue-10740
Nov 20, 2019
Merged

Update preset-env mappings#10742
JLHwung merged 1 commit intomasterfrom
issue-10740

Conversation

@existentialism
Copy link
Copy Markdown
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
"ios_saf": "10.3",
"and_chr": "71",
"and_ff": "64"
"and_chr": "74",
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@nicolo-ribaudo nicolo-ribaudo Nov 20, 2019

Choose a reason for hiding this comment

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

Related: #9978

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

@existentialism existentialism Nov 20, 2019

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
Copy Markdown
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
Copy Markdown
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