Skip to content

Commit

Permalink
Cut Flow v0.21.0
Browse files Browse the repository at this point in the history
Reviewed By: jeffmo

Differential Revision: D2887910

fb-gh-sync-id: 511f56102199e83b2ae21ae48bf4d0a0d28a54bf
  • Loading branch information
gabelevi authored and facebook-github-bot-9 committed Feb 1, 2016
1 parent e7a5652 commit 1d57ebd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
###v0.21.0

Likely to cause new Flow errors:
- ES6 react classes without state should now `extends React.Component<DefaultProps, Props, void>` (previously it was `extends React.Component<DefaultProps, Props, {}>)`
- ES6 react classes with state should declare `state: State;`

New features:
- Autocomplete for jsx properties
- [Typed JSX intrinsics](https://github.com/facebook/flow/commit/e0e44d392d6fa2bff36ea6aee87f965c66ee5b7e). This means you can list which jsx intrinsics exist (like `div`, `span`, etc) and specify which properties they have.
- Syntax for declaring variance at definition. For example, `interface Generator<+Yield,+Return,-Next> {...}`. Still pending transpiler support though.
- Refining `string` and union types with string equality now properly refines the types.
- Support for `export * as` from @leebyron's [Stage1 proposal](https://github.com/leebyron/ecmascript-more-export-from). Babel support [here](http://babeljs.io/docs/plugins/transform-export-extensions/)

Notable bug fixes:
- Fixed bug with class expressions due to `this` type
- Fixed autocomplete for `this`
- Recognizes exhaustiveness in `switch` statements with `default` case.
- Fixed "Did not expect BoundT" errors
- Fixed infinite loop in certain recursive types
- Fixed an incremental mode issue with deleted files
- Fixed an incorrect refinement when assigning an object to a variable.

Misc:
- Some internal errors now will be made user visibile instead of silently failing. They generally mean that Flow has some bug or is making an untrue assumption/assertion. If you see these please report them!
- Improvements to how we report certain types (type application, optional types) via our APIs
- Various sentinel improvements, including boolean sentinels
- Various improvements to the buildin flow libraries (thanks everyone for the pull requests!)

###v0.20.1

Bug fixes:
Expand Down
2 changes: 1 addition & 1 deletion src/common/flowConfig.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
open Utils
open Sys_utils

let version = "0.20.1"
let version = "0.21.0"
let flow_ext = ".flow"

let default_temp_dir =
Expand Down
2 changes: 1 addition & 1 deletion tests/version/version.exp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.flowconfig:10 Wrong version of Flow. The config specifies version 0.1.0 but this is version 0.20.1
.flowconfig:10 Wrong version of Flow. The config specifies version 0.1.0 but this is version 0.21.0

0 comments on commit 1d57ebd

Please sign in to comment.