raiton 1.0.0-alpha.2 → 1.0.0-alpha.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +3 -4
  3. package/build/bin/index.mjs +3798 -3644
  4. package/build/raiton-1.0.0-alpha.4.tgz +0 -0
  5. package/deno.json +9 -0
  6. package/package.json +2 -1
  7. package/source/bin/cli-tools.ts +1 -6
  8. package/source/bin/constants.ts +5 -0
  9. package/source/bin/index.ts +1 -1
  10. package/source/commands/develop.command.ts +3 -3
  11. package/source/commands/start.command.ts +1 -1
  12. package/source/core/application.ts +66 -18
  13. package/source/core/builder.ts +27 -21
  14. package/source/core/controller/builder.ts +8 -5
  15. package/source/core/controller/metadata.ts +1 -1
  16. package/source/core/directories.ts +1 -1
  17. package/source/core/index.ts +0 -1
  18. package/source/core/injection/injection.ts +67 -5
  19. package/source/core/injection/metadata.ts +22 -0
  20. package/source/core/middleware/compose.ts +1 -1
  21. package/source/core/raiton.ts +2 -3
  22. package/source/core/router/handler.ts +100 -44
  23. package/source/core/thread.ts +18 -8
  24. package/source/sdk/artifacts.ts +65 -41
  25. package/source/sdk/constants/decorators.constant.ts +1 -0
  26. package/source/sdk/data-transfer-object.ts +11 -3
  27. package/source/sdk/decorators/parametrable.ts +19 -15
  28. package/source/sdk/decorators/routable.decorator.ts +0 -3
  29. package/source/sdk/decorators/routable.ts +25 -0
  30. package/source/sdk/encryption.ts +5 -6
  31. package/source/sdk/enums/encrypted.enum.ts +10 -0
  32. package/source/sdk/enums/http-method.enum.ts +10 -0
  33. package/source/sdk/enums/http-status.enum.ts +73 -0
  34. package/source/sdk/enums/index.ts +2 -1
  35. package/source/sdk/exceptions/http-exception.ts +28 -0
  36. package/source/sdk/exceptions/index.ts +2 -0
  37. package/source/sdk/exceptions/throwable.ts +101 -0
  38. package/source/sdk/fastify.ts +5 -0
  39. package/source/sdk/index.ts +7 -0
  40. package/source/sdk/json.ts +5 -5
  41. package/source/sdk/parameter-bag.ts +55 -0
  42. package/source/sdk/repositories.ts +1 -1
  43. package/source/sdk/responses/error.ts +52 -0
  44. package/source/sdk/responses/helpers.ts +28 -0
  45. package/source/sdk/responses/http-throwable.ts +28 -0
  46. package/source/sdk/responses/http.ts +48 -0
  47. package/source/sdk/responses/index.ts +4 -0
  48. package/source/sdk/responses.ts +4 -18
  49. package/source/sdk/routes.ts +21 -0
  50. package/source/sdk/runtime/bun/server.ts +2 -1
  51. package/source/sdk/runtime/deno/server.ts +2 -2
  52. package/source/sdk/runtime/node/server.ts +2 -2
  53. package/source/sdk/schemes.ts +1 -1
  54. package/source/sdk/utilities/artifact.util.ts +18 -0
  55. package/source/sdk/utilities/index.ts +1 -3
  56. package/source/sdk/utilities/parameters-arguments.util.ts +61 -0
  57. package/source/types/application.ts +3 -3
  58. package/source/types/artifact.ts +36 -32
  59. package/source/types/builder.ts +0 -4
  60. package/source/types/config.ts +2 -2
  61. package/source/types/controller.ts +1 -2
  62. package/source/types/index.ts +2 -3
  63. package/source/types/lifecycle.ts +11 -0
  64. package/source/types/parameters.ts +21 -0
  65. package/source/types/payload.ts +5 -0
  66. package/source/types/responses.ts +17 -7
  67. package/source/types/runtime.ts +1 -1
  68. package/build/raiton-1.0.0-alpha.2.tgz +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ # [1.0.0-alpha.4](https://github.com/protorians/raiton/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2026-02-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove emojis from README section titles for consistency ([8d604ee](https://github.com/protorians/raiton/commit/8d604eec0825bfdf172988ee9fe662076b7e46be))
7
+ * remove unused Fastify dependencies and deprecate parameter handling utilities ([282db2c](https://github.com/protorians/raiton/commit/282db2cb4baeb52b816e1444f9d618570a073443))
8
+ * update `.releaserc.json` to refine branch configurations and format `assets` array ([0f803c0](https://github.com/protorians/raiton/commit/0f803c08d03549bd28ef9e61fe9c6c121d2f781d))
9
+ * update keywords in `package.json` and reset version to `0.0.0` ([44f7c85](https://github.com/protorians/raiton/commit/44f7c858330fc5455260d66d05b78a5a33d388f8))
10
+
11
+
12
+ ### Features
13
+
14
+ * add `NODE_AUTH_TOKEN` to `publish.yml` for semantic-release environment setup ([44a561b](https://github.com/protorians/raiton/commit/44a561b60bc3f35ae59bb404c343ef56baab4d26))
15
+ * enable provenance support in `package.json` and `.releaserc.json` ([b5db171](https://github.com/protorians/raiton/commit/b5db171a84150aefc2978b37c5d3544b5769b160))
16
+ * make package public and fix `publish.yml` token variable ([0293ee6](https://github.com/protorians/raiton/commit/0293ee629e444be0d90823896ea57212743d357d))
17
+ * remove redundant comments from `publish.yml` workflow ([37ddce9](https://github.com/protorians/raiton/commit/37ddce94356dba8f2c2d5e87af7fc3ade4ca3cf5))
18
+
19
+ # [1.0.0-alpha.3](https://github.com/protorians/raiton/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2026-02-17)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * extend `ChildProcess` types to include `ChildProcessWithoutNullStreams` and adjust `Logger` for optional child process PID ([e1e7e17](https://github.com/protorians/raiton/commit/e1e7e17ddd921da5f09cf3240f06a64fddd274f5))
25
+ * refactor runtime detection in `CliTools` and streamline imports in bin files ([b431aa3](https://github.com/protorians/raiton/commit/b431aa31d86e2ef480fbafa8a2cfbb5ae6a4c640))
26
+ * remove unused HMR and artifact modules, refactor thread lifecycle, and optimize artifact initialization in application core ([af88e34](https://github.com/protorians/raiton/commit/af88e341ba8c695b3a9817d450845e25bb004b9e))
27
+ * remove unused SDK modules, rework artifacts handling, and enhance parametrable decorators ([ddc6d35](https://github.com/protorians/raiton/commit/ddc6d35cd070e25f0da19185e776feead0843ad0))
28
+ * remove unused types, streamline imports, and enhance type definitions with Lifecycle interfaces ([5ef2e46](https://github.com/protorians/raiton/commit/5ef2e46ecec191c1e51d79c997ebe2f8244dc7fc))
29
+
30
+
31
+ ### Features
32
+
33
+ * add `class-validator` dependency and update README to remove Deno beta references ([a616086](https://github.com/protorians/raiton/commit/a616086652d437d0763d7c8313150c56ee4d11d9))
34
+ * add basic `deno.json` with imports and tasks configuration ([e31b024](https://github.com/protorians/raiton/commit/e31b02414bc4378a7125678fe88268f57367c646))
35
+ * add global runtime detection constants for Bun and Deno in `constants.ts` ([c63ac8e](https://github.com/protorians/raiton/commit/c63ac8e36089e58856c180706c89b51390ae850f))
36
+ * introduce HTTP response handling modules with enums, exceptions, and utilities for streamlined error management and parameterized responses ([e1c5fa3](https://github.com/protorians/raiton/commit/e1c5fa3cc00fd7e7ce61ac44243483c2127f1dfe))
37
+
1
38
  # [1.0.0-alpha.2](https://github.com/protorians/raiton/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2026-02-16)
2
39
 
3
40
 
package/README.md CHANGED
@@ -10,7 +10,7 @@ il offre également un support complet pour **Node.js** et **Deno**.
10
10
  ## Caractéristiques
11
11
 
12
12
  - **Optimisé pour Bun** : Utilise `Bun.serve` nativement pour des performances maximales.
13
- - **Multi-Runtime** : Compatible avec Bun, Node.js, Deno et les environnements Web.
13
+ - **Multi-Runtime** : Compatible avec Bun (recommandé), Node.js et les environnements Web.
14
14
  - **Architecture Décorative** : Utilise les décorateurs TypeScript pour définir contrôleurs, routes et injections.
15
15
  - **Modulaire** : Système de plugins et de middlewares flexible.
16
16
  - **CLI Puissant** : Outils intégrés pour le développement, le build et le déploiement.
@@ -82,16 +82,15 @@ bun raiton build
82
82
  bun raiton start
83
83
  ```
84
84
 
85
- ## 🛠 Runtimes supportés
85
+ ## Runtimes supportés
86
86
 
87
87
  Raiton détecte automatiquement l'environnement d'exécution et adapte son serveur :
88
88
 
89
89
  - **Bun** : Utilisation de `Bun.serve`.
90
90
  - **Node.js** : Adaptateur pour serveurs HTTP Node.
91
- - **Deno** : Support natif de l'environnement Deno.
92
91
  - **Web** : Compatible avec les environnements basés sur les standards Web (Fetch API).
93
92
 
94
- ## 📄 Licence
93
+ ## Licence
95
94
 
96
95
  Ce projet est sous licence MIT. Voir le fichier [LICENSE](LICENSE) pour plus de détails.
97
96