Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 27, 2024

Bumps ts-pattern from 5.1.1 to 5.1.2.

Release notes

Sourced from ts-pattern's releases.

v5.1.2

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

Commits
  • 7160317 Merge pull request #251 from JUSTIVE/fix-bug-report-typo
  • ee715ab Update target version in tsconfig.json
  • cacf19a Merge pull request #252 from gvergnaud/gvergnaud/fix-exhaustive-with-p-non-nu...
  • 5afa02f 5.1.2
  • 3db8382 fix: exhaustive checking with nested P.nonNullable patterns
  • 43035d1 docs: fix typo in jsdoc comments
  • ac799e2 chore: typo in bug_report
  • 2f5a3b2 Merge pull request #248 from gvergnaud/dependabot/npm_and_yarn/ejs-3.1.10
  • 65188c6 Update bug_report.md
  • 22c9ad9 Merge pull request #249 from gvergnaud/dependabot/npm_and_yarn/examples/gif-f...
  • 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 [ts-pattern](https://github.com/gvergnaud/ts-pattern) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gvergnaud/ts-pattern/releases)
- [Commits](gvergnaud/ts-pattern@v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: ts-pattern
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 27, 2024
@fendor fendor merged commit 5d15906 into master May 27, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ts-pattern-5.1.2 branch May 27, 2024 08:49
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