---
url: https://edgefit.kitdev.space/guide/limitations.md
description: >-
  What edgefit does not check: guards it does not understand, type-only imports,
  unknown options, data age, assumed settings and framework build output.
---

# Limitations

edgefit is a static analysis tool, and it is honest about what that means. This page lists what it does not do today, so you know where to look yourself. For what it does cover, and against which versions, see [Status](/guide/status).

## What a clean run means

`No known incompatible reachable APIs found` means none of the APIs edgefit could see are known to be a problem. It is not a guarantee that the project works. Everything below is a reason why.

## Only some guards are understood

A usage of an API the target lacks, in code that only runs when the API exists, is [guarded](/guide/findings#guarded-usages) and does not fail a check. That covers checks on the API itself (`if (x.y)`, `typeof x.y`, `'y' in x`, `x.y?.()` and guard clauses, also in the form that a compiler writes for ES2019 or older, see [Checks for an API](/guide/findings#checks-for-an-api)), a `try` block whose `catch` does not throw again, code behind a check on the runtime, such as `typeof Deno !== 'undefined'` or `process.versions.bun`, the code in a signal handler on a target where no signal arrives, and the code of a function that a browser page runs. A check does not protect an API that exists and throws, such as `fs.watch` on Workers. Only code that does not run on the target at all is guarded whatever it uses.

Other ways code decides what to do are not understood, and every branch is reported:

```js
import { isDeno } from './runtime.js';

if (isDeno()) {
  // Deno path
} else if (globalThis.navigator?.userAgent.match(/bun/i)) {
  // Bun path
} else {
  require('node:fs').watch(dir, onChange);
}
```

* **Helpers from another file.** A helper is followed only when it is in the same file and has no parameters. It must only return the check, or only test the check in one `if` and return `true` in one place and `false` in the other. One that is imported, takes an argument or does more is not. A `const` that holds a check is followed from another file, see [Helpers](/guide/findings#helpers).
* **Browser globals by their bare name.** edgefit reports a read of `window`, `document`, `HTMLAnchorElement`, `Deno` or `Bun`, or of a DOM global that the target lacks, such as `DOMParser`, by its plain name, such as `document.title`, only when the read runs as the module loads, see [Browser globals by their bare name](/guide/findings#browser-globals-by-their-bare-name). A read in a function, an instance field, a branch, a loop body, a `try` statement or a `switch` case is not reported, so it can hide a real failure. This includes a function that runs at once, such as `(function () { document.title })()`, and the wrapper of a UMD build: edgefit takes every function as code that runs later. A read after a write to the global object in the same file, such as `globalThis.document = {}`, is not reported, but a write inside a function does not count. A shim that a function writes and that the file calls at once is not seen, so a read after it is reported. A write at the top level in a branch counts even when the branch is not about the missing global, so a read after it is not reported. A shim in another file, or one that `Object.defineProperty`, `Object.assign` or `Reflect.set` writes, is not seen, so a read after it is reported. In build output, a bundler often wraps each module in a function, and then none of these reads is reported. The guards around an `import()` or `require()` do not reach the imported file: a read at the top of that file is reported, also when the import runs only in a browser. A read through the global object, such as `globalThis.document.title`, is a finding in any code, for the globals that the overrides name. For another DOM global, such as `DOMParser`, a read through the global object is not reported, also at load. A write to an undeclared name in code that is not strict, such as `status = 1` in a CommonJS file, is not seen as a write of the global, so a later read of `status` at load is reported. On Bun and Deno, which run such a file as it is, the finding is false.
* **Functions that another function calls.** A function that only another function calls gets no check, even when checked code calls that other function.
* **A computed read that a function returns.** The code that calls the function uses the value, and edgefit does not follow the value there. A caller that calls the value, or reads a member of it, gets no `unknown` finding for the read in `return globalThis[key]`.
* **A global that other code fills.** A check for a global, also the `?.` in `globalThis.Deno?.env.toObject()`, follows the data of the target. Code that sets the global on a target that lacks it, in this file or in another one, is not followed. The guarded use is hidden, although it can run.
* **Polyfill stores after a write.** A [polyfill store](/guide/findings#polyfills) is guarded on a target that has the global, even when earlier code sets the global to `undefined`, as in `globalThis.fetch = undefined; globalThis.fetch ??= value`. Then the value runs, so this can hide a real failure. The same applies to the right side of `globalThis.fetch ?? value` and `globalThis.fetch || value`, as in `globalThis.fetch = null; globalThis.fetch ?? globalThis.Deno.cwd()`.
* **Polyfill stores through `let` or `var`.** A store through a `let` or `var` alias of the global object, such as `let g = globalThis; g.fetch ??= value`, stays a finding, even when the code never writes `g` again. A store through a `const` that copies such an alias stays a finding too.
* **Aliases of the global object that are written again.** A `let` or `var` alias of the global object, such as `let g = globalThis`, ends only after a statement directly in its scope writes a plain value to it, as in `g = {}`, and all other code in that scope only reads members of `g` through fixed keys. At the top level of a file, the alias ends only in a file with an `export default` of a value, an exported value or `export *`. A plain value is a literal other than a regular expression, a template, or an object literal with plain keys whose values are such literals or templates. An object literal with a method, getter or setter, spread, shorthand property, computed key or `__proto__` key is not a plain value. A function declaration after the write also keeps the alias, because the function exists before the write runs. In all other cases, a read such as `g.document` stays a finding. A parameter, a top-level `var`, an exported name and a scope that uses `eval` or `with` always keep the alias.
* **Nested polyfill stores.** In a store inside the value of another store, only the inner store counts. When the target has the outer global but lacks the inner one, the value stays a finding, although it does not run.
* **Variables that are set again.** A `let` that holds a check is followed only when its block does not set it again. A `var` is followed only when its function, or the file at the top level, does not set it again.
* **Other ways to name a runtime.** Only `typeof Deno`, `typeof Bun`, `process.versions.deno`, `process.versions.bun` and `navigator.userAgent` compared with `Cloudflare-Workers`, `Bun` or `Deno` are read. A regular expression, a feature check that happens to tell runtimes apart, and a check on Node are not.
* **Names for the global object.** A check is read through `globalThis`, `self`, `global` and a `const` that holds one of them or a conditional of them, such as `const g = globalThis`. A `let`, a `var`, a parameter, a name from another file, a name from a destructuring and `window` are not read as the global object, so a check through them guards nothing and the code stays a finding. A `let` or a `var` does not count even when the code never writes it again. A `const` that copies one of them, or that holds a member of one, as in `const w = g.Worker`, does not count either. This holds for a check of an API and for a check of the runtime. In a conditional, `window` counts as one of the results, so a `const` that holds `typeof window !== 'undefined' ? window : globalThis` is the global object for both kinds of check. See [Runtime checks](/guide/findings#runtime-checks).
* **Functions sent to a browser page that edgefit cannot read.** edgefit reads only a function that is written as the first argument of a call of a method named `evaluate`, `evaluateHandle` or `evaluateOnNewDocument`. The code of the function stays a finding when the call names the function, as in `page.evaluate(read)`, and when the code turns a function into a string and sends the string. It also stays a finding for other methods, such as `$eval`, `waitForFunction` and `addInitScript`. The reverse can hide a real failure: edgefit does not read what the method does, so a method of your own with one of these names that calls the function on the runtime, as in `{ evaluate: fn => fn() }`, still gets the code in the function guarded.
* **Signal handlers that edgefit cannot read.** edgefit reads the event of a handler when it is a string that starts with `SIG` and no code can change it. The event can be a string in quotes, a `const` that holds a string, a template literal of such strings, the loop variable of an array that the code writes in place, or the loop variable of the list that a method gets from its one call. The code of the handler stays a finding for any other event: a `let`, a parameter of a function, a member of an object, a `?:` expression, or a name that holds a list, as in `const signals = ['SIGINT']`. Other code can change a list that has a name, for example with `signals.push('exit')`. The code of the handler also stays a finding when the handler is a member such as `this.stop`, a call, a `?:` expression or a name from another file, and when the call is `process.prependListener` or `process.prependOnceListener`. edgefit reads the calls of a method in the file of the method, and it searches the other files that it reads for the name of the method. It does not read the list when another file has that name. A file that edgefit does not read is not searched, such as your own code when you run `edgefit package`. Three cases can hide a real failure, because edgefit guards the code of the handler where it can run. In the first case, the code emits the event itself, as in `process.emit('SIGTERM')`, and the handler runs on Workers. In the second case, a file that edgefit does not read calls the method with an event that is not a signal, such as `'exit'`. In the third case, a call reaches the method through a computed key, such as `object[name](['exit'])`, in the file of the method or in another file of the graph. edgefit does not see these calls.
* **Checks that leave the runtime open.** `typeof Deno !== 'undefined' || typeof Bun !== 'undefined'` says the code runs on one of two runtimes, and edgefit does not follow that.
* **`try` blocks around an API that exists.** A `catch` stops the error of an API that is missing, so those are guarded. `fs.watch` on Workers exists and throws, or does nothing, and edgefit cannot tell whether the `catch` copes, so it stays a finding.

If you have confirmed a branch never runs on your runtime, [ignore](/guide/configuration#ignoring-findings) the finding with a reason.

## Reachability follows imported names

edgefit checks the code a project reaches, and traces which exports of each module are imported. A function that only an export nothing imports uses is left out, so a utility library that exports one `fs.watch` helper does not produce a finding when you only import its string helpers.

Everything in a module counts when it cannot be told which parts are used:

* the module runs code when it loads: top-level calls, assignments, and classes with static members, decorators or computed keys other than a name or a chain of names (`[kName]` and `[Symbol.iterator]` do not run code). What that code uses counts, and so does every function it names
* it is imported as a namespace (`import * as lib`), with `import()`, or with a `require()` whose result is used as a whole, or has its exports read as a whole (`export =`)
* it is CommonJS and its exports cannot be read by name. These are read: `exports.name = …` (also when the value is an object literal: its functions and methods count once the export is used, and any other value in it counts when the module loads; any other value that the module computes when it loads, such as `exports.name = obj.name` or `exports.name = call()`, counts when the module loads and gives an export with no part that waits), `exports.other = exports.name`, `exports.__defineGetter__('name', fn)`, `module.exports = { … }`, `module.exports = require('…')`, `module.exports = name` for a function or class that the module declares and nothing else names, `module.exports = function …` or `= class …`, `Object.defineProperty(exports, 'name', …)`, and the getter helpers that TypeScript and SWC emit (`_export(exports, { … })`, `_export_star`). A `module.exports =` form is also read when it is written as `module.exports = exports = …` or `exports = module.exports = …`. After one of the `module.exports = name`, `= function …` or `= class …` forms above, `module.exports.key = …` adds the export `key` to that value. When any export of the module is used, the value and all of these exports count. The value can reach them in ways that edgefit cannot read, such as `this`. `local = exports.name = function …` or `= class …` is also read, with or without `const`, `let` or `var`. Then `local` is that export. These three forms are not read when the module can reach its own exports in another way: through `arguments`, `caller`, `require` in any way other than a call with a string literal (such as `require(__filename)` or `require.cache`), `import()` of a value, or a load of `module` or `node:module`. The chain and the `local =` forms are also not read when the module has any `this`, also in a test. Code that reads `exports.name` or `module.exports.name` uses that export. Code that uses `this.name` at the top level, or in an exported function (also in an arrow inside it), uses that export too, because `this` can be the exports there. An exported function is the value of `exports.name = function …`, the function of a getter, a method of `module.exports = { … }`, `local` in `local = exports.name = function …`, or a function that `exports.name = name` or `module.exports = { name }` names. Other functions do not count: a function that a getter returns, a function that the module does not export, and a function nested in an exported function. A class body does not count. `this` in JSX is not read. Any other use of `this` at the top level or in an exported function keeps every export, and asks for all of each module that the module re-exports as a whole, with `module.exports = require('…')` or a helper such as `__exportStar`. In such a module, `this.name` for a name that is not its own export does the same. A test of `this` itself keeps no export: `typeof this`, `!this`, `void this`, `this instanceof C`, `'k' in this`, a compare such as `this === undefined`, the test of `if`, `?:` or a loop, and the `this &&` in `this && this.name`. The helpers that tsc writes, such as `var __assign = (this && this.__assign) || …`, keep no export. `this` as the first argument of `__awaiter` or `__generator`, as tsc writes for an async function, or of `name.apply(this, …)` or `name.call(this, …)`, as Babel and SWC write, keeps no export either. edgefit does not follow `this` into the function that gets it. The `this` reads of that function count only when it is an exported function. A top-level write into an export, such as `module.exports.name.key = value`, counts with that export, or when the module loads if the value runs code. A computed export name, `module.exports` set to something else, code that writes `exports` or reads `exports` or `module` in any other way, or a mix of `module.exports =` and `exports.name =` writes counts as a whole. A `module.exports.name =` write also counts as a whole when it comes before `module.exports =`, or after a `module.exports =` that is not one of those three forms, such as an object. So do `local = exports.name = …` and `local = module.exports.name = …` after `module.exports =`, a second `module.exports.name =` write that changes an export, and a `module.exports.name =` write after `module.exports =` a name that holds a `require` result. Inside a function, block, loop or `catch` that declares its own `exports`, such as a parameter or a `const`, `exports` is a local variable. It is not a read of the module's exports. A `var` or `let exports` in the function body does not hide `exports` in a default value of a parameter. A local `module` is not treated as a local variable, because a bundler runtime declares its own `module`
* it is CommonJS, and a file in node mode imports its `default` export (`import lib from 'lib'`, `export { default } from 'lib'`, or a read of `default` from what `import('lib')` gives). A file is in node mode when it is an `.mjs` or `.mts` file, or when it is not a `.cjs` or `.cts` file and its nearest `package.json` has `"type": "module"`. In node mode, Node.js and esbuild give all of `module.exports` as the `default` export, so the mark below does not count. A `package.json` that edgefit cannot read counts as node mode
* it is CommonJS, a file that is not in node mode imports its `default` export, and it does not mark itself as compiled from ES modules. The mark is `exports.__esModule = value` or `Object.defineProperty(exports, '__esModule', { value })` with a value that edgefit can find without running code and that is true, such as `true`, `1`, `'yes'` or `!0`. Any other value, such as `false`, `0`, a name, or a getter, is not a mark, and a later write of such a value removes an earlier mark. The mark counts only when it is on the object that the module exports at the end. After `module.exports = …`, a mark set before it or set through `exports` does not count. A mark set through `module.exports` after it counts. A mark inside the new value, such as `module.exports = { __esModule: true, … }`, does not count. After `module.exports = exports = …`, a mark set through `exports` does not count either. This is a limit: `exports` names the new object there
* it is build output. Build output has been through a bundler's own tree shaking, so [`--built`](/guide/built-output) checks it in full

What a CommonJS module asks of a module it `require`s is the members that are read from the result (`const dep = require('dep')` with `dep.name`, `const { name } = require('dep')`, `require('dep').name`). The result used in any other way asks for all of it. A `require` inside a function asks for its module only when that function is used, if one name stands for one module in the whole file. A name that is declared for two modules keeps its modules whole. A file that sets `module.exports` to a name that holds a Node.js module is that module in the files that `require` it, when every one of them binds the result to a name or destructures it: `const fs = require('./fs')` with `fs.readFile`, or `const { readFile } = require('./fs')`. Writes of a literal such as `null` to the name do not change this. The members that the importer reads are uses of the module there, with the guards of the importer. A file that passes the result on, loads it with `import()`, or is imported by an ES module keeps the module as `unknown`.

A name that is destructured from a Node.js module, as in `const { Console } = require('node:console')`, is counted where the name is used. The read gives `undefined` for a member that the target lacks and throws nothing, so a name that is never used is not a finding, and a name that a function uses belongs to the exports that reach that function. On a target whose platform stubs the module, the read throws, so the name counts at the destructuring. A named `import { Console } from 'node:console'` of an ES module counts at the import, since a missing export is a link error.

A `require` can be wrapped in a helper that compiled code adds. These helpers pass the module through:

* `_interop_require_default` and `_interop_require_wildcard`, as functions or as `@swc/helpers` members (`_interop_require_default._(require('dep'))`)
* `_export_star`, `__exportStar` and `__reExport`
* `__importDefault`, `__importStar` and `__exportStar`, as `tsc` defines them or as members of `tslib`
* `__toESM` and `__toModule`, as esbuild defines them

Any other wrapper asks for all of the module.

A variable that is declared without a value and set once to a `require()` result, such as `let c; c = require('node:crypto')`, is followed like a `const`. A declaration with a value that cannot be a module, such as `null`, an object or a conditional, is followed too, and so is an assignment of a literal, an object, an array or a template, as in the `catch` of `try { http2 = require('node:http2') } catch { http2 = { constants: {} } }`. A declaration with a name, a member, a call or an `import()` as its value counts as a second write. Another declaration of the name (a parameter, a function or a second `var`), any other write to it in the file, or an export of it stops this.

A file can export a Node.js module under a name, as in `import * as crypto from 'node:crypto'; export { crypto }`. A direct re-export is the same. `export { promises as fsp } from 'node:fs'` is `node:fs.promises` under `fsp`. `export * as fs from 'node:fs'` is `node:fs` under `fs`. A file of the graph that imports that name by name, as in `import { crypto } from './node.js'`, uses the module there, and its members are checked. The export is then not reported as `unknown`. It stays `unknown` when nothing imports the name, when a file imports the whole file (`import * as`, `export * from`), or when the entry may export it. A file that loads the file with `import()` or `require()` and destructures plain names, as in `const { crypto } = await import('./node.js')`, `({ crypto } = await import('./node.js'))` or `const { crypto } = require('./node.js')`, counts as an import of those names. An assignment reads the names the same way a declaration does, when it is a statement by itself. When its value is used, as in `const m = ({ crypto } = require('./node.js'))`, the load takes the whole file. This includes the form that `tsc` writes for `import()` in CommonJS. A CommonJS file exports a module with `exports.crypto = crypto`. A file that loads the file with `const node_1 = require('./node.js')` or `const node_1 = await import('./node.js')` and only reads members from `node_1`, as in `node_1.crypto.randomBytes(8)`, counts as an import of those names, and the module is that module in the reading file. A name that is not a Node.js module there records nothing. The file stays `unknown` when `node_1` is passed on, stored, written to, or read with a computed key, or when a helper wraps the call. Any other use of `import()` or `require()` takes the whole file. `import * as ns from './node.js'` is read the same way: only the members read from `ns` are asked of the file, and a `ns` that is passed on, stored, exported again or read with a computed key asks for all of it. A module that a second file re-exports is not followed.

A name counts as used when any used code mentions it. A property or a local variable of the same name also counts, which can only keep a finding, never hide one.

## Imports used only as types

In a TypeScript file, an import whose names are never used as values gives no finding. A bundler drops such an import, so `import { ServerResponse } from 'node:http'` that only appears in `as ServerResponse` uses no API. When some names of an import are used as values, edgefit reports only those names.

The bundler keeps these imports when the `tsconfig.json` sets `verbatimModuleSyntax`, `preserveValueImports`, or `importsNotUsedAsValues` to `preserve` or `error`. edgefit then reports them. It has these limits:

* It reads the nearest `tsconfig.json` of each file, up to the project root. A config above the root is not read. It follows `extends` when the value is a path, a package name or a list of them. It finds a package name from the folder of the config, as Node.js finds a module, and it reads that base config also when it is above the root. `my-tsconfig/base.json`, `my-tsconfig/base` and the `tsconfig.json` of the package folder `my-tsconfig` all work. A package that is not installed, or a file that the `exports` of the package do not list, gives no base config. Any other resolve error stops the run. edgefit does not read the `tsconfig` field of the package.json or package `imports` (`#name`), and it uses the `exports` conditions of Node.js. So it can find a different base config than the bundler. For this reason, a base config from a package or an absolute path can only make edgefit keep more imports. When the configs that a relative `extends` names keep unused imports, edgefit keeps them, whatever a package base sets.
* It does not read the `tsconfig` option of a bundler.
* A name counts as used when it is read anywhere in the file. A local variable of the same name also counts, which can only keep a finding, never hide one.
* It reads no tsconfig for files in `node_modules`, so their imports that are used only as types are skipped.

## Existing is not the same as working

The Node compatibility matrix records whether an API exists on each runtime. Curated overrides cover the APIs that are known to exist and still throw or do nothing, and a weekly probe checks them against the real runtimes. Still, an API that exists and works only in part can pass, and an API that throws only with certain arguments can pass too, unless an override names the options that fail. The overrides are read by hand from the runtimes' sources, so they can be wrong or out of date until the probe or a report finds it.

## Options that are not known

When an override names the options that make a call fail, edgefit reads the options that each call passes. edgefit gives no finding for these calls:

* A call that passes an option through a spread, such as `{ ...options }`, or through a variable whose keys edgefit does not know, such as a parameter.
* A call that passes a key before a spread that can replace it with `undefined`, such as `{ ALPNProtocols: ['h2'], ...options }`. A spread of a known object literal removes only the keys that it holds, and only when it may give `undefined` for them. Examples are `...{ host }`, `...(check && { checkServerIdentity })` and `...(on ? { host } : {})`. A literal with a computed key that is not known, or with a spread of its own, counts as an unknown spread. A spread of a known falsy value, such as `null`, `undefined`, `false`, `0`, `-0`, `''`, an empty template, `!1` or `void 0`, or a condition with such a value, adds and removes no keys.
* A call that passes an option with a value that may be `undefined`, such as a parameter or a member read: `{ ALPNProtocols: protocols }` or `{ ALPNProtocols: options.ALPNProtocols }`. The exception is a Node.js module or one direct member of it, see below.
* A call whose options are not in its last argument that is an object, or a call with a spread argument such as `connect(...args)`.
* A call that passes an option with a value that is not a literal, when only one value fails. `rejectUnauthorized: false` is found, and `rejectUnauthorized: verify` is not.
* A call that passes a value that fails, but is not the value that the data lists. edgefit matches only the listed literal value. For example, when the data lists `enableTrace` with the value `true`, a call with `enableTrace: 1` is not found.
* A call through `.call` or `.apply`, such as `tls.connect.call(tls, options)`.
* A `super(...)` call in a class that extends the API.
* An imported function that is passed as a value and called later, such as `register(connect)`.
* A call that passes a variable whose object is changed after it is made. edgefit then reads no keys of that variable. These changes count: a member write such as `options.ALPNProtocols = ['h2']`, `delete options.host`, and `Object.assign`, `Object.defineProperty`, `Object.defineProperties`, `Reflect.set`, `Reflect.defineProperty` or `Reflect.deleteProperty` with the object as the first argument.
* A computed read, such as `mod[key]`, of a module or an object whose only problem is an API that fails only for some options. The read shows no option, so edgefit gives no `unknown` finding for it.

edgefit does not see a change of the object through another name for it, such as `const o = options; o.host = 'a'`, a destructuring into a member, such as `[options.host] = ['a']`, a change by a function that gets the object, such as `normalize(options)`, or a change through another object that holds it, such as `holder.options.host = 'a'`. Then edgefit still reads the keys of the object literal, so a call can get a finding for a key that the change removed.

edgefit counts a Node.js module, or one direct member of it, as defined, such as `tls.checkServerIdentity`. It does not check that the module has the member, so a call that passes `tls.missing` can get a finding. A deeper read, such as `process.env.KEY`, may be `undefined`, so it does not count.

## The data has an age

* **The data is pinned.** It describes the runtime versions on the [Status](/guide/status) page. A newer release of a runtime can add APIs edgefit still reports as missing, until the next data update. A weekly check finds these, so the gap is usually days.
* **The runtime dumps come from a third party.** The matrix provider's repository had no data newer than April 2026, so the dumps for the newest releases were regenerated with its own scripts. If that project stops being maintained, updates depend on that regeneration.
* **The Web API data is from March 2024.** It only fills in what the matrix does not describe, and its results are warnings at the `web` level for that reason. A Web API added since may be reported missing. The matrix's own results win where it has measured the API.
* **The DOM globals list ends at TypeScript 5.9.3.** It holds the globals that `lib.dom.d.ts` declares as a `var`, `let`, `const`, `function` or `class`. A global that a later release adds is not in it, and a namespace such as `CSS` is not in it, so a read of such a name at load is not reported. A runtime that adds a DOM global later is still reported as lacking it, until the next data update.
* **The Node baseline merges Node 20, 22 and 24.** An API that any of them has is in the baseline, so a target that lacks it is reported even if your code targets an older Node.
* **Your version can be older than the data.** With a pinned Bun or Deno version older than the data, APIs added since are reported as supported. You are told in a note.

## Settings can be assumed

Without a wrangler config, edgefit uses the compatibility date and flags of its data (`nodejs_compat`) and says so in a note. Cloudflare Workers gates Node modules by date and flag, so a project with different settings can see different results. Set them in the [config](/guide/configuration#cloudflare-workers).

Deno Deploy runs an older Deno than the newest release. Its results are the Deno data plus a curated layer, and that layer is the least tested part of the data.

Netlify Edge Functions run Deno 2.3.1, which edgefit measured on Netlify, because Netlify does not document its version or the Node APIs it blocks. The `netlify-edge` target uses the Deno data with a layer from those measurements. An API added to Deno after 2.3.1 is reported as supported. A file write is reported even when the path is under `/tmp`, where Netlify allows it.

## Your runtime's own APIs are not checked

edgefit checks Node built-ins and standard Web APIs. It does not check runtime-specific APIs such as Workers bindings, `Bun.serve` or `Deno.readFile`, and it does not check that your bundle fits the runtime's size limits, memory or CPU time.

## Framework build output

Build output is tested with Nitro and Nuxt. edgefit also looks for the entry files of SvelteKit's and Astro's Cloudflare adapters and of OpenNext, but only the directory layout is covered by a test, not real adapter output, so treat their results as less proven. Nothing marks those layouts as build output, so pass `--built`.

A Vercel Build Output API layout (`.vercel/output`) is covered by a test on a real Next.js 16.3.8 app, built with the Vercel CLI in CI, and by hand-written layouts for the cases a real build does not make: Node.js functions, symlinked functions, a missing entrypoint and an unreadable config. The Netlify Frameworks API layout (`.netlify/v1/edge-functions`) is covered by a test on a real SvelteKit 3.0.0 app with `@sveltejs/adapter-netlify` 7.0.0 and `edge: true`, built in CI. Its `import_map.json` is not applied. Netlify's older layout (`.netlify/edge-functions/manifest.json`) is covered only by hand-written layouts, because no adapter in the sample writes it.

Mapping findings to packages needs sourcemaps. Without them, edgefit reads the `//#region` markers that recent Nitro (Rolldown) builds write, and names the package from them. A build without either, such as one from an older Nitro, is reported against the build files, and an `ignore` rule with `package` cannot match. See [Framework build output](/guide/built-output).

## Constant module names only

`import(name)` and `require(name)` are read when `name` is a `const` holding a plain string. In a `try` block that guards, a conditional expression of such strings is read too: see [Try blocks](/guide/findings#try-blocks). A template literal or a `+` that joins plain strings and such constants is read as the string it spells, so ``require(`card${suffix}`)`` with `const suffix = 'inal'` is `require('cardinal')`. A computed key is read the same way: `obj[name]` is `obj.text`, and `const method = Methods[level]` of an object whose values are all plain strings is each of those strings, so `console[method]()` checks each one. An array of plain strings works the same way. `obj[keys[i]]` checks each string of `keys`, and `obj[keys[0]]` checks the first one. The name of `for (const key of keys)` holds each string, and so does the first parameter of a `forEach`, `map`, `filter`, `some`, `every`, `find`, `findIndex` or `flatMap` callback on `keys`. A `.map(name => name + 'Array')` that joins each string with plain strings gives the joined strings. A list in an object literal, such as `logger.methods[level]`, is read too. A `let`, a `var` or a loop name holds each value that is written to it, when each one is known, so `if (!console[m]) m = 'log'` adds `log`. A `const` that the file declares after the function that reads it is read too. A check such as `typeof console[key] === 'function'` guards only a read through the same `key`. A nested function that declares the same name has its own `key`, which the check does not guard. A fallback such as `if (!console[m]) m = 'log'` guards the read of `console[m]` for each other string. A parameter, a name with a write that edgefit cannot read or that a nested function writes, a `var` with the name of a parameter or of a function, an object with a write to one of its members, and an object with another kind of value stay `unknown`. The parameter of a method of a class is read when its one call passes an array in place, see [Signal handlers](/guide/findings#signal-handlers). A method that changes a list, such as `keys.push(x)`, is not read, so the list keeps its first strings. A function with no parameter that only returns `require('node:x')`, with or without a `try` whose `catch` returns nothing, is read as that module wherever it is called with no argument, such as `const m = load()`. It is not read when it is exported, passed on, or has a parameter or another statement. An object whose values are all functions that only return `require('node:x')`, such as `{ 'node:zlib': () => require('node:zlib') }`, is read when every use of it is a call of one of them. A call with a key that is a string is a load of that module. A call with any other key may load any of them, so each one counts, and the members read on the result are not followed. An object that is passed on, read without a call, or called with an argument or with a key it lacks is not read. A function that only runs `import(name)` for its one parameter is read too, when every use of it is a call with a literal, such as `load('pkg')`. It is not read when it is exported, passed on, or called with anything else. The names of `const [a, b] = await Promise.all([x, y])` are bound by position when the elements are modules that edgefit follows, such as these calls or `import('node:fs')`, so `a` stands for `x`. A spread or a hole in the list, a rest element, or an element that is not a module leaves the names after it unbound. A module that is passed to a function of the same file is read as the members that the function reads on that parameter, such as `print(process.stderr)` with `stream.write()` inside `print`. A function or an arrow that the code calls at once is read the same way, as in `(function (stream) { stream.write('x'); })(process.stderr)`. The same goes for a module in an object literal that is passed that way, read as `param.key.member` or `param[key].member`. It is not read when the function stores, returns or passes on the parameter, sets a member, reads one with a computed key that is not a string, or is declared in another file. A `let`, a join with a value that is not a plain string, a value computed from other values, a function result or an object property is reported as `unknown`. So is any other access edgefit cannot follow, such as `obj[key]`. A key that is a symbol, or a `const` that holds one, is not reported, because a symbol cannot name an API. `unknown` warnings never fail a check unless you make them errors.

## Static members of a parent class

A class that extends a Node.js class, or that is set up with `util.inherits`, counts as a use of that class and its instance members. A helper of the same file that sets `Child.prototype` and reads `parent.prototype`, such as the `extend(Child, parent)` that CoffeeScript writes, counts the same way, whatever its name. So does a parameter of a function that the code calls at once with the module, when the parameter or a member of it is the parent class. A helper that only copies members, such as with `Object.assign`, passes the module on. A `.call`, `.apply` or `.bind` of the parameter is a use of the parameter itself. The rest of the module is not reported as `unknown`. edgefit does not check a static member that you call through the subclass. Call it on the parent class, for example `EventEmitter.init()`, to have it checked.

## Deno: `jsr:` packages

`jsr:` imports of Deno workspace members are followed. Other `jsr:` imports are not read, because edgefit does not read the Deno cache or the `vendor` directory. They are reported as `unknown`, with the package name.

## Vercel Edge is documented, not measured

Vercel publishes no compatibility dump for its Edge runtime, so the `vercel-edge` target is built from its documentation. Anything the documentation does not list is reported as missing, and the target is experimental. Vercel also recommends its Node.js runtime for functions. See [Vercel Edge](/targets/vercel-edge).

## Platform limits are not checked

Beyond API compatibility, platforms limit bundle size, memory and CPU time per request (Netlify Edge Functions: 20 MB, 512 MB and 50 ms). edgefit checks none of them.
