-
Notifications
You must be signed in to change notification settings - Fork 1
chore: release packages #272
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
Merged
+120
−105
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # @unthrown/boxed | ||
|
|
||
| ## 5.8.0 | ||
|
|
||
| ## 5.7.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # unthrown | ||
|
|
||
| ## 5.8.0 | ||
|
|
||
| ## 5.7.0 | ||
|
|
||
| ## 5.6.0 | ||
|
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # @unthrown/effect | ||
|
|
||
| ## 5.8.0 | ||
|
|
||
| ## 5.7.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # @unthrown/neverthrow | ||
|
|
||
| ## 5.8.0 | ||
|
|
||
| ## 5.7.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # @unthrown/saga | ||
|
|
||
| ## 5.8.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - e06b3b2: `@unthrown/saga`: a sequence whose steps carry compensating undos, unwound LIFO | ||
| the moment one fails. | ||
|
|
||
| `DoAsync` sequences steps where a later one needs an earlier one's **value**. | ||
| There was nothing for the sequence where a later step's **failure** has to undo | ||
| the earlier ones — so every saga was hand-written, with two traps in the | ||
| spelling: | ||
|
|
||
| - **Ordering.** The undos must run in reverse of the steps that earned them. | ||
| Nothing checked it, and getting it backwards is silent. | ||
| - **Eagerness.** An `AsyncResult` starts on construction, so an undo built | ||
| outside the failure branch runs whether or not it was needed — the hazard | ||
| `unthrown/no-async-result-race` exists for. | ||
|
|
||
| ```ts | ||
| const fulfilled = await SagaAsync() | ||
| .step( | ||
| () => place(order), | ||
| () => cancelPlacement(order), | ||
| ) | ||
| .step( | ||
| () => reserveStock(order), | ||
| () => releaseStock(order), | ||
| ) | ||
| .step(() => arrangeShipping(order)) | ||
| .run(); | ||
| // shipping failed → stock released, then placement cancelled, then the Err | ||
| ``` | ||
|
|
||
| Every argument is a **thunk**, so nothing is built before the saga reaches it. | ||
| `run()` answers the last step's value, and a failure — `Err` or `Defect` — comes | ||
| back **unchanged**, so a caller triages exactly what it would have without the | ||
| saga. `run` takes no argument; an `undo` receives its own step's value, and | ||
| either may answer a plain `Result` in place of an `AsyncResult`. An `undo` | ||
| answers `unknown` in the Ok channel and `never` in the Err one: compensation | ||
| may not invent a new way to fail, because the caller is already handling the | ||
| one that triggered it. The single | ||
| exception is a **defect inside an undo** — it wins over the failure that | ||
| triggered it, since a compensation that broke is the more urgent report, and | ||
| every remaining undo still runs first. | ||
|
|
||
| It is pure control flow — no timers, no clock, no randomness — so it replays | ||
| deterministically inside a workflow sandbox, which is where its first consumer | ||
| runs. | ||
|
|
||
| It ships as a satellite package rather than a core export because it is a | ||
| **pattern** built on the public surface — it operates no channel `unthrown` | ||
| does not already expose — and core is a finishable library. Installing it is | ||
| the opt-in; the compiler holds the boundary, since it imports nothing private. | ||
|
|
||
| Closes #268. | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # @unthrown/standard-schema | ||
|
|
||
| ## 5.8.0 | ||
|
|
||
| ## 5.7.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # @unthrown/vitest | ||
|
|
||
| ## 5.8.0 | ||
|
|
||
| ## 5.7.0 | ||
|
|
||
| ## 5.6.0 | ||
|
|
||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.