Skip to content

Commit

Permalink
add Rhino 1.8.0 compat data
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jan 2, 2025
1 parent a616e66 commit 4ebb3e3
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- [`Symbol.dispose`, `Symbol.asyncDispose` and `Iterator.prototype[@@dispose]`](https://github.com/tc39/proposal-explicit-resource-management) marked as shipped from FF135
- Fixed NodeJS version where `URL.parse` was added - 22.1 instead of 22.0
- Added [Deno 2.1](https://github.com/denoland/deno/releases/tag/v2.1.0) compat data mapping
- Added [Rhino 1.8.0](https://github.com/mozilla/rhino/releases/tag/Rhino1_8_0_Release) compat data with significant number of modern features
- Added Electron 35 compat data mapping
- Updated Opera 115+ compat data mapping
- Added Opera Android [86](https://forums.opera.com/topic/75006/opera-for-android-86) and 87 compat data mapping
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"compat-deno": "deno run --allow-read tests/compat/deno-runner.mjs",
"compat-hermes": "npm run zxi tests/compat/hermes-adapter.mjs",
"compat-node": "node tests/compat/node-runner",
"compat-rhino": "npm run zxi tests/compat/rhino-adapter.mjs 1.7.15",
"compat-rhino": "npm run zxi tests/compat/rhino-adapter.mjs",
"lint": "run-s prepare lint-raw",
"lint-raw": "run-s test-eslint test-type-definitions bundle-package test-publint",
"test": "run-s prepare test-raw",
Expand Down
51 changes: 50 additions & 1 deletion packages/core-js-compat/src/data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const data = {
'es.symbol.description': {
chrome: '70',
firefox: '63',
rhino: '1.8.0',
safari: '12.1',
},
'es.symbol.async-iterator': {
Expand Down Expand Up @@ -77,6 +78,7 @@ export const data = {
chrome: '73',
firefox: '67',
hermes: '0.6',
rhino: '1.8.0',
safari: '13',
},
'es.symbol.replace': {
Expand Down Expand Up @@ -134,6 +136,7 @@ export const data = {
chrome: '94',
firefox: '91',
hermes: '0.8',
rhino: '1.8.0',
safari: '15.0',
},
'es.error.to-string': {
Expand All @@ -151,13 +154,15 @@ export const data = {
firefox: '79',
hermes: '0.13',
'react-native': '0.72',
rhino: '1.8.0',
safari: '14.0',
},
'es.aggregate-error.cause': {
chrome: '94',
firefox: '91',
hermes: '0.13',
'react-native': '0.72',
rhino: '1.8.0',
safari: '15.0',
},
'es.array.at': {
Expand All @@ -178,6 +183,7 @@ export const data = {
chrome: '45',
edge: '12',
firefox: '48',
rhino: '1.8.0',
safari: '9.0',
},
'es.array.every': {
Expand All @@ -192,6 +198,7 @@ export const data = {
chrome: '45',
edge: '12',
firefox: '48',
rhino: '1.8.0',
safari: '9.0',
},
'es.array.filter': {
Expand All @@ -204,24 +211,28 @@ export const data = {
chrome: '45',
edge: '13',
firefox: '48',
rhino: '1.8.0',
safari: '9.0',
},
'es.array.find-index': {
chrome: '45',
edge: '13',
firefox: '48',
rhino: '1.8.0',
safari: '9.0',
},
'es.array.find-last': {
chrome: '97',
firefox: '104',
hermes: '0.11',
rhino: '1.8.0',
safari: '15.4',
},
'es.array.find-last-index': {
chrome: '97',
firefox: '104',
hermes: '0.11',
rhino: '1.8.0',
safari: '15.4',
},
'es.array.flat': {
Expand Down Expand Up @@ -260,6 +271,7 @@ export const data = {
edge: '14',
// FF99-101 broken on sparse arrays
firefox: '102', // '48',
rhino: '1.8.0',
safari: '10.0',
},
'es.array.index-of': {
Expand All @@ -283,6 +295,7 @@ export const data = {
chrome: '66',
edge: '15',
firefox: '60',
rhino: '1.8.0',
safari: '10.0',
},
'es.array.join': {
Expand Down Expand Up @@ -370,6 +383,7 @@ export const data = {
chrome: '70',
firefox: '4',
hermes: '0.10',
rhino: '1.8.0',
safari: '12.0',
},
'es.array.species': {
Expand All @@ -391,12 +405,14 @@ export const data = {
firefox: '115',
hermes: '0.13',
'react-native': '0.74',
rhino: '1.8.0',
safari: '16.0',
},
'es.array.to-sorted': {
chrome: '110',
deno: '1.27',
firefox: '115',
rhino: '1.8.0',
safari: '16.0',
},
'es.array.to-spliced': {
Expand All @@ -405,16 +421,19 @@ export const data = {
firefox: '115',
hermes: '0.13',
'react-native': '0.74',
rhino: '1.8.0',
safari: '16.0',
},
'es.array.unscopables.flat': {
chrome: '73',
firefox: '67',
rhino: '1.8.0',
safari: '13',
},
'es.array.unscopables.flat-map': {
chrome: '73',
firefox: '67',
rhino: '1.8.0',
safari: '13',
},
'es.array.unshift': {
Expand All @@ -431,13 +450,15 @@ export const data = {
firefox: '115',
hermes: '0.13',
'react-native': '0.74',
rhino: '1.8.0',
safari: '16.0',
},
'es.array-buffer.constructor': {
chrome: '28',
edge: '14',
firefox: '44',
hermes: '0.1',
rhino: '1.8.0',
safari: '12.0',
},
'es.array-buffer.is-view': {
Expand Down Expand Up @@ -541,6 +562,7 @@ export const data = {
edge: '15',
firefox: '44',
hermes: '0.1',
rhino: '1.8.0',
safari: '10.0',
},
// TODO: Remove from `core-js@4`
Expand Down Expand Up @@ -677,6 +699,7 @@ export const data = {
firefox: '64',
hermes: '0.13',
'react-native': '0.72',
rhino: '1.8.0',
safari: '12.1',
},
'es.json.to-string-tag': {
Expand All @@ -703,6 +726,7 @@ export const data = {
bun: '1.1.2', // '1.0.19',
chrome: '117',
firefox: '119',
rhino: '1.8.0',
// https://bugs.webkit.org/show_bug.cgi?id=271524
safari: '18.0', // '17.4',
},
Expand Down Expand Up @@ -1073,6 +1097,7 @@ export const data = {
bun: '1.1.2', // '1.0.19',
chrome: '117',
firefox: '119',
rhino: '1.8.0',
// https://bugs.webkit.org/show_bug.cgi?id=271524
safari: '18.0', // '17.4',
},
Expand Down Expand Up @@ -1178,6 +1203,7 @@ export const data = {
edge: '15',
firefox: '51',
hermes: '0.1',
rhino: '1.8.0',
safari: '10.0',
},
'es.object.values': {
Expand Down Expand Up @@ -1246,6 +1272,7 @@ export const data = {
// `unhandledrejection` event support was added in [email protected]
deno: '1.24',
firefox: '79',
rhino: '1.8.0',
safari: '14.0',
},
'es.promise.catch': {
Expand Down Expand Up @@ -1309,6 +1336,7 @@ export const data = {
edge: '15',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.construct': {
Expand All @@ -1323,62 +1351,71 @@ export const data = {
edge: '13',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.delete-property': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.get': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.get-own-property-descriptor': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.get-prototype-of': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.has': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.is-extensible': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.own-keys': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.prevent-extensions': {
chrome: '49',
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.set': {
Expand All @@ -1395,12 +1432,14 @@ export const data = {
edge: '12',
firefox: '42',
hermes: '0.7',
rhino: '1.8.0',
safari: '10.0',
},
'es.reflect.to-string-tag': {
chrome: '86',
firefox: '82',
hermes: '0.7',
rhino: '1.8.0',
safari: '14.0',
},
'es.regexp.constructor': {
Expand Down Expand Up @@ -1555,7 +1594,8 @@ export const data = {
firefox: '90',
hermes: '0.13',
'react-native': '0.71',
rhino: '1.7.15',
// rhino 1.8.0 tests shows as not supported
// rhino: '1.7.15',
safari: '15.4',
},
'es.string.code-point-at': {
Expand Down Expand Up @@ -1592,6 +1632,7 @@ export const data = {
bun: '0.4.0',
chrome: '111',
firefox: '119',
rhino: '1.8.0',
safari: '16.4',
},
'es.string.iterator': {
Expand All @@ -1613,6 +1654,7 @@ export const data = {
chrome: '80', // '73',
firefox: '73', // '67',
hermes: '0.6',
rhino: '1.8.0',
safari: '13.1', // '13',
},
'es.string.pad-end': {
Expand Down Expand Up @@ -1694,13 +1736,15 @@ export const data = {
bun: '0.5.7', // '0.4.0',
chrome: '111',
firefox: '119',
rhino: '1.8.0',
safari: '16.4',
},
'es.string.trim': {
chrome: '59',
edge: '15',
firefox: '52',
hermes: '0.1',
rhino: '1.8.0',
safari: '12.1',
},
'es.string.trim-end': {
Expand Down Expand Up @@ -1934,12 +1978,14 @@ export const data = {
chrome: '97',
firefox: '104',
hermes: '0.11',
rhino: '1.8.0',
safari: '15.4',
},
'es.typed-array.find-last-index': {
chrome: '97',
firefox: '104',
hermes: '0.11',
rhino: '1.8.0',
safari: '15.4',
},
'es.typed-array.for-each': {
Expand Down Expand Up @@ -2069,12 +2115,14 @@ export const data = {
chrome: '110',
deno: '1.27',
firefox: '115',
rhino: '1.8.0',
safari: '16.0',
},
'es.typed-array.to-sorted': {
chrome: '110',
deno: '1.27',
firefox: '115',
rhino: '1.8.0',
safari: '16.0',
},
'es.typed-array.to-string': {
Expand All @@ -2089,6 +2137,7 @@ export const data = {
chrome: '110',
deno: '1.27',
firefox: '115',
rhino: '1.8.0',
safari: '16.4',
},
'es.unescape': {
Expand Down
Loading

0 comments on commit 4ebb3e3

Please sign in to comment.