v4.x
v4.2.0 Changelog
See what's new in Kener v4.2.0, including a sandbox for custom monitor eval code
Release date: November 4, 2026
Important
Custom eval code now runs in a sandbox. Eval code that uses Node.js features such as fetch, process, or Buffer stops working and reports DOWN. Check your custom evals before you upgrade. See What to do.
Custom eval sandbox
API, Ping, TCP, and GameDig monitors now run custom eval code in a sandbox. The sandbox keeps the JavaScript language, modules.cheerio, atob, and btoa. console still works but writes nothing.
- Each eval has a limit of 10 seconds and 256 MB. An eval that goes over a limit reports DOWN with type
ERROR. - All four monitor types now accept only
UP,DEGRADED,DOWN, orMAINTENANCEas astatus. Before, Ping, TCP, and GameDig saved any other value as it was. Now such a value reports DOWN with typeERROR. - A GameDig eval with a syntax error now reports DOWN. Before, the check failed with no result.
- An invalid
statuserror now names the value that the eval returned. - Cheerio runs about 20 times slower in the sandbox. A 1 MB page takes about 2 seconds.
modules.cheeriokeepsload,contains, andmerge. It no longer hasfromURL,loadBuffer,stringStream, ordecodeStream. Kener loads it only when the eval contains the wordcheerio.Intldoes not exist in the sandbox, sotoLocaleString()no longer adds thousands separators or local date formats.- A response body above 100 MB can go over the memory limit and report DOWN.
What to do
- Search your custom evals for
fetch,process,require,import(,Buffer,setTimeout,URL,TextDecoder,crypto, andIntl. - Rewrite each eval that uses one of these. To replace
fetch, see Replacefetchin an eval. - After you upgrade, look for
is not definedin the error of each monitor that reports DOWN.