chore(deps): bump unthrown to 5.0.0-beta.6, drop ts-pattern - #347
Merged
Conversation
beta.6 builds the exhaustive matcher into unthrown itself (same .with/tag/P call-site shape), so no code changes are needed and the ts-pattern catalog entry, devDependencies, and peerDependencies added for beta.5's peer requirement are all removed. unthrown peer range raised to ^5.0.0-beta.6.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the monorepo dependency catalog and package peer ranges to adopt unthrown@5.0.0-beta.6 (and @unthrown/vitest@5.0.0-beta.6), and removes ts-pattern now that the matcher is built into unthrown.
Changes:
- Bump
unthrownand@unthrown/vitestfrom5.0.0-beta.5→5.0.0-beta.6via the workspace catalog + lockfile. - Remove
ts-patternfrom the catalog and from all affected package peer/dev dependencies (including examples). - Add a patch changeset to publish the updated peer range.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Bumps unthrown / @unthrown/vitest catalog versions and removes ts-pattern from the catalog. |
| pnpm-lock.yaml | Updates lock entries to 5.0.0-beta.6 and removes ts-pattern resolution graph entries. |
| packages/worker/package.json | Removes ts-pattern and bumps unthrown peer range to ^5.0.0-beta.6. |
| packages/contract/package.json | Removes ts-pattern peer dependency/meta and bumps unthrown peer range. |
| packages/client/package.json | Removes ts-pattern peer dependency and bumps unthrown peer range. |
| examples/order-processing-worker/package.json | Drops ts-pattern from example dependencies. |
| examples/order-processing-client/package.json | Drops ts-pattern from example dependencies. |
| .changeset/bump-unthrown-beta-6.md | Adds a patch changeset describing the bump/removal. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
The dependency is gone (beta.6 builds the matcher into unthrown); the migration guide, worker errors JSDoc, and the agent dependency rules now say 'exhaustive matcher' instead of naming ts-pattern, and the catalog note no longer lists it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
unthrown/@unthrown/vitestto5.0.0-beta.6— the release whose exhaustive matcher is built-in (same.with(…)/tag/Pcall-site shape, generic-Ecatch-all now provable).P/match/tagimports already come fromunthrown.ts-patternfully removed: the catalog entry plus the devDeps + peerDeps (client/contract/worker) and example deps added for beta.5's peer requirement.pnpm add unthrownis once again the whole story for consumers.unthrownpeer range →^5.0.0-beta.6.Gate green: format, lint, typecheck, knip, test, build.