benjamn / recast

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

Bump flow-parser from 0.195.0 to 0.215.1 #1369

Open dependabot[bot] opened 11 months ago

dependabot[bot] commented 11 months ago

Bumps flow-parser from 0.195.0 to 0.215.1.

Release notes

Sourced from flow-parser's releases.

v0.215.1

Notable bug fixes:

  • We fixed a bug that causes us to insert extra quote in autocomplete string literal in indexed access types.

v0.215.0

Likely to cause new Flow errors:

  • Improved analysis determining if a function has an implicit void return. As a result, some incorrectly typed code will no longer type check. (example)
  • Fixed a bug where global assignments in generics wouldn't flag errors. (example)

New features:

  • Flow now supports contextual typing for class private property assignments. (example)

IDE:

  • Local find all references will now return a more comprehensive result list.
  • Go to definition now supports indexed access types.

Library Definitions:

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.

... (truncated)

Changelog

Sourced from flow-parser's changelog.

0.215.1

Notable bug fixes:

  • We fixed a bug that causes us to insert extra quote in autocomplete string literal in indexed access types.

0.215.0

Likely to cause new Flow errors:

  • Improved analysis determining if a function has an implicit void return. As a result, some incorrectly typed code will no longer type check. (example)
  • Fixed a bug where global assignments in generics wouldn't flag errors. (example)

New features:

  • Flow now supports contextual typing for class private property assignments. (example)

IDE:

  • Local find all references will now return a more comprehensive result list.
  • Go to definition now supports indexed access types.

Library Definitions:

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:

... (truncated)

Commits
  • cfdd1ec v0.215.1
  • 7023c24 [flow][autocomplete] Improve string literal types in indexed access autocomplete
  • 9e11acc [flow][autocomplete][test] Add test demonstrating the current subpar string l...
  • b1c22e9 [flow][refactor][EZ] Factor out `autocomplete_create_string_literal_edit_cont...
  • 1be1e05 [flow][multi-plat] Link to the docs in the error message
  • 76b9f5f v0.215.0
  • 924801b Fix tool_test_win job (#9070)
  • 018e885 [flow][local-find-ref] Unify the find-ref code for local and global versions
  • ca7143d [flow][multi-plat] Pick a location that feels like signature location to be t...
  • 42f40c7 [flow][multi-plat] Allow mod.js.flow to shadow mod.\<platform>.js
  • 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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)
adaptly-bot commented 11 months ago

:warning:  flow-parser

 Breaking changes
1: Type the result of Object.values and Object.entries on a dictionary > The result of `Object.values` and `Object.entries` on a dictionary should now be typed to be the dictionary values, and `Object.entries` keys should behave like `Object.keys`. This change may cause new Flow errors.
2: Ban array inputs to Object.values and Object.entries > Array inputs to `Object.values` and `Object.entries` are now banned. This change may cause new Flow errors.
3: Function's name and length property are now not writable > The `name` and `length` properties of a function are now not writable. This change may cause new Flow errors.
4: Fix Object.keys, $Values, and $Keys on interfaces with indexers > `Object.keys`, `$Values`, and `$Keys` on interfaces with indexers have been fixed. This change may cause new Flow errors.
5: Delete $Subtype and $SuperType utilities > The `$Subtype` and `$SuperType` utilities have been deleted. This change may cause new Flow errors.
6: Delete deprecated-utility Flow lint > The `deprecated-utility` Flow lint has been deleted. This change may cause new Flow errors.
7: Boolean CLI flags must now be 1 or true to be truthy > Boolean CLI flags must now be `1` or `true` to be considered truthy. Previously, anything other than `0` and `false` was considered truthy. This change may cause new Flow errors.

:bust_in_silhouette: Who am I? I am a bot that helps developers to update dependencies by informing if changelogs contain breaking changes or not.

:wave: See you again? If you want my help with other dependency updates, add me to your repository.

PS. I hope I didn't bother you - my purpose is to help developers and I won't comment anymore without your request. Feel free to shoot me a message about anything support@adaptly.dev. Cheers.