From 97d9ccdeb842fa94b1544f83aff6b8bf23dc65d1 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Fri, 10 Aug 2018 12:10:24 -0400 Subject: 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 Reviewed-By: Jon Moss Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- BUILDING.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'BUILDING.md') 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. -- cgit v1.2.3