Skip to content

Remove x-typescript-types header for *.mjs route#1323

Merged
ije merged 3 commits intomainfrom
fix-mjs-route
Feb 25, 2026
Merged

Remove x-typescript-types header for *.mjs route#1323
ije merged 3 commits intomainfrom
fix-mjs-route

Conversation

@ije
Copy link
Member

@ije ije commented Feb 25, 2026

revert #1317

Copilot AI review requested due to automatic review settings February 25, 2026 12:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors error handling for build metadata retrieval in the ESM router, specifically affecting routes that serve built .mjs files. The change consolidates nested error checking into inline conditional statements while modifying how errors are handled when retrieving TypeScript type definitions metadata.

Changes:

  • Refactored metadata retrieval error handling from explicit error checks to nested inline conditionals
  • Changed error behavior to silently ignore all metadata retrieval errors instead of returning 500 errors for non-NotFound database errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ije ije changed the title Fix *.mjs route Remove x-typescript-types header for *.mjs route Feb 25, 2026
@ije ije merged commit bb69b03 into main Feb 25, 2026
5 checks passed
@ije ije deleted the fix-mjs-route branch February 25, 2026 14:11
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