src: update NODE_MODULE_VERSION to 140

Major V8 updates are usually API/ABI incompatible with previous
versions. This commit adapts NODE_MODULE_VERSION for V8 14.1.

Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
This commit is contained in:
Michaël Zasso 2025-08-05 18:26:03 +02:00
parent df329bed82
commit ca4c7e034e
No known key found for this signature in database
GPG key ID: 770F7A9A5AE15600
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{
"NODE_MODULE_VERSION": [
{ "modules": 140, "runtime": "node", "variant": "v8_14.1", "versions": "25.0.0-pre" },
{ "modules": 139,"runtime": "electron", "variant": "electron", "versions": "38" },
{ "modules": 138,"runtime": "node", "variant": "v8_13.7", "versions": "25.0.0-pre" },
{ "modules": 137,"runtime": "node", "variant": "v8_13.6", "versions": "24.0.0" },

View file

@ -95,7 +95,7 @@
#if defined(NODE_EMBEDDER_MODULE_VERSION)
#define NODE_MODULE_VERSION NODE_EMBEDDER_MODULE_VERSION
#else
#define NODE_MODULE_VERSION 138
#define NODE_MODULE_VERSION 140
#endif
// The NAPI_VERSION supported by the runtime. This is the inclusive range of