[Snyk] Upgrade flow-parser from 0.114.0 to 0.294.0#5
Merged
Corinne Rauch (Jason-123-cyber) merged 1 commit intoJan 18, 2026
Merged
Conversation
Snyk has created this PR to upgrade flow-parser from 0.114.0 to 0.294.0. See this package in npm: flow-parser See this project in Snyk: https://app.snyk.io/org/jason-123-cyber/project/49f748b6-80a4-4e05-b3d4-feca53ec982c?utm_source=github&utm_medium=referral&page=upgrade-pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade flow-parser from 0.114.0 to 0.294.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 271 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: flow-parser
-
0.294.0 - 2025-12-11
- Support second argument of import expressions
- Fixed bug in computing type hints under JSX expressions (Example of bug fixed)
-
0.293.0 - 2025-12-05
-
0.292.0 - 2025-12-02
- Flow will start to validate variance for declare classes.
- Rename ClassDeclaration property 'superTypeParameters' to 'superTypeArguments'
-
0.291.0 - 2025-11-10
- Flow now provides a code action to fix all
-
0.290.0 - 2025-11-06
- flow will now validate variance in interface declarations
- Bad cyclic object types are now banned. e.g.
- Flow is now stricter with generic mapped type. example
- We improved the refinement system of match. Some code that previously gets a general type will now get a refined type. example
- allow opaque types to be used as keys to computed object properties
- autocomplete on
- flow-dev-tools now properly detects unused suppressions
- Flow now provide auto-import code actions for all unbound names, even through they might resolve to a global. It can be helpful when the global is not what you want.
- Add bigint functions to DataView
-
0.289.0 - 2025-10-23
- For a poorly bounded generic indexed access types, we will no longer generate an error for it when it's being first subtyped against. Instead, we will make it opaque so that when it's being subtyped against, it will error. example
- Flow will error when you are trying to redefine the following reserved types:
- We no longer incorrectly report conditional hook call for loops with a break. example
- Fixed a potential crash when evaluating a conditional type. example
- Flow will now allow computed keys of type
- Update React API types from recent releases
-
0.288.0 - 2025-10-13
- For a function named as a hook but not annotated as a hook, it will no longer be treated like a hook when you try to use it from property access or property destructuring in component syntax components and hook syntax hooks. They will now cause
- Calling functions passed to function and component with hook like name but not annotated as hook will now error. example.
- The config option
- You can now use
- Allow comparisons of bigint singletons
- The second type argument of
-
0.287.0 - 2025-09-27
- We will stop publishing new versions of flow-parser-bin. If you want to parse flow code with native-like performance, you should use
- The deprecated
- Flow has full React 19 ref-as-prop support. Since this version, you are allowed to spread ref prop in component syntax components.
- We now provide a rewrite refactor to convert arrays, map, set, and object types into their readonly forms.
-
0.286.0 - 2025-09-24
- Starting from this version,
- Flow now errors on constant conditions and invalid comparisons. example
- Flow will no longer infer an unsound type for array and object literals passed to a general function. example
- The config option for an earlier mode
- All the ref prop in component syntax components must be made optional
- You might need to rewrite some of your higher order components. e.g. previously an identity HOC must be written as
-
0.285.0 - 2025-09-20
- Fix type of
- Added types for
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/groupBy
- Fixed a bug that when
-
0.284.0 - 2025-09-18
-
0.283.0 - 2025-09-17
-
0.282.0 - 2025-09-16
-
0.281.0 - 2025-09-04
-
0.280.0 - 2025-08-27
-
0.279.0 - 2025-08-14
-
0.278.0 - 2025-08-01
-
0.277.1 - 2025-07-24
-
0.277.0 - 2025-07-23
-
0.276.0 - 2025-07-18
-
0.275.0 - 2025-07-04
-
0.274.2 - 2025-06-27
-
0.274.1 - 2025-06-26
-
0.274.0 - 2025-06-24
-
0.273.1 - 2025-06-11
-
0.273.0 - 2025-06-06
-
0.272.2 - 2025-05-30
-
0.272.1 - 2025-05-24
-
0.272.0 - 2025-05-22
-
0.271.0 - 2025-05-15
-
0.270.0 - 2025-05-12
-
0.269.1 - 2025-04-28
-
0.268.0 - 2025-04-16
-
0.267.0 - 2025-04-11
-
0.266.1 - 2025-03-29
-
0.266.0 - 2025-03-27
-
0.265.3 - 2025-03-17
-
0.265.2 - 2025-03-14
-
0.265.0 - 2025-03-13
-
0.264.0 - 2025-03-13
-
0.263.0 - 2025-03-04
-
0.262.0 - 2025-02-26
-
0.261.2 - 2025-02-18
-
0.261.1 - 2025-02-13
-
0.261.0 - 2025-02-12
-
0.260.0 - 2025-02-10
-
0.259.1 - 2025-01-16
-
0.259.0 - 2025-01-16
-
0.258.1 - 2025-01-08
-
0.258.0 - 2025-01-03
-
0.257.1 - 2024-12-20
-
0.257.0 - 2024-12-18
-
0.256.0 - 2024-12-06
-
0.255.0 - 2024-11-25
-
0.254.2 - 2024-11-22
-
0.254.1 - 2024-11-21
-
0.254.0 - 2024-11-20
-
0.253.0 - 2024-11-14
-
0.252.0 - 2024-11-07
-
0.251.1 - 2024-10-30
-
0.251.0 - 2024-10-29
-
0.250.0 - 2024-10-17
-
0.249.0 - 2024-10-16
-
0.248.1 - 2024-10-12
-
0.248.0 - 2024-10-11
-
0.247.1 - 2024-09-27
-
0.247.0 - 2024-09-27
-
0.246.0 - 2024-09-13
-
0.245.2 - 2024-09-05
-
0.245.1 - 2024-09-04
-
0.245.0 - 2024-08-30
-
0.244.0 - 2024-08-17
-
0.243.0 - 2024-08-07
-
0.242.1 - 2024-07-30
-
0.242.0 - 2024-07-29
-
0.241.0 - 2024-07-17
-
0.240.0 - 2024-07-17
-
0.239.1 - 2024-07-08
-
0.239.0 - 2024-07-03
-
0.238.3 - 2024-06-27
-
0.238.2 - 2024-06-25
-
0.238.1 - 2024-06-18
-
0.238.0 - 2024-06-13
-
0.237.2 - 2024-06-04
-
0.237.1 - 2024-05-29
-
0.237.0 - 2024-05-29
-
0.236.0 - 2024-05-09
-
0.235.1 - 2024-04-24
-
0.234.0 - 2024-04-17
-
0.233.0 - 2024-04-03
-
0.232.0 - 2024-03-26
-
0.231.0 - 2024-03-13
-
0.230.0 - 2024-03-06
-
0.229.2 - 2024-02-25
-
0.229.0 - 2024-02-15
-
0.228.0 - 2024-02-01
-
0.227.0 - 2024-01-18
-
0.226.0 - 2024-01-09
-
0.225.1 - 2023-12-20
-
0.225.0 - 2023-12-19
-
0.224.0 - 2023-12-13
-
0.223.3 - 2023-12-05
-
0.223.2 - 2023-12-01
-
0.223.0 - 2023-11-29
-
0.222.0 - 2023-11-16
-
0.221.0 - 2023-11-09
-
0.220.1 - 2023-11-03
-
0.220.0 - 2023-10-27
-
0.219.5 - 2023-10-25
-
0.219.4 - 2023-10-24
-
0.219.3 - 2023-10-20
-
0.219.2 - 2023-10-19
-
0.219.0 - 2023-10-18
-
0.218.1 - 2023-10-11
-
0.218.0 - 2023-10-05
-
0.217.2 - 2023-09-29
-
0.217.1 - 2023-09-28
-
0.217.0 - 2023-09-21
-
0.216.1 - 2023-09-08
-
0.216.0 - 2023-09-06
-
0.215.1 - 2023-08-23
-
0.215.0 - 2023-08-21
-
0.214.0 - 2023-08-03
-
0.213.1 - 2023-07-25
-
0.213.0 - 2023-07-21
-
0.212.0 - 2023-07-11
-
0.211.1 - 2023-07-08
-
0.211.0 - 2023-07-04
-
0.210.2 - 2023-06-30
-
0.210.1 - 2023-06-27
-
0.210.0 - 2023-06-26
-
0.209.1 - 2023-06-21
-
0.209.0 - 2023-06-15
-
0.208.1 - 2023-06-13
-
0.208.0 - 2023-06-08
-
0.207.0 - 2023-05-26
-
0.206.0 - 2023-05-10
-
0.205.1 - 2023-05-04
-
0.205.0 - 2023-04-26
-
0.204.1 - 2023-04-25
-
0.204.0 - 2023-04-14
-
0.203.1 - 2023-03-31
-
0.203.0 - 2023-03-29
-
0.202.1 - 2023-03-24
-
0.202.0 - 2023-03-16
-
0.201.0 - 2023-03-02
-
0.200.1 - 2023-02-24
-
0.200.0 - 2023-02-16
-
0.199.1 - 2023-02-02
-
0.199.0 - 2023-02-02
-
0.198.2 - 2023-01-26
-
0.198.1 - 2023-01-23
-
0.198.0 - 2023-01-21
-
0.197.0 - 2023-01-15
-
0.196.3 - 2022-12-21
-
0.196.2 - 2022-12-21
-
0.196.1 - 2022-12-19
-
0.196.0 - 2022-12-15
-
0.195.2 - 2022-12-12
-
0.195.1 - 2022-12-09
-
0.195.0 - 2022-12-08
-
0.194.0 - 2022-11-29
-
0.193.0 - 2022-11-11
-
0.192.0 - 2022-11-04
-
0.191.0 - 2022-10-27
-
0.190.1 - 2022-10-21
-
0.190.0 - 2022-10-14
-
0.189.0 - 2022-10-12
-
0.188.2 - 2022-10-06
-
0.188.1 - 2022-09-30
-
0.188.0 - 2022-09-29
-
0.187.1 - 2022-09-20
-
0.187.0 - 2022-09-15
-
0.186.0 - 2022-08-31
-
0.185.2 - 2022-08-24
-
0.185.1 - 2022-08-20
-
0.185.0 - 2022-08-17
-
0.184.0 - 2022-08-03
-
0.183.1 - 2022-07-28
-
0.183.0 - 2022-07-20
-
0.182.0 - 2022-07-07
-
0.181.2 - 2022-06-29
-
0.181.1 - 2022-06-26
-
0.181.0 - 2022-06-23
-
0.180.1 - 2022-06-21
-
0.180.0 - 2022-06-09
-
0.179.0 - 2022-05-26
-
0.178.1 - 2022-05-20
-
0.178.0 - 2022-05-12
-
0.177.0 - 2022-05-03
-
0.176.3 - 2022-04-22
-
0.176.2 - 2022-04-15
-
0.176.1 - 2022-04-14
-
0.176.0 - 2022-04-12
-
0.175.1 - 2022-04-06
-
0.175.0 - 2022-03-31
-
0.174.1 - 2022-03-18
-
0.174.0 - 2022-03-16
-
0.173.0 - 2022-03-04
-
0.172.0 - 2022-02-17
-
0.171.0 - 2022-02-03
-
0.170.0 - 2022-01-24
-
0.169.0 - 2022-01-06
-
0.168.0 - 2021-12-16
-
0.167.1 - 2021-12-13
-
0.167.0 - 2021-12-10
-
0.166.1 - 2021-12-03
-
0.166.0 - 2021-12-02
-
0.165.1 - 2021-11-19
-
0.165.0 - 2021-11-18
-
0.164.0 - 2021-11-10
-
0.163.0 - 2021-10-28
-
0.162.1 - 2021-10-19
-
0.162.0 - 2021-10-14
-
0.161.0 - 2021-09-29
-
0.160.2 - 2021-09-23
-
0.160.1 - 2021-09-20
-
0.160.0 - 2021-09-16
-
0.159.0 - 2021-09-01
-
0.158.0 - 2021-08-19
-
0.157.0 - 2021-08-05
-
0.156.0 - 2021-07-21
-
0.155.1 - 2021-07-17
-
0.155.0 - 2021-07-08
-
0.154.0 - 2021-06-23
-
0.153.0 - 2021-06-14
-
0.152.0 - 2021-05-27
-
0.151.0 - 2021-05-12
-
0.150.1 - 2021-05-06
-
0.150.0 - 2021-04-29
-
0.149.0 - 2021-04-15
-
0.148.0 - 2021-04-01
-
0.147.0 - 2021-03-19
-
0.146.0 - 2021-03-04
-
0.145.0 - 2021-02-18
-
0.144.0 - 2021-02-04
-
0.143.1 - 2021-01-22
-
0.143.0 - 2021-01-21
-
0.142.0 - 2021-01-07
-
0.141.0 - 2020-12-18
-
0.140.0 - 2020-12-10
-
0.139.0 - 2020-12-07
-
0.138.0 - 2020-11-13
-
0.137.0 - 2020-10-29
-
0.136.0 - 2020-10-15
-
0.135.0 - 2020-09-30
-
0.134.0 - 2020-09-17
-
0.133.0 - 2020-09-02
-
0.132.0 - 2020-08-21
-
0.131.0 - 2020-08-06
-
0.130.0 - 2020-07-23
-
0.129.0 - 2020-07-08
-
0.128.0 - 2020-06-27
-
0.127.0 - 2020-06-12
-
0.126.1 - 2020-06-02
-
0.126.0 - 2020-06-02
-
0.125.1 - 2020-05-15
-
0.125.0 - 2020-05-15
-
0.124.0 - 2020-05-05
-
0.123.0 - 2020-04-16
-
0.122.0 - 2020-04-02
-
0.121.0 - 2020-03-18
-
0.120.1 - 2020-03-05
-
0.119.1 - 2020-02-25
-
0.119.0 - 2020-02-21
-
0.118.0 - 2020-02-06
-
0.117.1 - 2020-01-30
-
0.117.0 - 2020-01-24
-
0.116.1 - 2020-01-17
-
0.116.0 - 2020-01-10
-
0.115.0 - 2020-01-03
-
0.114.0 - 2019-12-13
from flow-parser GitHub release notesParser:
Bug Fixes:
Config:
use_mixed_in_catch_variablesoption was renameduse_unknown_in_catch_variablesbecausemixedis being renamed tounknownLikely to cause new Flow errors:
Parser:
IDE:
invalid-type-cast-syntaxerrors in the file.Likely to cause new Flow errors:
type O_loop = { p: 0, __proto__: O_loop }will cause an error.Notable bug fixes:
import { | } from 'a';will only suggest values, not types.IDE:
Library Definitions:
Likely to cause new Flow errors:
$NonMaybeType,NonNullable,$ReadOnly,Readonly,$Keys,$Values,Values,$ReadOnlyMap,ReadonlyMap,$ReadOnlySet,ReadonlySet.Notable bug fixes:
StringPrefix/StringSuffixto be included in object initializers with other non-overlapping keys (example try-Flow)Library Definitions:
Added
act: 19.0: https://react.dev/reference/react/actcaptureOwnerStack: 19.1: See https://react.dev/reference/react/captureOwnerStackuseEffectEvent: 19.2: https://react.dev/reference/react/useEffectEvent<Activity />: 19.2: See https://react.dev/reference/react/ActivityUpdated
useDeferredValue: 19.0: Accepts a second argument for initial valueuseTransition: 19.0: Accepts an async action functionstartTransition: 19.0: Accepts an async action functionLikely to cause new Flow errors:
React.ElementPropsis removed. You should useReact.ElementConfiginstead.react-rule-hook-non-hook-syntaxerrors. To fix, annotate them with hook annotation. exampleReact$RefSetter<...>and andReact$Contextare removed. It continues to be available in the form ofReact.RefSetter<...>andReact.Context<...>, regardless of whether you have importedReact.React$ElementRef<...>was removed. It continues to be available in the form ofReact.ElementRef<...>, regardless of whether you have importedReact.Breaking Changes:
max_literal_lengthwas removed. Flow will always decide whether to infer a specific or general type of string literal based on the natural inference algorithm.Notable bug fixes:
@@ disposeand@@ asyncDisposein your library typings. You can access the respective properties withobj[Symbol.dispose]andobj[Symbol.asyncDispose].Library Definitions:
ExactReactElementwill be populated byReact.ElementConfig<C>instead ofReact.ElementProps<C>. Most of the code that doesn't depend on exact react element types won't be affected.Breaking Changes:
hermes-parserpackage, which is running on wasm.Likely to cause new Flow errors:
React$Elementtype is now removed. You should useReact.NodeorReact.MixedElementin most cases. If you really want exact react elements, you can useExactReactElement_DEPRECATEDNew Features:
IDE:
Breaking Changes:
flow-binwill only contain ARM64 binaries for macOS.Likely to cause new Flow errors:
React.ElementConfig<...>andReact.PropsOf<...>will now always include the ref prop in the props object type.react.ref_as_prop=partial_supportis removed, and Flow now has better support for React 19's ref-as-prop behavior:now it must be written as
Library Definitions:
useActionStatehook in React. Type should beAwaitedinstead ofPromise(the opposite operation).Object.groupByandMap.groupByBug fixes:
experimental.ts_utility_syntax=true, importedReadonly,ReadonlyArray,NonNullable,ReadonlyMap,ReadonlySettypes are considered any.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: