From f2f734986243a9dd8b7224900dcfdde1b6265333 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Tue, 21 Apr 2026 17:14:28 +0200 Subject: [PATCH] docs: ts polyfill --- references/functions-typescript.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/references/functions-typescript.md b/references/functions-typescript.md index 4346c86..13d752a 100644 --- a/references/functions-typescript.md +++ b/references/functions-typescript.md @@ -395,9 +395,13 @@ Not all Node.js APIs are available. What works: - `console.log` / `console.info` — fully supported, output visible in Satellite logs and Console UI - `Math.random()` — supported but seeded once after upgrade, not suitable for lotteries or unpredictable randomness +- `Blob` — immutable raw binary data +- `URL` / `URLSearchParams` — URL parsing and manipulation No `fs`, `http`, `crypto` from Node, and many npm packages that rely on those will not work. Missing polyfills are added iteratively — open an issue if you're blocked. +> For HTTP calls (`fetch`), use `httpRequest` from `@junobuild/functions/ic-cdk` instead. + --- ## Limitations