Skip to content

Commit

Permalink
add missed NodeJS 13.2 to esmodules core-js-compat / `core-js-bui…
Browse files Browse the repository at this point in the history
…lder` target
  • Loading branch information
zloirock committed Aug 21, 2022
1 parent 9f4af1f commit 4c9c6d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,7 @@
- Availability cloning of `FileList` in the `structuredClone` polyfill extended to some more old engines versions
- Some stylistic changes and minor fixes
- Throwing a `TypeError` in `core-js-compat` / `core-js-builder` in case of passing invalid module names / filters for avoiding unexpected result, related to [#1115](https://github.com/zloirock/core-js/issues/1115)
- Added missed NodeJS 13.2 to `esmodules` `core-js-compat` / `core-js-builder` target
- Added Electron 21 compat data mapping
- Added Oculus Browser 23.0 compat data mapping

Expand Down
1 change: 1 addition & 0 deletions packages/core-js-compat/src/external.mjs
Expand Up @@ -5,6 +5,7 @@ export default {
deno: '1.0',
edge: '16',
firefox: '60',
node: '13.2',
safari: '10.1',
},
};
11 changes: 6 additions & 5 deletions tests/compat-tools/targets-parser.mjs
Expand Up @@ -31,6 +31,7 @@ deepStrictEqual(targetsParser({ esmodules: true }), new Map([
['edge', '16'],
['firefox', '60'],
['ios', '10.3'],
['node', '13.2'],
['oculus', '4.0'],
['opera', '48'],
['opera_mobile', '45'],
Expand All @@ -39,11 +40,11 @@ deepStrictEqual(targetsParser({ esmodules: true }), new Map([
]), 'targets.esmodules');

deepStrictEqual(targetsParser({ node: 'current' }), new Map([
['node', String(process.versions.node)],
['node', process.versions.node],
]), 'targets.node: current');

deepStrictEqual(targetsParser({ node: '13.2' }), new Map([
['node', '13.2'],
deepStrictEqual(targetsParser({ node: '14.0' }), new Map([
['node', '14.0'],
]), 'targets.node: version');

deepStrictEqual(targetsParser({
Expand All @@ -64,7 +65,7 @@ deepStrictEqual(targetsParser({

deepStrictEqual(targetsParser({
esmodules: true,
node: 'current',
node: '12.0',
browsers: 'edge 13, safari 5.1, ios 13',
android: '4.2',
chrome: 77,
Expand All @@ -87,7 +88,7 @@ deepStrictEqual(targetsParser({
['firefox', '60'],
['ie', '8'],
['ios', '10.3'],
['node', String(process.versions.node)],
['node', '12.0'],
['oculus', '4.0'],
['opera', '48'],
['opera_mobile', '40'],
Expand Down

0 comments on commit 4c9c6d6

Please sign in to comment.