Skip to content

fix(deno): support Deno.serve instrumentation on Deno 2.8#21155

Open
logaretm wants to merge 2 commits into
developfrom
awad/js-2603-deno-280-compatibility
Open

fix(deno): support Deno.serve instrumentation on Deno 2.8#21155
logaretm wants to merge 2 commits into
developfrom
awad/js-2603-deno-280-compatibility

Conversation

@logaretm
Copy link
Copy Markdown
Member

@logaretm logaretm commented May 25, 2026

Deno 2.8 changed the serve to be a configurable property instead without a setter, so setting it directly crashes Deno apps.

I have changed our serve instrumentation approach to use Object.defineProperty to override it, while wrapping everything in try/catch to avoid crashing user apps in the future.

I also added a couple of optional deno latest variants that would help us catch this in the future.

Fixes #21142

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 25, 2026

JS-2603

@logaretm logaretm changed the title test(deno): run optional e2e against latest Deno fix(deno): support Deno.serve instrumentation on Deno 2.8 May 25, 2026
@logaretm logaretm force-pushed the awad/js-2603-deno-280-compatibility branch 3 times, most recently from 1be0388 to c7b8eb9 Compare May 25, 2026 09:39
@logaretm logaretm force-pushed the awad/js-2603-deno-280-compatibility branch from c7b8eb9 to 71a9c9f Compare May 25, 2026 09:40
@logaretm logaretm marked this pull request as ready for review May 25, 2026 10:02
@logaretm logaretm requested a review from a team as a code owner May 25, 2026 10:02
@logaretm logaretm requested review from JPeer264 and andreiborza and removed request for a team May 25, 2026 10:02
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.

Deno 2.8.0 compatibility

1 participant