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 v5.1.2 #553

Merged
merged 1 commit into from
May 24, 2024

Conversation

renovate-pagopa[bot]
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
ts-pattern dependencies patch 5.1.1 -> 5.1.2
ts-pattern dependencies minor 5.1.1 -> 5.1.2
ts-pattern devDependencies patch 5.1.1 -> 5.1.2

Release Notes

gvergnaud/ts-pattern (ts-pattern)

v5.1.2

Compare Source

The main thing

When combining P.nonNullable and P.nullish, you should get an exhaustive pattern matching expression, but the following case was incorrectly considered non-exhaustive:

declare const input: {
  nested: string | number | null | undefined;
};

const res = match(input)
  .with({ nested: P.nonNullable }, (x) => {/* ... */})
  .with({ nested: P.nullish }, (x) => {/* ... */})
  // should type-check
  .exhaustive();

This is fixed now.

What's Changed
New Contributors

Full Changelog: gvergnaud/ts-pattern@v5.1.1...v5.1.2


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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


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

This PR has been generated by Renovate Bot.

@renovate-pagopa renovate-pagopa bot added the dependencies Pull requests that update a dependency file label May 24, 2024
@renovate-pagopa renovate-pagopa bot merged commit e46bdce into main May 24, 2024
8 checks passed
@renovate-pagopa renovate-pagopa bot deleted the renovate/ts-pattern-5.x branch May 24, 2024 05:42
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants