|
| 1 | +###v0.15.0 |
| 2 | + |
| 3 | +Likely to cause new Flow errors: |
| 4 | + |
| 5 | +- Flow now treats class identifiers as being let bound. You cannot refer to a class before it is defined. |
| 6 | +- If you accidentally use a tuple type instead of an array type for a rest param then Flow will complain |
| 7 | +- You cannot use `this` before `super()` in a derived constructor, per ES6 semantics |
| 8 | +- Our dictionary property (aka indexer property) support is much more robust and catches things it previously missed. |
| 9 | +- We weren't properly enforcing optional properties in `interfaces` and `declare class`. Now we are. |
| 10 | + |
| 11 | +New Features: |
| 12 | + |
| 13 | +- Generators support, courtesy of [@samwgoldman](https://github.com/samwgoldman) |
| 14 | +- # of worker processers is now configurable, defaults to the # of CPUs |
| 15 | +- If Flow knows the value of a boolean expression, then it will know the value of that expression negated. |
| 16 | +- Flow can remember refinements for things like `if(x.y[a.b])` |
| 17 | +- `export type {type1, type2}` syntax |
| 18 | + |
| 19 | +Notable Bug Fixes: |
| 20 | + |
| 21 | +- Fixed issue where Flow would still read package.json for [ignore]'d path |
| 22 | +- Fixed some leaky annotations that let data flow through them |
| 23 | +- Fixed instance and class types to be considered truthy |
| 24 | +- Flow still initializing message now fits in 80 chars, compliments of [@spicyj](https://github.com/spicyj) |
| 25 | +- No longer will report hoisted declarations as unreachable code |
| 26 | +- Fixed issue with how Flow chooses its tmp dir |
| 27 | +- An async function can return a `T` or a `Promise<T>` and it means the same thing |
| 28 | +- Fixed Flow forgetting about optional properties after an assignment refinement |
| 29 | +- Fixed parser issue around future reserved keywords |
| 30 | +- Optional parameters and rest parameters now work better together |
| 31 | + |
| 32 | +Misc: |
| 33 | + |
| 34 | +- Updated error locations. We've spent a lot of time auditing our error locations and trying to move them closer to the actual errors. |
| 35 | +- esproposal.decorators option to tell Flow to parse and ignore decorators |
| 36 | +- Bunch of updates to the libraries |
| 37 | +- Some perf work |
| 38 | +- Test output is colorized |
| 39 | + |
1 | 40 | ###v0.14.0
|
2 | 41 |
|
3 | 42 | Likely to cause new Flow errors:
|
|
0 commit comments