pub const NODE_MAJOR_FLOOR: u32 = 22;Expand description
Minimum supported Node.js major version for the node platform binding
and for running Bynk’s emitted TypeScript.
Single source of truth for the Node floor: the emitted code targets it, the
bynk driver’s doctor command compares a detected node against it, and
bynkc’s CLI re-exports it rather than restating the number. Lives in
bynk-emit (which emits the TS that runs on Node) so both binaries share one
definition (slice 7; was a bynkc const before the driver dropped that dep).
#1674: 22, the oldest Node major still in support (18 reached end-of-life in
April 2025, 20 in April 2026), and the one bynkc test --inspect needs. So
bynk doctor’s ok means the commands work, not merely that Node exists.
The --inspect path checks its own minor floor (22.6 to run, 22.18 for
source-mapped breakpoints) and says so when it isn’t met.