chore: release packages#264
Open
btravers wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This is an automated Changesets “release packages” PR that prepares the monorepo for publishing @temporal-contract/* packages to npm by applying the generated version bumps, changelog entries, and removing the consumed changeset.
Changes:
- Bump package versions to
3.0.0forclient,contract,testing, andworker. - Add
3.0.0changelog entries describing the major migration fromneverthrowtounthrown. - Remove the consumed
.changeset/migrate-to-unthrown.mdfile.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/worker/package.json | Bumps @temporal-contract/worker version to 3.0.0 for the release. |
| packages/worker/CHANGELOG.md | Adds the 3.0.0 release notes (major migration + dependency bump note). |
| packages/testing/package.json | Bumps @temporal-contract/testing version to 3.0.0 for the release. |
| packages/testing/CHANGELOG.md | Adds the 3.0.0 release notes documenting the major migration. |
| packages/contract/package.json | Bumps @temporal-contract/contract version to 3.0.0 for the release. |
| packages/contract/CHANGELOG.md | Adds the 3.0.0 release notes documenting the major migration. |
| packages/client/package.json | Bumps @temporal-contract/client version to 3.0.0 for the release. |
| packages/client/CHANGELOG.md | Adds the 3.0.0 release notes (major migration + dependency bump note). |
| .changeset/migrate-to-unthrown.md | Removes the changeset after it has been incorporated into the release. |
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@temporal-contract/client@3.0.0
Major Changes
8d0750f: Replace
neverthrowwithunthrownfor the Result/error-handling spine across all packages. This is a breaking change to the public API.What changed
ResultAsync<T, E>→AsyncResult<T, E>. Every activity, workflow-context, child-workflow, schedule, and typed-client method that returned aResultAsyncnow returns anAsyncResult. Theunthrownpeer dependency replacesneverthrow.okAsync/errAsync. Lift a synchronousResultwith.toAsync()instead:ok(value).toAsync(),err(failure).toAsync(). Promise boundaries usefromPromise(promise, qualify)/fromSafePromise(promise).result.isOk()/isErr()/isDefect()methods and the matching free functionsisOk(result)/isErr(result)/isDefect(result)(imported fromunthrown) are type guards; the codebase uses the methods. Narrow before touching.value/.error/.cause.defectchannel. Unanticipated throws (a thrown exception the code did not model) now surface onunthrown's thirddefectchannel — inspected viaresult.isDefect()/result.causeand re-thrown at the edge — rather than as a typederr. Deliberate boundary classification (e.g. mapping a Temporal SDK rejection toWorkflowExecutionNotFoundError) still produces a modelederr.result.match({ ok, err, defect })folds all three.WorkflowScopeErrorremoved. Non-cancellation errors thrown insidecancellableScope/nonCancellableScopeare unmodeled failures and now ride thedefectchannel. The scopes' error union narrows toWorkflowCancelledError.RuntimeClientErrorwrap is gone. An unanticipated rejection in a client operation now surfaces as a defect, not a manufacturedRuntimeClientError.RuntimeClientErroris still produced by deliberate boundary classification.TaggedError. The workerWorkerErrorhierarchy and the entire clientTypedClientErrorhierarchy are now built withunthrown'sTaggedError, each carrying a_tagdiscriminant (foldable withmatchTags). The_tagis package-namespaced — e.g."@temporal-contract/WorkflowExecutionNotFoundError"— so it never collides with a consumer's own tags; each error's.namestays the bare class name for readable logs.ChildWorkflowCancelledErroris now a sibling ofChildWorkflowError(distinct_tag) rather than a subclass — discriminate on_tag/instanceof ChildWorkflowCancelledErrorinstead of relying oninstanceof ChildWorkflowErrormatching cancellation. The worker'sValidationErrorsubclasses are unchanged — they still extend Temporal'sApplicationFailurefor terminal-failure semantics.See the Migrating from neverthrow guide.
Patch Changes
@temporal-contract/contract@3.0.0
Major Changes
8d0750f: Replace
neverthrowwithunthrownfor the Result/error-handling spine across all packages. This is a breaking change to the public API.What changed
ResultAsync<T, E>→AsyncResult<T, E>. Every activity, workflow-context, child-workflow, schedule, and typed-client method that returned aResultAsyncnow returns anAsyncResult. Theunthrownpeer dependency replacesneverthrow.okAsync/errAsync. Lift a synchronousResultwith.toAsync()instead:ok(value).toAsync(),err(failure).toAsync(). Promise boundaries usefromPromise(promise, qualify)/fromSafePromise(promise).result.isOk()/isErr()/isDefect()methods and the matching free functionsisOk(result)/isErr(result)/isDefect(result)(imported fromunthrown) are type guards; the codebase uses the methods. Narrow before touching.value/.error/.cause.defectchannel. Unanticipated throws (a thrown exception the code did not model) now surface onunthrown's thirddefectchannel — inspected viaresult.isDefect()/result.causeand re-thrown at the edge — rather than as a typederr. Deliberate boundary classification (e.g. mapping a Temporal SDK rejection toWorkflowExecutionNotFoundError) still produces a modelederr.result.match({ ok, err, defect })folds all three.WorkflowScopeErrorremoved. Non-cancellation errors thrown insidecancellableScope/nonCancellableScopeare unmodeled failures and now ride thedefectchannel. The scopes' error union narrows toWorkflowCancelledError.RuntimeClientErrorwrap is gone. An unanticipated rejection in a client operation now surfaces as a defect, not a manufacturedRuntimeClientError.RuntimeClientErroris still produced by deliberate boundary classification.TaggedError. The workerWorkerErrorhierarchy and the entire clientTypedClientErrorhierarchy are now built withunthrown'sTaggedError, each carrying a_tagdiscriminant (foldable withmatchTags). The_tagis package-namespaced — e.g."@temporal-contract/WorkflowExecutionNotFoundError"— so it never collides with a consumer's own tags; each error's.namestays the bare class name for readable logs.ChildWorkflowCancelledErroris now a sibling ofChildWorkflowError(distinct_tag) rather than a subclass — discriminate on_tag/instanceof ChildWorkflowCancelledErrorinstead of relying oninstanceof ChildWorkflowErrormatching cancellation. The worker'sValidationErrorsubclasses are unchanged — they still extend Temporal'sApplicationFailurefor terminal-failure semantics.See the Migrating from neverthrow guide.
@temporal-contract/testing@3.0.0
Major Changes
8d0750f: Replace
neverthrowwithunthrownfor the Result/error-handling spine across all packages. This is a breaking change to the public API.What changed
ResultAsync<T, E>→AsyncResult<T, E>. Every activity, workflow-context, child-workflow, schedule, and typed-client method that returned aResultAsyncnow returns anAsyncResult. Theunthrownpeer dependency replacesneverthrow.okAsync/errAsync. Lift a synchronousResultwith.toAsync()instead:ok(value).toAsync(),err(failure).toAsync(). Promise boundaries usefromPromise(promise, qualify)/fromSafePromise(promise).result.isOk()/isErr()/isDefect()methods and the matching free functionsisOk(result)/isErr(result)/isDefect(result)(imported fromunthrown) are type guards; the codebase uses the methods. Narrow before touching.value/.error/.cause.defectchannel. Unanticipated throws (a thrown exception the code did not model) now surface onunthrown's thirddefectchannel — inspected viaresult.isDefect()/result.causeand re-thrown at the edge — rather than as a typederr. Deliberate boundary classification (e.g. mapping a Temporal SDK rejection toWorkflowExecutionNotFoundError) still produces a modelederr.result.match({ ok, err, defect })folds all three.WorkflowScopeErrorremoved. Non-cancellation errors thrown insidecancellableScope/nonCancellableScopeare unmodeled failures and now ride thedefectchannel. The scopes' error union narrows toWorkflowCancelledError.RuntimeClientErrorwrap is gone. An unanticipated rejection in a client operation now surfaces as a defect, not a manufacturedRuntimeClientError.RuntimeClientErroris still produced by deliberate boundary classification.TaggedError. The workerWorkerErrorhierarchy and the entire clientTypedClientErrorhierarchy are now built withunthrown'sTaggedError, each carrying a_tagdiscriminant (foldable withmatchTags). The_tagis package-namespaced — e.g."@temporal-contract/WorkflowExecutionNotFoundError"— so it never collides with a consumer's own tags; each error's.namestays the bare class name for readable logs.ChildWorkflowCancelledErroris now a sibling ofChildWorkflowError(distinct_tag) rather than a subclass — discriminate on_tag/instanceof ChildWorkflowCancelledErrorinstead of relying oninstanceof ChildWorkflowErrormatching cancellation. The worker'sValidationErrorsubclasses are unchanged — they still extend Temporal'sApplicationFailurefor terminal-failure semantics.See the Migrating from neverthrow guide.
@temporal-contract/worker@3.0.0
Major Changes
8d0750f: Replace
neverthrowwithunthrownfor the Result/error-handling spine across all packages. This is a breaking change to the public API.What changed
ResultAsync<T, E>→AsyncResult<T, E>. Every activity, workflow-context, child-workflow, schedule, and typed-client method that returned aResultAsyncnow returns anAsyncResult. Theunthrownpeer dependency replacesneverthrow.okAsync/errAsync. Lift a synchronousResultwith.toAsync()instead:ok(value).toAsync(),err(failure).toAsync(). Promise boundaries usefromPromise(promise, qualify)/fromSafePromise(promise).result.isOk()/isErr()/isDefect()methods and the matching free functionsisOk(result)/isErr(result)/isDefect(result)(imported fromunthrown) are type guards; the codebase uses the methods. Narrow before touching.value/.error/.cause.defectchannel. Unanticipated throws (a thrown exception the code did not model) now surface onunthrown's thirddefectchannel — inspected viaresult.isDefect()/result.causeand re-thrown at the edge — rather than as a typederr. Deliberate boundary classification (e.g. mapping a Temporal SDK rejection toWorkflowExecutionNotFoundError) still produces a modelederr.result.match({ ok, err, defect })folds all three.WorkflowScopeErrorremoved. Non-cancellation errors thrown insidecancellableScope/nonCancellableScopeare unmodeled failures and now ride thedefectchannel. The scopes' error union narrows toWorkflowCancelledError.RuntimeClientErrorwrap is gone. An unanticipated rejection in a client operation now surfaces as a defect, not a manufacturedRuntimeClientError.RuntimeClientErroris still produced by deliberate boundary classification.TaggedError. The workerWorkerErrorhierarchy and the entire clientTypedClientErrorhierarchy are now built withunthrown'sTaggedError, each carrying a_tagdiscriminant (foldable withmatchTags). The_tagis package-namespaced — e.g."@temporal-contract/WorkflowExecutionNotFoundError"— so it never collides with a consumer's own tags; each error's.namestays the bare class name for readable logs.ChildWorkflowCancelledErroris now a sibling ofChildWorkflowError(distinct_tag) rather than a subclass — discriminate on_tag/instanceof ChildWorkflowCancelledErrorinstead of relying oninstanceof ChildWorkflowErrormatching cancellation. The worker'sValidationErrorsubclasses are unchanged — they still extend Temporal'sApplicationFailurefor terminal-failure semantics.See the Migrating from neverthrow guide.
Patch Changes