Skip to content

Commit

Permalink
fix(flow): upgrade flow to 0.56.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: flow types may have been affected and incompatible with
prior versions of flow.
  • Loading branch information
jedwards1211 committed Nov 28, 2017
1 parent cb70640 commit 342647d
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 8 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[ignore]
<PROJECT_ROOT>/lib/.*
<PROJECT_ROOT>/node_modules/immutable/.*
.*/node_modules/.*/tests?/.*\.json
.*/node_modules/fbjs/.*
.*/node_modules/jss/.*
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 1fcd753746a87b9a528c2d9b2b796ee6
// flow-typed version: <<STUB>>/babel-plugin-flow-react-proptypes_v^2.2.1/flow_v0.56.0
// flow-typed signature: 7f1abbf0a3de84e95eedbdf7d6dc7db3
// flow-typed version: <<STUB>>/babel-plugin-flow-react-proptypes_v^9.1.1/flow_v0.56.0

/**
* This is an autogenerated libdef stub for:
Expand Down
53 changes: 53 additions & 0 deletions flow-typed/npm/flow-copy-source_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// flow-typed signature: f9663490ff97b8d0eb0e93c075532b4c
// flow-typed version: <<STUB>>/flow-copy-source_v^1.2.1/flow_v0.56.0

/**
* This is an autogenerated libdef stub for:
*
* 'flow-copy-source'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module 'flow-copy-source' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'flow-copy-source/bin/flow-copy-source' {
declare module.exports: any;
}

declare module 'flow-copy-source/src/index' {
declare module.exports: any;
}

declare module 'flow-copy-source/src/kefir-copy-file' {
declare module.exports: any;
}

declare module 'flow-copy-source/src/kefir-glob' {
declare module.exports: any;
}

// Filename aliases
declare module 'flow-copy-source/bin/flow-copy-source.js' {
declare module.exports: $Exports<'flow-copy-source/bin/flow-copy-source'>;
}
declare module 'flow-copy-source/src/index.js' {
declare module.exports: $Exports<'flow-copy-source/src/index'>;
}
declare module 'flow-copy-source/src/kefir-copy-file.js' {
declare module.exports: $Exports<'flow-copy-source/src/kefir-copy-file'>;
}
declare module 'flow-copy-source/src/kefir-glob.js' {
declare module.exports: $Exports<'flow-copy-source/src/kefir-glob'>;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"babel-cli": "^6.22.2",
"babel-core": "^6.22.1",
"babel-eslint": "^7.1.1",
"babel-plugin-flow-react-proptypes": "^8.0.0",
"babel-plugin-flow-react-proptypes": "^9.1.1",
"babel-plugin-istanbul": "^4.0.0",
"babel-plugin-transform-react-constant-elements": "^6.9.1",
"babel-plugin-transform-runtime": "^6.22.0",
Expand Down
2 changes: 1 addition & 1 deletion src/simpleWithTransitionContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TransitionContext from 'react-transition-context'
import {createSimpleViewSlider} from './simple'
import type {ViewProps} from './index'

function renderView({index, key, style, ref, transitionState}: ViewProps): React.Element<typeof TransitionContext> {
function renderView({index, key, style, ref, transitionState}: ViewProps): React.Element<React.ComponentType<typeof TransitionContext>> {
return (
<TransitionContext key={key} transitionState={transitionState}>
<div key={key} style={style} ref={ref}>
Expand Down
3 changes: 2 additions & 1 deletion src/withTransitionContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export type Props = {
}

export default class ViewSliderWithTransitionContext extends React.Component<Props> {
renderView = (props: ViewProps): React.Element<typeof TransitionContext> => {
static defaultProps: Props;
renderView = (props: ViewProps): React.Element<React.ComponentType<typeof TransitionContext>> => {
return (
<TransitionContext key={props.key} transitionState={props.transitionState}>
{this.props.renderView(props)}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,9 @@ [email protected]:
babel-template "^6.24.1"
babel-types "^6.24.1"

babel-plugin-flow-react-proptypes@^8.0.0:
version "8.0.0"
resolved "https://registry.npmjs.org/babel-plugin-flow-react-proptypes/-/babel-plugin-flow-react-proptypes-8.0.0.tgz#bcc8b3ce3b7ffa7d35ff99252d1980a6a028e503"
babel-plugin-flow-react-proptypes@^9.1.1:
version "9.1.1"
resolved "https://registry.npmjs.org/babel-plugin-flow-react-proptypes/-/babel-plugin-flow-react-proptypes-9.1.1.tgz#276a55a82937892dffed65b53732bd55beef4af5"
dependencies:
babel-core "^6.25.0"
babel-template "^6.25.0"
Expand Down

0 comments on commit 342647d

Please sign in to comment.