Skip to content

Conversation

@LoganBarnett
Copy link

This upgrades to flow-bin 0.95.1, which includes an update to JSON.stringify. This update means stringify can return string | undefined (undefined is covered by a few edge cases). Flow does not accept undefined in string interpolations, so the string "undefined" has been used in these cases as a fix.

indent-string changed its signature in 3.2.0. The updated libdef has been submitted to flow-typed (see flow-typed/flow-typed#3219) but until it is accepted the libdef has been copied here manually. Uses of the indent call have been fixed. It is suspected that the upgrade of Flow has increased type coverage here and flagged this as an error, because this should have otherwise gone undetected.

This upgrades to flow-bin 0.95.1, which includes an update to `JSON.stringify`.
This update means `stringify` can return `string | undefined` (`undefined` is
covered by a few edge cases). Flow does not accept `undefined` in string
interpolations, so the string "undefined" has been used in these cases as a fix.

`indent-string` changed its signature in 3.2.0. The updated libdef has been
submitted to `flow-typed` and here we pull it down. Uses of the `indent` call
have been fixed.  It is suspected that the upgrade of Flow has increased type
coverage here and flagged this as an error, because this should have otherwise
gone undetected.
@LoganBarnett
Copy link
Author

The updated libdef was merged into flow-typed and I've updated the PR to use the official version instead of the manual copy.

@LoganBarnett
Copy link
Author

@andreypopp @Alxandr hey folks - is there anything I can do to help merge this PR? I've recently had to touch on some older work which is depending on a fork of this so it can use a more modern version of Flow.

Thanks!

@Alxandr
Copy link
Collaborator

Alxandr commented Mar 7, 2023

Unfortunately I basically have no memory of this (nor use flow anymore) - so I'm probably not the right person to make any calls here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants