raiton 6.5.0-beta.13 → 6.7.0-beta.15
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 +31 -0
- package/README.md +16 -9
- package/build/bin/index.mjs +10288 -6059
- package/deno.json +4 -1
- package/docs/contributors/framework/README.md +2 -0
- package/docs/contributors/framework/cache/README.md +55 -0
- package/docs/contributors/framework/cache/cache.md +86 -0
- package/docs/contributors/framework/cache/etag.md +82 -0
- package/docs/contributors/framework/decorators/README.md +1 -0
- package/docs/contributors/framework/plugins/csrf.md +277 -0
- package/docs/contributors/framework/plugins/security.md +40 -6
- package/docs/contributors/framework/runtime.md +13 -3
- package/docs/user-guide/README.md +8 -4
- package/docs/user-guide/best-practices.md +1 -0
- package/docs/user-guide/cache.md +79 -0
- package/docs/user-guide/cli.md +35 -3
- package/docs/user-guide/csrf.md +557 -0
- package/docs/user-guide/decorators/README.md +3 -0
- package/docs/user-guide/decorators/cache.md +79 -0
- package/docs/user-guide/decorators/health-check.md +125 -0
- package/docs/user-guide/health-check.md +117 -0
- package/docs/user-guide/runtime.md +2 -1
- package/docs/user-guide/security.md +8 -2
- package/package.json +8 -3
- package/source/bin/bootstrapper.ts +4 -4
- package/source/bin/cli-tools.ts +27 -3
- package/source/bin/cli.ts +2 -2
- package/source/bin/commands.registry.ts +17 -0
- package/source/bin/constants.ts +1 -0
- package/source/bin/index.ts +2 -2
- package/source/commands/artifact.command.ts +2 -2
- package/source/commands/build.command.ts +2 -2
- package/source/commands/develop.command.ts +4 -5
- package/source/commands/grafts.command.ts +1 -1
- package/source/commands/start.command.ts +2 -2
- package/source/core/application.ts +10 -10
- package/source/core/artifacts/artifact.ts +1 -1
- package/source/core/artifacts/index.ts +1 -1
- package/source/core/builder.ts +69 -15
- package/source/core/bytes.util.ts +1 -1
- package/source/core/commands.ts +24 -14
- package/source/core/config/config.ts +2 -2
- package/source/core/config/define.ts +2 -2
- package/source/core/config/index.ts +2 -2
- package/source/core/context.ts +1 -1
- package/source/core/controller/builder.ts +31 -8
- package/source/core/controller/compiler.ts +6 -6
- package/source/core/controller/index.ts +4 -4
- package/source/core/controller/metadata.ts +2 -2
- package/source/core/controller/tracker.ts +1 -1
- package/source/core/directories.ts +3 -2
- package/source/core/guards.ts +1 -1
- package/source/core/helpers/index.ts +1 -1
- package/source/core/hooks.ts +1 -1
- package/source/core/index.ts +16 -16
- package/source/core/injection/index.ts +1 -1
- package/source/core/injection/injection.ts +3 -3
- package/source/core/mcp/builder.ts +8 -8
- package/source/core/mcp/index.ts +3 -3
- package/source/core/mcp/metadata.ts +2 -2
- package/source/core/mcp/tracker.ts +1 -1
- package/source/core/middleware/compose.ts +2 -2
- package/source/core/middleware/index.ts +2 -2
- package/source/core/middleware/pipeline.ts +2 -2
- package/source/core/plugins/index.ts +2 -2
- package/source/core/plugins/plugin.ts +1 -1
- package/source/core/plugins/scope.ts +4 -4
- package/source/core/raiton.ts +1 -1
- package/source/core/router/handler.ts +30 -6
- package/source/core/router/handler.utils.ts +3 -3
- package/source/core/router/index.ts +4 -4
- package/source/core/router/matcher.ts +1 -1
- package/source/core/router/route.ts +1 -1
- package/source/core/router/router.ts +4 -4
- package/source/core/server.ts +1 -1
- package/source/core/socket/builder.ts +2 -2
- package/source/core/socket/index.ts +2 -2
- package/source/core/socket/metadata.ts +2 -2
- package/source/core/thread.ts +53 -20
- package/source/framework/artifacts.ts +8 -5
- package/source/framework/cache/cache.decorator.ts +35 -0
- package/source/framework/cache/cache.ts +197 -0
- package/source/framework/cache/etag.ts +174 -0
- package/source/framework/cache/index.ts +4 -0
- package/source/framework/cache/types.ts +111 -0
- package/source/framework/constants/decorators.constant.ts +4 -0
- package/source/framework/constants/index.ts +2 -2
- package/source/framework/decorators/access-guard.decorator.ts +2 -2
- package/source/framework/decorators/api-response.decorator.ts +1 -1
- package/source/framework/decorators/api.decorator.ts +1 -1
- package/source/framework/decorators/controllable.decorator.ts +3 -3
- package/source/framework/decorators/csrf-guard.decorator.ts +60 -0
- package/source/framework/decorators/csrf-token.decorator.ts +20 -0
- package/source/framework/decorators/guard.decorator.ts +4 -4
- package/source/framework/decorators/health-check.decorator.ts +50 -0
- package/source/framework/decorators/index.ts +14 -11
- package/source/framework/decorators/injection.decorator.ts +3 -3
- package/source/framework/decorators/mcp.decorator.ts +4 -4
- package/source/framework/decorators/middleware.decorator.ts +2 -2
- package/source/framework/decorators/parametrable.decorator.ts +2 -2
- package/source/framework/decorators/routable.decorator.ts +3 -3
- package/source/framework/decorators/route-interaction.decorator.ts +4 -4
- package/source/framework/decorators/socket.decorator.ts +3 -3
- package/source/framework/encryption.ts +2 -2
- package/source/framework/enums/csrf.enum.ts +4 -0
- package/source/framework/enums/index.ts +8 -7
- package/source/framework/enums/runtime.enum.ts +1 -2
- package/source/framework/env.ts +2 -2
- package/source/framework/exceptions/http-exception.ts +3 -3
- package/source/framework/exceptions/index.ts +2 -2
- package/source/framework/health-check.ts +137 -0
- package/source/framework/index.ts +18 -16
- package/source/framework/mcp/handler.ts +3 -3
- package/source/framework/mcp/index.ts +3 -3
- package/source/framework/mcp/protocol.ts +1 -1
- package/source/framework/mcp/streamable-http.ts +3 -3
- package/source/framework/parameter-bag.ts +2 -2
- package/source/framework/plugins/body-parser.plugin.ts +3 -3
- package/source/framework/plugins/index.ts +4 -4
- package/source/framework/plugins/mcp.plugin.ts +5 -5
- package/source/framework/plugins/openapi.plugin.ts +4 -4
- package/source/framework/plugins/security/body-limit.ts +3 -3
- package/source/framework/plugins/security/cors.ts +2 -2
- package/source/framework/plugins/security/csrf.ts +145 -0
- package/source/framework/plugins/security/headers.ts +2 -2
- package/source/framework/plugins/security/index.ts +7 -5
- package/source/framework/plugins/security/method-guard.ts +3 -3
- package/source/framework/plugins/security/rate-limit.ts +3 -3
- package/source/framework/repositories.ts +1 -1
- package/source/framework/responses/error.ts +2 -2
- package/source/framework/responses/helpers.ts +3 -3
- package/source/framework/responses/http-throwable.ts +3 -3
- package/source/framework/responses/http.ts +3 -3
- package/source/framework/responses/index.ts +4 -4
- package/source/framework/runtime/bun/server.ts +5 -5
- package/source/framework/runtime/deno/server.ts +156 -96
- package/source/framework/runtime/index.ts +11 -17
- package/source/framework/runtime/node/reply.ts +1 -1
- package/source/framework/runtime/node/request.ts +2 -2
- package/source/framework/runtime/node/server.ts +3 -3
- package/source/framework/runtime/web/server.ts +2 -2
- package/source/framework/services.ts +1 -1
- package/source/framework/utilities/artifact.util.ts +4 -0
- package/source/framework/utilities/csrf.util.ts +162 -0
- package/source/framework/utilities/index.ts +10 -9
- package/source/framework/utilities/openapi.utils.ts +7 -7
- package/source/framework/utilities/utilities.util.ts +1 -1
- package/source/types/application.ts +2 -2
- package/source/types/builder.ts +1 -1
- package/source/types/config.ts +1 -1
- package/source/types/controller.ts +3 -3
- package/source/types/core.ts +1 -1
- package/source/types/csrf.ts +38 -0
- package/source/types/guard.ts +1 -1
- package/source/types/http-responses.ts +1 -1
- package/source/types/index.ts +26 -25
- package/source/types/injection.ts +1 -1
- package/source/types/middleware.ts +1 -1
- package/source/types/plugin.ts +1 -1
- package/source/types/raiton.ts +1 -1
- package/source/types/responses.ts +2 -2
- package/source/types/router.ts +2 -2
- package/source/types/runtime.ts +3 -5
- package/source/types/thread.ts +4 -4
- /package/source/framework/utilities/{https.ts → https.util.ts} +0 -0
- /package/source/framework/utilities/{url.ts → url.util.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
## [6.7.0-beta.15](https://github.com/protorians/raiton/compare/v6.6.0-beta.14...v6.7.0-beta.15) (2026-09-09)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* feat: add HTTP cache system with `@Cache()` decorator, `CacheManager`, and ETag support (#19) ([3cbafa5](https://github.com/protorians/raiton/commit/3cbafa5d38ba4db223f17664726b28790ad15c5a))
|
|
6
|
+
|
|
7
|
+
### Other Changes
|
|
8
|
+
|
|
9
|
+
* Merge pull request #18 ([0bab971](https://github.com/protorians/raiton/commit/0bab971d90cb6a329859c8d24929c67a3a2d9518))
|
|
10
|
+
|
|
11
|
+
## [6.6.0-beta.14](https://github.com/protorians/raiton/compare/v6.5.0-beta.13...v6.6.0-beta.14) (2026-09-04)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* feat: add DI artifact loading with artifact classification and timestamp-based caching ([fa30f50](https://github.com/protorians/raiton/commit/fa30f501a49161559faea0ca594de56edba45916))
|
|
16
|
+
* feat: add health-check support with default endpoint, decorator, and customizable configurations (#17) ([c6ca71d](https://github.com/protorians/raiton/commit/c6ca71dc62c99ce5ee0ec77de3bada333fcddfe6))
|
|
17
|
+
* feat: Add CSRF protection middleware and improve related utilities (#16) ([de401f4](https://github.com/protorians/raiton/commit/de401f49a71af4088426990007934fa354ad0549))
|
|
18
|
+
* feat: add DI artifact loading with artifact classification and timestamp-based caching ([eed2a57](https://github.com/protorians/raiton/commit/eed2a5798d1b692718a5fc1d28ab34a408012a59))
|
|
19
|
+
* feat: add health-check support with default endpoint, decorator, and customizable configurations (#17) ([69c6a62](https://github.com/protorians/raiton/commit/69c6a62106d9eaf47eae2637a3816082fa7efdd9))
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* chore(workflows): allow non-conventional commits in publish step ([792adff](https://github.com/protorians/raiton/commit/792adff7555042da6a427bd57e2410df8f8c300d))
|
|
24
|
+
* docs(user-guide): recommend import type for type-only symbols ([6d2655b](https://github.com/protorians/raiton/commit/6d2655b8f682b48b1a846f63ba764bb27e3e9629))
|
|
25
|
+
* docs(user-guide): recommend import type for type-only symbols ([98afa0f](https://github.com/protorians/raiton/commit/98afa0f6f62db8fecdb0fe62b1463f47d8777618))
|
|
26
|
+
|
|
27
|
+
### Other Changes
|
|
28
|
+
|
|
29
|
+
* Merge remote-tracking branch 'origin/beta' into beta ([d312e8a](https://github.com/protorians/raiton/commit/d312e8ad801ebf0a14687e28b80d5f022c1e543f))
|
|
30
|
+
* Add CSRF protection middleware and improve related utilities (#16) ([ba48340](https://github.com/protorians/raiton/commit/ba4834036ef0a4e363d36135dbba82b12b3638b7))
|
|
31
|
+
|
|
1
32
|
## [6.5.0-beta.13](https://github.com/protorians/raiton/compare/v6.4.0-beta.12...v6.5.0-beta.13) (2026-09-03)
|
|
2
33
|
|
|
3
34
|
### Features
|
package/README.md
CHANGED
|
@@ -72,16 +72,23 @@ export default async (thread: ThreadInterface) => {
|
|
|
72
72
|
## Utilisation du CLI
|
|
73
73
|
|
|
74
74
|
Raiton est livré avec une interface en ligne de commande pour faciliter le développement.
|
|
75
|
+
Il fonctionne sur **Bun**, **Node.js** et **Deno**.
|
|
75
76
|
|
|
76
77
|
```bash
|
|
77
|
-
#
|
|
78
|
-
bun raiton
|
|
79
|
-
|
|
80
|
-
#
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
# Bun — exécution TypeScript native
|
|
79
|
+
bun raiton dev # mode développement avec HMR
|
|
80
|
+
bun raiton build # build du projet
|
|
81
|
+
bun raiton start # démarrage en production (sans HMR)
|
|
82
|
+
|
|
83
|
+
# Node.js (bundle JS préalable : bun run build)
|
|
84
|
+
node build/bin/index.mjs dev
|
|
85
|
+
node build/bin/index.mjs start
|
|
86
|
+
|
|
87
|
+
# Deno
|
|
88
|
+
deno task dev # mode développement avec HMR (--watch)
|
|
89
|
+
deno task build
|
|
90
|
+
deno task start # démarrage en production
|
|
91
|
+
deno task compile # binaire autonome stable et rapide
|
|
85
92
|
```
|
|
86
93
|
|
|
87
94
|
## Runtimes supportés
|
|
@@ -90,7 +97,7 @@ Raiton détecte automatiquement l'environnement d'exécution et adapte son serve
|
|
|
90
97
|
|
|
91
98
|
- **Bun** : Utilisation de `Bun.serve`.
|
|
92
99
|
- **Node.js** : Adaptateur pour serveurs HTTP Node.
|
|
93
|
-
- **
|
|
100
|
+
- **Deno** : Utilisation de `Deno.serve`.
|
|
94
101
|
|
|
95
102
|
## Documentation API
|
|
96
103
|
|