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.
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 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), 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:
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
ifand returntruein one place andfalsein the other. One that is imported, takes an argument or does more is not. Aconstthat holds a check is followed from another file, see Helpers. - Browser globals by their bare name. edgefit reports a read of
window,document,HTMLAnchorElement,DenoorBun, or of a DOM global that the target lacks, such asDOMParser, by its plain name, such asdocument.title, only when the read runs as the module loads, see Browser globals by their bare name. A read in a function, an instance field, a branch, a loop body, atrystatement or aswitchcase 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 asglobalThis.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 thatObject.defineProperty,Object.assignorReflect.setwrites, 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 animport()orrequire()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 asglobalThis.document.title, is a finding in any code, for the globals that the overrides name. For another DOM global, such asDOMParser, 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 asstatus = 1in a CommonJS file, is not seen as a write of the global, so a later read ofstatusat 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
unknownfinding for the read inreturn globalThis[key]. - A global that other code fills. A check for a global, also the
?.inglobalThis.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 is guarded on a target that has the global, even when earlier code sets the global to
undefined, as inglobalThis.fetch = undefined; globalThis.fetch ??= value. Then the value runs, so this can hide a real failure. The same applies to the right side ofglobalThis.fetch ?? valueandglobalThis.fetch || value, as inglobalThis.fetch = null; globalThis.fetch ?? globalThis.Deno.cwd(). - Polyfill stores through
letorvar. A store through aletorvaralias of the global object, such aslet g = globalThis; g.fetch ??= value, stays a finding, even when the code never writesgagain. A store through aconstthat copies such an alias stays a finding too. - Aliases of the global object that are written again. A
letorvaralias of the global object, such aslet g = globalThis, ends only after a statement directly in its scope writes a plain value to it, as ing = {}, and all other code in that scope only reads members ofgthrough fixed keys. At the top level of a file, the alias ends only in a file with anexport defaultof a value, an exported value orexport *. 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 asg.documentstays a finding. A parameter, a top-levelvar, an exported name and a scope that usesevalorwithalways 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
letthat holds a check is followed only when its block does not set it again. Avaris 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.bunandnavigator.userAgentcompared withCloudflare-Workers,BunorDenoare 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,globaland aconstthat holds one of them or a conditional of them, such asconst g = globalThis. Alet, avar, a parameter, a name from another file, a name from a destructuring andwindoware not read as the global object, so a check through them guards nothing and the code stays a finding. Aletor avardoes not count even when the code never writes it again. Aconstthat copies one of them, or that holds a member of one, as inconst 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,windowcounts as one of the results, so aconstthat holdstypeof window !== 'undefined' ? window : globalThisis the global object for both kinds of check. See 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,evaluateHandleorevaluateOnNewDocument. The code of the function stays a finding when the call names the function, as inpage.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,waitForFunctionandaddInitScript. 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
SIGand no code can change it. The event can be a string in quotes, aconstthat 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: alet, a parameter of a function, a member of an object, a?:expression, or a name that holds a list, as inconst signals = ['SIGINT']. Other code can change a list that has a name, for example withsignals.push('exit'). The code of the handler also stays a finding when the handler is a member such asthis.stop, a call, a?:expression or a name from another file, and when the call isprocess.prependListenerorprocess.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 runedgefit 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 inprocess.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 asobject[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. tryblocks around an API that exists. Acatchstops the error of an API that is missing, so those are guarded.fs.watchon Workers exists and throws, or does nothing, and edgefit cannot tell whether thecatchcopes, so it stays a finding.
If you have confirmed a branch never runs on your runtime, ignore 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), withimport(), or with arequire()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 asexports.name = obj.nameorexports.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 = namefor 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). Amodule.exports =form is also read when it is written asmodule.exports = exports = …orexports = module.exports = …. After one of themodule.exports = name,= function …or= class …forms above,module.exports.key = …adds the exportkeyto 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 asthis.local = exports.name = function …or= class …is also read, with or withoutconst,letorvar. Thenlocalis that export. These three forms are not read when the module can reach its own exports in another way: througharguments,caller,requirein any way other than a call with a string literal (such asrequire(__filename)orrequire.cache),import()of a value, or a load ofmoduleornode:module. The chain and thelocal =forms are also not read when the module has anythis, also in a test. Code that readsexports.nameormodule.exports.nameuses that export. Code that usesthis.nameat the top level, or in an exported function (also in an arrow inside it), uses that export too, becausethiscan be the exports there. An exported function is the value ofexports.name = function …, the function of a getter, a method ofmodule.exports = { … },localinlocal = exports.name = function …, or a function thatexports.name = nameormodule.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.thisin JSX is not read. Any other use ofthisat 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, withmodule.exports = require('…')or a helper such as__exportStar. In such a module,this.namefor a name that is not its own export does the same. A test ofthisitself keeps no export:typeof this,!this,void this,this instanceof C,'k' in this, a compare such asthis === undefined, the test ofif,?:or a loop, and thethis &&inthis && this.name. The helpers that tsc writes, such asvar __assign = (this && this.__assign) || …, keep no export.thisas the first argument of__awaiteror__generator, as tsc writes for an async function, or ofname.apply(this, …)orname.call(this, …), as Babel and SWC write, keeps no export either. edgefit does not followthisinto the function that gets it. Thethisreads of that function count only when it is an exported function. A top-level write into an export, such asmodule.exports.name.key = value, counts with that export, or when the module loads if the value runs code. A computed export name,module.exportsset to something else, code that writesexportsor readsexportsormodulein any other way, or a mix ofmodule.exports =andexports.name =writes counts as a whole. Amodule.exports.name =write also counts as a whole when it comes beforemodule.exports =, or after amodule.exports =that is not one of those three forms, such as an object. So dolocal = exports.name = …andlocal = module.exports.name = …aftermodule.exports =, a secondmodule.exports.name =write that changes an export, and amodule.exports.name =write aftermodule.exports =a name that holds arequireresult. Inside a function, block, loop orcatchthat declares its ownexports, such as a parameter or aconst,exportsis a local variable. It is not a read of the module's exports. Avarorlet exportsin the function body does not hideexportsin a default value of a parameter. A localmoduleis not treated as a local variable, because a bundler runtime declares its ownmodule - it is CommonJS, and a file in node mode imports its
defaultexport (import lib from 'lib',export { default } from 'lib', or a read ofdefaultfrom whatimport('lib')gives). A file is in node mode when it is an.mjsor.mtsfile, or when it is not a.cjsor.ctsfile and its nearestpackage.jsonhas"type": "module". In node mode, Node.js and esbuild give all ofmodule.exportsas thedefaultexport, so the mark below does not count. Apackage.jsonthat edgefit cannot read counts as node mode - it is CommonJS, a file that is not in node mode imports its
defaultexport, and it does not mark itself as compiled from ES modules. The mark isexports.__esModule = valueorObject.defineProperty(exports, '__esModule', { value })with a value that edgefit can find without running code and that is true, such astrue,1,'yes'or!0. Any other value, such asfalse,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. Aftermodule.exports = …, a mark set before it or set throughexportsdoes not count. A mark set throughmodule.exportsafter it counts. A mark inside the new value, such asmodule.exports = { __esModule: true, … }, does not count. Aftermodule.exports = exports = …, a mark set throughexportsdoes not count either. This is a limit:exportsnames the new object there - it is build output. Build output has been through a bundler's own tree shaking, so
--builtchecks it in full
What a CommonJS module asks of a module it requires 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_defaultand_interop_require_wildcard, as functions or as@swc/helpersmembers (_interop_require_default._(require('dep')))_export_star,__exportStarand__reExport__importDefault,__importStarand__exportStar, astscdefines them or as members oftslib__toESMand__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.jsonof each file, up to the project root. A config above the root is not read. It followsextendswhen 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/baseand thetsconfig.jsonof the package foldermy-tsconfigall work. A package that is not installed, or a file that theexportsof the package do not list, gives no base config. Any other resolve error stops the run. edgefit does not read thetsconfigfield of the package.json or packageimports(#name), and it uses theexportsconditions 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 relativeextendsnames keep unused imports, edgefit keeps them, whatever a package base sets. - It does not read the
tsconfigoption 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 giveundefinedfor 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 asnull,undefined,false,0,-0,'', an empty template,!1orvoid 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: falseis found, andrejectUnauthorized: verifyis 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
enableTracewith the valuetrue, a call withenableTrace: 1is not found. - A call through
.callor.apply, such astls.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, andObject.assign,Object.defineProperty,Object.defineProperties,Reflect.set,Reflect.definePropertyorReflect.deletePropertywith 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 nounknownfinding 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 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
weblevel 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.tsdeclares as avar,let,const,functionorclass. A global that a later release adds is not in it, and a namespace such asCSSis 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.
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.
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. 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. 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.
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.