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): update dependency flow-parser to v0.221.0 #15637

Merged
merged 1 commit into from Nov 12, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 12, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
flow-parser (source) 0.217.0 -> 0.221.0 age adoption passing confidence

Release Notes

facebook/flow (flow-parser)

v0.221.0

Compare Source

Likely to cause new Flow errors:

  • Changed the signature of React.Fragment to only accept children and the key prop.
  • Changed the signature of React.useRef to return an opaque type.
  • Fixed a case where, in some cases, contextually-typed callbacks being passed as props would be typed as any rather than producing underconstrained-implicit-instantiation errors. This will result in new underconstrained errors, but removes a source of untracked unsoundness.
  • Banned non-tuple arrays from being spread into tuple types. It previously resulted in any without error.

Notable bug fixes:

  • Improved signature help support for optional chaining calls and intersection types. Now we will show all possible signature possibilities for overloaded functions.

Performance:

  • Incremental error collation, which helps IDE performance when you have a lot of suppressed errors, is now the default.
  • Optimized the way we generate global types for normal source files. You might see a reduction in checking times (3-9% as measured internally at Meta). (D510558 samzhou19815)
  • Optimized the way we analyze syntactic environment required for type checking. On a large file like this, it improves the checking time from 4s to 2s. (D508506 samzhou19815)
  • Optimized substitution performance when conditional type and mapped types are operating on large and deep objects.

Library Definitions:

  • Updated IntersectionObserver types.
  • IndexedDB transaction now allows consuming storeNames as DOMStringList.
  • Added options to IndexedDB transaction.
  • Added durability to IDBTransaction.

v0.220.1

Compare Source

Notable bug fixes:

  • We will now provide auto type import for default-exported classes.
  • We no longer suggest defined values when doing auto complete in object keys when we are under a type annotation.

v0.220.0

Compare Source

Likely to cause new Flow errors:

  • Fixed an issue where access of optional tuple element was not considered | void
  • We rewrote how we generate types for library definitions, which makes the validation of libdef files stricter. You might see more errors as a result of the stricter validation. e.g. all unbound names in libdef files will cause an error, instead of the first reference of the unbound name.

Notable bug fixes:

  • Fixed a bug in "refactor to react component" code actions. Previously, it would incorrectly replace all jsx children with the newly refactored JSX elements
  • Fixed signature help when the function called is typed as an alias (e.g. try-Flow)
  • Fixed some spurious errors in generic calls when the solution involves unions (e.g. try-Flow)
  • Fixed a bug that caused weird errors when you try to use indexed access in export positions. example

v0.219.5

Compare Source

Misc:

  • Bug fixes in preparation of new feature rollout

v0.219.4

Compare Source

Misc:

  • Bug fixes in preparation of new feature rollout

v0.219.3

Compare Source

Misc:

  • Bug fixes in preparation of new feature rollout

v0.219.2

Compare Source

Misc:

  • Bug fixes in preparation of new feature rollout

v0.219.0

Compare Source

Likely to cause new Flow errors:

  • We changed the upper bound of React.Element to be an inexact empty object, effectively making it opaque.
    React doesn't recommend inspecting children and React.Element, so we make the change to increase friction. See https://react.dev/reference/react/Children#alternatives for alternatives.
    To keep existing code type safe, you can add a function like the following to explicitly expose the internal of React.Element:
export default function DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE<
  E: React$ElementType,
  P,
>(e: React$Element<E, P>): {
  +key: React$Key | null,
  +props: P,
  +ref: any,
  +type: C,
} {
  return e;
}
  • Conditional types will now only distribute over a union if A in A extends B ? C : D is a generic type. This is a behavior change that might cause new errors (example). Previously, we distribute over unions in more cases, which contradicts what we said in the docs, and caused some weird behavior that's fixed in this version.
  • If an exported class contains unannotated propTypes, Flow will now emit signature-verification-failure.

New Features:

  • Hovering on enum members in IDE now show documentation if it's available.
  • Added casting_syntax option which can be colon (current), as, or both. If setting is both, both (x: T) and x as T are allowed. If set to colon or as, only (x: T) and x as T are allowed respectively.

Notable bug fixes:

  • Previously, when Flow cannot decide which branch to take in a generic conditional type, Flow will produce a abstract type that's unusable almost everywhere. Now Flow will still produce an abstract type, but it will be bounded above by a union type of both branches of conditional type. example.

Misc:

  • Flow's insert type quickfix in IDE will stop inserting very specific React.Element types. Instead, it will insert general types like React.MixedElement.

Library Definitions:

  • Add type definition for CanvasRenderingContext2D.roundRect.
  • Add tagName to DOM element declarations (thanks @​aselbie).

v0.218.1

Compare Source

New Features:

  • Error collation during rechecks should become faster thanks to incremental computation. (Available with the flag --incremental-error-collation.)

v0.218.0

Compare Source

Likely to cause new Flow errors:

  • We start to validate variance inside $ReadOnly, which is previously completely unchecked. It also results in Flow complaining about some incorrect bounds. example

New Features:

  • Hover types will now show a specialized version of the callee expression at a call to a generic or intersection-typed function.

Notable bug fixes:

  • improve coverage accuracy for the element access portion on element calls, obj[m](arg).

Misc:

  • We slightly optimized Flow's performance of subtyping check between two union types.

Library Definitions:

  • Add defintions Array.prototype.findLastIndex(), String.prototype.at(), TypedArray.prototype.at() and Object.hasOwn() (thanks @​pascalduez).
  • Update URL defintions (thanks @​pascalduez).
  • Add typing for cause option in Error constructor.

v0.217.2

Compare Source

This is same as 0.217.1, but we have some issue publishing 0.217.1 to npm, so we will publish this new version instead.

v0.217.1

Compare Source

Notable bug fixes:

  • Previously, while global find ref/rename (experimental.global_find_ref=true/experimental.global_rename=true) is ongoing, all other IDE services will be blocked. We fixed it so that other IDE requests can still be served.

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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependency Dependency Upgrade label Nov 12, 2023
Copy link

Size Change: +3.93 kB (0%)

Total Size: 8.45 MB

Filename Size Change
./dist/plugins/flow.js 683 kB +1.96 kB (0%)
./dist/plugins/flow.mjs 682 kB +1.96 kB (0%)
ℹ️ View Unchanged
Filename Size
./dist/bin 4.1 kB
./dist/bin/prettier.cjs 2.15 kB
./dist/doc.d.ts 6.91 kB
./dist/doc.js 53.2 kB
./dist/doc.mjs 49.5 kB
./dist/index.cjs 35.8 kB
./dist/index.d.ts 26.3 kB
./dist/index.mjs 810 kB
./dist/internal 4.1 kB
./dist/internal/cli.mjs 230 kB
./dist/internal/internal.mjs 20.1 kB
./dist/LICENSE 240 kB
./dist/package.json 6.31 kB
./dist/plugins 4.1 kB
./dist/plugins/acorn.d.ts 109 B
./dist/plugins/acorn.js 149 kB
./dist/plugins/acorn.mjs 149 kB
./dist/plugins/angular.d.ts 177 B
./dist/plugins/angular.js 43.7 kB
./dist/plugins/angular.mjs 43 kB
./dist/plugins/babel.d.ts 402 B
./dist/plugins/babel.js 313 kB
./dist/plugins/babel.mjs 313 kB
./dist/plugins/estree.d.ts 11 B
./dist/plugins/estree.js 194 kB
./dist/plugins/estree.mjs 194 kB
./dist/plugins/flow.d.ts 90 B
./dist/plugins/glimmer.d.ts 93 B
./dist/plugins/glimmer.js 138 kB
./dist/plugins/glimmer.mjs 138 kB
./dist/plugins/graphql.d.ts 93 B
./dist/plugins/graphql.js 43.7 kB
./dist/plugins/graphql.mjs 43 kB
./dist/plugins/html.d.ts 139 B
./dist/plugins/html.js 145 kB
./dist/plugins/html.mjs 145 kB
./dist/plugins/markdown.d.ts 127 B
./dist/plugins/markdown.js 150 kB
./dist/plugins/markdown.mjs 150 kB
./dist/plugins/meriyah.d.ts 93 B
./dist/plugins/meriyah.js 120 kB
./dist/plugins/meriyah.mjs 120 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 1.15 MB
./dist/plugins/typescript.mjs 1.15 MB
./dist/plugins/yaml.d.ts 90 B
./dist/plugins/yaml.js 122 kB
./dist/plugins/yaml.mjs 121 kB
./dist/README.md 4.03 kB
./dist/standalone.d.ts 1.42 kB
./dist/standalone.js 76.8 kB
./dist/standalone.mjs 76.6 kB

compressed-size-action

@fisker fisker merged commit 4fc71a5 into main Nov 12, 2023
30 checks passed
@fisker fisker deleted the renovate/flow-parser-0.x branch November 12, 2023 17:33
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 16, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

1 participant