@shivaedev/server 0.46.3 → 0.46.4
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.46.4 - 2026-11-21
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- `appHost` masks the names of fields that an exported Schema class marks sensitive in every RPC whose success carries the class, its module's `$changes` included, in the RPC's logs, logged defects, failure frames sent to the client and exported traces, as it masks a repository model's names. See the `@shivaedev/errors` entry for the rejection fields this masks and how to migrate.
|
|
8
|
+
|
|
3
9
|
## 0.46.3 - 2026-11-21
|
|
4
10
|
|
|
5
11
|
### Changed
|
package/README.md
CHANGED
|
@@ -417,7 +417,7 @@ Render inside the application's native registry provider. The query's `data` is
|
|
|
417
417
|
|
|
418
418
|
Tracing logs declared failures with `RPC failure` and their tag, and defects with `RPC defect`. Interrupt-only causes emit `RPC interrupted` at debug instead, with `rpc.method`, `requestId`, the `rpc.duration` log span and the same redacted payload. The RPC trace span carries `rpc.interrupted: true`; Effect exports interruption with an unset span status. Completed and failed RPCs receive no interruption marker. The diagnostic payload masks nested credential-shaped keys and Effect `Redacted` values. Credential-shaped strings, such as bearer tokens, URL passwords and sensitive `key=value` text, are masked too. Strings retain at most 2,048 characters before a truncation marker; collections retain at most 50 entries with a marker for the remainder, and binary values become size summaries.
|
|
419
419
|
|
|
420
|
-
`appHost` derives sensitive field names from the served RPC group's payload, success, error, defect and middleware error schemas, including nested schemas. Use `Schema.Redacted(...)`, `Schema.RedactedFromValue(...)`, or annotate a field with `sensitive: true`. The host applies each RPC's schema-derived names to that RPC's diagnostics and failures, even when a diagnostic contains an unwrapped value. A defined module's success comes from its generated wire, which
|
|
420
|
+
`appHost` derives sensitive field names from the served RPC group's payload, success, error, defect and middleware error schemas, including nested schemas and the elements a streaming RPC such as `$changes` delivers. Use `Schema.Redacted(...)`, `Schema.RedactedFromValue(...)`, or annotate a field with `sensitive: true`. The host applies each RPC's schema-derived names to that RPC's diagnostics and failures, even when a diagnostic contains an unwrapped value. A defined module's success comes from its generated wire, which restates a plain object's fields without annotations but imports an exported Schema class that `run` returns, so the class's marks count for every RPC whose success carries it, its module's `$changes` included, and a restated field never counts as public. Decode a raw read, such as a `readSql` aggregate or join, with an exported Schema class and mark its fields there. A name the class marks is also masked in that RPC's failures sent to the browser, so a declared rejection that must show the value uses a different field name. A module's `$changes` carries every query's success, so through a live subscription every query's rejections lose that field, while a direct call of a query whose own success does not carry the class answers it whole. Every repository built while the host starts, through `makeRepository` or `makeOrderedChildren`, declares its model to that host, including one that a deferred `application` Effect builds itself with `Layer.build`, and the names of the model's sensitive fields apply to every RPC and every diagnostic like `config.sensitiveKeys`, before the host serves its first request. A repository made inside a handler declares its model only when it runs, after the RPC failure masks are compiled; build repositories in Layers. The host also collects each model whose field is marked with `owner` from `@shivaedev/sql/owner.ts`, through sql's `collectRepositoryModels`, from the same repositories, and an operation it serves reads them with their tables and owner columns through `(yield* RepositoryModels).owned`. Keep `config.sensitiveKeys` for values that only jobs handle or third parties produce, which neither a repository model nor a returned class describes. Application-wide keys configured below apply to every RPC. Add other exact, case-sensitive names once in `config.sensitiveKeys`:
|
|
421
421
|
|
|
422
422
|
```ts
|
|
423
423
|
import { Schema } from "effect";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/server",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.4",
|
|
4
4
|
"description": "The Effect application host: HTTP and RPC serving, health, OTLP export, database and migrations, and development mode",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"effect"
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@shivaedev/changes": "0.14.1",
|
|
50
|
-
"@shivaedev/contract": "0.59.
|
|
51
|
-
"@shivaedev/errors": "0.
|
|
52
|
-
"@shivaedev/http": "0.9.
|
|
53
|
-
"@shivaedev/identity": "0.44.
|
|
50
|
+
"@shivaedev/contract": "0.59.1",
|
|
51
|
+
"@shivaedev/errors": "0.15.0",
|
|
52
|
+
"@shivaedev/http": "0.9.3",
|
|
53
|
+
"@shivaedev/identity": "0.44.2",
|
|
54
54
|
"@shivaedev/local-postgres": "0.17.0",
|
|
55
55
|
"@shivaedev/sql": "0.55.0"
|
|
56
56
|
},
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"@effect/platform-node": "4.1.4",
|
|
59
59
|
"@effect/sql-pg": "4.1.4",
|
|
60
60
|
"@effect/vitest": "4.1.4",
|
|
61
|
-
"@shivaedev/access": "0.7.
|
|
62
|
-
"@shivaedev/admin": "0.29.
|
|
63
|
-
"@shivaedev/jobs": "0.45.
|
|
64
|
-
"@shivaedev/quality": "0.84.
|
|
65
|
-
"@shivaedev/rate-limit": "0.8.
|
|
61
|
+
"@shivaedev/access": "0.7.1",
|
|
62
|
+
"@shivaedev/admin": "0.29.10",
|
|
63
|
+
"@shivaedev/jobs": "0.45.1",
|
|
64
|
+
"@shivaedev/quality": "0.84.4",
|
|
65
|
+
"@shivaedev/rate-limit": "0.8.2",
|
|
66
66
|
"@shivaedev/service": "0.9.2",
|
|
67
|
-
"@shivaedev/test-kits": "0.16.
|
|
67
|
+
"@shivaedev/test-kits": "0.16.14",
|
|
68
68
|
"@shivaedev/test-sql": "0.26.1",
|
|
69
|
-
"@shivaedev/test-story": "0.52.
|
|
69
|
+
"@shivaedev/test-story": "0.52.7",
|
|
70
70
|
"@types/node": "24.19.2",
|
|
71
71
|
"better-auth": "1.7.23",
|
|
72
72
|
"effect": "4.1.4",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@effect/platform-node": "4.1.4",
|
|
79
79
|
"@effect/sql-pg": "4.1.4",
|
|
80
80
|
"@effect/vitest": "4.1.4",
|
|
81
|
-
"@shivaedev/admin": "0.29.
|
|
81
|
+
"@shivaedev/admin": "0.29.10",
|
|
82
82
|
"better-auth": "1.7.23",
|
|
83
83
|
"effect": "4.1.4"
|
|
84
84
|
},
|