@bejibun/core 0.1.67 → 0.1.69
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 +82 -67
- package/LICENSE +1 -1
- package/README.md +25 -35
- package/builders/RouterBuilder.js +2 -0
- package/exceptions/ExceptionHandler.d.ts +1 -1
- package/exceptions/ExceptionHandler.js +6 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,22 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
## [v0.1.
|
|
6
|
+
## [v0.1.69](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.66...v0.1.69) - 2026-01-13
|
|
7
|
+
|
|
8
|
+
### 🩹 Fixes
|
|
9
|
+
- Router serialize raws into routes - [#11](https://github.com/Bejibun-Framework/bejibun-core/pull/11)
|
|
10
|
+
|
|
11
|
+
### 📖 Changes
|
|
12
|
+
- Added public URL - [#12](https://github.com/Bejibun-Framework/bejibun-core/pull/12)
|
|
13
|
+
|
|
14
|
+
### ❤️Contributors
|
|
15
|
+
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
16
|
+
|
|
17
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## [v0.1.66](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.65...v0.1.66) - 2025-12-31
|
|
7
22
|
|
|
8
23
|
### 🩹 Fixes
|
|
9
24
|
|
|
@@ -30,25 +45,25 @@ Router.resource("path", YourController, {
|
|
|
30
45
|
### ❤️Contributors
|
|
31
46
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
32
47
|
|
|
33
|
-
**Full Changelog**: https://github.com/
|
|
48
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
34
49
|
|
|
35
50
|
---
|
|
36
51
|
|
|
37
|
-
## [v0.1.65](https://github.com/
|
|
52
|
+
## [v0.1.65](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.64...v0.1.65) - 2025-12-29
|
|
38
53
|
|
|
39
54
|
### 🩹 Fixes
|
|
40
|
-
- Router namespace on group - [#6](https://github.com/
|
|
55
|
+
- Router namespace on group - [#6](https://github.com/Bejibun-Framework/bejibun-core/issues/6)
|
|
41
56
|
|
|
42
57
|
### 📖 Changes
|
|
43
58
|
|
|
44
59
|
### ❤️Contributors
|
|
45
60
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
46
61
|
|
|
47
|
-
**Full Changelog**: https://github.com/
|
|
62
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
48
63
|
|
|
49
64
|
---
|
|
50
65
|
|
|
51
|
-
## [v0.1.64](https://github.com/
|
|
66
|
+
## [v0.1.64](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.61...v0.1.64) - 2025-12-25
|
|
52
67
|
|
|
53
68
|
### 🩹 Fixes
|
|
54
69
|
|
|
@@ -108,18 +123,18 @@ await Storage.build({
|
|
|
108
123
|
### ❤️Contributors
|
|
109
124
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
110
125
|
|
|
111
|
-
**Full Changelog**: https://github.com/
|
|
126
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
112
127
|
|
|
113
128
|
---
|
|
114
129
|
|
|
115
|
-
## [v0.1.61](https://github.com/
|
|
130
|
+
## [v0.1.61](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.58...v0.1.61) - 2025-12-12
|
|
116
131
|
|
|
117
132
|
### 🩹 Fixes
|
|
118
|
-
- [@bejibun/cache](https://github.com/
|
|
133
|
+
- [@bejibun/cache](https://github.com/Bejibun-Framework/bejibun-cache) Redis connection with Cache own configuration - [#1](https://github.com/Bejibun-Framework/bejibun-core/issues/1)
|
|
119
134
|
|
|
120
135
|
### 📖 Changes
|
|
121
136
|
What's New :
|
|
122
|
-
#### Upgrade [@bejibun/cache](https://github.com/
|
|
137
|
+
#### Upgrade [@bejibun/cache](https://github.com/Bejibun-Framework/bejibun-cache) to v0.1.14
|
|
123
138
|
- Adding `ttl` supports for file scheme.
|
|
124
139
|
|
|
125
140
|
#### How does it work?
|
|
@@ -135,73 +150,73 @@ If so, the data is returned. Otherwise, the cache file will be deleted and retur
|
|
|
135
150
|
### ❤️Contributors
|
|
136
151
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
137
152
|
|
|
138
|
-
**Full Changelog**: https://github.com/
|
|
153
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
139
154
|
|
|
140
155
|
---
|
|
141
156
|
|
|
142
|
-
## [v0.1.60](https://github.com/
|
|
157
|
+
## [v0.1.60](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.58...v0.1.60) - 2025-12-10
|
|
143
158
|
|
|
144
159
|
### 🩹 Fixes
|
|
145
|
-
- [@bejibun/cache](https://github.com/
|
|
160
|
+
- [@bejibun/cache](https://github.com/Bejibun-Framework/bejibun-cache) local with Rate Limiter - [#10](https://github.com/Bejibun-Framework/bejibun-core/issues/10)
|
|
146
161
|
|
|
147
162
|
### 📖 Changes
|
|
148
163
|
|
|
149
164
|
### ❤️Contributors
|
|
150
165
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
151
166
|
|
|
152
|
-
**Full Changelog**: https://github.com/
|
|
167
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
153
168
|
|
|
154
169
|
---
|
|
155
170
|
|
|
156
|
-
## [v0.1.58](https://github.com/
|
|
171
|
+
## [v0.1.58](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.57...v0.1.58) - 2025-12-09
|
|
157
172
|
|
|
158
173
|
### 🩹 Fixes
|
|
159
174
|
|
|
160
175
|
### 📖 Changes
|
|
161
|
-
#### Upgrade [@bejibun/utils](https://github.com/
|
|
176
|
+
#### Upgrade [@bejibun/utils](https://github.com/Bejibun-Framework/bejibun-utils) to v0.1.25
|
|
162
177
|
- Implement `serialize` and `parseFormData` to `BaseController` for cleaner data and more actual data validation.
|
|
163
178
|
|
|
164
179
|
### ❤️Contributors
|
|
165
180
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
166
181
|
|
|
167
|
-
**Full Changelog**: https://github.com/
|
|
182
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
168
183
|
|
|
169
184
|
---
|
|
170
185
|
|
|
171
|
-
## [v0.1.57](https://github.com/
|
|
186
|
+
## [v0.1.57](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.55...v0.1.57) - 2025-12-05
|
|
172
187
|
|
|
173
188
|
### 🩹 Fixes
|
|
174
|
-
- Hang, when redis not connected - [#7](https://github.com/
|
|
175
|
-
- Handling for invalid syntax validation - [#8](https://github.com/
|
|
176
|
-
- Body serialize for empty form data field - [#9](https://github.com/
|
|
189
|
+
- Hang, when redis not connected - [#7](https://github.com/Bejibun-Framework/bejibun-core/issues/7)
|
|
190
|
+
- Handling for invalid syntax validation - [#8](https://github.com/Bejibun-Framework/bejibun-core/issues/8)
|
|
191
|
+
- Body serialize for empty form data field - [#9](https://github.com/Bejibun-Framework/bejibun-core/issues/9)
|
|
177
192
|
|
|
178
|
-
#### [@bejibun/utils](https://github.com/
|
|
179
|
-
- Empty validation for file - [#1](https://github.com/
|
|
193
|
+
#### [@bejibun/utils](https://github.com/Bejibun-Framework/bejibun-utils)
|
|
194
|
+
- Empty validation for file - [#1](https://github.com/Bejibun-Framework/bejibun-utils/issues/1)
|
|
180
195
|
|
|
181
196
|
### 📖 Changes
|
|
182
|
-
#### Upgrade [@bejibun/utils](https://github.com/
|
|
197
|
+
#### Upgrade [@bejibun/utils](https://github.com/Bejibun-Framework/bejibun-utils) to v0.1.23
|
|
183
198
|
- Empty validation for file
|
|
184
199
|
|
|
185
|
-
#### Upgrade [@bejibun/cache](https://github.com/
|
|
200
|
+
#### Upgrade [@bejibun/cache](https://github.com/Bejibun-Framework/bejibun-cache) to v0.1.12
|
|
186
201
|
- Adding `local` connection for file schema.
|
|
187
202
|
|
|
188
|
-
Now, [@bejibun/cache](https://github.com/
|
|
203
|
+
Now, [@bejibun/cache](https://github.com/Bejibun-Framework/bejibun-cache) has local and redis for cache system.
|
|
189
204
|
If the connection use local, this will cache data as file on storage/cache.
|
|
190
205
|
|
|
191
206
|
### ❤️Contributors
|
|
192
207
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
193
208
|
|
|
194
|
-
**Full Changelog**: https://github.com/
|
|
209
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
195
210
|
|
|
196
211
|
---
|
|
197
212
|
|
|
198
|
-
## [v0.1.55](https://github.com/
|
|
213
|
+
## [v0.1.55](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.54...v0.1.55) - 2025-11-29
|
|
199
214
|
|
|
200
215
|
### 🩹 Fixes
|
|
201
|
-
- Body parser for multiple keys - [#2](https://github.com/
|
|
202
|
-
- x402 on nester router - [#3](https://github.com/
|
|
203
|
-
- Storage directory undefined - [#4](https://github.com/
|
|
204
|
-
- Unknown actual error on runtime exception - [#5](https://github.com/
|
|
216
|
+
- Body parser for multiple keys - [#2](https://github.com/Bejibun-Framework/bejibun-core/issues/2)
|
|
217
|
+
- x402 on nester router - [#3](https://github.com/Bejibun-Framework/bejibun-core/issues/3)
|
|
218
|
+
- Storage directory undefined - [#4](https://github.com/Bejibun-Framework/bejibun-core/issues/4)
|
|
219
|
+
- Unknown actual error on runtime exception - [#5](https://github.com/Bejibun-Framework/bejibun-core/issues/5)
|
|
205
220
|
|
|
206
221
|
### 📖 Changes
|
|
207
222
|
- Storage adjustment: random string filename.
|
|
@@ -209,11 +224,11 @@ If the connection use local, this will cache data as file on storage/cache.
|
|
|
209
224
|
### ❤️Contributors
|
|
210
225
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
211
226
|
|
|
212
|
-
**Full Changelog**: https://github.com/
|
|
227
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
213
228
|
|
|
214
229
|
---
|
|
215
230
|
|
|
216
|
-
## [v0.1.54](https://github.com/
|
|
231
|
+
## [v0.1.54](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.53...v0.1.54) - 2025-11-28
|
|
217
232
|
|
|
218
233
|
### 🩹 Fixes
|
|
219
234
|
- Fix x402 middleware for optional
|
|
@@ -223,11 +238,11 @@ If the connection use local, this will cache data as file on storage/cache.
|
|
|
223
238
|
### ❤️Contributors
|
|
224
239
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
225
240
|
|
|
226
|
-
**Full Changelog**: https://github.com/
|
|
241
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
227
242
|
|
|
228
243
|
---
|
|
229
244
|
|
|
230
|
-
## [v0.1.53](https://github.com/
|
|
245
|
+
## [v0.1.53](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.52...v0.1.53) - 2025-11-24
|
|
231
246
|
|
|
232
247
|
### 🩹 Fixes
|
|
233
248
|
|
|
@@ -244,11 +259,11 @@ Available `Rate Limiter` functions :
|
|
|
244
259
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
245
260
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
246
261
|
|
|
247
|
-
**Full Changelog**: https://github.com/
|
|
262
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
248
263
|
|
|
249
264
|
---
|
|
250
265
|
|
|
251
|
-
## [v0.1.52](https://github.com/
|
|
266
|
+
## [v0.1.52](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.51...v0.1.52) - 2025-11-17
|
|
252
267
|
|
|
253
268
|
### 🩹 Fixes
|
|
254
269
|
|
|
@@ -272,11 +287,11 @@ Router.x402()
|
|
|
272
287
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
273
288
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
274
289
|
|
|
275
|
-
**Full Changelog**: https://github.com/
|
|
290
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
276
291
|
|
|
277
292
|
---
|
|
278
293
|
|
|
279
|
-
## [v0.1.51](https://github.com/
|
|
294
|
+
## [v0.1.51](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.49...v0.1.51) - 2025-11-04
|
|
280
295
|
|
|
281
296
|
### 🩹 Fixes
|
|
282
297
|
|
|
@@ -310,11 +325,11 @@ So when user runs `bun ace` your command will appear in the list.
|
|
|
310
325
|
### ❤️Contributors
|
|
311
326
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
312
327
|
|
|
313
|
-
**Full Changelog**: https://github.com/
|
|
328
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
314
329
|
|
|
315
330
|
---
|
|
316
331
|
|
|
317
|
-
## [v0.1.49](https://github.com/
|
|
332
|
+
## [v0.1.49](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.47...v0.1.49) - 2025-10-27
|
|
318
333
|
|
|
319
334
|
### 🩹 Fixes
|
|
320
335
|
|
|
@@ -327,11 +342,11 @@ What's New :
|
|
|
327
342
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
328
343
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
329
344
|
|
|
330
|
-
**Full Changelog**: https://github.com/
|
|
345
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
331
346
|
|
|
332
347
|
---
|
|
333
348
|
|
|
334
|
-
## [v0.1.47](https://github.com/
|
|
349
|
+
## [v0.1.47](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.44...v0.1.47) - 2025-10-26
|
|
335
350
|
|
|
336
351
|
### 🩹 Fixes
|
|
337
352
|
|
|
@@ -345,11 +360,11 @@ What's New :
|
|
|
345
360
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
346
361
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
347
362
|
|
|
348
|
-
**Full Changelog**: https://github.com/
|
|
363
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
349
364
|
|
|
350
365
|
---
|
|
351
366
|
|
|
352
|
-
## [v0.1.44](https://github.com/
|
|
367
|
+
## [v0.1.44](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.43...v0.1.44) - 2025-10-22
|
|
353
368
|
|
|
354
369
|
### 🩹 Fixes
|
|
355
370
|
|
|
@@ -364,11 +379,11 @@ What's New :
|
|
|
364
379
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
365
380
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
366
381
|
|
|
367
|
-
**Full Changelog**: https://github.com/
|
|
382
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
368
383
|
|
|
369
384
|
---
|
|
370
385
|
|
|
371
|
-
## [v0.1.43](https://github.com/
|
|
386
|
+
## [v0.1.43](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.42...v0.1.43) - 2025-10-21
|
|
372
387
|
|
|
373
388
|
### 🩹 Fixes
|
|
374
389
|
|
|
@@ -382,11 +397,11 @@ What's New :
|
|
|
382
397
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
383
398
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
384
399
|
|
|
385
|
-
**Full Changelog**: https://github.com/
|
|
400
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
386
401
|
|
|
387
402
|
---
|
|
388
403
|
|
|
389
|
-
## [v0.1.42](https://github.com/
|
|
404
|
+
## [v0.1.42](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.41...v0.1.42) - 2025-10-21
|
|
390
405
|
|
|
391
406
|
### 🩹 Fixes
|
|
392
407
|
- Fix controller path on router builder
|
|
@@ -401,11 +416,11 @@ What's New :
|
|
|
401
416
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
402
417
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
403
418
|
|
|
404
|
-
**Full Changelog**: https://github.com/
|
|
419
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
405
420
|
|
|
406
421
|
---
|
|
407
422
|
|
|
408
|
-
## [v0.1.41](https://github.com/
|
|
423
|
+
## [v0.1.41](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.40...v0.1.41) - 2025-10-20
|
|
409
424
|
|
|
410
425
|
### 🩹 Fixes
|
|
411
426
|
|
|
@@ -418,11 +433,11 @@ Chore :
|
|
|
418
433
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
419
434
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
420
435
|
|
|
421
|
-
**Full Changelog**: https://github.com/
|
|
436
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
422
437
|
|
|
423
438
|
---
|
|
424
439
|
|
|
425
|
-
## [v0.1.40](https://github.com/
|
|
440
|
+
## [v0.1.40](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.39...v0.1.40) - 2025-10-19
|
|
426
441
|
|
|
427
442
|
### 🩹 Fixes
|
|
428
443
|
- Fix router any invalid route structure
|
|
@@ -437,11 +452,11 @@ What's New :
|
|
|
437
452
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
438
453
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
439
454
|
|
|
440
|
-
**Full Changelog**: https://github.com/
|
|
455
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
441
456
|
|
|
442
457
|
---
|
|
443
458
|
|
|
444
|
-
## [v0.1.39](https://github.com/
|
|
459
|
+
## [v0.1.39](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.38...v0.1.39) - 2025-10-17
|
|
445
460
|
|
|
446
461
|
### 🩹 Fixes
|
|
447
462
|
- Fix load database configuration on bootstrap & base model
|
|
@@ -452,11 +467,11 @@ What's New :
|
|
|
452
467
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
453
468
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
454
469
|
|
|
455
|
-
**Full Changelog**: https://github.com/
|
|
470
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
456
471
|
|
|
457
472
|
---
|
|
458
473
|
|
|
459
|
-
## [v0.1.38](https://github.com/
|
|
474
|
+
## [v0.1.38](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.36...v0.1.38) - 2025-10-17
|
|
460
475
|
|
|
461
476
|
### 🩹 Fixes
|
|
462
477
|
|
|
@@ -476,11 +491,11 @@ Available Commands :
|
|
|
476
491
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
477
492
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
478
493
|
|
|
479
|
-
**Full Changelog**: https://github.com/
|
|
494
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
480
495
|
|
|
481
496
|
---
|
|
482
497
|
|
|
483
|
-
## [v0.1.36](https://github.com/
|
|
498
|
+
## [v0.1.36](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.35...v0.1.36) - 2025-10-14
|
|
484
499
|
|
|
485
500
|
### 🩹 Fixes
|
|
486
501
|
|
|
@@ -496,11 +511,11 @@ Refactors :
|
|
|
496
511
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
497
512
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
498
513
|
|
|
499
|
-
**Full Changelog**: https://github.com/
|
|
514
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
500
515
|
|
|
501
516
|
---
|
|
502
517
|
|
|
503
|
-
## [v0.1.35](https://github.com/
|
|
518
|
+
## [v0.1.35](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.23...v0.1.35) - 2025-10-14
|
|
504
519
|
|
|
505
520
|
### 🩹 Fixes
|
|
506
521
|
|
|
@@ -512,11 +527,11 @@ Update build indexing
|
|
|
512
527
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
513
528
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
514
529
|
|
|
515
|
-
**Full Changelog**: https://github.com/
|
|
530
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
516
531
|
|
|
517
532
|
---
|
|
518
533
|
|
|
519
|
-
## [v0.1.23](https://github.com/
|
|
534
|
+
## [v0.1.23](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.18...v0.1.23) - 2025-10-14
|
|
520
535
|
|
|
521
536
|
### 🩹 Fixes
|
|
522
537
|
|
|
@@ -533,11 +548,11 @@ What's New :
|
|
|
533
548
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
534
549
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
535
550
|
|
|
536
|
-
**Full Changelog**: https://github.com/
|
|
551
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
|
537
552
|
|
|
538
553
|
---
|
|
539
554
|
|
|
540
|
-
## [v0.1.18](https://github.com/
|
|
555
|
+
## [v0.1.18](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.0...v0.1.18) - 2025-10-12
|
|
541
556
|
|
|
542
557
|
### 🩹 Fixes
|
|
543
558
|
|
|
@@ -551,4 +566,4 @@ What's New :
|
|
|
551
566
|
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
552
567
|
- Ghulje ([@ghulje](https://github.com/ghulje))
|
|
553
568
|
|
|
554
|
-
**Full Changelog**: https://github.com/
|
|
569
|
+
**Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="https://github.com/
|
|
3
|
+
<img src="https://github.com/Bejibun-Framework/bejibun/blob/master/public/images/bejibun.png?raw=true" width="150" alt="Bejibun" />
|
|
4
4
|
|
|
5
|
-
](https://img.shields.io/github/v/release/
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -217,44 +217,34 @@ import TestModel from "@/app/models/TestModel";
|
|
|
217
217
|
|
|
218
218
|
export default class TestValidator extends BaseValidator {
|
|
219
219
|
public static get detail(): ValidatorType {
|
|
220
|
-
return super.validator.
|
|
221
|
-
super.validator.
|
|
222
|
-
|
|
223
|
-
})
|
|
224
|
-
);
|
|
220
|
+
return super.validator.create({
|
|
221
|
+
id: super.validator.number().min(1).exists(TestModel, "id")
|
|
222
|
+
});
|
|
225
223
|
}
|
|
226
224
|
|
|
227
225
|
public static get add(): ValidatorType {
|
|
228
|
-
return super.validator.
|
|
229
|
-
super.validator.
|
|
230
|
-
|
|
231
|
-
})
|
|
232
|
-
);
|
|
226
|
+
return super.validator.create({
|
|
227
|
+
name: super.validator.string()
|
|
228
|
+
});
|
|
233
229
|
}
|
|
234
230
|
|
|
235
231
|
public static get edit(): ValidatorType {
|
|
236
|
-
return super.validator.
|
|
237
|
-
super.validator.
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
})
|
|
241
|
-
);
|
|
232
|
+
return super.validator.create({
|
|
233
|
+
id: super.validator.number().min(1).exists(TestModel, "id"),
|
|
234
|
+
name: super.validator.string()
|
|
235
|
+
});
|
|
242
236
|
}
|
|
243
237
|
|
|
244
238
|
public static get delete(): ValidatorType {
|
|
245
|
-
return super.validator.
|
|
246
|
-
super.validator.
|
|
247
|
-
|
|
248
|
-
})
|
|
249
|
-
);
|
|
239
|
+
return super.validator.create({
|
|
240
|
+
id: super.validator.number().min(1).exists(TestModel, "id")
|
|
241
|
+
});
|
|
250
242
|
}
|
|
251
243
|
|
|
252
244
|
public static get restore(): ValidatorType {
|
|
253
|
-
return super.validator.
|
|
254
|
-
super.validator.
|
|
255
|
-
|
|
256
|
-
})
|
|
257
|
-
);
|
|
245
|
+
return super.validator.create({
|
|
246
|
+
id: super.validator.number().min(1).exists(TestModel, "id", true)
|
|
247
|
+
});
|
|
258
248
|
}
|
|
259
249
|
}
|
|
260
250
|
```
|
|
@@ -577,10 +567,10 @@ await Storage.build({
|
|
|
577
567
|
```
|
|
578
568
|
|
|
579
569
|
### Cors
|
|
580
|
-
Documentation : [@bejibun/cors](https://github.com/
|
|
570
|
+
Documentation : [@bejibun/cors](https://github.com/Bejibun-Framework/bejibun-cors/blob/master/README.md)
|
|
581
571
|
|
|
582
572
|
### Cache
|
|
583
|
-
Documentation : [@bejibun/cache](https://github.com/
|
|
573
|
+
Documentation : [@bejibun/cache](https://github.com/Bejibun-Framework/bejibun-cache/blob/master/README.md)
|
|
584
574
|
|
|
585
575
|
### Ace
|
|
586
576
|
Any commands for development
|
|
@@ -630,7 +620,7 @@ If you find this project helpful and want to support it, you can donate via cryp
|
|
|
630
620
|
|
|
631
621
|
| EVM | Solana |
|
|
632
622
|
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
633
|
-
| <img src="https://github.com/
|
|
623
|
+
| <img src="https://github.com/Bejibun-Framework/bejibun/blob/master/public/images/EVM.png?raw=true" width="150" /> | <img src="https://github.com/Bejibun-Framework/bejibun/blob/master/public/images/SOL.png?raw=true" width="150" /> |
|
|
634
624
|
| 0xdABe8750061410D35cE52EB2a418c8cB004788B3 | GAnoyvy9p3QFyxikWDh9hA3fmSk2uiPLNWyQ579cckMn |
|
|
635
625
|
|
|
636
626
|
Or you can buy this `$BJBN (Bejibun)` tokens [here](https://pump.fun/coin/CQhbNnCGKfDaKXt8uE61i5DrBYJV7NPsCDD9vQgypump), beware of bots.
|
|
@@ -201,6 +201,8 @@ export default class RouterBuilder {
|
|
|
201
201
|
if (this.hasRaw(routes))
|
|
202
202
|
routes = routes.route;
|
|
203
203
|
}
|
|
204
|
+
if ("raws" in routes)
|
|
205
|
+
routes = routes.routes;
|
|
204
206
|
const mergedRoutes = this.mergeRoutes(routes);
|
|
205
207
|
if (Array.isArray(mergedRoutes))
|
|
206
208
|
return Object.assign({}, ...mergedRoutes);
|
|
@@ -6,5 +6,5 @@ import RuntimeException from "../exceptions/RuntimeException";
|
|
|
6
6
|
import ValidatorException from "../exceptions/ValidatorException";
|
|
7
7
|
export default class ExceptionHandler {
|
|
8
8
|
handle(error: Bun.ErrorLike | ModelNotFoundException | RateLimiterException | RouterException | RuntimeException | ValidatorException | ValidationError): globalThis.Response;
|
|
9
|
-
route(request: Bun.BunRequest): globalThis.Response
|
|
9
|
+
route(request: Bun.BunRequest): Promise<globalThis.Response>;
|
|
10
10
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import App from "@bejibun/app";
|
|
1
2
|
import Logger from "@bejibun/logger";
|
|
2
3
|
import { defineValue } from "@bejibun/utils";
|
|
3
4
|
import HttpMethodEnum from "@bejibun/utils/enums/HttpMethodEnum";
|
|
@@ -30,7 +31,11 @@ export default class ExceptionHandler {
|
|
|
30
31
|
.setStatus(500)
|
|
31
32
|
.send();
|
|
32
33
|
}
|
|
33
|
-
route(request) {
|
|
34
|
+
async route(request) {
|
|
35
|
+
const url = new URL(request.url);
|
|
36
|
+
const file = Bun.file(App.Path.publicPath(url.pathname.replace(/^\//, "")));
|
|
37
|
+
if (await file.exists())
|
|
38
|
+
return new globalThis.Response(file);
|
|
34
39
|
return Response
|
|
35
40
|
.setMessage("What are you looking for doesn't exists.")
|
|
36
41
|
.setStatus(request.method === HttpMethodEnum.Options ? 204 : 404)
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bejibun/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.69",
|
|
4
4
|
"author": "Havea Crenata <havea.crenata@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/Bejibun-Framework/bejibun-core.git"
|
|
8
8
|
},
|
|
9
9
|
"main": "index.js",
|
|
10
10
|
"module": "index.js",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@bejibun/app": "^0.1.
|
|
12
|
+
"@bejibun/app": "^0.1.23",
|
|
13
13
|
"@bejibun/cache": "^0.1.18",
|
|
14
14
|
"@bejibun/cors": "^0.1.16",
|
|
15
15
|
"@bejibun/database": "^0.1.19",
|
|
16
16
|
"@bejibun/logger": "^0.1.22",
|
|
17
17
|
"@bejibun/utils": "^0.1.28",
|
|
18
|
-
"@vinejs/vine": "^
|
|
18
|
+
"@vinejs/vine": "^4.2.0",
|
|
19
19
|
"commander": "^14.0.2",
|
|
20
20
|
"luxon": "^3.7.2",
|
|
21
21
|
"objection": "^3.1.5"
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"tsc-alias": "^1.8.16"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
30
|
-
"url": "https://github.com/
|
|
30
|
+
"url": "https://github.com/Bejibun-Framework/bejibun-core/issues"
|
|
31
31
|
},
|
|
32
32
|
"description": "Core of Bejibun Framework",
|
|
33
|
-
"homepage": "https://github.com/
|
|
33
|
+
"homepage": "https://github.com/Bejibun-Framework/bejibun-core#readme",
|
|
34
34
|
"keywords": [
|
|
35
35
|
"bun",
|
|
36
36
|
"bun framework",
|