File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
packages/core-js-compat/src Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 22##### Unreleased
33- Added a workaround of a Closure Compiler unsafe optimization, [ #972 ] ( https://github.com/zloirock/core-js/issues/972 )
44- One more fix crashing of ` Object.create(null) ` on WSH, [ #970 ] ( https://github.com/zloirock/core-js/issues/970 )
5+ - Added Deno 1.14 compat data mapping
56
67##### 3.16.1 - 2021.08.09
78- Fixed microtask implementation on iOS Pebble, [ #967 ] ( https://github.com/zloirock/core-js/issues/967 )
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export default {
7171 [ 91 , '1.9' ] ,
7272 [ 92 , '1.12' ] ,
7373 [ 93 , '1.13' ] ,
74+ [ 94 , '1.14' ] ,
7475 ] ,
7576 // https://github.com/mdn/browser-compat-data/blob/main/browsers/samsunginternet_android.json
7677 ChromeToSamsung : [
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ async function getJSON(path) {
1010 return result . json ( ) ;
1111}
1212
13- async function latestMDN ( name ) {
13+ async function latestMDN ( name , branch = 'mdn/browser-compat-data/main' ) {
1414 const {
1515 browsers : { [ name ] : { releases } } ,
16- } = await getJSON ( `https://raw.githubusercontent.com/mdn/browser-compat-data/main /browsers/${ name } .json` ) ;
16+ } = await getJSON ( `https://raw.githubusercontent.com/${ branch } /browsers/${ name } .json` ) ;
1717 const version = Object . keys ( releases ) . reduce ( ( a , b ) => {
1818 return releases [ b ] . engine_version && cmp ( coerce ( b ) , '>' , coerce ( a ) ) ? b : a ;
1919 } ) ;
@@ -40,8 +40,8 @@ const [{ v8 }] = await getJSON('https://nodejs.org/dist/index.json');
4040assert ( modernV8ToChrome ( v8 ) <= latest ( mapping . ChromeToNode ) [ 0 ] , 'NodeJS' ) ;
4141
4242// wait for https://github.com/mdn/browser-compat-data/pull/10753
43- // const deno = await latestMDN('deno');
44- // assert(modernV8ToChrome(deno.engine) <= latest(mapping.ChromeToDeno)[0], 'Opera Mobile ');
43+ const deno = await latestMDN ( 'deno' , 'lucacasonato/browser-compat-data/ deno') ;
44+ assert ( modernV8ToChrome ( deno . engine ) <= latest ( mapping . ChromeToDeno ) [ 0 ] , 'Deno ' ) ;
4545
4646const samsung = await latestMDN ( 'samsunginternet_android' ) ;
4747assert ( samsung . engine <= latest ( mapping . ChromeToSamsung ) [ 0 ] , 'Samsung Internet' ) ;
You can’t perform that action at this time.
0 commit comments