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.60% 90.54% -0.07%
==========================================
Files 801 801
Lines 281140 284125 +2985
Branches 54275 54867 +592
==========================================
+ Hits 254739 257268 +2529
- Misses 16576 17018 +442
- Partials 9825 9839 +14
🚀 New features to boost your workflow:
|
1f3f0a4 to
72bdb99
Compare
72bdb99 to
e4a3bcb
Compare
|
Can we make |
Builds configured --without-sqlite hide node:sqlite because --experimental-sqlite defaults to false there. Make the flag default to true in every build and throw ERR_NO_SQLITE when the module is loaded without SQLite, 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. Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
e4a3bcb to
3a3f377
Compare
|
Sure, moved it to #67727, where the flag now defaults to |
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.