Skip to content

Commit

Permalink
add Rhino 1.7.15 compat data
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 4, 2024
1 parent e04d255 commit de8ce56
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- `Math.f16round` and `DataView.prototype.{ getFloat16, setFloat16 }` from [`Float16Array` proposal](https://github.com/tc39/proposal-float16array) added and marked as [supported from Deno 1.43](https://github.com/denoland/deno/pull/23490)
- [`URL.parse`](https://url.spec.whatwg.org/#dom-url-parse) added and marked as [supported from NodeJS 22.0](https://github.com/nodejs/node/pull/52280)
- [`URL.parse`](https://url.spec.whatwg.org/#dom-url-parse) added and marked as [supported from Deno 1.43](https://github.com/denoland/deno/pull/23318)
- Added [Rhino 1.7.15](https://github.com/mozilla/rhino/releases/tag/Rhino1_7_15_Release) compat data, many features marked as supported

This comment has been minimized.

Copy link
@gausie

gausie May 8, 2024

Contributor

Wow thank you for doing this for us!

- Added [NodeJS 22.0](https://nodejs.org/en/blog/release/v22.0.0) compat data mapping
- Added [Deno 1.43](https://github.com/denoland/deno/releases/tag/v1.43.0) compat data mapping
- Added Electron 31 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.14",
"compat-rhino": "npm run zxi tests/compat/rhino-adapter.mjs 1.7.15",
"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
19 changes: 19 additions & 0 deletions packages/core-js-compat/src/data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const data = {
edge: '15',
firefox: '51',
hermes: '0.1',
rhino: '1.7.15',
safari: '10.0',
},
'es.symbol.constructor': {
Expand Down Expand Up @@ -161,6 +162,7 @@ export const data = {
chrome: '92',
firefox: '90',
'react-native': '0.71',
rhino: '1.7.15',
safari: '15.4',
},
'es.array.concat': {
Expand Down Expand Up @@ -223,12 +225,14 @@ export const data = {
chrome: '69',
firefox: '62',
hermes: '0.4',
rhino: '1.7.15',
safari: '12.0',
},
'es.array.flat-map': {
chrome: '69',
firefox: '62',
hermes: '0.4',
rhino: '1.7.15',
safari: '12.0',
},
'es.array.for-each': {
Expand Down Expand Up @@ -368,6 +372,7 @@ export const data = {
chrome: '51',
edge: '13',
firefox: '48',
rhino: '1.7.15',
safari: '10.0',
},
'es.array.splice': {
Expand Down Expand Up @@ -593,6 +598,7 @@ export const data = {
edge: '15',
firefox: '51',
hermes: '0.1',
rhino: '1.7.15',
safari: '10.0',
},
// TODO: Remove this module from `core-js@4` since it's replaced to module below
Expand Down Expand Up @@ -746,6 +752,7 @@ export const data = {
edge: '15',
firefox: '51',
hermes: '0.1',
rhino: '1.7.15',
safari: '10.0',
},
'es.math.trunc': {
Expand Down Expand Up @@ -947,6 +954,7 @@ export const data = {
edge: '15',
firefox: '50',
hermes: '0.6',
rhino: '1.7.15',
safari: '10.0',
},
'es.object.get-own-property-names': {
Expand Down Expand Up @@ -985,6 +993,7 @@ export const data = {
chrome: '93',
firefox: '92',
hermes: '0.10',
rhino: '1.7.15',
safari: '15.4',
},
'es.object.is': {
Expand Down Expand Up @@ -1142,6 +1151,7 @@ export const data = {
// `unhandledrejection` event support was added in Deno@1.24
deno: '1.24',
firefox: '71',
rhino: '1.7.15',
safari: '13',
},
'es.promise.any': {
Expand Down Expand Up @@ -1309,6 +1319,7 @@ export const data = {
chrome: '62',
firefox: '78',
hermes: '0.4',
rhino: '1.7.15',
safari: '11.1',
},
'es.regexp.exec': {
Expand All @@ -1329,6 +1340,7 @@ export const data = {
edge: '13',
firefox: '3',
hermes: '0.3',
rhino: '1.7.15',
safari: '10.0',
},
'es.regexp.test': {
Expand All @@ -1340,6 +1352,7 @@ export const data = {
chrome: '50',
firefox: '46',
hermes: '0.1',
rhino: '1.7.15',
safari: '10.0',
},
// TODO: Remove this module from `core-js@4` since it's replaced to module below
Expand Down Expand Up @@ -1419,6 +1432,7 @@ export const data = {
chrome: '92',
firefox: '90',
'react-native': '0.71',
rhino: '1.7.15',
safari: '15.4',
},
'es.string.code-point-at': {
Expand All @@ -1433,6 +1447,7 @@ export const data = {
chrome: '51',
firefox: '40',
hermes: '0.1',
rhino: '1.7.15',
safari: '10.0',
},
'es.string.from-code-point': {
Expand All @@ -1447,6 +1462,7 @@ export const data = {
chrome: '51',
firefox: '40',
hermes: '0.1',
rhino: '1.7.15',
safari: '10.0',
},
'es.string.is-well-formed': {
Expand Down Expand Up @@ -1518,6 +1534,7 @@ export const data = {
chrome: '85',
firefox: '77',
hermes: '0.7',
rhino: '1.7.15',
safari: '13.1',
},
'es.string.search': {
Expand All @@ -1535,6 +1552,7 @@ export const data = {
chrome: '51',
firefox: '40',
hermes: '0.1',
rhino: '1.7.15',
safari: '10.0',
},
'es.string.substr': {
Expand Down Expand Up @@ -1743,6 +1761,7 @@ export const data = {
chrome: '92',
firefox: '90',
'react-native': '0.71',
rhino: '1.7.15',
safari: '15.4',
},
'es.typed-array.copy-within': {
Expand Down

0 comments on commit de8ce56

Please sign in to comment.