chore(deps): update dependency flow-bin to v0.331.0 - #291
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Author
Branch automerge failureThis PR was configured for branch automerge, however this is not possible so it has been raised as a PR instead.
|
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
July 6, 2018 20:09
a8c6009 to
17ff3fb
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
July 21, 2018 01:34
17ff3fb to
2964870
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
August 4, 2018 00:55
2964870 to
7fff34d
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
2 times, most recently
from
August 18, 2018 00:37
4746d8c to
5d28cd5
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
August 31, 2018 17:48
5d28cd5 to
1a352c7
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
September 14, 2018 19:51
1a352c7 to
146c42c
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
October 1, 2018 21:18
146c42c to
0debb7a
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
October 11, 2018 17:01
0debb7a to
c7e26cb
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
October 25, 2018 08:50
c7e26cb to
d1885fc
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
October 30, 2018 04:54
d1885fc to
db795eb
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
November 9, 2018 02:34
db795eb to
07c0490
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
November 28, 2018 00:19
07c0490 to
fd58475
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
December 10, 2018 20:47
fd58475 to
182ff63
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
December 13, 2018 16:07
182ff63 to
839f0b9
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
March 15, 2019 14:32
e77b08d to
82ba6b0
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
March 15, 2019 16:24
82ba6b0 to
da58109
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
April 2, 2019 02:26
da58109 to
02f4d8d
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
April 23, 2019 10:52
02f4d8d to
e734dcf
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
May 4, 2019 16:53
e734dcf to
2ea1d48
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
May 12, 2019 08:52
2ea1d48 to
b61df7a
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
June 1, 2019 09:59
b61df7a to
a69c02e
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
July 13, 2019 11:57
a69c02e to
b29f539
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
August 10, 2019 08:59
b29f539 to
8c32e8b
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
August 20, 2019 19:43
8c32e8b to
5faba5d
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
September 4, 2019 23:58
5faba5d to
1fd8274
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
September 7, 2019 15:58
1fd8274 to
cda321e
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
October 4, 2019 09:55
cda321e to
6c380d8
Compare
renovate
Bot
force-pushed
the
renovate/flow-bin-0.x
branch
from
November 12, 2019 10:00
6c380d8 to
919ffc5
Compare
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.
This PR contains the following updates:
0.74.0→0.331.0Release Notes
facebook/flow (flow-bin)
v0.331.0Compare Source
Likely to cause new Flow errors:
method-unbindingerrors and instead perform stricter this-type checking (example).IDE:
type-at-posand hoverLibrary Definitions:
React.ReactElementnow matches latest type in@types/react. Added missingReact.JSX.Elementthat makes the type in@types/react.v0.330.0Compare Source
Likely to cause new Flow errors:
.call/apply/bindcalls. Only expressions of the form<expr>.m.call(<expr>, ...),<expr>.m.apply(<expr>, ...)and<expr>.m.bind(<expr>, ...)are allowed.[untyped]section of flowconfig will use the glob system. See https://flow.org/en/docs/config/untyped/Notable bug fixes:
instanceofrefinement of constructor objects.Partialno longer strip readonly-ness of dictionaries. (example)v0.329.0Compare Source
Likely to cause new Flow errors:
unique symbolannotation is now an error unless it is the type of aconstvariable, of areadonlyobject type or interface property, or of astatic readonlyclass field.New Features:
flow-parserandflow-eslintpackages that are drop-in replacement forhermes-parserandhermes-eslint. Babel docs and ESLint docs have been updated.declare classimported from another module, can be keyed by aunique symbol.Notable bug fixes:
keyofover asymbolindex signature is nowsymbolrather thanstring.x !== undefinedno longer stops refining after a call that passesundefinedas an argument: (e.g. try-Flow)Library Definitions:
Symbolare typed asunique symbol, andSymbol.metadatais now available.v0.328.0Compare Source
Breaking changes:
[include]and[ignore]sections in flowconfig should use globs instead. Read https://flow.org/en/docs/config/include/ and https://flow.org/en/docs/config/ignore/ for more information.New Features:
thistype guards can now be used on non-static methods of regular classes, not justdeclare classand interface methods. The method body is checked for consistency against the guard type.Notable bug fixes:
Library Definitions:
WeakMapkeysv0.327.0Compare Source
New Features:
[label: K]keeps index-signature semantics. Breaking: a key headed by a value binding is read as a computed key. Thus a class or enum key such as{[C]: V}is now an error, and a qualified type exposed through a class/namespace merge, as in{[C.K]: V}, must use the labeled form{[key: C.K]: V}to remain an index signature.declare classbody, a bracketed key written as a string or number literal, or as the name of a value, is now a computed key naming a single property rather than an index signature, so several such keys can coexist, andstaticputs the property on the static side. A key written as a type-only name is unchanged, and the labeled form[label: K]keeps index-signature semantics. Breaking: a key headed by a value binding is read as a computed key, so a class or enum key such asinterface I {[C]: V}is now an error and must use[key: C]to remain an index signature.[expr](): Tthat resolves to a single literal string or safe-integer number is now accepted in interface,declare class, and object type bodies (previously a parse error outside.d.tsfiles) and reads as a named method.arr['map']orarr[Symbol.iterator]) now reads the corresponding named member instead of erroring that the key is not an array index, and a string key holding a safe integer (arr['0']) indexes the array like the equivalent numeric key.Notable bug fixes:
keyof anynow evaluates toanyas expected. Spurious errors related to the bug will no longer fire.Parser:
componentandhooktype annotations as the declaration ofdeclare export defaultLibrary Definitions:
v0.326.0Compare Source
Breaking changes:
experimental.channel_modeexperimental.channel_mode.windowsexperimental.long_lived_workersexperimental.long_lived_workers.windowsgc.worker.custom_major_ratiogc.worker.custom_minor_max_sizegc.worker.custom_minor_ratiogc.worker.major_heap_incrementgc.worker.minor_heap_sizegc.worker.space_overheadgc.worker.window_sizesharedmemory.hash_table_powsharedmemory.heap_sizeLikely to cause new Flow errors:
v0.325.0Compare Source
No behavioral changes in this release
v0.324.0Compare Source
New Features:
[include]and[ignore]sections can now be configured using globs, in addition to the current regex based system. Right now, glob items must be specified withglob:prefix. Globs do not support<PROJECT_ROOT>, since they are assumed to start from the project root.v0.323.0Compare Source
No behavioral changes in this release
v0.322.0Compare Source
Notable bug fixes:
instanceofno longer leaksanyfrom members that cannot match the guard (e.g.Foo<string> | Bar<number>refined byinstanceof Foonow yieldsFoo<string>instead ofFoo<string> | Foo<any>). This may surface real errors that were previously masked.v0.321.0Compare Source
Parser:
flow-parseris now backed by the Rust port parser. It will have public API similar to that ofhermes-parser.v0.320.0Compare Source
Likely to cause new Flow errors:
Partial,Required,Readonly,Pick, andOmit. Examplev0.319.0Compare Source
Likely to cause new Flow errors:
casting_syntaxis removed. Theascasting syntax is the only supported casting syntax. See Modernizing legacy syntax for migration guidance.T: Bin favor ofT extends Bin type parameters, and error on+/-in favor ofreadonly/writeonly. See Modernizing legacy syntax for migration guidance.New Features:
NaNas amatchpatternNotable bug fixes:
matchbeing treated as their positive counterpartConstructorParametersandInstanceTypenow work onClass<C>, not justtypeof Cmatchinstance patterns whose constructor is a subclass of the scrutinee type are no longer incorrectly reported as unused.v0.318.0Compare Source
Likely to cause new Flow errors:
v0.317.0Compare Source
New Features:
-?(optionality removal) in mapped types.ConstructorParametersandInstanceTypeMisc:
.flowconfigoptionscomponent_syntax,enums, andpattern_matchingnow default totrue. To keep the previous behavior, set the corresponding option to=falsein your.flowconfig.v0.316.0Compare Source
Likely to cause new Flow errors:
deprecated-typeanddeprecated-type-boolerrors are now always on (the lints were on by default already). Update any references of the typebooltoboolean, and delete references to the lints in your.flowconfigandflowlintcomments — the setting is a no-op for this release and will be removed in a future release.v0.315.0Compare Source
Misc:
readonly,writeonly,in,out) on type parameters and object/class properties are now enabled by default. Theexperimental.allow_variance_keywordsis no longer needed to opt in.readonly/writeonlyfor property positions,out/infor type parameter positions) instead of listing both alternatives.v0.314.0Compare Source
Likely to cause new Flow errors:
implicit-inexact-objectlint, it no longer does anything sinceexact_by_default=falsewas deprecated.exact_by_default=falseis now deprecated in.flowconfig. Read this blog post on how to migrate, and our docs on objects for more.exact_by_default=trueis the default (since 2023) so simply delete the option when migrating.Notable bug fixes:
v0.313.0Compare Source
Likely to cause new Flow errors:
(x: T)tox as T. The default value of the optioncasting_syntaxis nowas, and Flow will error on the old syntax. If you want to preserve the old defualt value, addcasting_syntax=bothto your.flowconfig. You can use the npm packageflow-upgradeto upgade:yarn run flow-codemod typeCastToAsExpression. Read the docs for more.New Features:
voidis used if omittedParser:
ArrayExpressiongains atrailingCommafield, optional chaining is wrapped in aChainExpression,AssertNonnull(expr!) emits aNonNullExpressioninstead of an optional node, type-positionthisemitsThisTypeAnnotation, andTypeParameter.boundis now a bare type node without theTypeAnnotationwrapper.v0.312.1Compare Source
v0.312.0Compare Source
Likely to cause new Flow errors:
+T,-T,in T,out T) on interface method type parameters, matching the existing rejection on class methods and function typesNew Features:
declare classandinterfaceof the same name in the same scope.const A = 1; interface A {}is now accepted.v0.311.0Compare Source
New Features:
declare classandinterfaceLibrary Definitions:
Record<K, T>utility type's key bound fromK: stringtoK: PropertyKey, allowingnumberandsymbolkeys in addition tostringParser:
writeonlyproperty variance keywordMisc:
experimental.allow_variance_keywordsis set totrue, we support the keywordsin/out/readonly/writeonlyalong with+/-for variancev0.310.0Compare Source
New Features:
new (...) => Type) in interfaces anddeclare classMisc:
allow_variance_keywordsis set to true, Flow stops erroring forin/out/readonlyv0.309.0Compare Source
No significant changes.
v0.308.0Compare Source
Parser:
EnumBooleanBody,EnumNumberBody,EnumStringBody,EnumSymbolBody,EnumBigIntBody) have been replaced with a singleEnumBodynode. Itsmembersproperty is a flat array of per-type member nodes (EnumBooleanMember,EnumNumberMember,EnumStringMember,EnumBigIntMember,EnumDefaultedMember). TheexplicitTypeproperty is now a string ("boolean","number","string","symbol","bigint") ornull(previously a boolean).hasUnknownMembersremains a boolean. Several enum validation errors are no longer reported by the parser and are instead reported by the type checker.Library Definitions:
RegExp.escape()v0.307.1Compare Source
v0.307.0Compare Source
Notable bug fixes:
inferto appear as member names in qualified type access (e.g.type S = O.infer;).readonly,keyof,infer, etc.) as function type parameter namesParser:
?optional modifier in various places this does not make sense, e.g.const x? = 1;Misc:
flow checkbecomes an alias offlow status. You can useflow full-checkto trigger a full foreground check of a Flow root.v0.306.1Compare Source
v0.306.0Compare Source
New Features:
Symbol.iterator.Notable bug fixes:
Library Definitions:
v0.305.1Compare Source
v0.305.0Compare Source
Misc:
v0.304.0Compare Source
Notable bug fixes:
v0.303.0Compare Source
New Features:
stylex_shorthand_propflowconfig option that enables syntactic sugar for StyleX on lowercase (intrinsic) JSX elements. When set to a prop name (e.g.stylex_shorthand_prop=sx),<div sx={[styles.foo, styles.bar]} />desugars to<div {...stylex.props(styles.foo, styles.bar)} />.v0.302.0Compare Source
Notable bug fixes:
Misc:
IDE:
v0.301.0Compare Source
IDE:
Reactautoimport, it will now always be in the form ofimport * as React from 'react'v0.300.0Compare Source
Misc:
v0.299.0Compare Source
Parser:
export declare, likedeclare exportcomponentin implicit declare context, the ast we produce will includeimplicitDeclare: truev0.298.0Compare Source
Likely to cause new Flow errors:
Parser:
filenamein the option objectv0.297.0Compare Source
New Features:
declarekeyword can be omitted fordeclare functionunder declaration context (.flow file, declare module, declare namespace)v0.296.1Compare Source
Parser:
v0.296.0Compare Source
Declarations:
declarekeyword can be omitted fordeclare const/let/var variable: typeanddeclare componentunder a declaration context (libdef file, .js.flow file, declare module, declare namespace)declare componentnow requires the rest props to be named - matching normalcomponentdeclarationsMisc:
Omit<O, K>utility type will no longer enforce that the provided keysKneed to be part ofOv0.295.0Compare Source
New Features:
Symbol.iterator,Symbol.asyncIterator,Symbol.dispose,Symbol.asyncDispose) in class methods. For now, the computed method name needs to be exactly in the form ofSymbol.iterator(or other 3 names) to be recognized.Notable bug fixes:
Misc:
yarn run flow-codemod convertLegacyUtilityTypes)Parser:
v0.294.0Compare Source
Parser:
Bug Fixes:
v0.293.0Compare Source
Config:
use_mixed_in_catch_variablesoption was renameduse_unknown_in_catch_variablesbecausemixedis being renamed tounknownv0.292.0Compare Source
Likely to cause new Flow errors:
Parser:
v0.291.0Compare Source
IDE:
invalid-type-cast-syntaxerrors in the file.v0.290.0Compare Source
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:
v0.289.0Compare Source
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 functionv0.288.0Compare Source
Likely 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.v0.287.0Compare Source
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:
v0.286.0Compare Source
Breaking Changes:
flow-binwill only contain ARM64 binaries for macOS.Likely to cause new Flow errors:
D830142samzhou19815)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
v0.285.0Compare Source
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.v0.284.0Compare Source
Likely to cause new Flow errors:
v0.283.0Compare Source
Likely to cause new Flow errors:
// $FlowFixMe[incompatiblewill now cause an error on the suppressionv0.282.0Compare Source
Likely to cause new Flow errors:
Notable bug fixes:
<X>(x: X, y: typeof x): TIDE:
Library Definitions:
Array.findcan now return a more precise value if the predicate is inferred to be a type guard. examplev0.281.0Compare Source
Breaking Changes:
casting_syntax=colonis removed. This means that the as casting syntax is always enabled.experimental.error_code_migrationconfig option is removed. In the previously version, the only allowed value wasnew.Likely to cause new Flow errors:
$FlowFixMeand$FlowExpectedErrorare supported suppression comments. Existing$FlowIgnoreand$FlowIssuewill no longer suppress anything.New Features:
require-explicit-enum-checkswhich works likerequire-explicit-enum-switch-casesbut formatch.Notable bug fixes:
class Foo extends myExpr() as Bardeclare) method in the same vs different files.IDE:
v0.280.0Compare Source
Likely to cause new Flow errors:
missing-exporterror instead ofprop-missingerror. (example)suppress_type$FlowFixMeis now just a type alias ofany. For most of the code, there will be no functional differences. However, you might see new errors if you have any local definitions of$FlowFixMe, or you used the undocumented$FlowFixMe<arbitrary type arguments>.suppress_typeconfig has been removed. The only supportedsupress_typenow is$FlowFixMe. If you want other variants, you can addin your global library definitions.
incompatible-type, so some previously suppressed errors will reappear until you change the suppression error code intoincompatible-type. The change was announced in the previous version, with option to enable it viaexperimental.error_code_migration=new. Now the only valid option toexperimental.error_code_migrationisnew. You can runflow codemod error-code-migration --write .with the previous version of Flow to help migrate, since the codemod is removed in this version.v0.279.0Compare Source
New Features:
incompatible-type. You can addexperimental.error_code_migration=newin your flowconfig to enable the new behavior now. We also provide a codemodflow codemod error-code-migration --write .that you can run over your codebase to automatically change the error code. Both the flowconfig option and the codemod will be removed in the next version.Notable bug fixes:
Misc:
v0.278.0Compare Source
Likely to cause new Flow errors:
react-rule-hook-conditionalerror instead ofreact-rule-hookerror.Configuration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.