baseline-browser-mapping not compatible with nodejs22

Hey webdx members,
The module unfortunately does not work with nodejs 22:
https://www.npmjs.com/package/baseline-browser-mapping

cause: /baseline-browser-mapping/dist/scripts/baseline-browser-versions.js


import bcdBrowsers from "@mdn/browser-compat-data" assert { type: "json" };
import otherBrowsers from "../data/downstream-browsers.json" assert { type:
"json" };


This is due to support for "import assertions" being removed from Node in
favour of "import attributes", which are essentially the same thing except
you have to use the keyword with instead of assert:

see: https://stackoverflow.com/a/78876692/1059828

Unfortunately I wasn't able to find any public repository where to issue a
PR or bug report.

Kind regards

Karl Adler

-- 
Karl Adler

Tel. +49.151.50716666
adler@fudler.de
Karl Adler - Fudler - IT-Solutions

Received on Monday, 3 February 2025 08:41:37 UTC