@unthrown/effect 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/index.md +7 -7
- package/package.json +2 -2
package/docs/index.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
function fromEffect<T, E>(effect): AsyncResult<T, E>;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Defined in: [index.ts:165](https://github.com/btravstack/unthrown/blob/
|
|
15
|
+
Defined in: [index.ts:165](https://github.com/btravstack/unthrown/blob/1e34025e0177665dde9c50faca313fd1b95e5545/packages/effect/src/index.ts#L165)
|
|
16
16
|
|
|
17
17
|
Run an `Effect` and collect its outcome as an `AsyncResult`.
|
|
18
18
|
|
|
@@ -48,7 +48,7 @@ modeled failure → `Err`, a die/interruption → `Defect`. The returned
|
|
|
48
48
|
function fromEither<T, E>(either): Result<T, E>;
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Defined in: [index.ts:120](https://github.com/btravstack/unthrown/blob/
|
|
51
|
+
Defined in: [index.ts:120](https://github.com/btravstack/unthrown/blob/1e34025e0177665dde9c50faca313fd1b95e5545/packages/effect/src/index.ts#L120)
|
|
52
52
|
|
|
53
53
|
Convert an Effect `Either` into a `Result`.
|
|
54
54
|
|
|
@@ -82,7 +82,7 @@ never a `Defect`.
|
|
|
82
82
|
function fromExit<T, E>(exit): Result<T, E>;
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Defined in: [index.ts:70](https://github.com/btravstack/unthrown/blob/
|
|
85
|
+
Defined in: [index.ts:70](https://github.com/btravstack/unthrown/blob/1e34025e0177665dde9c50faca313fd1b95e5545/packages/effect/src/index.ts#L70)
|
|
86
86
|
|
|
87
87
|
Convert an Effect `Exit` into a `Result` — the inverse of
|
|
88
88
|
[toExit](#toexit).
|
|
@@ -126,7 +126,7 @@ more severe signal.
|
|
|
126
126
|
function toEffect<T, E>(source): Effect<T, E>;
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
Defined in: [index.ts:140](https://github.com/btravstack/unthrown/blob/
|
|
129
|
+
Defined in: [index.ts:140](https://github.com/btravstack/unthrown/blob/1e34025e0177665dde9c50faca313fd1b95e5545/packages/effect/src/index.ts#L140)
|
|
130
130
|
|
|
131
131
|
Lift a `Result` or `AsyncResult` into an `Effect`.
|
|
132
132
|
|
|
@@ -160,7 +160,7 @@ Effect` direction too.
|
|
|
160
160
|
function toEffect<T, E>(source): Effect<T, E>;
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
Defined in: [index.ts:141](https://github.com/btravstack/unthrown/blob/
|
|
163
|
+
Defined in: [index.ts:141](https://github.com/btravstack/unthrown/blob/1e34025e0177665dde9c50faca313fd1b95e5545/packages/effect/src/index.ts#L141)
|
|
164
164
|
|
|
165
165
|
Lift a `Result` or `AsyncResult` into an `Effect`.
|
|
166
166
|
|
|
@@ -196,7 +196,7 @@ Effect` direction too.
|
|
|
196
196
|
function toEither<T, E>(result, onDefect): Either<T, E>;
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
-
Defined in: [index.ts:98](https://github.com/btravstack/unthrown/blob/
|
|
199
|
+
Defined in: [index.ts:98](https://github.com/btravstack/unthrown/blob/1e34025e0177665dde9c50faca313fd1b95e5545/packages/effect/src/index.ts#L98)
|
|
200
200
|
|
|
201
201
|
Convert a `Result` into an Effect `Either`, triaging any defect.
|
|
202
202
|
|
|
@@ -233,7 +233,7 @@ is the boundary-qualification rule (Thesis #3) applied on the way out:
|
|
|
233
233
|
function toExit<T, E>(result): Exit<T, E>;
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
Defined in: [index.ts:43](https://github.com/btravstack/unthrown/blob/
|
|
236
|
+
Defined in: [index.ts:43](https://github.com/btravstack/unthrown/blob/1e34025e0177665dde9c50faca313fd1b95e5545/packages/effect/src/index.ts#L43)
|
|
237
237
|
|
|
238
238
|
Convert a `Result` into an Effect `Exit` — a **bijection**, since both
|
|
239
239
|
carry three channels.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unthrown/effect",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Effect interop for unthrown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"effect",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"./package.json": "./package.json"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"unthrown": "0.
|
|
47
|
+
"unthrown": "0.3.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "24.13.2",
|