summaryrefslogtreecommitdiff
path: root/BUILDING.md
diff options
context:
space:
mode:
authorMyles Borins <mylesborins@google.com>2018-08-10 12:10:24 -0400
committerMyles Borins <mylesborins@google.com>2018-10-29 15:36:30 -0400
commit97d9ccdeb842fa94b1544f83aff6b8bf23dc65d1 (patch)
tree27802e6e338382abb2781339e246359e97e44a37 /BUILDING.md
parent2812759f9352e2d180aeea8c1999dd2c6ab36371 (diff)
downloadandroid-node-v8-97d9ccdeb842fa94b1544f83aff6b8bf23dc65d1.tar.gz
android-node-v8-97d9ccdeb842fa94b1544f83aff6b8bf23dc65d1.tar.bz2
android-node-v8-97d9ccdeb842fa94b1544f83aff6b8bf23dc65d1.zip
doc: add note about ABI compatibility
Building node against versions of the dependencies that differ from the ones we vendor will result in a non ABI compatible version of Node.js This patch adds a note to make it explicit that if individuals build node against different versions of a dependency they should make a custom NODE_MODULE_VERSION. PR-URL: https://github.com/nodejs/node/pull/22237 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'BUILDING.md')
-rw-r--r--BUILDING.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/BUILDING.md b/BUILDING.md
index 81157a91a6..0a81a7eb9c 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -528,3 +528,14 @@ To make `./myModule.js` available via `require('myModule')` and
```console
> .\vcbuild link-module './myModule.js' link-module './myModule2.js'
```
+
+## Note for downstream distributors of Node.js
+
+The Node.js ecosystem is reliant on ABI compatibility within a major
+release. To maintain ABI compatibility it is required that production
+builds of Node.js will be built against the same version of dependencies as the
+project vendors. If Node.js is to be built against a different version of a
+dependency please create a custom `NODE_MODULE_VERSION` to ensure ecosystem
+compatibility. Please consult with the TSC by opening an issue at
+https://github.com/nodejs/tsc/issues if you decide to create a custom
+`NODE_MODULE_VERSION` so we can avoid duplication in the ecosystem.