npm / workerd
workerd
What changed in workerd 1, from its official release notes, upgrade guides and advisories. Also covers @cloudflare/workers-types. Sources checked 2026-11-30.
83 breaking10 security6 deprecations239 new APIs and options9 performance136 behavior and defaults15 tooling296 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initworkerd 1794 changes
Breaking changes 83
Refuses CONNECT in new Request() by name.
The macro now requires
Tto satisfyHoldsNoGcReferences, affecting Rust JSG code that usesjsg_traced!.Cross-request awaits of promises that can no longer settle now fail.
Queued outgoing WebSocket messages now count toward isolate memory.
Header-based attachInspector was removed, changing how developers can attach an inspector.
D1 binding fields are now private, affecting direct access to those fields.
The untrusted inspector policy was removed.
The runtime limits non-hibernatable WebSocket connections per Durable Object.
Snapshots and restores are blocked in Durable Object facets.
Fetch statusText behavior now follows the Fetch spec.
Locked ReadableStream bodies are rejected.
Response.json() throws a TypeError for values that cannot be encoded.
Rust JSG replaces MaybeLocal with Option<Local>.
Rust JSG is made more like C++ JSG, which may affect how extension authors use the API.
Rust JSG constructors now require new.
The fetch cache option no longer overrides the origin's Cache-Control.
Later actor call retries are spread across the retry timeout.
Replaces @retryable with retryable().
Follows the spec's iterator protocol, changing how ReadableStream.from handles iteration.
Tunes re-entrancy and microtask resolution timing, which may affect runtime behavior.
SharedArrayBuffer views are rejected across byte-stream entry points.
The retry policy is now applied to JSRPC calls.
Write settlement behavior for identity TransformStreams was updated.
Default reads now take all queued bytes when auto-allocation is used.
Durable Object RPC calls are retried.
Errors a tee branch or detached byte stream when it closes with a fractional fill.
When respond() leaves a remainder, the head read settles first.
Durable Object RPC calls are claimed before dispatch, changing when a call is considered claimed.
Splits actor retry exhaustion outcomes and increases backoff.
Copying a file now replaces an existing destination.
Opening a missing path without O_CREAT now returns ENOENT.
Renaming now replaces an existing destination.
Retries are disabled for ineligible actor namespaces.
The isolate is now the port namespace for Node http and net servers.
WebAssembly memory.discard support is reverted.
The development flag now takes precedence over other Python flags.
Script creation fails when TS-streams is enabled while the per-isolate autogate is off.
Async context frames are retained across scopes.
The change preserving in-flight WebSocket auto-responses was reverted, so that preservation no longer applies.
Structured logs now name the warning level
warn.Removes the experimental streams adapters.
The monitor now always runs in the background after container.start().
The V8 version moves to 14.8, changing the runtime engine used by workerd.
Package import context is no longer included when the pth files compatibility flag is set.
Overloaded exceptions are reported with an internalError outcome.
The R2 admin binding is removed.
The experimental configureReadReplication API moves from ctx.storage to ctx.
Non-span tail events are attributed to the current user span.
Renames minBytes to minElements in ByobBuffer.
Removes the confusing zoneTag field from CachePurgeResult.
TCP socket connections are deferred until the Durable Object output gate clears.
__instance_signal and __instance_terminated are now fully independent.
Alarms that are deleted after too many retries are now abandoned.
SQLite memory is now metered on a per-DO basis.
The default auto allocate chunk size is increased.
Name checks are now case-insensitive and apply to virtual tables such as FTS5.
User errors in alarms are marked as counting against the retry limit.
The images binding switches to a chainable handle.
The input type for captions changed to ReadableStream.
The input type for watermarks changed to ReadableStream.
Requests are terminated on Rust panic.
The containers snapshot API implementation was reverted.
Uploading via File is no longer supported.
Limits are imposed on facet name length and nesting depth.
The fix for handling streaming responses in the Python ASGI adaptor was reverted.
The blob input stream autogate was removed, changing how blob input streams are handled.
Periodic log statements about calling deleteAll in a Durable Object with an alarm still set have been removed.
Calling abortAllDurableObjects() now deletes all alarms.
MediaTransformationResult methods now return Promises, changing how callers handle their results.
In containers, req.url in the worker now has an http:// format.
The readline Interface and Readline classes are now no-op stubs.
Dynamically generated shared libraries can no longer be loaded.
The email sending return type was updated, which may affect how callers type and handle the result.
Closing a socket now forcibly shuts down its AsyncIoStream.
Throws the appropriate error for non-BYOB stream mode.
ArrayBuffer construction using a shared backing store now throws.
The timed-out log from actors was removed, changing the runtime logs developers may observe.
The STW compat flag is obsolete.
Compatibility dates are required to fall on Tuesday, Wednesday, or Thursday.
Removed defaultOnDate for streamsNodejsV24Compat, changing how its compatibility date is set by default.
The autogate was removed.
Python Workers normalize paths before loading dynamic libraries and fail loading when the table base does not match.
Renames PythonRuntimeError to PythonInternalError, so code referring to the old name may need updating.
Security 10
A legacy callee's stack is no longer leaked to an enhanced caller.
The fix for vuln-187 was re-landed.
Protects against shenanigans in the size callback.
Cap'n Proto was updated with HTTP CVE fixes.
Enforces the byte limit for WebSocket close reasons.
The runtime no longer reserves capacity based on an untrusted array length.
The maxOutputLength input is now validated.
Fixes memory corruption caused by incorrect signal clearing.
Fixes a use-after-free when destroying an AsyncIoStream backing an EncodedAsyncInputStream.
Bad or invalid chunks are handled more defensively as input.
Deprecations 6
workflows_bindings_rpc is now obsolete.
ClearWeak is deprecated; use ClearWeak<void> instead.
disableReplicas is deprecated.
ensureReplicas is deprecated.
The primary field is deprecated in favor of primaryStub.
Create primaryStub as the replacement for the deprecated primary field.
New APIs and options 239
Adds support for span links.
The Blob constructor now supports the endings option.
CompressionStream now supports the brotli format.
DecompressionStream now supports the brotli format.
The File constructor now supports the endings option.
Adds built-in D1 databases.
Adds static assets support in standalone workerd.
Adds WebSocket.bufferedAmount.
Type definitions add methods for the Browser Run script binding.
Workflows are available in standalone workerd and in a cluster.
Add canBeForwarded to ForwardableEmailMessage types.
Implement KeyObject.toCryptoKey.
Add mock.property to node:test.
Implement path.matchesGlob.
A TypeScript URLPattern implementation is added.
Add util.diff to node:util.
Adds the Assert class to node:assert.
Adds support for Google Cloud Storage buckets in cluster mode.
Implements http.setMaxIdleHTTPParsers.
Adds Queues support in standalone workerd and in a cluster.
Adds util.convertProcessSignalToExitCode.
Implements util.getSystemErrorName.
Adds util.setTraceSigInt.
Implements util.transferableAbortController.
Implements util.transferableAbortSignal.
Cron triggers are available in standalone workerd and in a cluster.
Built-in KV namespaces are added.
Adds a per-isolate bootstrap hook for embedders.
Adds rest parameter support through jsg::Arguments<T> in Rust JSG.
Adds the #[jsg_async_dispose] attribute to Rust JSG.
Adds the #[jsg_callable] attribute to Rust JSG.
Adds the #[jsg_dispose] attribute to Rust JSG.
Adds JSON parsing and stringifying support to Rust JSG.
Adds tracing.withActiveSpan() for working with an active tracing span.
Adds the workerd deploy command and serves deployments from the cluster bucket.
RateLimitOptions now includes an optional delta field.
The Rust io-context crate adds abort.
The Rust io-context crate adds await_io().
The Rust io-context crate adds await_io_value().
The Rust io-context crate adds fail-open support.
Adds getSqliteProcessMemoryUsed() to sqlite-metering.
Adds jsg::Cell for traced fields.
Adds jsg::RefCell for traced fields.
The Rust io-context crate adds waitUntil.
RPC tracers can now supply the timestamp used for a span update.
Adds Durable Object facets in cluster.
Adds interop between Rust JSG and C++ JSG resources.
Adds Durable Object alarms to cluster.
Exports from wrangler.json are now supported.
WebCrypto adds ChaCha20-Poly1305 support.
WebCrypto adds MLKEM768-X25519 support.
Rust JSG adds NullOrUndefined<T> as a clearer alternative to Option<Nullable<T>>.
Adds the python_zstd_snapshot compatibility flag.
WebCrypto adds SHA-3 digest support.
workerd processes can be clustered over a shared bucket.
wrangler.json and wrangler.jsonc are accepted as configuration files.
Durable Objects can dispatch onHibernate.
Adds the offpeak_location_hint compatibility flag for Durable Objects.
Rust JSG can create JavaScript functions from Rust closures.
Rust JSG methods can take this: jsg::Rc<Self> parameters.
Rust JSG can convert JavaScript BigInts and Dates.
Rust JSG supports lazy instance properties.
Rust JSG resources can have fallible constructors.
Rust JSG resources can define nested types.
Event listeners support the passive option.
Rust JSG resources can be registered programmatically.
The connect handler gains startTls support.
Adds the experimental onEvict symbol.
Adds the durable_object_snapshots compatibility flag.
The retry policy can be set per Durable Object stub.
Implements the Hyperdrive JavaScript binding.
Container start options gain a basic instance type setting.
Added Kitesurf as a backend in Browser Run types.
Adds a compat flag for runtime-compiled Wasm.
Adds a fetch_setup span with child spans for in-isolate fetch setup.
Introduces spanContext.
Generic Flagship binding types are now available.
RPC types now support ReadonlyMap.
Adds a request size hint to tailStreamSession, which may affect how developers use the API.
Adds into_kj for Rust interfaces.
Adds notSupported for Rust interfaces.
Adds PromisedInterface for Rust interfaces.
Durable Object snapshot APIs are exposed for developers to use.
Adds ctx.cache.invalidate() for invalidating cache entries.
A batch overload was added to Workflows create.
An explicit onset parent span can now be accepted.
Adds the @retryable Durable Object decorator.
WebCrypto now supports ML-DSA.
WebCrypto now supports ML-KEM.
Durable Object retries can now be configured.
Runtime support is added for running Workflows in the same worker.
Span status and renaming are enabled.
Introduces env.AI.websearch to WorkerD.
Adds RPC support for the inbound UDP connect() event.
Adds types for Analytics SQL bindings.
Adds an inbound UDP handler.
Exposes the count of hibernatable WebSockets.
Containers can be configured without imageName.
Supports web streams in stream.compose().
Supports web streams in stream.pipeline().
TCP connect() handlers can access the client IP address and port through remoteAddress.
Adds connectHandler to cloudflare:node.
Adds net.Server support for developers using Node.js networking APIs.
Public type definitions for workflows event subscriptions were added.
Adds net.BoundSocket to the node:net API.
Exposes configured container images to Durable Objects.
Adds tracing getActiveSpan.
Workflows add experimental subscribe support.
Adds span.recordException.
Support was added for tryReadSync.
Support was added for tryWriteSync.
Implements FileSystemWritableFileStream in TypeScript, making the API available to developers.
Missing Workers AI model types were added.
Implement the TypeScript DigestStream API.
Add ioContext.createObject.
jsrpc now supports serialization and deserialization for TS web streams.
The dynamic worker loader now accepts WebAssembly.Module values, allowing them to be used when loading dynamic workers.
Calling ctx.abort() can disable alarm retries.
Accessibility tree types are available for Browser runs.
The Images binding adds createDirectUpload.
Access to the current process's debug port is added.
Images gains text rasterization.
The Images binding adds metadata filtering.
The Images binding adds signedUrl.
Workflow instance location hints are exposed.
The Images binding's .response() now allows setting headers.
Adds the wasm_memory_discard compatibility flag.
Adds SpanContext::toTraceparent() for converting a SpanContext to a traceparent.
Implemented import.meta.dirname in NMR, making the current module's directory available to developers.
Implemented import.meta.filename in NMR, making the current module's filename available to developers.
Adds types for the composite feature.
Adds an AgentMemoryNamespace types scaffold.
Adds BrowserRun types for developers using workerd.
Workflows add an option for sensitive step output.
WorkflowEvent gains a schedule field.
WorkflowEvent gains a workflowName field.
Adds a model type for Kimi K2.6.
Adds types for Web Search bindings.
EmailAddress objects are now accepted in to, cc, and bcc.
ArtifactsError type definitions are added.
The SpanContext type definition now includes traceFlags.
Workflows add options to restart from a step.
SpanContext gains optional traceFlags to propagate upstream sampling information.
The cloudflare:workers module implements abortIsolate().
A container inspect API can read labels.
Workflow step promises gain a rollback API.
workerd now supports the primary-only routing mode.
Adds an API for creating custom spans.
Adds configureReadReplication.
Adds deleteAllDurableObjects() to workerd:unsafe.
Custom limits are now available for dynamic workers, allowing developers to set limits for them.
Adds Node.js constants for developers to use.
The AI Gateway binding now supports AbortSignal.
WebSocket wrappers must implement connect() to support Workers TCP ingress.
Local development can set dns-servers to make /etc/resolv.conf predictable across platforms.
A binding for flag evaluation is added.
Adds a way to intercept TCP connections from containers.
Containers implement exec(), allowing developers to execute commands in containers.
The AI binding supports AbortSignal.
An API is added for full container snapshots.
Implemented fs/promises.glob.
Implemented fs.glob.
Implemented fs.globSync.
Adds a metrics() method to Queue bindings.
Includes metrics metadata in the message batch received by a queue() handler.
Adds scheduledTime to AlarmInvocationInfo so alarm handlers can access the scheduled time.
Adds a response body to the result of Queue binding send().
Adds a response body to the result of Queue binding sendBatch().
Adds AlarmOutcome for AlarmResult, allowing developers to use the new alarm outcome type.
Adds exceptionDescription to AlarmResult.
Adds a compatibility flag for AutoRAG, Gateway, and ToMarkdown RPC.
Implements the connect() handler.
Implements the containers snapshot API.
Adds more cache knobs under the request.cf object.
Adds experimental support for interceptOutboundHttps in containers, allowing developers to configure outbound HTTPS interception.
Container start options now support custom labels.
Can be specified with hostname globs for container outbound HTTP interception.
Adds WORKER_LOADER.load() for one-off workers.
Workers can access ctx.version when the enable_version_api compatibility flag is enabled.
Adds a Props generic to ExportedHandler for ExecutionContext.
Adds a compatibility flag for preserving non-retryable error messages in workflows.
A flag was added to route AI Gateway methods via RPC.
Adds a CSS Selector option.
Adds WorkflowStepContext to the step.do callback.
The Hyperdrive binding adds a MySQL port.
Adds version and cohort options to Durable Objects.
Adds support for Cloudflare Images operations in the images binding.
Loopback service stubs accept a dynamic version (cohort) parameter.
The Python ASGI module now has a logger.
WebSockets gain a binaryType property.
Adds signal handling for non-Python WASM modules.
Adds Performance.toJSON().
Exports waitUntil to the Python SDK, making it available to Python SDK users.
Adds AI Search RPC types.
Adds setEgressHttp for containers, enabling configuration of their HTTP egress.
ZSTD bindings were added to node:zlib, enabling use of Zstandard compression APIs.
A compatibility flag makes deleteAll delete alarms as well as data.
Added the containers_pid_namespace compatibility flag.
Markdown Conversion adds a hostname option.
The ConversionResponse object now exposes the conversion ID.
Enables detailed queue binding errors when the compatibility flag is set.
Adds the WorkflowsInstanceStatus type.
Adds the AI Search RPC.
The Request constructor types now allow a Request as the second parameter.
Adds support for step context from the Python Workflows SDK.
The D1 TypeScript meta type now includes served_by_colo.
Adds Email MessageBuilder types for developers working with email.
allowUnconfirmed is implemented for explicit transactions.
Rust now supports enum parameters.
Implemented setInactivityTimeout in ContainerClient.
JSG Rust now supports non-result return values, allowing Rust functions to return values without wrapping them in a Result.
Python source code can now import the Python compat flag.
Adds reportInternalException to RequestObserver.
Adds the @all-compat-flags variant to wd_test.
Adds a --compat-date flag to wd_test.
Node.js-style global timers can be enabled with a compatibility flag.
Adds the rpc_params_dup_stubs compatibility flag.
Adds the routingMode option to GetDurableObjectOptions.
Service bindings can now be sent over RPC.
The Python Workers SDK adds patch_env, allowing developers to patch the environment.
The meta information now includes served_by_colo.
Adds
from workers import envto access the top-level environment.Adds a binding for dynamic worker access.
Adds a command to create a test stub.
Adds an interface for dynamic RPC entrypoint access.
The name can be omitted when creating dynamic workers.
Python's Response constructor now accepts bytes.
A compat flag enables precise timers with 3ms granularity.
Workers AI Types now support OpenAI's Responses API.
The cloudflare module gains importable exports, allowing developers to import them.
Adds the email method to WorkerEntrypoint types.
A compatibility flag was added to mark jsg::Object prototypes immutable.
Adds hard timeout support to container startup, allowing developers to configure a startup timeout.
Adds support for WASM modules in worker-loader.
Adds the tailStream method to rpc.d.ts.
Snake case signatures were added for workflow binding methods.
Instrumentation adds D1 spans, making its operations observable through tracing.
AutoRAG binding search methods gain reranking controls.
Adds cache: reload as an experimental option.
Performance 9
JavaScript compilation is centralized and builtin modules are cached.
This release includes a fourth round of TS-streams performance improvements.
CryptoKey.algorithm and CryptoKey.usages return cached objects.
Bundle ES modules now consume V8 compile hints.
Improves snapshot restore performance and semantics.
TextDecoder was optimized for legacy encodings.
Text encoder encode performance is improved.
Fetch memory usage was adjusted, which may reduce memory use when developers use fetch.
TextEncoder.encodeInto has performance improvements.
Behavior and default changes 136
Compile caches are now generated for TypeScript bundles by default.
Durable Object snapshot restores now include kvData.
Compile hints are consumed in the new module registry.
Classes implemented in JavaScript can now be serialized.
Service binding queue() promises are disposable, allowing developers to dispose of them.
Service binding scheduled() promises are disposable, allowing developers to dispose of them.
Connections in connect_allowed try IPv4 first and race connection attempts.
The new module registry will be enabled by default from 2026-11-17.
A stopping cluster node hands its Durable Objects to its peers.
Incoming Request.signal will be enabled by default starting 2026-11-17.
onHibernate handlers can now call ctx.restore().
onHibernate handlers are reported as their own trace event, including in the local server.
The Durable Object retry option is made public.
An onHibernate handler's onset is reported to tail workers.
onHibernate handlers run in the local server.
The python_shared_standard_library compatibility flag is enabled by default.
GC time and full GC count are now reported for every isolate lock.
Callers can learn when the handler finishes.
Actions on idle actors are deferred instead of aborted.
The VDBE operation limit is increased from 25,000 to 250,000.
Temporal uses the same time as Date.now() when the compatibility flag is enabled.
The enableInternet parameter is optional when calling container.start().
ctx.mapVirtualHost() is ungated and available for use.
ScriptVersion.id is optional in the types.
AWS JSON MIME types are now classified as text.
Rust JSG Local handles are Copy, so they can be copied rather than moved.
The timeout is now armed after receiving headers, changing when HTTP completion timeouts begin.
Rust JSG instance properties are now native data properties.
The embedder can keep V8 code caches for worker code.
Compact import section encoding is enabled for WebAssembly.
Actor RPC exceptions are held behind the actor's output gate.
Pull is deferred to a batch's last chunk on the auto-allocate path.
Pyodide's compiled Wasm module is kept alive across isolates.
Stream constructors' argument conversion behavior is pinned.
SRS groups queries by a top-level queryId.
D1 now supports direct JSRPC responses and structured errors.
Diagnostics were added for temporary actor retries.
Reverts the compat date update for durable_object_io_tasks_prevent_eviction.
A native stream is closed at the handoff of its data.
The pipe observes its AbortSignal through an abort algorithm.
The SQLite row limit is increased to 8 MiB.
Transfers byte-stream buffers to fixed length.
Accepts null as the source in MessageEventInit.
Forwards REST caller context to downstream AI Gateway.
Body bytes are copied out as they arrive, and the source is canceled when consumption completes.
The compression stage buffers output in blocks and releases those blocks as they are produced.
The options argument to snapshotContainer is now optional.
Drops what a queued stream enqueues once every consumer is collected.
Containers are cleaned up on graceful shutdown.
The container client now supports cloudflare/debian-trixie.
The experimental tag was removed from auto_grpc_convert, so it is no longer marked experimental.
Retry metrics are published only when a retry happens, with more granular outcomes.
The authorizer is called in default column expressions.
pythonWorkers314 switches from compatEnableDate to impliedByAfterDate.
Actor fetch requests now use a retry loop.
The experimental flag requirement was removed from container.inspect().
Flags are now automatically injected for Python entrypoints, reducing the need to configure them manually.
The snapshotDirectory API is now behind an experimental flag.
Routes zlib consumers through an autogated router and adds zlib-rs as an autogated backend.
An already-on-by-date compat flag produces a warning instead of a failure.
The SQLite row limit increases to 4 MiB, allowing larger rows.
The experimental flag was removed for container start image and instance.
importKeySync is now static.
The experimental annotation was removed from the new module registry.
Adds NMR fallback lookup during fallback resolution.
Snapshot restore only requires a snapshot ID.
ctx.abort() for stateless workers is no longer experimental.
Image draws now support all supported transforms.
wd_tests runs in predictable mode by default.
A compat-enable-date is added for process-pth-files.
Keeps a container sidecar warm across destroy/start, preserving it through that lifecycle.
Processes .pth files in python_modules.
The gate on request.cf is removed.
Propagates worker user span context.
Improves Node.js compatibility for fs.
Improves Node.js compatibility for navigator.
Queues metrics APIs are no longer behind an experimental gate, so developers can use them without enabling that gate.
Debug port RPC errors are tunneled to callers, making those errors available to them.
The sqlite3_hard_heap_limit64 limit is increased to 8 GiB behind an autogate.
The increase to the default auto allocate chunk size was reverted.
W3C traceparent is parsed into SpanContext.
Durable Object facets are no longer marked experimental.
Limits symlink depth in the VFS.
HTTPS support in containers is no longer experimental.
The experimental gate was removed from the snapshots API, so it is no longer gated as experimental.
Invalid use of the _cf_ table prefix is logged.
Enhanced error serialization graduated.
python_external_sdk is no longer experimental and has an enable date.
Error messages now include extended error codes.
The Durable Object id.jurisdiction property is no longer experimental.
new Function() is allowed with an undefined source when eval is blocked.
Tail workers receive attributes from the caller.
Script startup exceptions for dynamic workers are no longer logged.
The RSA_R_INTERNAL_ERROR is now handled as a user-facing error.
Container ingress now goes through the egress/ingress sidecar, which is always run.
A server WebSocket now fires a close event when it closes; allowHalfOpen opts out.
HTTP GET interception for containers is no longer experimental.
Increases the WebSocket attachment size limit from 2KB to 16KB.
A compatibility date was added for containers_pid_namespace.
Adds a compatibility enable date for the queue_expose_error_codes flag.
A default date is set for the perf_hooks, v8, tty, child_process, worker_threads, readline, repl, and performance classes modules.
Global Performance classes are enabled when the perf_hooks module is enabled.
Makes setResourceTimingBufferSize() a no-op.
The compat date is split into a release version and a maximum compat date.
Startup exceptions for dynamic workers are now thrown as JSG exceptions.
Container outbound HTTP interception no longer requires workerd-network; the change also fixes macOS bugs and simplifies the implementation.
The second and third parameters are now optional.
node:worker_threads no longer depends on the expose_global_message_channel flag.
TextDecoder now supports the x-user-defined encoding.
Logs periodically when deleteAll is called while an alarm is still set, making this condition visible in runtime logs.
A compatibility-enabled date was added for fetchIterableTypeSupport, allowing its availability to be tied to the compatibility date.
After 2026-02-10,
nodejs_compatimpliesenableNodejsGlobalTimers.Exception handling is enabled on Windows.
Tail stream events are dropped when the queue reaches an excessive size.
Queue error messages now include the error code and cause, helping developers diagnose failures.
Modules created with import_from_js are now serializable.
The close algorithm now always runs asynchronously.
Fixes the default behavior of the fatal option.
enable_email_sending_queueing is no longer experimental.
FormData can now be passed as input to AI bindings.
Late alarms are printed only when the time discrepancy is large.
env is now enumerable, changing how developers can discover and inspect it.
exports is now enumerable, changing how developers can discover and inspect it.
A default date was set for punycode, trace_events, cluster, wasi, and dom…
env/exports now support nullable values.
Response and Request now support sync and async iterables.
When snapshotting fails, logs the constructor name of the value.
User tracing tags are added to internal tracing.
Startup exceptions are now included in traces.
ctx.exports is enabled by default at compatibility date 2025-11-17.
Adds a Python error hint when importing from src, helping developers understand the import error.
Adds attributes to synchronous KV operations.
The error for an invalid deferDestruction queue state was upgraded.
The maximum WebSocket message size limit is now 32 MiB.
The containers setInactivityTimeout method is no longer experimental.
Fetch response headers now include the cf-ray ID.
Tooling 15
TypeScript definitions add DOMException.
The benchmark now includes coldstart metrics.
Adds TypeScript types for Browser Run binding methods.
Adds Workers types for cf.originRangeRequests.
macOS host tools are built against macOS 13.5 rather than 10.11.
Adds TypeScript definitions for the Artifacts binding.
Type definitions are updated for a new AI Search binding.
worker-loader.c++ suggests @cloudflare/worker-loader when loading .ts, .tsx, or .jsx modules.
Supports ctx.id.name in local development for Durable Objects.
Experimental container types are hidden in type generation when experimental types are not enabled.
Type definitions were added for Stream Workers bindings.
System tracing is added for Durable Object SQL queries.
Jaeger tracing is added for the waitForBookmark storage API.
Type support now allows cmd-click navigation into RPC props.
Instrumentation adds spans for the Images Binding, making its operations observable through tracing.
Fixes and other changes 296
Importing an Ed25519 key now accepts the JWK alg value Ed25519.
Relative symlink targets are kept as written.
A paused socket is no longer started for reading when it closes.
One-shot APIs now include Node's error codes.
Unhandled rejections no longer go silent after a handler rejects a promise.
WebSocket handling of http(s) URLs, url, and extensions now follows the WebSocket specification.
Delayed channel tokens continue working after the sender's request ends.
DigestStream is kept alive while its sink runs.
A dynamic import no longer evaluates a module that is already evaluating.
Nested dynamic import links are retried after evaluation.
Reports CPU limits hit in a microtask at startup and during dynamic import.
A JS RPC call fails if its argument's delayed channel token is refused.
Fallback redirects in the legacy module registry are now bounded.
A conditional bucket write refused on a retry is reported as having an unknown outcome.
A cron occurrence will not run twice when the clock is behind.
A TypeScript WritableStream flush resolves only after output locks are available.
Implement the node:console Console constructor.
GCM Decipheriv now allows setAuthTag() after update().
Fix diffieHellman when used with an imported public key.
The runtime now answers Runtime.getHeapUsage.
A SQLite CTE regression in 3.54.1 was backed out.
Checks for unreasonable external memory updates earlier.
Context cancellation is handled better.
Cluster Durable Objects that move are re-resolved.
Read and write failures report Node's errno codes.
A Rust method's returned promise rejects with the value the method throws.
Fixes encodeInto() stopping short when ENABLE_FAST_TEXTENCODER is enabled.
Zstd frames continue flushing when the frame end does not fit in the output.
The reported process.version is updated to v22.23.4.
The endpoints of a native TypeScript streams pipe can now be released.
Adds streamDiagEvent to TailStream.TailEventHandlerObject types.
formData() no longer corrupts binary parts when used with TypeScript streams.
require() redirects node:process correctly on the legacy registry.
A patched then is kept out of TypeScript body consumption.
TypeScript streams now honor a default source's expectedLength.
A queued TypeScript stream is canceled when its pump is dropped.
String chunks are encoded as UTF-8 when pumping TypeScript streams.
Fixes handling of the reader held by ReadableStream async iterators.
Fixes handling of a pending chunk when writing to a transform stream.
Makes workerd match native WebAssembly.Instance behavior.
Rust JSG coercions keep what JavaScript throws.
JavaScript exceptions propagate through Rust JSG function calls.
Rust JSG downcasts use TryFrom instead of panicking From conversions.
DNS answers are filtered to the record type that was queried.
Connection failures are reported using Node's errno codes.
TailStream.Onset.attributes is optional in the types.
Compressed server-sent events are flushed after writes.
Accepts null IV and wrapped KeyObject.
Under pedantic_wpt, statusText is validated as a reason phrase.
Local WebSocket disconnects are reported as stream disconnects.
The type and identity of a fractional fill's error are checked.
Rust JSG handles are tied to their handle scope and isolate.
Answers to reads from cancel or close are pinned against a reentrant release.
Fixes lifetime issues involving Streams, EventSource and compression.
A byte source's expectedLength is treated as an exact total.
A transient marker is added for Durable Object call failures.
A queued ReadableStream's source is released once its algorithms clear.
Stream constructors now read source, sink, and transformer members according to pinned behavior.
Exceptions in actors are reported for the right request.
EOF bookkeeping now accounts for pumped bytes in RPC streams.
Fixes the behavior of new Function("").
Stream pipeTo() now propagates errors backward.
Failed server startup readiness is rejected with actionable diagnostics.
Fixes a streams cancellation regression.
Alarm delivery now observes the stored alarm deadline before proceeding.
A TypeScript compression write or close that is cut short by a cancel is settled.
Reads a TypeScript streams strategy's highWaterMark once.
An undefined TypeScript identity stream chunk is treated as a no-op write.
Prevents string chunks from being truncated at NUL.
Releases the pipeline when RPC promises are rejected.
Prevents a parked move-later alarm from desynchronizing the scheduled alarm.
Returns IteratorResult<T, undefined> in the SqlStorageCursor.next type.
Starts a native source pull or sink write before marking it in flight.
TypeScript TextDecoderStream accepts a bare SharedArrayBuffer chunk.
Closes a detached TypeScript native writable and rejects its pending writes.
Clamps the TypeScript readable queue total at dequeue, matching the spec.
Handles multiple algorithm clearance and re-entrancy issues.
Fixes re-entrancy bugs when a tee branch closes.
Uses precise UTF-8 length sizing.
Fixes Node global declarations in workers types.
Fixes the file so it can be used downstream.
Flagship evaluation context is now typed as a structured context.
Python workers now have more spans and tags, adding observability detail.
RPC types now support ReadonlySet.
The TypeScript ReadableStream async iterator is aligned with WebIDL.
Restored the C++ exception boundary in console decorators.
Fixed reportQueryEvent so it covers prepared statements.
Fixes spurious unhandled rejections from Durable Object fetch retries.
Exceptions thrown in the TCP connect handler are now handled.
Detached and out-of-bounds DataView chunks are now read as empty.
The transformer is released when a TransformStream finishes.
A TransformStream cancellation now settles based on the writable's state.
Workers AI model reasoning types were updated.
Calling tee() on a closed or errored native stream locks the stream.
A writable chunk's size is validated only when the chunk is enqueued.
The source is released when validation fails after locking.
Chunks are queued before reads are filled with released bytes.
A held byobRequest continues to work across tee().
Pins async iterator interleavings that follow WebIDL.
Allows tee() of a native body when a read has been abandoned in flight.
Preserves VFS exceptions during SQLite open.
Adds undefined to the return types of tailStream.
Native BYOB reads with multi-byte views deliver whole elements.
The settlement of closed is pinned relative to the below-min tail read.
Stream cancellation now propagates properly through JavaScript RPC.
read(view) returns an empty view when the byte stream is cancelled.
Errors both halves of a transform pair from the Node.js interop hook.
Fixes a crash involving stack switching and garbage collection in Python.
A parked TransformStream write is transformed after one backpressure wait.
Fixes container startup flags after cancellation.
Identity stream aborts no longer wait for a read.
Native pipes no longer consume a destination that has pending writes.
Fixes several TypeScript streams BYOB and tee issues.
Fixes handling of backpressure while a pipe is draining.
Buffer read and write operations now validate offset and length bounds correctly.
node:fs open now honors O_TRUNC.
Destroys the readable when it encounters a chunk it cannot push.
Memory snapshots are fixed for Python 3.14.
Calling close() while a pipe close is in flight no longer logs an uncaught exception.
The error message is improved when top-level randomness is used in Python workers.
Fixes the resolve/state change order for identity transform streams.
Patches workers.wait_until as well as ctx.waitUntil.
Multiple TypeScript streams defects and clarifications were addressed, improving stream behavior for developers using these APIs.
Preserves predecessor rejection delivery state.
Fixes an internal validator error when getters throw.
Replica actor fetches are retried.
Fixed dynamic library loading into the base snapshot for Pyodide 3.14.x.
Hibernated WebSockets now handle code updates gracefully.
WebSocket writes are serialized across hibernation.
Catches leaked SQLite handles when initialization fails.
Fixes a use-after-free affecting EventSource.
Internal stream pumps are canceled before their source is released, preventing the source from being released while a pump uses it.
Hibernatable WebSockets are retained during active pumps, preventing them from being lost while a pump is running.
The negative text input check now allows streamable data.
Fix node:fs cp to handle symlinks when copying into subdirectories.
In-flight WebSocket auto-responses are preserved.
Using alarms in facets now produces a corrected error message.
The error message for the workers-py version requirement is corrected.
Error messages on types avoid Js* names, making type diagnostics clearer.
Fixes a segfault in JSG unwrap functions.
Fixes two bugs affecting persistent stubs.
Fixes types for chat-completions models.
D1 tracing spans now include served_by_colo, giving developers another field to inspect in traces.
Fixes channel numbering for dynamic workers.
Fixes a potential worker-loader crash when using JSON modules.
Adds an autogate to call abortIsolate when a fatal Python error occurs.
Reverts the requestTermination change, restoring its previous behavior.
The connect handler Socket now populates localAddress.
Fixes a use-after-free involving captured this, improving runtime correctness.
Improves reporting of finishScheduled() outcomes.
Improves errors for fetch at top level when using a dedicated snapshot.
A special path is added for user generated spans.
Fix serialization of onset.info in jsrpc.
Defines captureRejections properly.
Makes channel.hasSubscribers a getter property, matching expected diagnostics_channel behavior.
Improves ctx.cache ergonomics, making the API easier for developers to use.
Fixes serialization of functions from import_js_module.
Fixes handling for X.509 certificates that use EC algorithms.
Adds more information to the Workflow step context types.
Improves Node.js compatibility for events.
Improves Node.js compatibility for http.
Improves Node.js compatibility for process.
AI Search binding types now match the implementation, improving the accuracy of type information for developers.
Event outcome handling was improved.
Prevents an unbounded alarm-scheduling promise chain.
Body extraction copies BufferSource data, aligning behavior with the Fetch spec.
The explicit unknown type parameter was removed from MessageBatch.
Fixes experimental queue metrics hanging when body size is missing.
Blob handling with resizable ArrayBuffers is fixed.
Reclassifies this error as a JSG TypeError.
Addresses issues with module registry fallback.
Improves handling of resizable ArrayBuffer in responses and requests.
Buffered tail traces include preview metadata.
Dynamic workers no longer throw when a dedicated snapshot is missing.
Catches broken input gates inside a broken output gate in alarms.
Fixes cloudflare.ray_id being set incorrectly for subrequests.
Fixes a segfault in the container client.
Fixes bind failures on WSL by falling back to loopback.
Calling abortAllDurableObjects no longer deletes all alarms.
Pyodide code was changed to ensure all fatals are reported.
Can intercept all hostname globs.
Adds further support for DO cohorts.
The runtime now handles the RSA_R_KEY_SIZE_TOO_SMALL error.
Parsing invalid input no longer throws an internal error.
Prevents double decompression by disabling fetch auto-decode in node:http.
Using .text() with image/svg+xml no longer produces a warning.
Fixes zlib throwing a memory limit exceeded error.
The adaptor now handles streaming responses correctly.
AI Search filter types now reuse Vectorize types.
Sets function length correctly for spec compliance.
Fixes getter and setter names for compliance.
Upserting WorkerEntrypoints during egress interception now works with reused HTTP connections.
Fixes copying into a subdirectory with node:fs cp.
Correctly handles string maximum length.
Correctly handles SharedArrayBuffer values with structuredClone.
Fixes ucs2 alignment issues.
Handles unpaired surrogates in WebSocket close reasons.
Only internal exceptions are logged when accepting a WebSocket.
Fixes an AI Search method that was not callable.
Encoding behavior is more compliant with the web specification.
Fixes D1 exec throwing a TypeError for invalid SQL queries.
Pending microtasks are flushed when a service worker starts.
Async destruction is cancelled when a new ContainerClient takes over, and container sidecar proxies can be recovered.
Fixes were made for Resizable ArrayBuffer.
Improves spec compliance for WritableStreamDefaultWriterRelease.
Cancellation behavior now follows the WPT spec.
BYOB request handling after stream close is fixed for spec compliance.
Finish operations are coordinated per spec.
Edge cases with buffer transcode are fixed.
Fixed three bugs in DNS lookup and resolver behavior.
Streaming TextDecoder now ignores empty chunks.
Uses the native path format to fix SQLITE_CANTOPEN on Windows.
WebSocket close now throws the appropriate error.
Node.js perf_hooks compatibility was improved, making the package behave more like its Node.js counterpart.
HTTP connections are reused to prevent port exhaustion.
Avoids emitting unhandled rejections on DecompressionStream.
Fixes unhandledRejection misfires.
Keeps the debug port connection alive during WebSocket passthrough.
Lock handling in cross-request promise handling logic was fixed.
Uncaught exception handling is reset after startup execution.
The FormData Content-Type warning has been restored.
Fixes cleanup of setTimeout when scheduler.wait is aborted.
ReadStream and WriteStream constructors no longer throw.
Node inspect now handles proxies.
Uses raw timer time for scheduling to prevent stale clock clamping.
Fixes incorrect legacy multi-byte encodings in TextDecoder.
Handling of transferred or resized ArrayBuffers was fixed.
Inconsistencies in setTimeout behavior were fixed.
Encoding label names were fixed, improving TextDecoder encoding selection.
TextDecoder handling of windows-1252, latin1, and ascii was fixed.
Exceptions inside the HTMLRewriter parser are no longer propagated.
Fixes node:v8 cachedDataVersionTag so it is a function.
Fixes how Python Workers treats duplicate headers.
Restores running an alarm without syncing the alarm manager in the specified current-time case.
A macOS segfault is described and fixed.
Fixed connection handling when calling Socket.close().
FormData append() gains string | Blob overloads.
require() returns mutable exports for Node.js compatibility.
FormData set() gains string | Blob overloads.
The WebSocket constructor now allows an empty protocols array.
Reverts the change that skipped syncing the alarm manager when currentTime was past local time.
Fixes a bug in cache TTL validation.
Reverts the change that avoided warnings for External Allocated Memory.
Checks whether the socket is closed at the start of startTls.
Fixed the length calculation for buffer.transcode.
The cancellation message for waitUntil was improved, making cancellation easier to identify.
Restores the block when a tail stream capability is dropped.
Fixes Python Workers when the node compatibility flag is enabled.
Fixes encoding behavior to match Node.js.
Fixed abort handling for stream pipe state.
Fixed span reporting when an actor aborts while waitUntil tasks are pending.
Duplicate alarms no longer cause the worker tracer to be marked unused.
Handles objects when calculating the byte length.
Returns null for desiredSize when the stream is erroring.
Calls strategy.size with the correct this value.
Fixes construction of WritableStream when a type is defined.
Throws the appropriate signal.reason when the stream is empty.
Fixes the backpressure condition check for streams.
Fixes surrogate pair handling across chunks.
Developers no longer need to override setImmediate or clearImmediate.
Fixes the promises export for inspector.
Fixes the promises export for readline.
Ensures the native dgram node API does not introduce a breaking change.
Body.json() now handles BOMs.
Body.text() now handles BOMs.
The JSRPC Return event now fires when the handler returns.
Fetch iterable type support was refined to handle edge cases.
TextDecoder now handles invalid UTF-16 surrogates.
Body iterable handling now accounts for boxed strings.
User tracing of Durable Object SQL queries is fixed.
Fixes assert.throws when used with the Error constructor.
Accepts SharedArrayBuffer as input.
An empty list of converted files no longer throws an error.
Fixes an unfulfilled promise error when a CustomEvent is destroyed early.
Fixes structuredClone() when enhanced_error_serialization is enabled.
Encoding behavior was fixed for web-platform tests.
The implementation avoids unnecessary throws, changing when code using node:vm encounters exceptions.
Fixes the implementation of importable exports.
Python Response now handles ArrayBufferView type parameters.
process.report.getReport no longer throws.
A move-later alarm is no longer scheduled if an interleaving commit calls setAlarm().
Corrects the types for Workflows InstanceStatus.
Instrumentation spans for cache were improved.
Python workers now handle CPU limit exceeded.
Fixed websockets in Python Workers.
Fixes a missing error message for jsg.Error.
Fixes a breaking change involving writable streams in v24.
Alarm updates are serialized with a promise chain to prevent races.
Fixes UaM in node/process.c++; the notes do not specify the runtime effect.
Fixes the error.type tag being set twice.
Fixes Node.js compatibility problems with trace_events.
Tracing uses unique tags for each checksum type instead of overwriting shared tags.
Adding an entropy source to newInternalHttpClient makes WebSockets work.
Fixes path confusion when preloading dynamic libraries in Python snapshots.
Fixed search attributes for the Node.js HTTP client.
Fixes Cluster.setupMaster() to call the setupMaster() function.