Edge Computing with Cloudflare Workers
Node.js compatibility for Cloudflare Workers – starting with Async Context Tracking, EventEmitter, Buffer, assert, and util

Node.js compatibility for Cloudflare Workers – starting with Async Context Tracking, EventEmitter, Buffer, assert, and util

3/23/2023 · James M Snell

What this post added

This post introduces the initial rollout of Node.js core API compatibility within Cloudflare Workers, specifically focusing on AsyncLocalStorage, EventEmitter, Buffer, assert, and parts of util. It details the implementation of AsyncLocalStorage for asynchronous context tracking, EventEmitter for event handling with captureRejections, Buffer for binary data manipulation, and assert for testing utilities. The post also mentions the ongoing effort to standardize AsyncContext in JavaScript and the future potential for its integration.

Read the original post ↗