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

Fixes for Flow v0.47.0 #840

Merged
merged 4 commits into from
Jun 6, 2017

Conversation

hallettj
Copy link
Contributor

Thank you for taking the trouble to ship type definitions with your library! There are changes in Flow v0.47.0 that cause Flow to report errors that were not reported in previous versions. I put together this PR so that your users will not see errors when they upgrade to the latest Flow. And I made sure that type-checking still passes with Flow v0.43.1 (the version that you have been using).

As of v0.47.0 Flow strictly checks function arity. That means you will get an error if you call a function with more arguments than are listed in the function signature. For details see https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/

There are also some changes to checking React component prop types. The latest Flow will report some errors that previous versions missed.

The full changelog is here: https://github.com/facebook/flow/blob/master/Changelog.md#0470

As of v0.47.0 Flow strictly checks function arity. That means you will get an
error if you call a function with more arguments than are listed in the function
signature.  For details see
https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/

There are also some changes to checking React component prop types. The latest
Flow will report some errors that previous versions missed.

The full changelog is here:
https://github.com/facebook/flow/blob/master/Changelog.md#0470
@mxstbr-bot
Copy link

mxstbr-bot commented May 26, 2017

Warnings
⚠️ There are library changes, but not tests. That's OK as long as you're refactoring existing code

Generated by 🚫 dangerJS

@kitten
Copy link
Member

kitten commented May 26, 2017

@styled-components/typers

Copy link
Member

@relekang relekang left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@semeleven
Copy link

@hallettj maybe merge master and some body merge this PR?

@k15a k15a merged commit e0f5fa2 into styled-components:master Jun 6, 2017
@kitten
Copy link
Member

kitten commented Jun 6, 2017

@k15a can you quickly change the changelog :) the entry has landed in the wrong section now

@k15a
Copy link
Member

k15a commented Jun 6, 2017

Ohh thought the v2 release is older. I have created a PR.

@hallettj hallettj deleted the fixes-for-flow-v0.47.0 branch June 9, 2017 16:02
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.

6 participants