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 flow to 0.180.0 #8201

Merged
merged 8 commits into from
Jun 14, 2022
Merged

Update flow to 0.180.0 #8201

merged 8 commits into from
Jun 14, 2022

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Jun 10, 2022

...

Comment on lines -1152 to -1153
} else if (alias.fileName) {
alias = alias.fileName;
Copy link
Member Author

Choose a reason for hiding this comment

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

Flow said that this is unreachable type-wise. And this branch was indeed never reached in the tests. So either it really is dead, or we don't test this at all.

@parcel-benchmark
Copy link

parcel-benchmark commented Jun 10, 2022

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 1.96s +13.00ms
Cached 423.00ms -16.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 97.00ms +6.00ms ⚠️
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 98.00ms +6.00ms ⚠️
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 99.00ms +7.00ms ⚠️

Cached Bundles

No bundle changes detected.

React HackerNews ✅

Timings

Description Time Difference
Cold 12.08s -74.00ms
Cached 554.00ms -3.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 2.14m -1.08s
Cached 3.15s +66.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Three.js ✅

Timings

Description Time Difference
Cold 8.71s -71.00ms
Cached 357.00ms +7.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Click here to view a detailed benchmark overview.

shouldScopeHoist = false,
sourceMap,
loc,
}: EnvironmentOpts = {...null},
Copy link
Member

Choose a reason for hiding this comment

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

This is weird. What's going on here? All the properties are optional right, so why null?

Copy link
Member Author

@mischnic mischnic Jun 13, 2022

Choose a reason for hiding this comment

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

This is not about the properties, it's literally only about exact/inexact/unsealed objects: facebook/flow#7424

https://flow.org/try/#0DYUwLgBAHgXBDeAfRBfCBeBKDcAoUkAnnPGpqXgRAF4nJkIB0zAdgK7DA5A

facebook/flow#2977

Copy link
Member

Choose a reason for hiding this comment

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

That's super weird when all the properties are optional. Therefore an empty object should be valid. I guess {...null} has some additional runtime overhead. sigh

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Alright, {/*:: ...null */} works as well, and doesn't do anything at runtime. I've also replaced all preexisting occurrences of {...null} with the comment version.

Copy link
Member

Choose a reason for hiding this comment

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

lol wow

@devongovett devongovett merged commit ce4328c into v2 Jun 14, 2022
@devongovett devongovett deleted the flow-180 branch June 14, 2022 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants