diff --git a/CHANGELOG.md b/CHANGELOG.md index e6c86c3347b2..c2f97e184cd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ##### Unreleased - Added a workaround of a Closure Compiler unsafe optimization, [#972](https://github.com/zloirock/core-js/issues/972) - One more fix crashing of `Object.create(null)` on WSH, [#970](https://github.com/zloirock/core-js/issues/970) +- Added Deno 1.14 compat data mapping ##### 3.16.1 - 2021.08.09 - Fixed microtask implementation on iOS Pebble, [#967](https://github.com/zloirock/core-js/issues/967) diff --git a/packages/core-js-compat/src/mapping.mjs b/packages/core-js-compat/src/mapping.mjs index e4ab0420d36a..a55a93a2b56d 100644 --- a/packages/core-js-compat/src/mapping.mjs +++ b/packages/core-js-compat/src/mapping.mjs @@ -71,6 +71,7 @@ export default { [91, '1.9'], [92, '1.12'], [93, '1.13'], + [94, '1.14'], ], // https://github.com/mdn/browser-compat-data/blob/main/browsers/samsunginternet_android.json ChromeToSamsung: [ diff --git a/scripts/check-compat-data-mapping.mjs b/scripts/check-compat-data-mapping.mjs index 84f49f02d131..4c4de1fafa79 100644 --- a/scripts/check-compat-data-mapping.mjs +++ b/scripts/check-compat-data-mapping.mjs @@ -10,10 +10,10 @@ async function getJSON(path) { return result.json(); } -async function latestMDN(name) { +async function latestMDN(name, branch = 'mdn/browser-compat-data/main') { const { browsers: { [name]: { releases } }, - } = await getJSON(`https://raw.githubusercontent.com/mdn/browser-compat-data/main/browsers/${ name }.json`); + } = await getJSON(`https://raw.githubusercontent.com/${ branch }/browsers/${ name }.json`); const version = Object.keys(releases).reduce((a, b) => { return releases[b].engine_version && cmp(coerce(b), '>', coerce(a)) ? b : a; }); @@ -40,8 +40,8 @@ const [{ v8 }] = await getJSON('https://nodejs.org/dist/index.json'); assert(modernV8ToChrome(v8) <= latest(mapping.ChromeToNode)[0], 'NodeJS'); // wait for https://github.com/mdn/browser-compat-data/pull/10753 -// const deno = await latestMDN('deno'); -// assert(modernV8ToChrome(deno.engine) <= latest(mapping.ChromeToDeno)[0], 'Opera Mobile'); +const deno = await latestMDN('deno', 'lucacasonato/browser-compat-data/deno'); +assert(modernV8ToChrome(deno.engine) <= latest(mapping.ChromeToDeno)[0], 'Deno'); const samsung = await latestMDN('samsunginternet_android'); assert(samsung.engine <= latest(mapping.ChromeToSamsung)[0], 'Samsung Internet');