• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kikobeats / isolated-function
89%

Build:
DEFAULT BRANCH: master
Repo Added 31 Aug 2024 08:59PM UTC
Token LwOHxdRctGcLXtengOKIiQDVUbxkl8Huj regen
Build 264 Last
Files 17
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • Kikobeats/block-isolate-egress
  • Kikobeats/block-sqlite-fs-bypass
  • Kikobeats/bound-host-calls
  • Kikobeats/buffer-isolate-dial
  • Kikobeats/ci-lts-only
  • Kikobeats/drop-unused-options
  • Kikobeats/flat-node-log
  • Kikobeats/host-call-timeout
  • Kikobeats/host-channel
  • Kikobeats/isolate-memory-cap
  • Kikobeats/precompiled-shell-d3a67d55
  • Kikobeats/program-phases
  • Kikobeats/require-subpath
  • Kikobeats/run-is-the-remainder
  • Kikobeats/survive-malformed-ipc
  • Kikobeats/use-upm
  • benchmark
  • cpu
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/pnpm/action-setup-5
  • dependabot/github_actions/pnpm/action-setup-6
  • dependabot/npm_and_yarn/acorn-8.13.0
  • dependabot/npm_and_yarn/acorn-8.14.0
  • dependabot/npm_and_yarn/acorn-8.16.0
  • dependabot/npm_and_yarn/acorn-8.17.0
  • dependabot/npm_and_yarn/acorn-8.18.0
  • dependabot/npm_and_yarn/acorn-8.19.0
  • dependabot/npm_and_yarn/ensure-error-4.0.0
  • dependabot/npm_and_yarn/esbuild-0.24.0
  • dependabot/npm_and_yarn/esbuild-0.25.0
  • dependabot/npm_and_yarn/esbuild-0.25.1
  • dependabot/npm_and_yarn/esbuild-0.27.0
  • dependabot/npm_and_yarn/esbuild-0.28.0
  • dependabot/npm_and_yarn/serialize-error-10.0.0
  • dependabot/npm_and_yarn/serialize-error-11.0.3
  • dependabot/npm_and_yarn/serialize-error-12.0.0
  • dependabot/npm_and_yarn/serialize-error-9.1.1
  • dependabot/npm_and_yarn/tinyspawn-1.4.0
  • dependabot/npm_and_yarn/tinyspawn-1.5.0
  • dependabot/npm_and_yarn/upm-1.2.0
  • dependabot/npm_and_yarn/upm-1.4.0
  • dependabot/npm_and_yarn/upm-1.5.1
  • feat/esbuild-options
  • feat/memory-breakdown
  • feat/stdin-args
  • fix/free-tier-hosts
  • fix/no-inherit-process-env
  • fix/pnpm-minimum-release-age
  • imgbot
  • master
  • next
  • perf
  • perf/puppeteer-rxjs
  • perf/skip-exact-install
  • process
  • runtime-benchmark

08 Nov 2026 04:38PM UTC coverage: 88.57% (+0.6%) from 88.0%
42500958803

push

github

web-flow
fix: subpath requires, and bundle only modules required with a string literal (#105)

* fix: require a file inside a package, ignore non-string requires

Two compile crashes from production (microlink-api EFATAL 500s):

- `require(1)` reached isBuiltinModule as a number and threw
  "moduleName.startsWith is not a function" before the code ran. Only a
  string literal is a dependency now; `require(1)` fails at run time like
  any other error the function throws.
- A subpath after the version became part of the version:
  `fairy-stockfish-nnue.wasm@1.1.11/stockfish.js` was handed to upm as a
  GitHub shorthand (codeload 404), `lodash/fp` was a malformed name and
  `@scope/pkg@1.0.5/file.js` a malformed tag. One parser now splits
  name, version and subpath for detection, install and the require
  rewrite, so the package is installed and the file is loaded.

The subpath splits only after a version, a ^ or ~ range, an x-range or
`latest`, so `isarray@juliangruber/isarray` stays a GitHub dependency and
a protocol version (`github:user/repo`) keeps its slashes.

A subpath with a `.`, `..` or empty segment, and a relative or absolute
specifier, is a DependencyNameError. Without it `lodash/../../<host
path>` passed `allow.dependencies` as `lodash` and esbuild bundled the
host file into the function. Before this change such specifiers were
rejected only because their name came out malformed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: validate every specifier esbuild resolves, not only require and import

detect-dependencies and transform-dependencies walked `require('x')` and
`import x from 'x'` only. esbuild also resolves at build time, on the
host, the static source of `import('x')`, `export * from 'x'`,
`export { y } from 'x'` and template literals without expressions. None
of them was validated, so `await import('/abs/host/file.json')` or
`import('../file.json')` bundled a host file outside the sandbox into
the function. This predates... (continued)

454 of 480 branches covered (94.58%)

Branch coverage included in aggregate %.

193 of 193 new or added lines in 7 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

1553 of 1786 relevant lines covered (86.95%)

4544.88 hits per line

Relevant lines Covered
Build:
Build:
1786 RELEVANT LINES 1553 COVERED LINES
4544.88 HITS PER LINE
Source Files on master
  • Tree
  • List 17
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
42500958803 master fix: subpath requires, and bundle only modules required with a string literal (#105) * fix: require a file inside a package, ignore non-string requires Two compile crashes from production (microlink-api EFATAL 500s): - `require(1)` reached isBu... push 08 Nov 2026 04:40PM UTC web-flow github
88.57
42499574161 Kikobeats/require-subpath Merge 6924a0e7a into 06883fea8 Pull #105 08 Nov 2026 04:23PM UTC web-flow github
88.57
42498642845 Kikobeats/require-subpath Merge c2f6a743c into 06883fea8 Pull #105 08 Nov 2026 04:12PM UTC web-flow github
88.5
42497544440 Kikobeats/require-subpath Merge 2256fe857 into 06883fea8 Pull #105 08 Nov 2026 04:00PM UTC web-flow github
88.4
42497312704 Kikobeats/require-subpath Merge 7e69fe35e into 06883fea8 Pull #105 08 Nov 2026 03:57PM UTC web-flow github
88.42
41485091198 Kikobeats/survive-malformed-ipc Merge efe4a5b81 into 06883fea8 Pull #103 02 Nov 2026 04:49PM UTC web-flow github
88.79
41483356733 master fix: bound what the host keeps per run (#102) * fix: bound what the host keeps per run The host remembered every distinct call by `method:JSON.stringify(args)` for the whole run. The isolate writes those arguments, so a 213-byte free-plan functi... push 02 Nov 2026 04:39PM UTC web-flow github
88.0
41482108458 Kikobeats/bound-host-calls Merge 7b0a2412f into b873b28d6 Pull #102 02 Nov 2026 04:31PM UTC web-flow github
88.0
41481528034 Kikobeats/ci-lts-only Merge 7ea278f07 into 3554cd956 Pull #104 02 Nov 2026 04:27PM UTC web-flow github
87.72
41479196338 Kikobeats/bound-host-calls Merge 19b1ab9b0 into 3554cd956 Pull #102 02 Nov 2026 04:13PM UTC web-flow github
88.0
See All Builds (264)

Badge your Repo: isolated-function

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc