@revealui/utils 0.3.0 → 0.3.2
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 +14 -0
- package/dist/index.js +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -97,6 +97,20 @@ pnpm test
|
|
|
97
97
|
pnpm dev
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
+
## When to Use This
|
|
101
|
+
|
|
102
|
+
- You need structured logging with context propagation and pluggable handlers
|
|
103
|
+
- You want SSL configuration or connection string parsing for PostgreSQL
|
|
104
|
+
- You're building a package that must avoid depending on `core` or `db` (breaks circular deps)
|
|
105
|
+
- **Not** for setup-time logging with progress bars — use `@revealui/setup/utils`
|
|
106
|
+
- **Not** for Zod validation schemas — use `@revealui/contracts`
|
|
107
|
+
|
|
108
|
+
## JOSHUA Alignment
|
|
109
|
+
|
|
110
|
+
- **Orthogonal**: Zero dependencies — sits at the bottom of the dependency graph so core, db, and contracts can all import without cycles
|
|
111
|
+
- **Unified**: One logger API with child loggers and pluggable handlers replaces ad-hoc `console.*` across the entire codebase
|
|
112
|
+
- **Justifiable**: Every export exists to break a real circular dependency — no speculative utilities
|
|
113
|
+
|
|
100
114
|
## Related
|
|
101
115
|
|
|
102
116
|
- [Core Package](../core/README.md) — Uses utils for logging and error handling
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,6 @@ import {
|
|
|
2
2
|
getSSLConfig,
|
|
3
3
|
validateSSLConfig
|
|
4
4
|
} from "./chunk-U7HNVJST.js";
|
|
5
|
-
import {
|
|
6
|
-
passwordSchema
|
|
7
|
-
} from "./chunk-XSQPIKCD.js";
|
|
8
5
|
import {
|
|
9
6
|
Logger,
|
|
10
7
|
createLogger,
|
|
@@ -13,6 +10,9 @@ import {
|
|
|
13
10
|
logQuery,
|
|
14
11
|
logger
|
|
15
12
|
} from "./chunk-X2ZL53G2.js";
|
|
13
|
+
import {
|
|
14
|
+
passwordSchema
|
|
15
|
+
} from "./chunk-XSQPIKCD.js";
|
|
16
16
|
export {
|
|
17
17
|
Logger,
|
|
18
18
|
createLogger,
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revealui/utils",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Shared utilities for RevealUI - logger, SSL config, and common helpers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"zod": "^4.3.6"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^25.
|
|
10
|
+
"@types/node": "^25.5.0",
|
|
11
11
|
"tsup": "^8.5.1",
|
|
12
|
-
"typescript": "^
|
|
13
|
-
"vitest": "^4.0
|
|
12
|
+
"typescript": "^6.0.2",
|
|
13
|
+
"vitest": "^4.1.0",
|
|
14
14
|
"dev": "0.0.1"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|