Skip to content

Commit

Permalink
don't inherit web APIs for Deno from Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 11, 2021
1 parent e627833 commit 11bf5bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/core-js-compat/src/data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,7 @@ export const data = {
},
'web.dom-collections.for-each': {
chrome: '58',
deno: '1.0',
edge: '16',
firefox: '50',
node: '0.0.1',
Expand All @@ -1756,6 +1757,7 @@ export const data = {
},
'web.dom-collections.iterator': {
chrome: '66',
deno: '1.0',
firefox: '60',
node: '0.0.1',
safari: '13.1',
Expand All @@ -1767,6 +1769,7 @@ export const data = {
},
'web.queue-microtask': {
chrome: '71',
deno: '1.0',
firefox: '69',
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
node: '12.0', // '11.0',
Expand All @@ -1775,6 +1778,7 @@ export const data = {
'web.timers': {
android: '1.5',
chrome: '1',
deno: '1.0',
firefox: '1',
ie: '10',
node: '0.0.1',
Expand All @@ -1784,18 +1788,21 @@ export const data = {
},
'web.url': {
chrome: '67',
deno: '1.0',
firefox: '57',
node: '10.0',
safari: '14.0',
},
'web.url.to-json': {
chrome: '71',
deno: '1.0',
firefox: '57',
node: '10.0',
safari: '14.0',
},
'web.url-search-params': {
chrome: '67',
deno: '1.0',
firefox: '57',
node: '10.0',
safari: '14.0',
Expand Down
1 change: 1 addition & 0 deletions packages/core-js-compat/src/external.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default {
modules: {
chrome: '61',
deno: '1.0',
edge: '16',
firefox: '60',
safari: '10.1',
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-compat-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for (const scope of [data, external]) {
module.android = String(Math.max(chrome, 37));
}
map('ChromeToDeno');
if (/^(?:es|esnext|web)\./.test(key)) {
if (/^(?:es|esnext)\./.test(key)) {
map('ChromeToElectron');
}
if (!module.edge) {
Expand Down

0 comments on commit 11bf5bd

Please sign in to comment.