raiton 1.0.0-alpha.3 → 1.0.0-beta.1

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
@@ -1,3 +1,54 @@
1
+ # 1.0.0-beta.1 (2026-02-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add `pnpm-lock.yaml` for dependency management ([86dab7e](https://github.com/protorians/raiton/commit/86dab7ee712bcf72024687f59ada9974af9bdbe4))
7
+ * lazy-initialize `_container` in `GraftsRegistry` to optimize resource usage ([2847249](https://github.com/protorians/raiton/commit/2847249a70e08957ae618421bab11e68d126f057))
8
+ * update log method in `BuildCommand`, add `LBadge` for improved log formatting ([63d1126](https://github.com/protorians/raiton/commit/63d11265a65af60e47e07053376c87dd541a5fbb))
9
+
10
+
11
+ ### Features
12
+
13
+ * add `IGlobalGrafts` interface definition ([72585ed](https://github.com/protorians/raiton/commit/72585ed24c3c1b4e84626fca92ad9d9303a33061))
14
+ * add CLI commands and bootstrap logic for the `Raiton` framework ([61d6565](https://github.com/protorians/raiton/commit/61d6565e6b6f4f2eaeaf65e2878c0f24936bfd68))
15
+ * add constants for SDK modularization ([98bae11](https://github.com/protorians/raiton/commit/98bae1177e2b458a1e1925e151f1844db50b78c5))
16
+ * add enums for SDK modularization ([087864f](https://github.com/protorians/raiton/commit/087864f89f8a5d87746f5595ca3c148145473044))
17
+ * add process event handling and environment configuration setup ([93fc142](https://github.com/protorians/raiton/commit/93fc142bde480cd166e1f2681644768692fcecf7))
18
+ * add Swagger HTML page plugin for API documentation ([d287757](https://github.com/protorians/raiton/commit/d2877576d7a310ba814aa7c4b7790271582a20bf))
19
+ * add type definitions for core application structures ([c756482](https://github.com/protorians/raiton/commit/c75648245c7f7e2f2d25350c04e2dc0e4f5e3109))
20
+ * add utility functions for SDK ([b947207](https://github.com/protorians/raiton/commit/b947207afe37e9a876fe6f86facc081ce4fbb0de))
21
+ * implement core modules for `Raiton` framework ([89c1288](https://github.com/protorians/raiton/commit/89c12886a300015da603cda57f9dbbcd5394962a))
22
+ * implement SDK core modules and utilities ([085da37](https://github.com/protorians/raiton/commit/085da37d03399f1732d463763302d67df85848b1))
23
+ * integrate `bodyParserPlugin` into application setup, refine `ControllerMeta` structure, and clean up router handler logging ([3dc29b9](https://github.com/protorians/raiton/commit/3dc29b9d203fd1d56cd22de65f58dc6c9353566a))
24
+ * introduce decorators for SDK modularization ([e90e5fb](https://github.com/protorians/raiton/commit/e90e5fb017325115594985844328ac4d0542ccc5))
25
+
26
+ # [1.0.0-alpha.3](https://github.com/protorians/raiton/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2026-02-17)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * extend `ChildProcess` types to include `ChildProcessWithoutNullStreams` and adjust `Logger` for optional child process PID ([e1e7e17](https://github.com/protorians/raiton/commit/e1e7e17ddd921da5f09cf3240f06a64fddd274f5))
32
+ * refactor runtime detection in `CliTools` and streamline imports in bin files ([b431aa3](https://github.com/protorians/raiton/commit/b431aa31d86e2ef480fbafa8a2cfbb5ae6a4c640))
33
+ * remove unused HMR and artifact modules, refactor thread lifecycle, and optimize artifact initialization in application core ([af88e34](https://github.com/protorians/raiton/commit/af88e341ba8c695b3a9817d450845e25bb004b9e))
34
+ * remove unused SDK modules, rework artifacts handling, and enhance parametrable decorators ([ddc6d35](https://github.com/protorians/raiton/commit/ddc6d35cd070e25f0da19185e776feead0843ad0))
35
+ * remove unused types, streamline imports, and enhance type definitions with Lifecycle interfaces ([5ef2e46](https://github.com/protorians/raiton/commit/5ef2e46ecec191c1e51d79c997ebe2f8244dc7fc))
36
+
37
+
38
+ ### Features
39
+
40
+ * add `class-validator` dependency and update README to remove Deno beta references ([a616086](https://github.com/protorians/raiton/commit/a616086652d437d0763d7c8313150c56ee4d11d9))
41
+ * add basic `deno.json` with imports and tasks configuration ([e31b024](https://github.com/protorians/raiton/commit/e31b02414bc4378a7125678fe88268f57367c646))
42
+ * add global runtime detection constants for Bun and Deno in `constants.ts` ([c63ac8e](https://github.com/protorians/raiton/commit/c63ac8e36089e58856c180706c89b51390ae850f))
43
+ * 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))
44
+
45
+ # [1.0.0-alpha.2](https://github.com/protorians/raiton/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2026-02-16)
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * `CliTools`: add support for Deno runtime, improve runtime detection, and adjust spawn logic for `.ts` file handling ([71c506a](https://github.com/protorians/raiton/commit/71c506afcbb4ec3acffec8d4b36934afa8d0b6b3))
51
+
1
52
  # [1.0.0-alpha.3](https://github.com/protorians/raiton/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2026-02-17)
2
53
 
3
54
 
@@ -17,6 +68,21 @@
17
68
  * add global runtime detection constants for Bun and Deno in `constants.ts` ([c63ac8e](https://github.com/protorians/raiton/commit/c63ac8e36089e58856c180706c89b51390ae850f))
18
69
  * 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))
19
70
 
71
+ # [1.0.0-alpha.3](https://github.com/protorians/raiton/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2026-02-17)
72
+
73
+ ### Features
74
+
75
+ * **core:** intégration de `class-validator` pour la validation automatique via les DTO ([a616086](https://github.com/protorians/raiton/commit/a616086))
76
+ * **core:** refonte complète de l'injection de dépendances avec gestion des cycles de vie `onInit`, `onMount`, `onUnmount` ([e90e5fb](https://github.com/protorians/raiton/commit/e90e5fb))
77
+ * **core:** introduction de la gestion des exceptions HTTP et des réponses paramétrables ([e1c5fa3](https://github.com/protorians/raiton/commit/e1c5fa3))
78
+ * **cli:** détection améliorée du runtime et support initial de Deno via `deno.json` ([e31b024](https://github.com/protorians/raiton/commit/e31b024))
79
+ * **ci:** passage à Bun pour les workflows de build et de release
80
+
81
+ ### Bug Fixes
82
+
83
+ * **core:** correction de la détection du runtime dans `CliTools` ([b431aa3](https://github.com/protorians/raiton/commit/b431aa3))
84
+ * **core:** suppression des modules HMR et artifacts inutilisés pour alléger le noyau ([af88e34](https://github.com/protorians/raiton/commit/af88e34))
85
+
20
86
  # [1.0.0-alpha.2](https://github.com/protorians/raiton/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2026-02-16)
21
87
 
22
88
 
package/README.md CHANGED
@@ -11,7 +11,9 @@ il offre également un support complet pour **Node.js** et **Deno**.
11
11
 
12
12
  - **Optimisé pour Bun** : Utilise `Bun.serve` nativement pour des performances maximales.
13
13
  - **Multi-Runtime** : Compatible avec Bun (recommandé), Node.js et les environnements Web.
14
- - **Architecture Décorative** : Utilise les décorateurs TypeScript pour définir contrôleurs, routes et injections.
14
+ - **Architecture Décorative** : Utilise les décorateurs TypeScript pour définir contrôleurs, routes et injections de dépendances.
15
+ - **Validation DTO** : Intégration native de `class-validator` pour la validation des données entrantes.
16
+ - **Cycle de Vie** : Support des hooks `onInit`, `onMount` et `onUnmount` pour les services et contrôleurs.
15
17
  - **Modulaire** : Système de plugins et de middlewares flexible.
16
18
  - **CLI Puissant** : Outils intégrés pour le développement, le build et le déploiement.
17
19
 
@@ -67,21 +69,55 @@ export default async function (thread: ThreadInterface) {
67
69
  }
68
70
  ```
69
71
 
72
+ ### 3. Validation avec DTO (`source/dtos/user.dto.ts`)
73
+
74
+ Raiton intègre `class-validator` pour valider vos données entrantes via des DTOs.
75
+
76
+ ```typescript
77
+ import { DataTransferObject } from "raiton/sdk";
78
+ import { IsString, MinLength } from "class-validator";
79
+
80
+ export class CreateUserDto extends DataTransferObject {
81
+ @IsString()
82
+ @MinLength(3)
83
+ name: string;
84
+ }
85
+ ```
86
+
87
+ Utilisez-le dans votre contrôleur :
88
+
89
+ ```typescript
90
+ import { Controllable, Post, Body } from "raiton/sdk";
91
+ import { CreateUserDto } from "../dtos/user.dto";
92
+
93
+ @Controllable('/users')
94
+ export class UserController {
95
+ @Post('/')
96
+ create(@Body(CreateUserDto) body: CreateUserDto) {
97
+ return { message: `Utilisateur ${body.name} créé !` };
98
+ }
99
+ }
100
+ ```
101
+
70
102
  ## Utilisation du CLI
71
103
 
72
104
  Raiton est livré avec une interface en ligne de commande pour faciliter le développement.
73
105
 
106
+ > **Note :** Il est recommandé d'utiliser **Bun** pour une meilleure expérience.
107
+
74
108
  ```bash
75
109
  # Lancer en mode développement (avec hot reload)
76
- bun raiton develop
110
+ raiton develop
77
111
 
78
112
  # Builder le projet
79
- bun raiton build
113
+ raiton build
80
114
 
81
115
  # Démarrer le projet buildé
82
- bun raiton start
116
+ raiton start
83
117
  ```
84
118
 
119
+ Si `raiton` n'est pas dans votre PATH, utilisez `bun x raiton` ou `npx raiton`.
120
+
85
121
  ## 🛠 Runtimes supportés
86
122
 
87
123
  Raiton détecte automatiquement l'environnement d'exécution et adapte son serveur :
@@ -4803,7 +4803,7 @@ var {
4803
4803
  Help
4804
4804
  } = import__.default;
4805
4805
  // package.json
4806
- var version = "1.0.0-alpha.3";
4806
+ var version = "1.0.0-beta.1";
4807
4807
 
4808
4808
  // source/bin/cli.ts
4809
4809
  var CLI = new Command;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raiton",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-beta.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Protorians Raiton Development Kit",
@@ -0,0 +1,10 @@
1
+ import {RaitonConfig} from "@/core";
2
+
3
+ export class Artifacts {
4
+
5
+ public static async load(workdir: string) {
6
+ await RaitonConfig.sync(workdir);
7
+ return RaitonConfig.get('artifacts');
8
+ }
9
+
10
+ }
@@ -0,0 +1 @@
1
+ export * from "./artifact";
@@ -0,0 +1,3 @@
1
+ export function artifactRunner () {
2
+
3
+ }
Binary file