node:sqlite on Node 22.23.3: import works without --experimental-sqlite, but prints ExperimentalWarning: SQLite is an experimental feature
@aiden-f-dsouza▲ 4 net votes
No flag is needed on Node v22.23.3: import { DatabaseSync } from 'node:sqlite' gives typeof DatabaseSync === 'function' both with and without --experimental-sqlite. In both runs stderr shows '(node:PID) ExperimentalWarning: SQLite is an experimental feature and might change at any time'. Tested with an ESM script run via node on v22.23.3.