Brendan Irvine-Broque
Brendan Irvine-Broque
Closing in favor of https://github.com/cloudflare/cloudflare-docs/pull/5752
@dgraham — we're going to address this, just a matter of timing. Should know more specifics soon.
Looking at supporting `cache: 'default'` and `cache: 'no-store'` as options here as shortest path. Know this is painful right now and working towards something we can do ASAP. Unfortunately not...
@dcrodman — looks like this issue is specific to the legacy service worker syntax. I can reproduce it, but only when using the `addEventListener` syntax. ``` javascript addEventListener('fetch', (event) =>...
I think my statement above was misleading and not quite right. Simple reproduction of the issue: https://github.com/irvinebroque/nodejs_compat_issue/blob/main/src/worker.ts ```js // This does not work const { Writable } = require('node:stream'); //...
Ah right, unless the userland code is uploaded as a Node.js module type (https://github.com/cloudflare/workerd/pull/564, only supported in workerd, not by surrounding tooling) or CommonJS module type (only used if [manually...
If I call `reportError` — what happens here with [Tail Workers](https://developers.cloudflare.com/workers/observability/logging/tail-workers/)? Will the error will show up in the `exceptions` field or the `logs` field? https://github.com/wintercg/proposal-common-minimum-api/issues/41 https://github.com/nodejs/node/issues/38947
Yeah we should figure out before merging any change, since would be weird if this ended up showing as logs. @zebp and @maxwellpeterson may know and can point to internal...
We recently introduced a [new compatibility flag](https://developers.cloudflare.com/workers/platform/compatibility-dates/#nodejs-compatibility-flag) that allows you to use a subset of Node.js APIs that are provided directly by the Workers Runtime, without the need to add...
@jasonkuhrt — if you're using Pages, you can set compatibility flags in the dashboard or pass the `--compatibility-flag` to wrangler. Updated docs below: https://developers.cloudflare.com/workers/runtime-apis/nodejs/