-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prettierx: Update flow-parser -> 0.258.0 - devDependency #681
Open
renovate
wants to merge
1
commit into
dev
Choose a base branch
from
renovate/flow-parser-0.x
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
July 21, 2021 21:21
2dcd2be
to
956ba54
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.155.1 - devDependency
prettierx: Update flow-parser -> 0.156.0 - devDependency
Jul 21, 2021
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.156.0 - devDependency
prettierx: Update flow-parser -> 0.157.0 - devDependency
Aug 5, 2021
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
August 5, 2021 20:08
956ba54
to
4385e36
Compare
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
August 19, 2021 03:26
4385e36
to
3b59ad5
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.157.0 - devDependency
prettierx: Update flow-parser -> 0.158.0 - devDependency
Aug 19, 2021
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
September 1, 2021 23:27
3b59ad5
to
cf051a5
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.158.0 - devDependency
prettierx: Update flow-parser -> 0.159.0 - devDependency
Sep 1, 2021
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
October 18, 2021 15:11
cf051a5
to
f349479
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.159.0 - devDependency
prettierx: Update flow-parser -> 0.162.0 - devDependency
Oct 18, 2021
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
March 7, 2022 11:31
f349479
to
453c4b6
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.162.0 - devDependency
prettierx: Update flow-parser -> 0.173.0 - devDependency
Mar 7, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
March 26, 2022 13:59
453c4b6
to
7dc5313
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.173.0 - devDependency
prettierx: Update flow-parser -> 0.174.1 - devDependency
Mar 26, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
April 24, 2022 21:02
7dc5313
to
cdaea3e
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.174.1 - devDependency
prettierx: Update flow-parser -> 0.176.3 - devDependency
Apr 24, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
May 15, 2022 20:09
cdaea3e
to
9a8c4ae
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.176.3 - devDependency
prettierx: Update flow-parser -> 0.178.0 - devDependency
May 15, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
June 18, 2022 21:42
9a8c4ae
to
fdcacf7
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.178.0 - devDependency
prettierx: Update flow-parser -> 0.180.0 - devDependency
Jun 18, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
June 23, 2022 22:43
fdcacf7
to
267206a
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.180.0 - devDependency
prettierx: Update flow-parser -> 0.181.0 - devDependency
Jun 23, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
September 25, 2022 22:36
267206a
to
69eb689
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.181.0 - devDependency
prettierx: Update flow-parser -> 0.187.1 - devDependency
Sep 25, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
November 20, 2022 12:28
69eb689
to
948e902
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.187.1 - devDependency
prettierx: Update flow-parser -> 0.193.0 - devDependency
Nov 20, 2022
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
March 18, 2023 14:03
948e902
to
fadea97
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.193.0 - devDependency
prettierx: Update flow-parser -> 0.202.0 - devDependency
Mar 18, 2023
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
March 24, 2023 17:36
fadea97
to
7e9cd67
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.202.0 - devDependency
prettierx: Update flow-parser -> 0.202.1 - devDependency
Mar 24, 2023
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.248.0 - devDependency
prettierx: Update flow-parser -> 0.248.1 - devDependency
Oct 12, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
October 17, 2024 02:27
d1fd240
to
abcc44f
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.248.1 - devDependency
prettierx: Update flow-parser -> 0.249.0 - devDependency
Oct 17, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
October 18, 2024 02:35
abcc44f
to
d89d2b3
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.249.0 - devDependency
prettierx: Update flow-parser -> 0.250.0 - devDependency
Oct 18, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
October 29, 2024 19:31
d89d2b3
to
bf20d89
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.250.0 - devDependency
prettierx: Update flow-parser -> 0.251.0 - devDependency
Oct 29, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
October 30, 2024 22:27
bf20d89
to
7fe6310
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.251.0 - devDependency
prettierx: Update flow-parser -> 0.251.1 - devDependency
Oct 30, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
November 7, 2024 11:05
7fe6310
to
3898543
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.251.1 - devDependency
prettierx: Update flow-parser -> 0.252.0 - devDependency
Nov 7, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
November 14, 2024 22:53
3898543
to
f7025a7
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.252.0 - devDependency
prettierx: Update flow-parser -> 0.253.0 - devDependency
Nov 14, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
November 20, 2024 17:20
f7025a7
to
5b1122c
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.253.0 - devDependency
prettierx: Update flow-parser -> 0.254.0 - devDependency
Nov 20, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
November 21, 2024 18:37
5b1122c
to
74a9d96
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.254.0 - devDependency
prettierx: Update flow-parser -> 0.254.1 - devDependency
Nov 21, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
November 22, 2024 19:46
74a9d96
to
fc985ae
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.254.1 - devDependency
prettierx: Update flow-parser -> 0.254.2 - devDependency
Nov 22, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
November 26, 2024 00:48
fc985ae
to
84f02ba
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.254.2 - devDependency
prettierx: Update flow-parser -> 0.255.0 - devDependency
Nov 26, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
December 6, 2024 03:44
84f02ba
to
837988d
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.255.0 - devDependency
prettierx: Update flow-parser -> 0.256.0 - devDependency
Dec 6, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
December 19, 2024 00:45
837988d
to
7023195
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.256.0 - devDependency
prettierx: Update flow-parser -> 0.257.0 - devDependency
Dec 19, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
December 21, 2024 02:28
7023195
to
5726266
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.257.0 - devDependency
prettierx: Update flow-parser -> 0.257.1 - devDependency
Dec 21, 2024
renovate
bot
force-pushed
the
renovate/flow-parser-0.x
branch
from
January 3, 2025 19:54
5726266
to
f054318
Compare
renovate
bot
changed the title
prettierx: Update flow-parser -> 0.257.1 - devDependency
prettierx: Update flow-parser -> 0.258.0 - devDependency
Jan 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.155.0
->0.258.0
Release Notes
facebook/flow (flow-parser)
v0.258.0
Compare Source
Likely to cause new Flow errors:
react.ref_as_prop=disabled
is removed.React$Node
andReact$MixedElement
outside of libdefs will now triggerinternal-type
errors.Library Definitions:
Array.concat()
.v0.257.1
Compare Source
Misc:
"source"
. It can help to prevent VSCode sending flow irrelevant code actions to handle during save.v0.257.0
Compare Source
Likely to cause new Flow errors:
export const obj = {f: "foo"};
was{f: str<"foo">}
, wherestr<"foo">
was a type that opportunistically and unsoundly behaved either asstring
or as the singleton type"foo"
.{f: string}
forobj
.export const x = "foo";
Flow will export the type"foo"
.as const
modifier.string
orany
keys. Now, if the computed property is added to some existing objects (e.g.{foo: string, [stringTypedKey]: v}
), then we will error on the property. Otherwise, the{[key]: value}
will be{[typeof key}: typeof value}
[react-rule-unsafe-mutation]
errors are raised.(?string) extends string ? true : false
is evaluated totrue | false
instead offalse
). This is now fixed, and code that depends on the bug might have new errors.typeof x === 'function'
, and then dotypeof x === 'object'
, the result is nowempty
as that is impossible.React.Config
type, deprecated in v0.254, is now removed.New Features:
'key' in x
now refines the type ofx
to objects which have the propertykey
.in
checks for both own and non-own properties..length
instead), and also because Flow doesn't handle array holes.no_unchecked_indexed_access=true
in flowconfig, which is equivalent to noUncheckedIndexedAccess from TS. It will add| void
to every indexed access with general string key on dictionary objects or number key on arrays.react.ref_as_prop=partial_support
, and this is now the default. (To disable it, usereact.ref_as_prop=disabled
.) Under this mode, ref prop in jsx will be treated as a regular prop for function components, but utility types likeReact.ElementConfig<...>
still won't include the regular ref prop yet.Notable bug fixes:
Library Definitions:
getNotifications
andshowNotification
API forServiceWorkerRegistration
v0.256.0
Compare Source
Notable bug fixes:
super
in an object method. Such cases are now user-facing errors.v0.255.0
Compare Source
Likely to cause new Flow errors:
React$RendersExactly<typeof Component>
type instead ofReact$Element<typeof Component>
type. All existing usages intended to create an exact react element will now error as a result. Using it as type passed to render type,React.PropsOf
,React.PropOf
andReact.RefOf
is unaffected and will not be affected in the future. If you want exact react elements, the only way that doesn't trigger Flow error is byExactReactElement_DEPRECATED<typeof Component>
.Library Definitions:
React.Config
type is marked as deprecated and will be removed soon. You can create your own equivalent type withv0.254.2
Compare Source
Misc:
v0.254.1
Compare Source
Notable bug fixes:
v0.254.0
Compare Source
Likely to cause new Flow errors:
Library Definitions:
toSpliced
method type (thanks @aph!)v0.253.0
Compare Source
Likely to cause new Flow errors:
React$ElementRef
is now implemented with a conditional type instead of a builtin Flow utility type. You might see new errors with genericReact$ElementRef
. Most of the times, you should replaceReact.ElementRef<T>
with justT
if there are no other uses of genericT
.New Features:
@flowtyped
like directories viamodule.declaration_dirnames
config. e.g.Please note that when you set this,
@flowtyped
at the root will no longer be considered special, and you will need to explicitly add it likeNotable bug fixes:
empty
.IDE:
includeDeclaration
from LSP request for find-references command. In practice, this means that "find all references" in vscode will continue to return both declaration and all uses, while "go to references" will exclude the declaration.v0.252.0
Compare Source
Likely to cause new Flow errors:
$ReadOnly
applied, which might cause new errors.New Features:
Notable bug fixes:
[declarations]
section will have all lint errors silenced.v0.251.1
Compare Source
Misc:
v0.251.0
Compare Source
Likely to cause new Flow errors:
React.AbstractComponent
type. We recommend replacing them with component types. Since v0.249.0, we have provided a codemod via theflow-upgrade
package to aid larger codebases with this conversion:yarn run flow-codemod eliminateAbstractComponent path/to/src
.React.AbstractComponent
type, we also removed support for the internalReact$AbstractComponent
when more than 1 type argument has been passed. Similarly, you should migrate to use component types if you want to specify ref props and renders.New Features:
@flowtyped
directory at the root, they can be resolved by the relative path without leading./
relative to@flowtyped
. e.g.<PROJECT_ROOT>/@​flowtyped/react.js.flow
can be used to type thereact
package, and<PROJECT_ROOT>/@​flowtyped/react/jsx-runtime.js.flow
can be used to typereact/jsx-runtime
module. We now recommend using this approach instead of usingdeclare module
in global libdef.Notable bug fixes:
any
will now correctly propagate to inferred render type. example.Library Definitions:
React.AbstractComponent
. Most of the code won't be affected, but you might have to sometimes make the Props readonly.v0.250.0
Compare Source
Likely to cause new Flow errors:
Notable bug fixes:
all
option is specified in the config offlow-remove-types
, we now respect it and will correctly handle Flow-typed files without@flow
pragma.v0.249.0
Compare Source
Likely to cause new Flow errors:
React$AbstractComponent
outside library definitions will now triggerinternal-type
lint error, which is on by default.React.AbstractComponent
is also marked as deprecated. We recommend replacing them with component types. We have provided a codemod via theflow-upgrade
package to aid larger codebases with this conversion:yarn run flow-codemod eliminateAbstractComponent path/to/src
.Notable bug fixes:
StringPrefix
andStringSuffix
when used as a component syntax prop.as
cast support inflow-remove-types
.Library Definitions:
React.cloneElement
. e.g.React.cloneElement(e, {ref: 'foo'})
will be an error.React$Ref
type and various aliases of it are removed.v0.248.1
Compare Source
IDE:
React.Component
annotated exported will now also show up in auto-imports in a type position.v0.248.0
Compare Source
Breaking changes:
%checks
) is removed. It will still parse, but all of them will error with unsupported-syntax, and%checks
will be completely ignored for type checking purpose as if it doesn't exist.$TupleMap
support is now removed.$TupleMap
will now resolve to the global definition is there is one, or it will fail and the type becomes any.Likely to cause new Flow errors:
$TEMPORARY$*
types is dropped. If your codebase happens to have any of these types, you can replace them with there sound and well-documented equivalents:$TEMPORARY$object<{props}>
with$ReadOnly<{props}>
or{props}
$TEMPORARY$array<T>
with$ReadOnlyArray<T>
orArray<T>
$TEMPORARY$number<42>
withnumber
or'42'
$TEMPORARY$string<"foo">
withstring
or"foo"
flow-upgrade
package to aid larger codebases with this conversion:yarn run flow-codemod replaceTemporaryTypes path/to/src
.Object.freeze({ A: 'a', B: 'b' })
is now{+A:'a',+B:'b'}
both locally within a file and when the object is being exported. This replaces an earlier unsound behavior where the type of A would opportunistically behaved either asstring
or'a'
depending on the context where it appeared.contextTypes
andchildContextTypes
in react class components are now empty typed, so declaring legacy context in React will be an error.React.RefSetter<...>
type.Parser:
type Foo = (component(x: number) renders Bar);
IDE:
renders React.Node
on hover.: renders <annot>
at the position that expects a render declaration, the quickfix will suggest removing:
instead of replacing:
withrenders
.Library Definitions:
util.stripVTControlCharacters
for NodeJS.v0.247.1
Compare Source
Misc:
v0.247.0
Compare Source
Breaking changes:
$Call
type is removed.$Call
will now resolve to whatever$Call
points to in the global libdef. If you need more time to migrate, you can create a shim like$Call<F, T> = $TupleMap<[T], F>[0]
, but please note that we intend to remove support for$TupleMap
eventually.deprecated-type-dollar-call
lint is removed, since the support for$Call
is removed.react.disable_function_components_default_props
config option is removed. It is on by default since v0.238.Likely to cause new Flow errors:
$TupleMap
is deprecated and will be soon removed, now that mapped type works on array inputs. Existing$TupleMap
will still work in this release, but every use will trigger adeprecated-type
lint that is on by default.type A = React$ElementConfig<hook (props: {foo: string}) => void>;
will now error.New Features:
Notable bug fixes:
flow-remove-types
now correctly handlesas
cast with generics.IDE:
React.AbstractComponent
type will be shown in the component type syntaxLibrary Definitions:
v0.246.0
Compare Source
Likely to cause new Flow errors:
$ObjMap
will resolve to a user-defined$ObjMap
global if it's available in your libdef. You can usetype $ObjMap<O, F> = {[K in keyof O]: $Call<F, O[K]>}
to get most of the same behavior, except that in the mapped type versionO[K]
will include void for optional props. Please note that this should be considered as a permanent shim, because we intend to eventually remove$Call
.flow codemod key-mirror
command was removed, since this codemod tries to convert$ObjMap
to$KeyMirror
deprecated-type-objmap
lint was removed.void
as the instance, soReact.ElementRef<component>
of such component will return void.New Features:
{[K in keyof <array or tuple type>: <mapped type>}
.Notable bug fixes:
IDE:
Library Definitions:
React.Ref
is marked as deprecated. UseReact.RefSetter
instead for ref props, andReact.RefObject
for returns ofuseRef
.React.RefSetter
now includes null and void.Promise.all
andPromise.allSettled
have been updated to use mapped type instead of$TupleMap
. The requirement on the type arguments are slightly changed.v0.245.2
Compare Source
Misc:
v0.245.1
Compare Source
Website:
IDE:
textDocument/prepareName
LSP request. This ensures that Flow's rename support can be surfaced when multiple VSCode extension adds rename support for JS files.v0.245.0
Compare Source
Likely to cause new Flow errors:
React.Element
type, deprecated in 0.243.0, is now removed.New Features:
{
of a JSX attribute value.react.custom_jsx_typing=true
. Under this flag, Flow will type check jsx by through your self-defined global typeReact$CustomJSXFactory
type, which should be a function type that accepts arguments according to jsx spec. e.g. You can write a loose one liketype React$CustomJSXFactory = (component: any, props: any, ...children: any) => React.MixedElement
Notable bug fixes:
globalThis.React.Node
being incorrectly unavailable.IDE:
<A />
where A is in component syntax) will no longer be shown in hover with shorthand syntax likeA
. Instead, it will be shown asReact$Element<typeof A>
v0.244.0
Compare Source
Likely to cause new Flow errors:
inexact_tuple_types_syntax
option (which was on by default) is now deleted. Make sure you are usinghermes-parser
and related packages at version >= 0.23.0renders React.Element<React.AbstractComponent<{}, mixed, renders* A>>
. Invalid render types will behave like any.React.Fragment
.renders* T
whereT
is generic is now banned.Notable bug fixes:
v0.243.0
Compare Source
Likely to cause new Flow errors:
deprecated-type
anduntyped-type-import
lint are on and at error level by default.React$ElementConfig
vsReact.ElementConfig
) are now a lint error that's enabled by default. To disable it, setinternal-type=off
in the lints section of the flowconfig. For now, these types are still allowed in libdef files, but we plan to also disallow it in the future. To codemod existing code, get the latestflow-upgrade
package and runyarn run flow-codemod replaceReactDollarUtilityTypes
React$Element
type is banned via theinternal-type
lint. TheReact.Element
alias still exists for now, but it is marked with@deprecated
in the jsdoc. Please read the jsdoc for better alternatives. A global aliasExactReactElement_DEPRECATED
is added to help you clearly mark the use of exact React element types, and you should use it to replaceReact.Element
that you cannot replace without compromising runtime type safety.New Features:
declare component
statement andcomponent
type is enabled by default.Notable bug fixes:
Misc:
experimental.namespaces
config option is removed. Namespaces support is enabled by default in the previous release.Library Definitions:
.replaceChildren
method type definition for dom nodes.Object.getPrototypeof
is still special cased, but the special-casing is only available for a syntacticObject.getPrototypeof(...)
call. If you try to useObject.getPrototypeof
in some other ways (e.g.const f = Object.getPrototypeof; f(...)
), you will get a a less precise and accurate typing for it. TheObject$GetPrototypeOf
type, which was used to back the special case behavior, is removed.v0.242.1
Compare Source
New Features:
Pick
utility type with string literals in the second type argument, go-to-definition on the string literal will jump to corresponding prop's locationNotable bug fixes:
v0.242.0
Compare Source
Likely to cause new Flow errors:
$Flow$DebugPrint
was removed. To see the internal representation of type, use theflow type-at-pos
command with flag--debug-print-internal-repr
. Note that this is for debugging purpose only, and you should never depend on the output of--debug-print-internal-repr
==
and!=
.invalid-render
errors can no longer be suppressed without specific error code.$Exact<...>
is involved. Some invalid$Exact<...>
type will now havenot-an-object
error code.New Features:
declare namespace
support is enabled by default.StringSuffix
type, which goes along with the recently addedStringPrefix
type.StringSuffix
can be used to type strings with a specified suffix. E.g.StringSuffix<'!'>
allows for'yay!'
and'woo!'
. The type argument for the suffix must be a string literal. The second, optional, type argument can be used for the type of the remainder of the string after the suffix is removed.Notable bug fixes:
IDE:
my-package
ormy-package/foo
instead of a relative path import.Library Definitions:
Reflect.setPrototypeof
are no longer special-cased, and the backing special typeObject$SetPrototypeOf
is removed. The new typing is intentionally loose. Similar toObject.setPrototypeof
, this is inherently unsafe since Flow won't track prototype mutations.Object.assign
is still special cased, but the special-casing is only available for a syntacticObject.assign(...)
call. If you try to use Object.assign in some other ways (e.g.const f = Object.assign; f(...)
), you will get a a less precise and accurate typing for it. If you don't like the default fallback type, you can override theObject$Assign
type. While the special-casing behavior will stay for the syntactic call, you should migrate your code to use the spread syntax instead.v0.241.0
Compare Source
No changes from 0.240.0
v0.240.0
Compare Source
Likely to cause new Flow errors:
obj.type === 'foo'
. exampleFunction.prototype.apply
andFunction.prototype.call
are now typed using userland types instead of hardcoded builtin support. You might see slight inference differences, error message and code changing as a result..constructor
property of object types. (D585385
pvekris)void
, notempty
.New Features:
StringPrefix
utility type. This is the type of the remainder of the string after the prefix is removed. For example,"$1"
,"$2"
are subtypes ofStringPrefix<'$', '1' | '2'>
, but"$999"
is not.StringPrefix<X>
is equivalent toStringPrefix<X, string>
$Values
utility type to get the type of the elements of an array type or tuple type....args
as a union of tuples). [example]Notable bug fixes:
Library Definitions:
String.codePointAt
now returnsnumber | void
v0.239.1
Compare Source
Notable bug fixes:
files.implicitly_include_root=false
config.v0.239.0
Compare Source
Likely to cause new Flow errors:
Array.push
,Set.add
,Map.set
, etc). These values are expected to be read-only, aConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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.