Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 4248f72

Browse files
authored
Bump workerd to 1.20231016.0 and prevent ProxyServer eviction (#717)
* Bump `workerd` and versions to `3.20231016.0` * Update `workerd` configuration schema and type definitions Also add an override for `capnpc-ts`'s TypeScript version to prevent issues re-generating types in the future. * Prevent `ProxyServer` Durable Object eviction cloudflare/workerd#1138 introduced Durable Object's eviction behaviour to `workerd`. We really don't want the `ProxyServer`'s singleton object to be evicted, as this would invalidate proxy stubs' heap addresses. This change makes sure the `preventEviction` flag is set.
1 parent 554add8 commit 4248f72

File tree

9 files changed

+256
-84
lines changed

9 files changed

+256
-84
lines changed

package-lock.json

Lines changed: 72 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@miniflare/root",
3-
"version": "3.20231010.0",
3+
"version": "3.20231016.0",
44
"private": true,
55
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
66
"keywords": [
@@ -60,5 +60,10 @@
6060
},
6161
"volta": {
6262
"node": "18.16.0"
63+
},
64+
"overrides": {
65+
"capnpc-ts": {
66+
"typescript": "4.2.4"
67+
}
6368
}
6469
}

packages/miniflare/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "miniflare",
3-
"version": "3.20231010.0",
3+
"version": "3.20231016.0",
44
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
55
"keywords": [
66
"cloudflare",
@@ -35,7 +35,7 @@
3535
"source-map-support": "0.5.21",
3636
"stoppable": "^1.1.0",
3737
"undici": "^5.22.1",
38-
"workerd": "1.20231010.0",
38+
"workerd": "1.20231016.0",
3939
"ws": "^8.11.0",
4040
"youch": "^3.2.2",
4141
"zod": "^3.20.6"

packages/miniflare/src/plugins/core/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,12 @@ export function getGlobalServices({
551551
{
552552
className: "ProxyServer",
553553
uniqueKey: `${SERVICE_ENTRY}-ProxyServer`,
554+
// `ProxyServer` relies on a singleton object containing of "heap"
555+
// mapping addresses to native references. If the singleton object
556+
// were evicted, addresses would be invalidated. Therefore, we
557+
// prevent eviction to ensure heap addresses stay valid for the
558+
// lifetime of the `workerd` process
559+
preventEviction: true,
554560
},
555561
],
556562
// `ProxyServer` doesn't make use of Durable Object storage

0 commit comments

Comments
 (0)