Page MenuHomePhabricator

[keyserver] Update loader.mjs for new version of Node
ClosedPublic

Authored by ashoat on Oct 12 2022, 10:27 AM.
Tags
None
Referenced Files
F3401210: D5352.id17521.diff
Mon, Dec 2, 10:57 AM
F3400857: D5352.diff
Mon, Dec 2, 9:13 AM
Unknown Object (File)
Wed, Nov 27, 1:11 AM
Unknown Object (File)
Mon, Nov 25, 10:35 PM
Unknown Object (File)
Mon, Nov 25, 10:35 PM
Unknown Object (File)
Tue, Nov 19, 4:23 PM
Unknown Object (File)
Tue, Nov 19, 4:23 PM
Unknown Object (File)
Tue, Nov 19, 4:23 PM
Subscribers

Details

Summary

Newer versions of Node replace defaultResolve with nextResolve, and make it return a Promise.

Test Plan

I tested this with both Node 16.9 (.nvmrc) and Node 16.17.1. It doesn't break backwards compatibility with the old version of Node, but it introduces compatibility with the new one

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/nodeupgrade
Lint
No Lint Coverage
Unit
No Test Coverage