Repository navigation
cli: remove --no-experimental-sqlite flag - #67698
christianaurichzm wants to merge 2 commits into
Conversation
|
Review requested:
|
82dfdb2 to
1f3f0a4
Compare
| // The option is a no-op, so builds without SQLite never expose node:sqlite. | ||
| ['sqlite', true, hasSQLite ? null : '--experimental-sqlite'], |
There was a problem hiding this comment.
That's confusing, IIUC that implies that when node was built without SQLite support, --experimental-sqlite is no longer no-op?
There was a problem hiding this comment.
No, it's still a no-op, so without SQLite the gate never opens. I reworded the comment. If you'd rather not rely on that, I can make lib/sqlite.js throw when SQLite is missing instead, like inspector does.
There was a problem hiding this comment.
Or how node:crypto throws when built --without-ssl; let's do that and document it
There was a problem hiding this comment.
Done, it now throws ERR_NO_SQLITE, documented in sqlite.md and errors.md. I tested it in a --without-sqlite build with #67722 applied.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #67698 +/- ##
==========================================
- Coverage 90.55% 90.54% -0.02%
==========================================
Files 801 801
Lines 284215 284221 +6
Branches 54887 54890 +3
==========================================
- Hits 257369 257335 -34
- Misses 17015 17049 +34
- Partials 9831 9837 +6
🚀 New features to boost your workflow:
|
1f3f0a4 to
72bdb99
Compare
72bdb99 to
e4a3bcb
Compare
|
Can we make |
e4a3bcb to
3a3f377
Compare
|
Sure, moved it to #67727, where the flag now defaults to |
In builds configured --without-sqlite, passing --experimental-sqlite exposes node:sqlite, and loading it then fails with "No such binding: sqlite". Throw ERR_NO_SQLITE instead, like node:crypto does without OpenSSL. Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
node:sqlite is stable, so it no longer needs an opt-out. --experimental-sqlite stays as an undocumented no-op, like --experimental-websocket. Builds without SQLite now expose the module, which throws ERR_NO_SQLITE when loaded. Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
3a3f377 to
d27501b
Compare
Follow-up to #67654, as discussed with @aduh95 there.
node:sqliteis stable now, so it doesn't need an opt-out. This makes--experimental-sqlitean undocumented no-op, like--experimental-websocketafter #65284. That's semver-major because--no-experimental-sqlitenow fails as an invalid negation, andnode.config.jsonrejects an"experimental-sqlite"key with either value.The first commit is from #67727 (
ERR_NO_SQLITEin builds without SQLite), split out so it can be backported. Only the second one is new here. With the flag gone, builds without SQLite now throw that error by default.