Replies: 17 comments 21 replies
-
I am in love with Elysia! Here are some features I would like to see:
I am super grateful to all the people working on this project and can't wait to see what's coming :) |
Beta Was this translation helpful? Give feedback.
-
My christmas wish is auto inferred return type in endpoints without me having to write the schema for it. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Stable node support would be bonkers good. 🎯 |
Beta Was this translation helpful? Give feedback.
-
I’d love to see inferred error types directly from schema definitions in Eden Treaty. Specifically, it would be helpful to set custom error messages within a schema—like Here’s a test case to illustrate this idea: import { describe, expect, it } from 'bun:test';
import { treaty } from "@elysiajs/eden";
import { Elysia, t } from "elysia";
const app = new Elysia()
.post("/email", ({ body }) => `${body.email}`, {
body: t.Object({
email: t.String({
format: "email",
error: "Please provide a valid email"
})
})
});
const api = treaty(app);
describe('Eden Treaty error handling', () => {
it("Correct email input", async () => {
const { data, error } = await api.email.post({ email: "[email protected]" });
expect(data).toBe("[email protected]");
});
it("Incorrect email input", async () => {
const { data, error } = await api.email.post({ email: "not an email" });
expect(error?.status).toBe(422);
expect(error?.value).toBe("Please provide a valid email");
});
});
/*
Expected Error Type:
const error: {
status: 422;
value: string;
} | null;
Actual Error Type:
const error: {
status: unknown;
value: unknown;
} | null;
*/ ExplanationIn the example above: Having the custom error messages carry over to the client would improve error handling consistency and make applications using Eden Treaty more user-friendly. Note: This might be a skill issue on my part, so please enlighten me if i am mistaken. Thank you for considering this suggestion! |
Beta Was this translation helpful? Give feedback.
-
Integrated compression - the community extension is no longer functional and gzipped responses seems like a sensible performance feature to have baked in. |
Beta Was this translation helpful? Give feedback.
-
Allow more than just Typebox. I would love to see #EffectTS. ❤️ |
Beta Was this translation helpful? Give feedback.
-
The journey has been good so far with some bumps in the road about Eden. Some desires for 1.1:
|
Beta Was this translation helpful? Give feedback.
-
I would to see an addition to documentation about how to use Preact and a template to |
Beta Was this translation helpful? Give feedback.
-
I would like to see cache-control get an update. When using |
Beta Was this translation helpful? Give feedback.
-
Would love to have auto-reconnection in the Eden WebSocket client. I ended up using https://vueuse.org/core/useWebSocket/#auto-reconnection as WS client instead, but would much prefer to use Eden. |
Beta Was this translation helpful? Give feedback.
-
Regarding
|
Beta Was this translation helpful? Give feedback.
-
Would love to see a solution for tacking down anonymous functions in traces. Been trying to track down a perf issue and I'm struggling. |
Beta Was this translation helpful? Give feedback.
-
A convenient way to inspect/debug optimized handlers could be nice. Currently, optimized handler code is bit of a black box. Perhaps an option to write the generated code to disk or log to console. |
Beta Was this translation helpful? Give feedback.
-
Tanstack Query support within Eden, including adapters for each clientside library that they support (or at least Solid/Svelte/React) would be pretty great! |
Beta Was this translation helpful? Give feedback.
-
Regarding developer experience with Elysia, it has been generally fantastic. One detail really caught me off guard, though: The fact that response normalization recursively mutates values used in responses with This resulted in strange bugs with properties that suddenly became Reported as #897, and solution proposed as #905. Would love to get team feedback on this 🙏 |
Beta Was this translation helpful? Give feedback.
-
I think we need more example projects, especially for monorepo, ex) turborepo monorepo, bun workspace mono repo, jwt, session, common project structures etc... |
Beta Was this translation helpful? Give feedback.
-
Hi, same as usual.
We have begin the development of the next version of Elysia.
So we would like to hear your thoughts, how was your days with Elysia going?
You can suggest anything from proposing a new feature, what you feel like is missing, or just sharing your experience.
Anyway, hope you have a nice day, thanks.
Beta Was this translation helpful? Give feedback.
All reactions