ddd-ts-kit 0.83.2 → 0.83.3
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
CHANGED
|
@@ -4,6 +4,12 @@ What each version changes for someone who uses the kit. The packages of `package
|
|
|
4
4
|
together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
|
|
5
5
|
list the pull requests behind it.
|
|
6
6
|
|
|
7
|
+
## 0.83.3
|
|
8
|
+
|
|
9
|
+
**A guard that decides on the caller alone refuses it before the request is read: an anonymous caller of an `Authenticated` route gets 401, never the validation issues of its input, and its upload is never received.** The guards of a controller route ran inside `handle`, after the pipeline had received the upload, read the body and validated the request. A caller with no credential (`resolvePrincipal` answering the anonymous actor, as `principalResolver` does without an `Authorization` header) that sent a malformed input to a guarded route got `422 VALIDATION_FAILED` with the issues, which describe the input the route expects, instead of `401`, and its multipart upload was received and parsed before it was refused. `Guard` gains `admit?(admission: GuardAdmission)`, the part of its decision that reads the route, the raw headers, the actor and the session, and `Route` gains `admit?(admission: RouteAdmission)`, which `executeRoute` calls right after `resolvePrincipal`, before the upload, the body, the negotiation and the validation. `controllerRoutes` gives a route the admissions of its guards, in their order; their checks still run in order after validation, so a guard that reads the path reads validated parameters. `Authenticated`, `HasRole` and `HasScope` decide there (401 to the anonymous caller, 403 without the role or the scope), and `TenantMember` refuses the anonymous caller there, the tenant of the request being checked after validation as before. A refusal at the admission is reported to `onGuardRefusal`, and audited by `auditGuardRefusals`, as a refusal of a guard; `guards: 'skip'` leaves it out with the checks. A caller with a valid credential and a malformed input still gets 422. The JSON parser of a framework (`express.json()`, the body parser of Fastify or NestJS) still runs before the pipeline.
|
|
10
|
+
|
|
11
|
+
To move: nothing for the guards of the kit. A guard of the project that decides on the caller alone (a role, a claim, a header) declares `admit` with that decision to refuse before the request is read; one that reads the path keeps deciding in `check`.
|
|
12
|
+
|
|
7
13
|
## 0.83.2
|
|
8
14
|
|
|
9
15
|
**A project written with `init --preset identity` passes its whole `verify` right after the install, with no step of its own.** Two of its steps failed on a project just initialised. `test:coverage`: the branches of `identity/presentation` stood at 66.66% under their floor of 70%, as the controller of `PUT /accounts/me` was never called by a token without an address, nor without a display name in the body; its spec now covers that case. `docs:check`: `openapi/openapi.yaml`, `docs/integration/asyncapi.yaml` and `docs/integration/event-catalog.md` held none of the routes and events of the preset, as the contracts are written from the running application, which `init` cannot build. `init --preset` now marks them with `x-ddd-ts-kit-pending`, and the first check of `scripts/openapi.ts` and `scripts/events.ts` (in `verify` or `docs:check`) writes them, saying `<file> is written for the first time, ...: commit it.`; where `CI` is set, a contract still marked fails instead (`<file> was never generated: run the script docs:generate and commit it.`), so that a pipeline never passes on a contract nobody wrote. The `bootstrap` skill runs `docs:generate` after `generate context --preset` in a project that exists, whose contracts are already written.
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/** Ranges written to the generated package.json; bumped together with the kit. */
|
|
2
2
|
export const VERSIONS = {
|
|
3
|
-
'@ddd-ts-kit/kernel': '^0.83.
|
|
4
|
-
'@ddd-ts-kit/validation': '^0.83.
|
|
5
|
-
'@ddd-ts-kit/http': '^0.83.
|
|
6
|
-
'@ddd-ts-kit/tracing': '^0.83.
|
|
7
|
-
'@ddd-ts-kit/di': '^0.83.
|
|
8
|
-
'@ddd-ts-kit/events': '^0.83.
|
|
9
|
-
'@ddd-ts-kit/testing': '^0.83.
|
|
10
|
-
'@ddd-ts-kit/drizzle': '^0.83.
|
|
11
|
-
'@ddd-ts-kit/knex': '^0.83.
|
|
12
|
-
'@ddd-ts-kit/prisma': '^0.83.
|
|
13
|
-
'@ddd-ts-kit/typeorm': '^0.83.
|
|
14
|
-
'@ddd-ts-kit/auth': '^0.83.
|
|
15
|
-
'@ddd-ts-kit/rabbitmq': '^0.83.
|
|
16
|
-
'@ddd-ts-kit/aspects': '^0.83.
|
|
17
|
-
'@ddd-ts-kit/audit': '^0.83.
|
|
18
|
-
'@ddd-ts-kit/redis': '^0.83.
|
|
19
|
-
'@ddd-ts-kit/kafka': '^0.83.
|
|
20
|
-
'@ddd-ts-kit/nats': '^0.83.
|
|
21
|
-
'@ddd-ts-kit/scheduling': '^0.83.
|
|
22
|
-
'@ddd-ts-kit/sentry': '^0.83.
|
|
23
|
-
'@ddd-ts-kit/s3': '^0.83.
|
|
3
|
+
'@ddd-ts-kit/kernel': '^0.83.3',
|
|
4
|
+
'@ddd-ts-kit/validation': '^0.83.3',
|
|
5
|
+
'@ddd-ts-kit/http': '^0.83.3',
|
|
6
|
+
'@ddd-ts-kit/tracing': '^0.83.3',
|
|
7
|
+
'@ddd-ts-kit/di': '^0.83.3',
|
|
8
|
+
'@ddd-ts-kit/events': '^0.83.3',
|
|
9
|
+
'@ddd-ts-kit/testing': '^0.83.3',
|
|
10
|
+
'@ddd-ts-kit/drizzle': '^0.83.3',
|
|
11
|
+
'@ddd-ts-kit/knex': '^0.83.3',
|
|
12
|
+
'@ddd-ts-kit/prisma': '^0.83.3',
|
|
13
|
+
'@ddd-ts-kit/typeorm': '^0.83.3',
|
|
14
|
+
'@ddd-ts-kit/auth': '^0.83.3',
|
|
15
|
+
'@ddd-ts-kit/rabbitmq': '^0.83.3',
|
|
16
|
+
'@ddd-ts-kit/aspects': '^0.83.3',
|
|
17
|
+
'@ddd-ts-kit/audit': '^0.83.3',
|
|
18
|
+
'@ddd-ts-kit/redis': '^0.83.3',
|
|
19
|
+
'@ddd-ts-kit/kafka': '^0.83.3',
|
|
20
|
+
'@ddd-ts-kit/nats': '^0.83.3',
|
|
21
|
+
'@ddd-ts-kit/scheduling': '^0.83.3',
|
|
22
|
+
'@ddd-ts-kit/sentry': '^0.83.3',
|
|
23
|
+
'@ddd-ts-kit/s3': '^0.83.3',
|
|
24
24
|
'@aws-sdk/client-s3': '^3.1150.0',
|
|
25
25
|
'@aws-sdk/lib-storage': '^3.1150.0',
|
|
26
26
|
'@aws-sdk/s3-request-presigner': '^3.1150.0',
|
|
27
27
|
busboy: '^1.6.0',
|
|
28
28
|
'@sentry/node': '^11.6.0',
|
|
29
|
-
'@ddd-ts-kit/pino': '^0.83.
|
|
29
|
+
'@ddd-ts-kit/pino': '^0.83.3',
|
|
30
30
|
pino: '^10.4.0',
|
|
31
31
|
'pino-pretty': '^13.2.0',
|
|
32
|
-
'@ddd-ts-kit/winston': '^0.83.
|
|
32
|
+
'@ddd-ts-kit/winston': '^0.83.3',
|
|
33
33
|
winston: '^3.19.0',
|
|
34
34
|
'@confluentinc/kafka-javascript': '^1.11.0',
|
|
35
35
|
'@nats-io/jetstream': '^3.4.0',
|
|
@@ -37,7 +37,7 @@ export const VERSIONS = {
|
|
|
37
37
|
ioredis: '^6.0.0',
|
|
38
38
|
jose: '^6.0.0',
|
|
39
39
|
amqplib: '^2.2.0',
|
|
40
|
-
'ddd-ts-kit': '^0.83.
|
|
40
|
+
'ddd-ts-kit': '^0.83.3',
|
|
41
41
|
tsx: '^4.23.15',
|
|
42
42
|
vitest: '^5.0.3',
|
|
43
43
|
zod: '^4.6.5',
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.83.
|
|
1
|
+
export declare const VERSION = "0.83.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.83.
|
|
1
|
+
export const VERSION = '0.83.3';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ddd-ts-kit",
|
|
3
|
-
"version": "0.83.
|
|
3
|
+
"version": "0.83.3",
|
|
4
4
|
"description": "Bootstrap, scaffold and verify Domain-Driven Design (DDD), Clean Architecture and hexagonal TypeScript backends on Node.js: project and code generators, architecture checks, OpenAPI and AsyncAPI documents, for developers and AI coding agents (Claude Code, Codex, GitHub Copilot).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"clean:packages": "node dist/bin.js check --clean-only ../kernel/src ../validation/src ../http/src ../tracing/src ../di/src ../events/src ../testing/src ../s3/src ../drizzle/src ../knex/src ../prisma/src ../typeorm/src ../aspects/src ../rabbitmq/src ../auth/src ../audit/src ../redis/src ../scheduling/src ../pino/src ../winston/src ../sentry/src ../kafka/src ../nats/src ../eslint-plugin/src"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@ddd-ts-kit/kernel": "^0.83.
|
|
55
|
+
"@ddd-ts-kit/kernel": "^0.83.3"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@biomejs/biome": "2.5.15",
|
|
24
24
|
"@commitlint/cli": "^21.2.3",
|
|
25
25
|
"@commitlint/config-conventional": "^21.2.3",
|
|
26
|
-
"@ddd-ts-kit/eslint-plugin": "^0.83.
|
|
26
|
+
"@ddd-ts-kit/eslint-plugin": "^0.83.3",
|
|
27
27
|
"@eslint/js": "^10.0.1",
|
|
28
28
|
"@typescript/native": "npm:typescript@~7.0.2",
|
|
29
29
|
"@vitest/coverage-v8": "5.0.3",
|