irvinebroque.bsky.social
@irvinebroque.bsky.social
Reposted
In the list of things that are or will soon be enabled in Cloudflare workers...

* process.env populated at the global scope with configured env vars
* generateKeyPair (sync and async)
* createPrivateKey/createPublicKey
* createSign/create verify
* One-shot crypto.sign/verify
February 26, 2025 at 2:10 AM
Reposted
Hopefully coming soon: importable env in Cloudflare workers... github.com/cloudflare/w...

Historically, env has only been available injected into requests and not available at top level scope. This augments that with a compat flag to optionally retain the current model.
Implement importable env by jasnell · Pull Request #3610 · cloudflare/workerd
PR marked as a draft until we're certain this is what we want.... import { env } from 'cloudflare:workers'; console.log(env.FOO); // Undefined, outside request io context export defa...
github.com
February 27, 2025 at 6:13 PM
Reposted
Merged the Cloudflare workerd PR implementing node:crypto sign/verify today. Should have the PR implementing cipher/decipher open by end of day tomorrow.
February 28, 2025 at 2:52 AM