Skip to content

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

Merged
logaretm merged 2 commits into
developfrom
awad/js-2603-deno-280-compatibility
May 26, 2026
Merged

fix(deno): support Deno.serve instrumentation on Deno 2.8#21155
logaretm merged 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
@logaretm logaretm merged commit d16a889 into develop May 26, 2026
140 of 142 checks passed
@logaretm logaretm deleted the awad/js-2603-deno-280-compatibility branch May 26, 2026 08:51
@github-actions github-actions Bot mentioned this pull request May 26, 2026
3 tasks
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

2 participants