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

Update dependency ts-pattern to v4.0.4 #431

Merged
merged 1 commit into from
Jul 7, 2022
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 7, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ts-pattern 4.0.3 -> 4.0.4 age adoption passing confidence

Release Notes

gvergnaud/ts-pattern

v4.0.4

Compare Source

Fixes:

  • When nesting P.array() and P.select(), the handler function used to receive undefined instead of an empty array when the input array was empty. Now it received an empty array as expected:
match([])
    .with(P.array({ name: P.select() }), (names) => names)  /* names has type `string[]` and value `[]` */
    // ...
    .exhaustive()
  • The types used to forbid using an empty array pattern ([]) when matching on a value of type unknown. This has been fixed.
const f = (x: unknown) => match(x).with([], () => "this is an empty array!").otherwise(() => "?")

Commits:


Configuration

📅 Schedule: Branch creation - "before 3am" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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, click this checkbox.

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

@vercel
Copy link

vercel bot commented Jul 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nextjs-template ✅ Ready (Inspect) Visit Preview Jul 7, 2022 at 6:41PM (UTC)
nextjs-template-mockup ✅ Ready (Inspect) Visit Preview Jul 7, 2022 at 6:41PM (UTC)
nextjs-template-storybook ✅ Ready (Inspect) Visit Preview Jul 7, 2022 at 6:41PM (UTC)

@vercel vercel bot temporarily deployed to Preview – nextjs-template-mockup July 7, 2022 16:18 Inactive
@vercel vercel bot temporarily deployed to Preview – nextjs-template-storybook July 7, 2022 16:18 Inactive
@vercel vercel bot temporarily deployed to Preview – nextjs-template July 7, 2022 16:20 Inactive
@renovate renovate bot force-pushed the renovate/ts-pattern-4.x branch from 5df88a1 to ee774f3 Compare July 7, 2022 18:38
@vercel vercel bot temporarily deployed to Preview – nextjs-template-mockup July 7, 2022 18:39 Inactive
@vercel vercel bot temporarily deployed to Preview – nextjs-template-storybook July 7, 2022 18:40 Inactive
@vercel vercel bot temporarily deployed to Preview – nextjs-template July 7, 2022 18:41 Inactive
@renovate renovate bot merged commit 81d1e4d into main Jul 7, 2022
@renovate renovate bot deleted the renovate/ts-pattern-4.x branch July 7, 2022 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants