C2LC-281: Manage upgrade of Flow and the new "Types-First" architecture

Metadata

Source
C2LC-281
Type
Task
Priority
N/A
Status
In Progress
Resolution
N/A
Assignee
Simon Bates
Reporter
Created
2020-12-21T14:21:29.950-0500
Updated
2022-09-21T11:32:25.308-0400
Versions
N/A
Fixed Versions
N/A
Component
N/A

Description

Earlier this year, Flow introduced a new architecture known as "Types-First":

We are currently on Flow version 0.133. Types-First is enabled by default in version 0.134.

It is possible to disable Types-First with the following option in .flowconfig:

types_first=false

One area that is going to need particular attention is react-intl. We are currently on version 3. The latest is version 5. And the Flow types haven't been updated since version 2:

https://github.com/flow-typed/flow-typed/tree/master/definitions/npm/react-intl_v2.x.x

Comments

  • Simon Bates commented 2021-04-19T13:45:30.929-0400

    Flow version 0.143.0, released in January 2021, removes support for "Classic mode" and only supports "Types-First mode". The types_first option has been removed. See: https://github.com/facebook/flow/releases/tag/v0.143.0