Skip to content

elysia entry: hand-rolled compression in standard mode, and a mislabeled br branch #1075

Description

@nigrosimone

Reviewing entries after the recent standard mode clarifications on #1068 / #1069 ("for standard we must use the default compression middleware instead of a hand-rolled version", no custom levels, from the review of the express and fastify entries):

The elysia entry is marked mode: standard but negotiates compression by hand in /json/:count, calling Bun.gzipSync directly (server.ts).

Separately, its br branch has a bug: it sets content-encoding: br while compressing with Bun.deflateSync, so those are deflate bytes under a brotli label. It is latent today because validation sends Accept-Encoding: gzip, br and the code always picks the first token, so the branch never runs there.

Happy to send a PR moving the entry to a compression plugin with default settings, or it could be re-labeled tuned; the br mislabel deserves a fix either way. Asking mostly for consistency: the same rules were (rightly) applied to the entries I submitted, and the composite ranking compares these rows directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frameworksQuestions and issues regarding specific frameworks or languages.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions