chore(deps): update dependency flow-bin to v0.331.0 - #9
Conversation
|
✔️ Deploy Preview for react-image-onload ready! 🔨 Explore the source changes: 6a5ccd8 🔍 Inspect the deploy log: https://app.netlify.com/sites/react-image-onload/deploys/60c8ecf441d5c800078273c5 😎 Browse the preview: https://deploy-preview-9--react-image-onload.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
=======================================
Coverage 46.66% 46.66%
=======================================
Files 1 1
Lines 15 15
Branches 3 3
=======================================
Hits 7 7
Misses 6 6
Partials 2 2 Continue to review full report at Codecov.
|
44291f6 to
21cc463
Compare
21cc463 to
64d4f63
Compare
64d4f63 to
f7ccaa3
Compare
f7ccaa3 to
c4ee297
Compare
c4ee297 to
ea49f44
Compare
ea49f44 to
9c26643
Compare
9c26643 to
98c7e6d
Compare
98c7e6d to
36896af
Compare
36896af to
1ce998e
Compare
1ce998e to
ce4ebb3
Compare
ce4ebb3 to
85ed7a2
Compare
85ed7a2 to
a1f09e5
Compare
a1f09e5 to
8704e29
Compare
ef6df93 to
21f1edb
Compare
21f1edb to
fc8e329
Compare
fc8e329 to
711c8f9
Compare
711c8f9 to
7cdd6dc
Compare
7cdd6dc to
dfaf7b8
Compare
dfaf7b8 to
066f612
Compare
066f612 to
79c6b5b
Compare
79c6b5b to
10aa69c
Compare
10aa69c to
5008a4b
Compare
5008a4b to
1b8ea46
Compare
1b8ea46 to
d3c81d2
Compare
d3c81d2 to
af3d49b
Compare
af3d49b to
85a6bfb
Compare
85a6bfb to
63aa063
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: yarn.lock |
This PR contains the following updates:
0.68.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)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.