chore(deps): bump unthrown to 5.0.0 - #351
Merged
Merged
Conversation
unthrown 5.0.0 is out. The only API change since 5.0.0-beta.7 is that the standalone `tag` export moved onto the pattern namespace as `P.tag(t)`, so every call site, TSDoc example, README and doc page is updated and the peer range is raised to `^5.0.0`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repo from unthrown@5.0.0-beta.7 to the stable unthrown@5.0.0, adjusting peer/dependency ranges accordingly and performing the mechanical API rename from tag(...) to P.tag(...) across source, tests, and documentation.
Changes:
- Bump
unthrown+@unthrown/vitestcatalog entries to5.0.0and update the lockfile. - Update
@temporal-contract/*package peer ranges to^5.0.0. - Rename all
tag(...)usage toP.tag(...)across runtime code, tests, READMEs, docs, and changeset guidance.
Reviewed changes
Copilot reviewed 29 out of 30 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates public README examples to use P.tag(...). |
| pnpm-workspace.yaml | Bumps catalog versions for unthrown and @unthrown/vitest to 5.0.0. |
| pnpm-lock.yaml | Lockfile refresh to resolve unthrown@5.0.0 and @unthrown/vitest@5.0.0. |
| packages/worker/src/workflow.ts | Updates TSDoc examples from tag(...) to P.tag(...). |
| packages/worker/src/cancellation.ts | Updates TSDoc example from tag(...) to P.tag(...). |
| packages/worker/src/activity.ts | Removes tag import and switches matcher usage to P.tag(...). |
| packages/worker/src/activity-contract-errors.spec.ts | Updates tests to use P.tag(...) and removes tag import. |
| packages/worker/README.md | Updates package README examples to use P.tag(...) and adds P import. |
| packages/worker/package.json | Updates unthrown peer range to ^5.0.0. |
| packages/contract/src/errors.ts | Updates TSDoc reference to P.tag(...). |
| packages/contract/package.json | Updates unthrown peer range to ^5.0.0. |
| packages/client/src/client.ts | Updates TSDoc examples from tag(...) to P.tag(...). |
| packages/client/src/client.spec.ts | Switches tests from tag(...) to P.tag(...) and updates imports. |
| packages/client/src/tests/client.spec.ts | Switches integration tests from tag(...) to P.tag(...) and updates imports. |
| packages/client/package.json | Updates unthrown peer range to ^5.0.0. |
| examples/order-processing-client/src/client.ts | Updates example client code to use P.tag(...) and updates imports. |
| docs/tutorial/your-first-workflow.md | Updates tutorial snippets to use P.tag(...) and import P. |
| docs/tutorial/adding-signals-and-queries.md | Updates tutorial snippets to use P.tag(...) and import P. |
| docs/reference/errors.md | Updates reference snippets to use P.tag(...). |
| docs/index.md | Updates docs landing-page snippets to use P.tag(...) and import P. |
| docs/how-to/upgrade-to-v8.md | Updates upgrade guide to unthrown@^5 and documents tag → P.tag rename. |
| docs/how-to/troubleshoot.md | Updates troubleshooting snippet to use P.tag(...). |
| docs/how-to/run-child-workflows.md | Updates how-to snippets to use P.tag(...) and import P. |
| docs/how-to/model-domain-errors.md | Updates how-to snippets to use P.tag(...) and import P. |
| docs/how-to/migrate-from-neverthrow.md | Updates migration examples to use P.tag(...) and import P. |
| docs/how-to/intercept-client-calls.md | Updates interceptor examples to use P.tag(...) and removes tag import. |
| docs/how-to/install.md | Updates peer compatibility table to unthrown@^5.0.0. |
| docs/how-to/add-activity-middleware.md | Updates middleware example to use P.tag(...) and removes tag import. |
| docs/explanation/the-result-model.md | Updates explanation snippet to use P.tag(...) and import P. |
| .changeset/bump-unthrown-v5-stable.md | Adds changeset documenting the bump and the tag → P.tag migration. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
Comments suppressed due to low confidence (1)
docs/reference/errors.md:61
- This example uses
P.tag(...)but doesn’t define or importP. Addingimport { P } from "unthrown";makes the snippet self-contained.
matcher.with(P.tag("@temporal-contract/ContractError"), (error) => {
Review feedback: several snippets call P.tag(...) without establishing that P is unthrown's pattern namespace. Standalone and random-access contexts now import it explicitly — the eight TSDoc @example blocks (each renders as an isolated card in the API docs), the root README client example, and the troubleshoot.md entry readers reach by symptom rather than by reading top to bottom. The linear how-to guides already import P at their first use, so their later blocks are left alone. reference/errors.md keeps its one-line shape fragments free of imports — no snippet on that page has ever carried one — and states P's origin in prose instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Summary
unthrown5.0.0 is out of beta. Catalog and peer ranges move from5.0.0-beta.7to the stable release.The only API change between beta.7 and 5.0.0 is that the standalone
tagexport moved onto the pattern namespace asP.tag(t)(unthrown beta.9), joining every other pattern constructor. The type and runtime behaviour are unchanged, so the migration is purely a rename.Changes
unthrownand@unthrown/vitest→5.0.0^5.0.0tag(...)→P.tag(...)across source, tests, TSDoc examples, READMEs and the docs site;tagdropped from everyunthrownimport in favour ofPdocs/how-to/install.md: peer table shows^5.0.0docs/how-to/upgrade-to-v8.md:unthrown@beta→unthrown@^5(unthrown itself is stable now — only the@temporal-contract/*packages are on thebetatag), plus atag→P.tagnote and checklist item for anyone already tracking an 8.0 betaVerification
pnpm install,pnpm lint,pnpm typecheck,pnpm test,pnpm knip,pnpm buildandpnpm formatall clean. Typedoc API docs regenerated (gitignored, so not in the diff).🤖 Generated with Claude Code