New Features:
- Add Smart Select IDE feature. This allows you to expand or shrink your selection based on the surrounding code. For example you might expand from an identifier to the containing expression, to the whole statement. In vscode, you can do this via ctrl+shift+cmd+(left or right arrow).
- Add Enum
getName(value: TEnum): stringmethod. Given a value of the enum type, this returns the string representation of the name of the member. You will also need to update to the latestflow-enums-runtimepackage.
Notable bug fixes:
- Update
annotate-exportscodemod to add lowercasereactinstead ofReact(thanks @meandmax!).
Misc:
- Improve developer setup on Windows by exposing internal setup scripts and updating the Windows setup
README.md. - Enable
cache_live_errors_artifactsandcache_signature_help_artifactsconfig options by default. - Improve performance and reliability of Watchman integration.
- Error for use of
superoutside ofclassmethods added in0.148.0has been removed.
Library Definitions:
- Update React types for React 18 release.
- Update the
Map,WeakMap,SetandWeakSetconstructors' iterable param to be optional as per the ECMAScript spec. - Add typing for
PageTransitionEventas per the HTML spec (thanks @bripkens!). - Added support for
stepUpandstepDowninHTMLInputElementdeclaration as per the HTML spec.