effect-errors 1.3.9 → 1.3.11
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/README.md +9 -5
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
Some sort of POC to improve the way [Effect](https://effect.website/) reports errors in a dev env 🤔
|
|
20
20
|
|
|
21
|
-
<!--
|
|
21
|
+
<!-- readme-package-icons start -->
|
|
22
22
|
|
|
23
|
-
<p align="left"><a href="https://docs.github.com/en/actions" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/GithubActions-Dark.svg" /></a> <a href="https://www.typescriptlang.org/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/TypeScript.svg" /></a> <a href="https://nodejs.org/en/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/NodeJS-Dark.svg" /></a> <a href="https://bun.sh/docs" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Bun-Dark.svg" /></a> <a href="https://
|
|
23
|
+
<p align="left"><a href="https://docs.github.com/en/actions" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/GithubActions-Dark.svg" /></a> <a href="https://www.typescriptlang.org/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/TypeScript.svg" /></a> <a href="https://nodejs.org/en/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/NodeJS-Dark.svg" /></a> <a href="https://bun.sh/docs" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Bun-Dark.svg" /></a> <a href="https://eslint.org/docs/latest/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Eslint-Dark.svg" /></a> <a href="https://prettier.io/docs/en/index.html" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Prettier-Dark.svg" /></a> <a href="https://vitest.dev/guide/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Vitest-Dark.svg" /></a> <a href="https://www.effect.website/docs/quickstart" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Effect-Dark.svg" /></a></p>
|
|
24
24
|
|
|
25
|
-
<!--
|
|
25
|
+
<!-- readme-package-icons end -->
|
|
26
26
|
|
|
27
27
|

|
|
28
28
|
|
|
@@ -190,12 +190,16 @@ await Effect.runPromise(
|
|
|
190
190
|
);
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-

|
|
194
|
-
|
|
195
193
|
## ⚡ examples
|
|
196
194
|
|
|
195
|
+
### 🔶 error logging - `runPromise` / `runSync`
|
|
196
|
+
|
|
197
197
|
I wrote some examples for fun and giggles. You can run them using:
|
|
198
198
|
|
|
199
199
|
```bash
|
|
200
200
|
bun run-examples
|
|
201
201
|
```
|
|
202
|
+
|
|
203
|
+
### 🔶 Custom display for errors - `captureErrors`
|
|
204
|
+
|
|
205
|
+
You can check this [example using remix error boundaries](https://github.com/jpb06/remix-effect-errors).
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"repository": "https://github.com/jpb06/effect-errors.git",
|
|
3
3
|
"main": "index.js",
|
|
4
4
|
"name": "effect-errors",
|
|
5
|
-
"version": "1.3.
|
|
5
|
+
"version": "1.3.11",
|
|
6
6
|
"author": "jpb06 <jp.bois.06@outlook.fr>",
|
|
7
7
|
"description": "A POC for errors reporting in Effect",
|
|
8
8
|
"keywords": [],
|
|
@@ -27,30 +27,30 @@
|
|
|
27
27
|
"run-examples": "bun run ./src/examples/util/run-all"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@effect/schema": "^0.66.
|
|
30
|
+
"@effect/schema": "^0.66.14",
|
|
31
31
|
"chalk": "<5",
|
|
32
|
-
"effect": "^3.1.
|
|
32
|
+
"effect": "^3.1.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/eslintrc": "^3.0.2",
|
|
36
|
-
"@eslint/js": "^9.
|
|
37
|
-
"@stylistic/eslint-plugin": "^1.8.
|
|
38
|
-
"@stylistic/eslint-plugin-ts": "^1.8.
|
|
36
|
+
"@eslint/js": "^9.2.0",
|
|
37
|
+
"@stylistic/eslint-plugin": "^1.8.1",
|
|
38
|
+
"@stylistic/eslint-plugin-ts": "^1.8.1",
|
|
39
39
|
"@types/eslint": "^8.56.10",
|
|
40
40
|
"@types/fs-extra": "^11.0.4",
|
|
41
|
-
"@types/node": "^20.12.
|
|
41
|
+
"@types/node": "^20.12.10",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
43
43
|
"@typescript-eslint/parser": "^7.8.0",
|
|
44
|
-
"@vitest/coverage-v8": "^1.
|
|
44
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
45
45
|
"copyfiles": "^2.4.1",
|
|
46
46
|
"del-cli": "^5.1.0",
|
|
47
|
-
"eslint": "^9.
|
|
47
|
+
"eslint": "^9.2.0",
|
|
48
48
|
"eslint-config-prettier": "^9.1.0",
|
|
49
49
|
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
50
50
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
51
51
|
"eslint-plugin-import": "^2.29.1",
|
|
52
|
-
"eslint-plugin-markdown": "^
|
|
53
|
-
"eslint-plugin-n": "^17.
|
|
52
|
+
"eslint-plugin-markdown": "^5.0.0",
|
|
53
|
+
"eslint-plugin-n": "^17.5.1",
|
|
54
54
|
"eslint-plugin-prettier": "^5.1.3",
|
|
55
55
|
"eslint-plugin-promise": "^6.1.1",
|
|
56
56
|
"eslint-plugin-vitest": "^0.5.4",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"readme-package-icons": "^1.1.14",
|
|
61
61
|
"typescript": "*",
|
|
62
62
|
"typescript-eslint": "^7.8.0",
|
|
63
|
-
"vitest": "^1.
|
|
63
|
+
"vitest": "^1.6.0",
|
|
64
64
|
"vitest-mock-extended": "^1.3.1"
|
|
65
65
|
}
|
|
66
66
|
}
|