ast-types
ast-types copied to clipboard
Bump flow-parser from 0.166.0 to 0.183.1
Bumps flow-parser from 0.166.0 to 0.183.1.
Release notes
Sourced from flow-parser's releases.
v0.183.1
- Fix a regression in 0.183.0 on Windows where inconsistent handling of slashes within paths led to mismatches like "duplicate provider" errors
v0.183.0
Likely to cause new Flow errors:
- We now emit new errors in places where an object literal has literal types, but doesn't have an annotation. You can usually fix these errors by adding annotations to object literals.
New Features:
- Allow export of empty object without annotation when
exact_empty_objectsis enabled.- Improve annotate
useStatecodemod to supportnull/undefined/empty-array arguments.Notable bug fixes:
- Allow flowconfigs with blank lines before the first config section.
- Fix location of error message about legacy octal number types.
- Fix inconsistent blank lines around auto-imports.
- Fix bug where Watchman events might be ignored on Windows.
Parser:
- Fix parser exception on negative binary and octal number types that contain whitespace after the minus sign.
Library Definitions:
- Improved
fs.readdirandfs.readdirSyncto allow better overload resolution.- Add
String.prototype.replaceAll()(Thanks@dav-s).v0.182.0
Likely to cause new Flow errors:
varre-declarations are now banned. You should useletorconstinstead.- Flow will now emit escaped-generic errors when the return type of a generic predicate function contains type parameters defined by the function.
Notable bug fixes:
- Improve ordering of autoimport suggestions, so that globals are suggested above named imports.
Misc:
- Errors related to class expressions might have new locations.
v0.181.2
- Fix the rendering of classes in autocomplete results
- Fix the ordering of class methods in autocomplete results
- Improve ability to recover from Watchman restarting (the fix in 0.181.0 was incomplete)
- Fix a bug where warnings would be incorrectly reported when using saved state, and could cause a crash.
- Add
--saved-state-verifyflag to check that a saved state matches what is expected to be on disk.v0.181.1
Notable bug fixes:
- The JS build for try-flow is now fixed. It's recently broken since the 0.181.0 release.
v0.181.0
Notable bug fixes:
- Fix unsound spreading of empty array literals (example)
- Fix a race condition that could cause individual requests from the IDE to hang indefinitely
... (truncated)
Changelog
Sourced from flow-parser's changelog.
0.183.1
- Fix a regression in 0.183.0 on Windows where inconsistent handling of slashes within paths led to mismatches like "duplicate provider" errors
0.183.0
Likely to cause new Flow errors:
- We now emit new errors in places where an object literal has literal types, but doesn't have an annotation. You can usually fix these errors by adding annotations to object literals.
New Features:
- Allow export of empty object without annotation when
exact_empty_objectsis enabled.- Improve annotate
useStatecodemod to supportnull/undefined/empty-array arguments.Notable bug fixes:
- Allow flowconfigs with blank lines before the first config section.
- Fix location of error message about legacy octal number types.
- Fix inconsistent blank lines around auto-imports.
- Fix bug where Watchman events might be ignored on Windows.
Parser:
- Fix parser exception on negative binary and octal number types that contain whitespace after the minus sign.
Library Definitions:
- Improved
fs.readdirandfs.readdirSyncto allow better overload resolution.- Add
String.prototype.replaceAll()(Thanks@dav-s).0.182.0
Likely to cause new Flow errors:
varre-declarations are now banned. You should useletorconstinstead.- Flow will now emit escaped-generic errors when the return type of a generic predicate function contains type parameters defined by the function.
Notable bug fixes:
- Improve ordering of autoimport suggestions, so that globals are suggested above named imports.
Misc:
- Errors related to class expressions might have new locations.
0.181.2
- Fix the rendering of classes in autocomplete results
- Fix the ordering of class methods in autocomplete results
- Improve ability to recover from Watchman restarting (the fix in 0.181.0 was incomplete)
- Fix a bug where warnings would be incorrectly reported when using saved state, and could cause a crash.
- Add
--saved-state-verifyflag to check that a saved state matches what is expected to be on disk.0.181.1
Notable bug fixes:
... (truncated)
Commits
97977cev0.183.10a5bb41Back out "Extract Imports from File_sig"1d2d2c9normalize file watcher events to backslashes on Windows1954f45improve logging of canceled rechecks63740d9v0.183.086e3845[resolved-env] Another take on type cycles including tparams: pre-populate tp...19ffb73Improve annotate useState codemod to support null/undefined/empty-array argum...8a435a4normalize slashes in file watchers on Windows8df7a2fremove temp_dir config optionc5b36a1remove log.file config- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)