Skip to content

🔧 fix: read the status code from ElysiaStatus#status - #65

Open
PAStheLoD wants to merge 1 commit into
elysiajs:kianafrom
PAStheLoD:fix/elysia-status-field
Open

PAStheLoD wants to merge 1 commit into
elysiajs:kianafrom
PAStheLoD:fix/elysia-status-field

Conversation

@PAStheLoD

@PAStheLoD PAStheLoD commented Oct 6, 2026 •

Copy link
Copy Markdown

Hello,

elysia 2.0.0-beta.11 renamed ElysiaStatus#code to #status. The adapter still read code, got undefined, and srvx answered 200 for every status(n, ...), returned or thrown, including from beforeHandle.

Raise the elysia peer floor to beta.11

works with 2.0.0-beta.21 too, but there's a type error with that version. (#66)

src/adapter.ts(39,3): error TS2353: Object literal may only specify known properties, and 'name' does not exist in type 'ElysiaAdapterOptions<void>'.
test/adapter.test.ts(10,22): error TS2339: Property 'websocket' does not exist on type 'ElysiaAdapterOptions<void>'.
test/adapter.test.ts(11,27): error TS2339: Property 'websocket' does not exist on type 'ElysiaAdapterOptions<void>'.

Thanks for considering!

elysia 2.0.0-beta.11 renamed `ElysiaStatus#code` to `#status`. The adapter
still read `code`, got `undefined`, and srvx answered 200 for every
`status(n, ...)`, returned or thrown, including from `beforeHandle`.

Raise the elysia peer floor to beta.11 and develop against it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2279f010-0db3-4d55-803a-cd887b2028a8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@FreeAoi

FreeAoi commented Oct 20, 2026

Copy link
Copy Markdown

@SaltyAom can you please check this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants