-
Couldn't load subscription status.
- Fork 1.4k
Closed
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing codefeatureNew functionality or improvementNew functionality or improvement
Description
Support plan
- is this issue currently blocking your project? (yes/no): no
- is this issue affecting a production system? (yes/no): no
Context
- node version: n/a
- module version: v20.x
- environment (e.g. node, browser, native): node
- used with (e.g. hapi application, another framework, standalone, ...): standalone
- any other relevant information:
What problem are you trying to solve?
Allow to develop hapi and modules using more current node.js and javascript APIs and features. v12 is in maintenance mode and support ends 2022-04-30.
New JS features we can use:
- Optional chaining syntax (
?.). - Nullish coalescing operator (
a ?? b). - Private class methods (
this.#privateMethod()). WeakRefsupport.
From node 14 (LTS with v14.15.0) we get:
- ESM modules (stable from v14.17.0, but also in v12.22.0).
- Top-Level
awaitsupport. - A more stable
stream.pipeline(). Fs.rm()method.
If we require v14.17+, we could also sneak in:
AbortSignalsupport in node APIs.
Do you have a new or modified API suggestion to solve the problem?
N/A.
Nargonath and jonathansamines
Metadata
Metadata
Assignees
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing codefeatureNew functionality or improvementNew functionality or improvement