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

@logaretmlogaretm commented May 25, 2026

Copy link
Copy Markdown
Member

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

JS-2603

@logaretmlogaretm changed the title test(deno): run optional e2e against latest Denofix(deno): support Deno.serve instrumentation on Deno 2.8May 25, 2026
@logaretm
logaretmforce-pushed the awad/js-2603-deno-280-compatibility branch 3 times, most recently from 1be0388 to c7b8eb9CompareMay 25, 2026 09:39
@logaretm
logaretmforce-pushed the awad/js-2603-deno-280-compatibility branch from c7b8eb9 to 71a9c9fCompareMay 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 ownerMay 25, 2026 10:02
@logaretm
logaretm requested review from JPeer264 and andreiborza and removed request for a teamMay 25, 2026 10:02
@logaretm
logaretm merged commit d16a889 into developMay 26, 2026
140 of 142 checks passed
@logaretm
logaretm deleted the awad/js-2603-deno-280-compatibility branch May 26, 2026 08:51
@github-actionsgithub-actionsBot mentioned this pull request May 26, 2026
3 tasks
Sign up for freeto 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

@logaretm@JPeer264