raiton 5.9.7-beta.18 → 6.0.1-beta.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.
Files changed (93) hide show
  1. package/README.md +13 -9
  2. package/build/bin/index.mjs +7 -18
  3. package/docs/README.md +6 -129
  4. package/docs/contributors/README.md +103 -0
  5. package/docs/{cli → contributors/cli}/README.md +1 -1
  6. package/docs/{cli → contributors/cli}/hmr.md +20 -23
  7. package/docs/{core → contributors/core}/README.md +1 -1
  8. package/docs/{core → contributors/core}/builder-thread.md +4 -7
  9. package/docs/{core → contributors/core}/controller.md +1 -1
  10. package/docs/contributors/framework/README.md +67 -0
  11. package/docs/{framework → contributors/framework}/base-classes.md +30 -2
  12. package/docs/{framework → contributors/framework}/decorators/socket.md +31 -3
  13. package/docs/{types → contributors/types}/README.md +1 -1
  14. package/docs/user-guide/README.md +62 -0
  15. package/docs/user-guide/api/README.md +21 -0
  16. package/docs/user-guide/api/example.md +50 -0
  17. package/docs/user-guide/api/responses.md +58 -0
  18. package/docs/user-guide/api/routes.md +56 -0
  19. package/docs/user-guide/architecture.md +83 -0
  20. package/docs/user-guide/best-practices.md +36 -0
  21. package/docs/user-guide/body-parser.md +39 -0
  22. package/docs/user-guide/cli.md +51 -0
  23. package/docs/user-guide/config.md +47 -0
  24. package/docs/user-guide/decorators/README.md +33 -0
  25. package/docs/user-guide/decorators/api-body.md +47 -0
  26. package/docs/user-guide/decorators/api-operation.md +47 -0
  27. package/docs/user-guide/decorators/api-param.md +47 -0
  28. package/docs/user-guide/decorators/api-property.md +46 -0
  29. package/docs/user-guide/decorators/api-query.md +47 -0
  30. package/docs/user-guide/decorators/api-response.md +48 -0
  31. package/docs/user-guide/decorators/api-tags.md +47 -0
  32. package/docs/user-guide/decorators/controllable.md +46 -0
  33. package/docs/user-guide/decorators/guard.md +57 -0
  34. package/docs/user-guide/decorators/injection.md +55 -0
  35. package/docs/user-guide/decorators/middleware.md +56 -0
  36. package/docs/user-guide/decorators/parameters.md +57 -0
  37. package/docs/user-guide/decorators/route-interaction.md +47 -0
  38. package/docs/user-guide/decorators/routes.md +62 -0
  39. package/docs/user-guide/decorators/socket.md +59 -0
  40. package/docs/user-guide/encryption.md +40 -0
  41. package/docs/user-guide/env.md +39 -0
  42. package/docs/user-guide/getting-started.md +72 -0
  43. package/docs/user-guide/injection.md +80 -0
  44. package/docs/user-guide/middleware.md +98 -0
  45. package/docs/user-guide/openapi/README.md +70 -0
  46. package/docs/user-guide/openapi/plugin.md +72 -0
  47. package/docs/user-guide/plugins.md +69 -0
  48. package/docs/user-guide/responses.md +99 -0
  49. package/docs/user-guide/runtime.md +44 -0
  50. package/docs/user-guide/security.md +46 -0
  51. package/docs/user-guide/sockets.md +49 -0
  52. package/docs/user-guide/tutorial.md +175 -0
  53. package/docs/user-guide/types.md +118 -0
  54. package/package.json +1 -1
  55. package/source/commands/build.command.ts +2 -2
  56. package/source/core/builder.ts +15 -14
  57. package/source/core/controller/builder.ts +14 -6
  58. package/source/core/socket/builder.ts +5 -0
  59. package/source/core/socket/index.ts +1 -0
  60. package/source/core/socket/metadata.ts +54 -1
  61. package/source/core/thread.ts +4 -1
  62. package/source/framework/artifacts.ts +2 -12
  63. package/source/framework/constants/decorators.constant.ts +1 -0
  64. package/source/framework/decorators/api-response.decorator.ts +4 -5
  65. package/source/framework/decorators/api.decorator.ts +36 -20
  66. package/source/framework/decorators/socket.decorator.ts +2 -1
  67. package/source/framework/runtime/bun/server.ts +100 -3
  68. package/source/framework/runtime/index.ts +4 -3
  69. package/source/framework/utilities/openapi.utils.ts +154 -109
  70. package/source/types/raiton.ts +2 -2
  71. package/source/types/runtime.ts +5 -1
  72. package/docs/framework/README.md +0 -96
  73. /package/docs/{cli → contributors/cli}/commands.md +0 -0
  74. /package/docs/{core → contributors/core}/application.md +0 -0
  75. /package/docs/{core → contributors/core}/config.md +0 -0
  76. /package/docs/{core → contributors/core}/injection.md +0 -0
  77. /package/docs/{core → contributors/core}/middleware.md +0 -0
  78. /package/docs/{core → contributors/core}/plugin-scope.md +0 -0
  79. /package/docs/{core → contributors/core}/router.md +0 -0
  80. /package/docs/{framework → contributors/framework}/decorators/README.md +0 -0
  81. /package/docs/{framework → contributors/framework}/decorators/controllable.md +0 -0
  82. /package/docs/{framework → contributors/framework}/decorators/injection.md +0 -0
  83. /package/docs/{framework → contributors/framework}/decorators/middleware.md +0 -0
  84. /package/docs/{framework → contributors/framework}/decorators/openapi.md +0 -0
  85. /package/docs/{framework → contributors/framework}/decorators/parametrable.md +0 -0
  86. /package/docs/{framework → contributors/framework}/encryption.md +0 -0
  87. /package/docs/{framework → contributors/framework}/env.md +0 -0
  88. /package/docs/{framework → contributors/framework}/plugins/README.md +0 -0
  89. /package/docs/{framework → contributors/framework}/plugins/body-parser.md +0 -0
  90. /package/docs/{framework → contributors/framework}/plugins/openapi.md +0 -0
  91. /package/docs/{framework → contributors/framework}/plugins/security.md +0 -0
  92. /package/docs/{framework → contributors/framework}/responses.md +0 -0
  93. /package/docs/{framework → contributors/framework}/runtime.md +0 -0
@@ -1,96 +0,0 @@
1
- # Module Framework (`source/framework/`)
2
-
3
- Le framework fournit les décorateurs, le runtime, les plugins intégrés, les réponses, les exceptions, les enums et les classes de base.
4
-
5
- > **Navigation :** [← docs/](../README.md) | [↑ Index](../README.md) | [runtime.md →](runtime.md)
6
-
7
- ## Table des matières
8
-
9
- | Fichier | Description |
10
- |---------|-------------|
11
- | [runtime.md](runtime.md) | Adaptateurs runtime (Bun, Node.js, Deno) |
12
- | [responses.md](responses.md) | Réponses HTTP et exceptions |
13
- | [encryption.md](encryption.md) | Hachage et chiffrement |
14
- | [env.md](env.md) | Variables d'environnement typées |
15
- | [base-classes.md](base-classes.md) | DTO, ViewModel, Service, Repository |
16
- | [decorators/](decorators/README.md) | Tous les décorateurs avec exemples |
17
- | [plugins/](plugins/README.md) | Plugins intégrés (body-parser, OpenAPI, sécurité) |
18
-
19
- ```
20
- framework/
21
- ├── index.ts → Réexporte tout le module
22
- ├── controllers.ts → DelegateController (base)
23
- ├── services.ts → DelegateService (base)
24
- ├── repositories.ts → DelegateRepository (base)
25
- ├── view-model.ts → ViewModel (base)
26
- ├── data-transfer-object.ts → DataTransferObject (validation)
27
- ├── encryption.ts → Encryption (hashing, chiffrement)
28
- ├── parameter-bag.ts → ParameterBag (conteneur typé)
29
- ├── artifacts.ts → Artifacts (registre HMR)
30
- ├── env.ts → env(), envGroup()
31
- ├── decorators/
32
- │ ├── index.ts → Réexporte tous les décorateurs
33
- │ ├── controllable.decorator.ts → @Controllable
34
- │ ├── routable.decorator.ts → @Get, @Post, @Put, @Patch, @Delete...
35
- │ ├── parametrable.decorator.ts → @Param, @Query, @Body, @Headers...
36
- │ ├── injection.decorator.ts → @Injectable, @Inject
37
- │ ├── middleware.decorator.ts → @Middleware
38
- │ ├── socket.decorator.ts → @Socket, @OnSocket*
39
- │ ├── api.decorator.ts → @ApiTags, @ApiOperation, @ApiSecurity...
40
- │ ├── api-response.decorator.ts → @ApiResponse, @ApiOkResponse, @Api*Response
41
- │ └── guard.decorator.ts → Guards
42
- ├── plugins/
43
- │ ├── index.ts → Réexporte les plugins
44
- │ ├── body-parser.plugin.ts → bodyParserPlugin
45
- │ ├── openapi.plugin.ts → openApiPlugin
46
- │ └── security/
47
- │ ├── index.ts → Security (classe statique)
48
- │ ├── cors.ts → CORS middleware
49
- │ ├── headers.ts → Headers sécurité
50
- │ ├── rate-limit.ts → Rate limiting
51
- │ ├── method-guard.ts → Méthodes HTTP autorisées
52
- │ └── body-limit.ts → Taille maximale du body
53
- ├── runtime/
54
- │ ├── index.ts → Runtime (fabrique)
55
- │ ├── node/ → Adaptateur Node.js (serveur, request, reply)
56
- │ ├── bun/ → Adaptateur Bun
57
- │ └── deno/ → Adaptateur Deno (stub)
58
- ├── enums/
59
- │ ├── index.ts → Réexporte les enums
60
- │ ├── http-method.enum.ts → HttpMethod
61
- │ ├── http-status.enum.ts → HttpStatus
62
- │ ├── http-parameters.enum.ts → Parametrable
63
- │ ├── runtime.enum.ts → RuntimeType
64
- │ ├── encrypted.enum.ts → HashAlgoEnum, CipherAlgoEnum, PasswordAlgoEnum
65
- │ ├── timestamp.enum.ts → TimestampEnum
66
- │ └── event.message.enum.ts → EventMessageEnum
67
- ├── constants/
68
- │ ├── index.ts
69
- │ ├── decorators.constant.ts → METADATA_KEYS
70
- │ └── microservices.constant.ts → MICROSERVICE_NAME
71
- ├── exceptions/
72
- │ ├── index.ts
73
- │ ├── throwable.ts → Throwable, throwError, throwException...
74
- │ └── http-exception.ts → HttpException
75
- ├── responses/
76
- │ ├── index.ts
77
- │ ├── http.ts → HttpResponse
78
- │ ├── error.ts → HttpErrorResponse
79
- │ ├── http-throwable.ts → ThrowableResponse
80
- │ └── helpers.ts → RaitonResponses
81
- └── utilities/
82
- ├── index.ts
83
- ├── artifact.util.ts → isControllerArtifact, isSocketArtifact...
84
- ├── callable.util.ts → retryCallable
85
- ├── utilities.util.ts → getType, stabilizeJson
86
- ├── json.util.ts → tryParseJson, JsonUtil
87
- ├── path.util.ts → getDirname, getFilename, getPackageRoot
88
- ├── cookie.util.ts → parseCookie
89
- ├── ip.util.ts → getRealIp
90
- ├── url.ts → escapeUrl
91
- └── openapi.utils.ts → generateOpenApiSpec, getSchemaFromType
92
- ```
93
-
94
- ---
95
-
96
- [← docs/](../README.md) | [↑ Index](../README.md) | [runtime.md →](runtime.md)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes