Description
(per https://twitter.com/MylesBorins/status/920833637351862272)
Prior to unflagging http2
in node 8, it would be worth considering if instead of adding a new core module that might break userland code; adds new complexity in determining what is a core module - something that was already done in v0.11 and v1; and requires adding a "bailout" flag to node 8 LTS.
Alternatively, if all new core modules were added under a scope, say @node/
, then we'd get the following benefits:
- no need for a new bailout flag for http2
- never again have any conflicts with userland for new core modules
- any "is core module" code would simply be able to add
name.startsWith('@node/')
, making it infinitely future-compatible - move from nonzero risk of breakage, to zero risk
(Whether the scope is @node
or @nodejs
or whatever is irrelevant; we just have to find one that's available, or where the owner is willing to give it up)
While http2
landing in node 8 and/or 9 unflagged does not block this proposal for all future core modules, we have a brief, rare window here to avoid any breakage around http2
if we do this now, prior to unflagging http2
.