benjamn / recast

JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator
MIT License
4.95k stars 346 forks source link

Bump flow-parser from 0.195.0 to 0.214.0 #1355

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps flow-parser from 0.195.0 to 0.214.0.

Release notes

Sourced from flow-parser's releases.

v0.214.0

Likely to cause new Flow errors:

  • Flow now has stricter behavior with $Call, $ObjMap, $ObjMapi, $ObjMapConst, $TupleMap. Previously hidden type errors might be revealed now.
  • You can no longer disable tuple_ehancements, conditional_type, mapped_type, type_guards in flowconfig, since these options have been removed. They were enabled by default since v0.212.0.

IDE:

  • We now provide a new refactor that extracts JSX elements into a new React component.
  • Extract to constant refactors now works for nested JSX elements and fragments.

Notable bug fixes:

  • Added default type arguments for the built-in React$AbstractComponent to match the React.AbstractComponent type alias in our libdefs. [try-flow]

Library Definitions:

  • Added parseArgs to the Node.js util module library definition

v0.213.1

Notable bug fixes:

  • Fixed a bug where local find references do not return references in jsx props.

v0.213.0

Likely to cause new Flow errors:

  • Builtin idx support is removed. idx functions can now be typed with conditional type and mapped type. The v3 release of idx contains these typing changes.
  • When using module.system=haste, it will now be an error if a .js.flow file shadows a .js file with a different path prefix.

Notable bug fixes:

  • Fixed a bug that used to cause spurious internal errors when you have non-binding patterns. example

Parser:

  • Fixed parsing of multiple as/satisfies casts in a row.

Library Definitions:

  • Added support for Intl.Locale class

v0.212.0

Likely to cause new Flow errors:

  • Flow is now stricter with regards to type checking of spreads, $NonMaybeType, and $ReadOnly. You might see new errors revealed as a result.
  • Experimental utility types $Pred and $Refine have been deleted. These are replaced by type guards.

New Features:

  • Updated Pick and Omit to work on interfaces and instances.
  • Conditional types, mapped types, type guards, and tuple enhancements are now enabled by default.

Notable bug fixes:

  • Prevented hover and go-to-definition requests that infinitely loop.

IDE:

  • For imported names using require, go-to-definition will now jump to the location of the original definition's name.

v0.211.1

Notable bug fixes:

... (truncated)

Changelog

Sourced from flow-parser's changelog.

0.214.0

Likely to cause new Flow errors:

  • Flow now has stricter behavior with $Call, $ObjMap, $ObjMapi, $ObjMapConst, $TupleMap. Previously hidden type errors might be revealed now.
  • You can no longer disable tuple_ehancements, conditional_type, mapped_type, type_guards in flowconfig, since these options have been removed. They were enabled by default since v0.212.0.

IDE:

  • We now provide a new refactor that extracts JSX elements into a new React component.
  • Extract to constant refactors now works for nested JSX elements and fragments.

Notable bug fixes:

  • Added default type arguments for the built-in React$AbstractComponent to match the React.AbstractComponent type alias in our libdefs. [try-flow]

Library Definitions:

  • Added parseArgs to the Node.js util module library definition

0.213.1

Notable bug fixes:

  • Fixed a bug where local find references do not return references in jsx props.

0.213.0

Likely to cause new Flow errors:

  • Builtin idx support is removed. idx functions can now be typed with conditional type and mapped type. The v3 release of idx contains these typing changes.
  • When using module.system=haste, it will now be an error if a .js.flow file shadows a .js file with a different path prefix.

Notable bug fixes:

  • Fixed a bug that used to cause spurious internal errors when you have non-binding patterns. example

Parser:

  • Fixed parsing of multiple as/satisfies casts in a row.

Library Definitions:

  • Added support for Intl.Locale class

0.212.0

Likely to cause new Flow errors:

  • Flow is now stricter with regards to type checking of spreads, $NonMaybeType, and $ReadOnly. You might see new errors revealed as a result.
  • Experimental utility types $Pred and $Refine have been deleted. These are replaced by type guards.

New Features:

  • Updated Pick and Omit to work on interfaces and instances.
  • Conditional types, mapped types, type guards, and tuple enhancements are now enabled by default.

Notable bug fixes:

  • Prevented hover and go-to-definition requests that infinitely loop.

IDE:

... (truncated)

Commits
  • 4dbfd59 v0.214.0
  • e3ad36b [flow] log activity key
  • c33ca6a [flow][tuples] Delete tuple_enhancements option
  • 44793d1 [flow] Fully resolve all EvalT results when it's input types are fully resolved
  • 42bd737 [flow] Support destructured rest params in components
  • dc5c06a Flow: Add util.parseArgs Node.js Library Definition
  • d24f89e [flow][ide] Extract jsx to react component refactor
  • b078f16 [flow][ide][EZ] Rename some refactor helper functions
  • 1790669 [flow][ide] Support nested jsx extraction
  • e228e07 [flow][component-syntax] Quickfix string param names with no local binding
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #1366.