Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump flow-parser from 0.254.2 to 0.257.1 in /dev-client #2682

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 22, 2024

Bumps flow-parser from 0.254.2 to 0.257.1.

Release notes

Sourced from flow-parser's releases.

v0.257.1

Misc:

  • Flow language server will stop advertising that we can handle all code actions kinds prefixed with "source". It can help to prevent VSCode sending flow irrelevant code actions to handle during save.

v0.257.0

Likely to cause new Flow errors:

  • We have improved inference for exported primitive literal values.
    • Before this change the inferred type for export const obj = {f: "foo"}; was {f: str<"foo">}, where str<"foo"> was a type that opportunistically and unsoundly behaved either as string or as the singleton type "foo".
    • Flow will now infer the type {f: string} for obj.
    • For const like exports, e.g. export const x = "foo"; Flow will export the type "foo".
    • To fix errors that arise due to this change, you can provide annotations around exported literals or use the as const modifier.
  • We fixed a major unsoundness with regards to dictionary object creation. Previously, the computed property will just be ignored for string or any keys. Now, if the computed property is added to some existing objects (e.g. {foo: string, [stringTypedKey]: v}), then we will error on the property. Otherwise, the {[key]: value} will be {[typeof key}: typeof value}
  • We fixed a bug that causes opaque type's underlying representation to leak beyond the file it's defined. You might see more errors as a result.
  • Flow will now perform a complete function call check even when [react-rule-unsafe-mutation] errors are raised.
  • Previously we incorrectly distribute-over-union for maybe or optional input types of conditional type. (e.g. (?string) extends string ? true : false is evaluated to true | false instead of false). This is now fixed, and code that depends on the bug might have new errors.
  • If you have refiend a value based on typeof x === 'function', and then do typeof x === 'object', the result is now empty as that is impossible.
  • Singleton types are now also considered in conditional equality checks on member expressions. (e.g. try-Flow)
  • React.Config type, deprecated in v0.254, is now removed.

New Features:

  • 'key' in x now refines the type of x to objects which have the property key.
    • in checks for both own and non-own properties.
    • If we find that a key does not exist in an inexact object or instance/interface, then the negation is not refined since the property may or may not exist.
    • An optional property is also considered as if it may or may not exist.
    • If a proto/super is a union, every member of the union must have it
    • If the input to the refinement is an intersection, one member of that intersection must have it
    • We don't refine arrays since it's not useful (check for .length instead), and also because Flow doesn't handle array holes.
  • Flow now supports no_unchecked_indexed_access=true in flowconfig, which is equivalent to noUncheckedIndexedAccess from TS. It will add | void to every indexed access with general string key on dictionary objects or number key on arrays.
  • Support for React 19's ref-as-prop model is now available via react.ref_as_prop=partial_support, and this is now the default. (To disable it, use react.ref_as_prop=disabled.) Under this mode, ref prop in jsx will be treated as a regular prop for function components, but utility types like React.ElementConfig<...> still won't include the regular ref prop yet.
  • Flow now allows using union of strings as the type of computed property keys.
  • You can now destructure object properties using number literal keys (which are int-like).

Notable bug fixes:

  • Refining type guards with opaque types will now refine the general type (example of code that used to fail before, but now passes: try-Flow)
  • Allow more flexibility in checks involving super type of opaque type (e.g. try-Flow)
  • Fixed a bug when using opaque types in type guards in files other than the one where the type guard function was defined.
  • We now allow a union of generic or opaque string typed values to be used as a key of computed property, if it's bounded by a string type.

Library Definitions:

  • Add libdef types for getNotifications and showNotification API for ServiceWorkerRegistration

v0.256.0

Notable bug fixes:

  • Fixed a limitation when checking intersections of polymorphic types (e.g. tryFlow)
  • Fixed an internal error raised when using super in an object method. Such cases are now user-facing errors.

v0.255.0

Likely to cause new Flow errors:

  • Referencing a react-component typed value in type position will now create a React$RendersExactly<typeof Component> type instead of React$Element<typeof Component> type. All existing usages intended to create an exact react element will now error as a result. Using it as type passed to render type, React.PropsOf, React.PropOf and React.RefOf is unaffected and will not be affected in the future. If you want exact react elements, the only way that doesn't trigger Flow error is by ExactReactElement_DEPRECATED<typeof Component>.

... (truncated)

Changelog

Sourced from flow-parser's changelog.

0.257.1

Misc:

  • Flow language server will stop advertising that we can handle all code actions kinds prefixed with "source". It can help to prevent VSCode sending flow irrelevant code actions to handle during save.

0.257.0

Likely to cause new Flow errors:

  • We have improved inference for exported primitive literal values.
    • Before this change the inferred type for export const obj = {f: "foo"}; was {f: str<"foo">}, where str<"foo"> was a type that opportunistically and unsoundly behaved either as string or as the singleton type "foo".
    • Flow will now infer the type {f: string} for obj.
    • For const like exports, e.g. export const x = "foo"; Flow will export the type "foo".
    • To fix errors that arise due to this change, you can provide annotations around exported literals or use the as const modifier.
  • We fixed a major unsoundness with regards to dictionary object creation. Previously, the computed property will just be ignored for string or any keys. Now, if the computed property is added to some existing objects (e.g. {foo: string, [stringTypedKey]: v}), then we will error on the property. Otherwise, the {[key]: value} will be {[typeof key}: typeof value}
  • We fixed a bug that causes opaque type's underlying representation to leak beyond the file it's defined. You might see more errors as a result.
  • Flow will now perform a complete function call check even when [react-rule-unsafe-mutation] errors are raised.
  • Previously we incorrectly distribute-over-union for maybe or optional input types of conditional type. (e.g. (?string) extends string ? true : false is evaluated to true | false instead of false). This is now fixed, and code that depends on the bug might have new errors.
  • If you have refiend a value based on typeof x === 'function', and then do typeof x === 'object', the result is now empty as that is impossible.
  • Singleton types are now also considered in conditional equality checks on member expressions. (e.g. try-Flow)
  • React.Config type, deprecated in v0.254, is now removed.

New Features:

  • 'key' in x now refines the type of x to objects which have the property key.
    • in checks for both own and non-own properties.
    • If we find that a key does not exist in an inexact object or instance/interface, then the negation is not refined since the property may or may not exist.
    • An optional property is also considered as if it may or may not exist.
    • If a proto/super is a union, every member of the union must have it
    • If the input to the refinement is an intersection, one member of that intersection must have it
    • We don't refine arrays since it's not useful (check for .length instead), and also because Flow doesn't handle array holes.
  • Flow now supports no_unchecked_indexed_access=true in flowconfig, which is equivalent to noUncheckedIndexedAccess from TS. It will add | void to every indexed access with general string key on dictionary objects or number key on arrays.
  • Support for React 19's ref-as-prop model is now available via react.ref_as_prop=partial_support, and this is now the default. (To disable it, use react.ref_as_prop=disabled.) Under this mode, ref prop in jsx will be treated as a regular prop for function components, but utility types like React.ElementConfig<...> still won't include the regular ref prop yet.
  • Flow now allows using union of strings as the type of computed property keys.
  • You can now destructure object properties using number literal keys (which are int-like).

Notable bug fixes:

  • Refining type guards with opaque types will now refine the general type (example of code that used to fail before, but now passes: try-Flow)
  • Allow more flexibility in checks involving super type of opaque type (e.g. try-Flow)
  • Fixed a bug when using opaque types in type guards in files other than the one where the type guard function was defined.
  • We now allow a union of generic or opaque string typed values to be used as a key of computed property, if it's bounded by a string type.

Library Definitions:

  • Add libdef types for getNotifications and showNotification API for ServiceWorkerRegistration

0.256.0

Notable bug fixes:

  • Fixed a limitation when checking intersections of polymorphic types (e.g. tryFlow)
  • Fixed an internal error raised when using super in an object method. Such cases are now user-facing errors.

0.255.0

... (truncated)

Commits
  • a10f3f9 v0.257.1
  • 83ff18e [flow][match] Error on as patterns directly on binding patterns
  • fd84ce5 [flow][match] Error (for now) on new bindings in 'or' patterns
  • f858f40 [flow] Stop including source as supported code actions
  • 9773592 [flow][test] Use a more realistic default codeActionLiteralSupport kinds
  • 186aa6d [flow][match] Tests for error on duplicate binding name
  • f4f5e1e [flow][match] Error on repeated object keys in object patterns
  • 82c1fa3 [flow][match] Error on unary pattern + on bigint literal
  • 67befeb [flow][match] Error on invalid unary pattern on 0
  • ea7dadd [flow][match] Error on invalid numeric object property literals
  • 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 <dependency name> 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)

Bumps [flow-parser](https://github.com/facebook/flow) from 0.254.2 to 0.257.1.
- [Release notes](https://github.com/facebook/flow/releases)
- [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md)
- [Commits](facebook/flow@v0.254.2...v0.257.1)

---
updated-dependencies:
- dependency-name: flow-parser
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 22, 2024
@paulschreiber paulschreiber added this pull request to the merge queue Dec 23, 2024
Merged via the queue into dependencies with commit f1eb06d Dec 23, 2024
7 checks passed
@paulschreiber paulschreiber deleted the dependabot/npm_and_yarn/dev-client/dependencies/flow-parser-0.257.1 branch December 23, 2024 04:45
paulschreiber added a commit that referenced this pull request Dec 24, 2024
* chore(deps): bump is-regex from 1.1.4 to 1.2.1 in /dev-client (#2693)

Bumps [is-regex](https://github.com/inspect-js/is-regex) from 1.1.4 to 1.2.1.
- [Changelog](https://github.com/inspect-js/is-regex/blob/main/CHANGELOG.md)
- [Commits](inspect-js/is-regex@v1.1.4...v1.2.1)

---
updated-dependencies:
- dependency-name: is-regex
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump yup from 1.5.0 to 1.6.1 in /dev-client (#2692)

Bumps [yup](https://github.com/jquense/yup) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/jquense/yup/releases)
- [Changelog](https://github.com/jquense/yup/blob/master/CHANGELOG.md)
- [Commits](jquense/yup@v1.5.0...v1.6.1)

---
updated-dependencies:
- dependency-name: yup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump cross-fetch from 3.1.8 to 3.2.0 in /dev-client (#2690)

Bumps [cross-fetch](https://github.com/lquixada/cross-fetch) from 3.1.8 to 3.2.0.
- [Release notes](https://github.com/lquixada/cross-fetch/releases)
- [Changelog](https://github.com/lquixada/cross-fetch/blob/v3.2.0/CHANGELOG.md)
- [Commits](lquixada/cross-fetch@v3.1.8...v3.2.0)

---
updated-dependencies:
- dependency-name: cross-fetch
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump core-js-compat from 3.38.1 to 3.39.0 in /dev-client (#2689)

Bumps [core-js-compat](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js-compat) from 3.38.1 to 3.39.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.39.0/packages/core-js-compat)

---
updated-dependencies:
- dependency-name: core-js-compat
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump safe-regex-test from 1.0.3 to 1.1.0 in /dev-client (#2688)

Bumps [safe-regex-test](https://github.com/ljharb/safe-regex-test) from 1.0.3 to 1.1.0.
- [Changelog](https://github.com/ljharb/safe-regex-test/blob/main/CHANGELOG.md)
- [Commits](ljharb/safe-regex-test@v1.0.3...v1.1.0)

---
updated-dependencies:
- dependency-name: safe-regex-test
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump array.prototype.flat in /dev-client (#2687)

Bumps [array.prototype.flat](https://github.com/es-shims/Array.prototype.flat) from 1.3.2 to 1.3.3.
- [Changelog](https://github.com/es-shims/Array.prototype.flat/blob/main/CHANGELOG.md)
- [Commits](es-shims/Array.prototype.flat@v1.3.2...v1.3.3)

---
updated-dependencies:
- dependency-name: array.prototype.flat
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump fast-xml-parser from 4.5.0 to 4.5.1 in /dev-client (#2686)

Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](NaturalIntelligence/fast-xml-parser@v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump typed-array-buffer from 1.0.2 to 1.0.3 in /dev-client (#2685)

Bumps [typed-array-buffer](https://github.com/inspect-js/typed-array-buffer) from 1.0.2 to 1.0.3.
- [Changelog](https://github.com/inspect-js/typed-array-buffer/blob/main/CHANGELOG.md)
- [Commits](inspect-js/typed-array-buffer@v1.0.2...v1.0.3)

---
updated-dependencies:
- dependency-name: typed-array-buffer
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump es-abstract from 1.23.5 to 1.23.7 in /dev-client (#2684)

Bumps [es-abstract](https://github.com/ljharb/es-abstract) from 1.23.5 to 1.23.7.
- [Changelog](https://github.com/ljharb/es-abstract/blob/main/CHANGELOG.md)
- [Commits](ljharb/es-abstract@v1.23.5...v1.23.7)

---
updated-dependencies:
- dependency-name: es-abstract
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump object.assign from 4.1.5 to 4.1.7 in /dev-client (#2683)

Bumps [object.assign](https://github.com/ljharb/object.assign) from 4.1.5 to 4.1.7.
- [Changelog](https://github.com/ljharb/object.assign/blob/main/CHANGELOG.md)
- [Commits](ljharb/object.assign@v4.1.5...v4.1.7)

---
updated-dependencies:
- dependency-name: object.assign
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump flow-parser from 0.254.2 to 0.257.1 in /dev-client (#2682)

Bumps [flow-parser](https://github.com/facebook/flow) from 0.254.2 to 0.257.1.
- [Release notes](https://github.com/facebook/flow/releases)
- [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md)
- [Commits](facebook/flow@v0.254.2...v0.257.1)

---
updated-dependencies:
- dependency-name: flow-parser
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump electron-to-chromium in /dev-client (#2681)

Bumps [electron-to-chromium](https://github.com/kilian/electron-to-chromium) from 1.5.64 to 1.5.75.
- [Changelog](https://github.com/Kilian/electron-to-chromium/blob/master/CHANGELOG.md)
- [Commits](Kilian/electron-to-chromium@v1.5.64...v1.5.75)

---
updated-dependencies:
- dependency-name: electron-to-chromium
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump parse5 from 7.2.0 to 7.2.1 in /dev-client (#2680)

Bumps [parse5](https://github.com/inikulin/parse5) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/inikulin/parse5/releases)
- [Commits](inikulin/parse5@v7.2.0...v7.2.1)

---
updated-dependencies:
- dependency-name: parse5
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump function.prototype.name in /dev-client (#2691)

Bumps [function.prototype.name](https://github.com/es-shims/Function.prototype.name) from 1.1.6 to 1.1.8.
- [Changelog](https://github.com/es-shims/Function.prototype.name/blob/main/CHANGELOG.md)
- [Commits](es-shims/Function.prototype.name@v1.1.6...v1.1.8)

---
updated-dependencies:
- dependency-name: function.prototype.name
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant