diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 86b25b36137262..ca1a0c6ba4b4ca 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2711,6 +2711,21 @@ Type: Documentation-only. Prefer [`message.socket`][] over [`message.connection`][]. +### DEP0XXX: Changing the value of `process.config` + + +Type: Runtime + +The `process.config` property is intended to provide access to configuration +settings set when the Node.js binary was compiled. However, the property has +been mutable by user code making it impossible to rely on. The ability to +change the value has been deprecated and will be disabled in the future. + [Legacy URL API]: url.md#url_legacy_url_api [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 diff --git a/doc/api/process.md b/doc/api/process.md index cfd1866f3d9f13..773686354efd8a 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -759,6 +759,10 @@ This feature is not available in [`Worker`][] threads. ## `process.config` * {Object} @@ -803,6 +807,10 @@ The `process.config` property is **not** read-only and there are existing modules in the ecosystem that are known to extend, modify, or entirely replace the value of `process.config`. +Modifying the `process.config` property, or any child-property of the +`process.config` object has been deprecated. The `process.config` will be made +read-only in a future release. + ## `process.connected`