Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
flow-parser (source) 0.250.0 -> 0.254.2 age adoption passing confidence
hermes-parser 0.25.0 -> 0.25.1 age adoption passing confidence

Release Notes

facebook/flow (flow-parser)

v0.254.2

Compare Source

Misc:

  • Add option to disable experimental configuration

v0.254.1

Compare Source

Notable bug fixes:

  • Fixed a potential crash when experimental multiplatform support is enabled.

v0.254.0

Compare Source

Likely to cause new Flow errors:

  • Previously we incorrectly applied truthy refinement on optional chaining where it shouldn't be applied. The issue is now fixed, and you might see change in behavior similar to these examples

Library Definitions:

  • Improve Array 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 generic React$ElementRef. Most of the times, you should replace React.ElementRef<T> with just T if there are no other uses of generic T.
  • We've increased safety in checks involving recursive types.

New Features:

  • You can now set multiple @flowtyped like directories via module.declaration_dirnames config. e.g.
module.declaration_dirnames=<PROJECT_ROOT>/decl1
module.declaration_dirnames=<PROJECT_ROOT>/decl2

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 like

module.declaration_dirnames=<PROJECT_ROOT>/@&#8203;flowtyped

Notable bug fixes:

  • A generic type as input to conditional type will have type parameters pinned with their default or upper bound, instead of being empty.
  • We fixed a cache collision issue that might cause instantiation of a value-imported generic component type to interfere with a typeof-imported generic component type.

IDE:

  • Flow now respects 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:

  • Flow will no longer apply type transformation to function components' props when you extract props through the utility types. For example, function components' props won't automatically get $ReadOnly applied, which might cause new errors.

New Features:

  • We have removed the restriction of not allowing generics with ref prop in component syntax

Notable bug fixes:

  • Files in [declarations] section will have all lint errors silenced.
  • Fixed an issue that caused errors in hover type on unions of evaluated types (example)
  • Flow allows unions of strings to be used as the key in creation of objects with computed properties.

v0.251.1

Compare Source

Misc:

  • Performance fix

v0.251.0

Compare Source

Likely to cause new Flow errors:

  • Remove the deprecated React.AbstractComponent type. We recommend replacing them with component types. Since v0.249.0, we have provided a codemod via the flow-upgrade package to aid larger codebases with this conversion: yarn run flow-codemod eliminateAbstractComponent path/to/src.
  • In addition to the removal of React.AbstractComponent type, we also removed support for the internal React$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:

  • We now support a new way to easily specify library definitions for npm modules. For all files in @flowtyped directory at the root, they can be resolved by the relative path without leading ./ relative to @flowtyped. e.g. <PROJECT_ROOT>/@&#8203;flowtyped/react.js.flow can be used to type the react package, and <PROJECT_ROOT>/@&#8203;flowtyped/react/jsx-runtime.js.flow can be used to type react/jsx-runtime module. We now recommend using this approach instead of using declare module in global libdef.

Notable bug fixes:

  • any will now correctly propagate to inferred render type. example.
  • Fixed a bug with regard to jsx type inference with generic callable objects. example
  • Fixed a soundness hole that allowed frozen objects to be incompatible with non-readonly objects. This example will now produce an error.

Library Definitions:

  • We have updated some core React type definitions to use the new component type instead of React.AbstractComponent. Most of the code won't be affected, but you might have to sometimes make the Props readonly.

Configuration

📅 Schedule: Branch creation - "after 01:00 on sunday" (UTC), 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependency Dependency Upgrade label Nov 12, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Nov 12, 2024

Size Change: +37.3 kB (+0.48%)

Total Size: 7.77 MB

Filename Size Change
./dist/plugins/flow.js 679 kB +18.6 kB (+2.82%)
./dist/plugins/flow.mjs 679 kB +18.6 kB (+2.82%)
ℹ️ View Unchanged
Filename Size
./dist/bin 4.1 kB
./dist/bin/prettier.cjs 2.1 kB
./dist/doc.d.ts 7.42 kB
./dist/doc.js 53.1 kB
./dist/doc.mjs 49.6 kB
./dist/index.cjs 36.8 kB
./dist/index.d.ts 26.8 kB
./dist/index.mjs 737 kB
./dist/internal 4.1 kB
./dist/internal/cli.mjs 125 kB
./dist/LICENSE 205 kB
./dist/package.json 6.3 kB
./dist/plugins 4.1 kB
./dist/plugins/acorn.d.ts 109 B
./dist/plugins/acorn.js 152 kB
./dist/plugins/acorn.mjs 152 kB
./dist/plugins/angular.d.ts 177 B
./dist/plugins/angular.js 44.4 kB
./dist/plugins/angular.mjs 43.7 kB
./dist/plugins/babel.d.ts 419 B
./dist/plugins/babel.js 314 kB
./dist/plugins/babel.mjs 314 kB
./dist/plugins/estree.d.ts 11 B
./dist/plugins/estree.js 201 kB
./dist/plugins/estree.mjs 200 kB
./dist/plugins/flow.d.ts 90 B
./dist/plugins/glimmer.d.ts 93 B
./dist/plugins/glimmer.js 143 kB
./dist/plugins/glimmer.mjs 142 kB
./dist/plugins/graphql.d.ts 93 B
./dist/plugins/graphql.js 43.6 kB
./dist/plugins/graphql.mjs 43 kB
./dist/plugins/html.d.ts 139 B
./dist/plugins/html.js 151 kB
./dist/plugins/html.mjs 151 kB
./dist/plugins/markdown.d.ts 127 B
./dist/plugins/markdown.js 149 kB
./dist/plugins/markdown.mjs 148 kB
./dist/plugins/meriyah.d.ts 93 B
./dist/plugins/meriyah.js 131 kB
./dist/plugins/meriyah.mjs 131 kB
./dist/plugins/postcss.d.ts 121 B
./dist/plugins/postcss.js 153 kB
./dist/plugins/postcss.mjs 153 kB
./dist/plugins/typescript.d.ts 96 B
./dist/plugins/typescript.js 890 kB
./dist/plugins/typescript.mjs 889 kB
./dist/plugins/yaml.d.ts 90 B
./dist/plugins/yaml.js 122 kB
./dist/plugins/yaml.mjs 122 kB
./dist/README.md 4.03 kB
./dist/standalone.d.ts 1.37 kB
./dist/standalone.js 82.1 kB
./dist/standalone.mjs 81.8 kB

compressed-size-action

@renovate renovate bot force-pushed the renovate/flow-parser branch 3 times, most recently from 92af30e to 9dae93a Compare November 21, 2024 18:03
@renovate renovate bot force-pushed the renovate/flow-parser branch from 9dae93a to da80143 Compare November 22, 2024 18:19
@fisker fisker merged commit 453becc into main Nov 25, 2024
29 checks passed
@fisker fisker deleted the renovate/flow-parser branch November 25, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency Dependency Upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants