From 0e8ac5839550507a1f41f3ee67212e14bc6efa86 Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Tue, 8 Mar 2022 12:15:18 -0800 Subject: [PATCH] Add import assertion (now required by node@16) This should fix the breaking CI test. Apparently node@16 now throws if you try to import a .json file with no import assertion. Ref: https://github.com/nodejs/node/pull/40250 cc: @ctavan for sanity check to make sure this won't break anything. --- examples/node-esmodules/example.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/node-esmodules/example.mjs b/examples/node-esmodules/example.mjs index a265b459..38dfc40b 100644 --- a/examples/node-esmodules/example.mjs +++ b/examples/node-esmodules/example.mjs @@ -10,7 +10,7 @@ import { version as uuidVersion, } from 'uuid'; import * as uuid from 'uuid'; -import pkg from 'uuid/package.json'; +import pkg from 'uuid/package.json' assert {type: 'json'}; console.log('uuidv1()', uuidv1());