feat(core): hard remake with bun and elysia (#19)

* static files changes

* remake modifiers

* test case

* some docs changes

* deps and rule changes

* edit proper interfaces

* remake getServer

* @elysiajs/swagger

* remake tsconfig

* ci changes use bun

* docs changes

* feat(core): hard remake with bun and elysia

* chore(release): 8.2.0-alpha

* auto release

* ci

* update global

* chore(release): 8.2.1-alpha

* ci
This commit is contained in:
Indrawan I.
2026-05-14 04:57:54 +07:00
committed by GitHub
parent 90d858ae9d
commit cd32689b47
76 changed files with 2025 additions and 2581 deletions

View File

@@ -19,7 +19,7 @@ export function maybeError(success: boolean, message: string) {
export function timeAgo(input: Date) {
const date = new Date(input);
const formatter: any = new Intl.RelativeTimeFormat("en");
const formatter = new Intl.RelativeTimeFormat("en");
const ranges: { [key: string]: number } = {
years: 3600 * 24 * 365,
months: 3600 * 24 * 30,
@@ -33,7 +33,7 @@ export function timeAgo(input: Date) {
for (const key in ranges) {
if (ranges[key] < Math.abs(secondsElapsed)) {
const delta = secondsElapsed / ranges[key];
return formatter.format(Math.round(delta), key);
return formatter.format(Math.round(delta), key as Intl.RelativeTimeFormatUnit);
}
}
}