Skip to content

Commit

Permalink
fix dependencies loading for modules from `ArrayBuffer.prototype.tran…
Browse files Browse the repository at this point in the history
…sfer` and friends proposal
  • Loading branch information
zloirock committed Feb 14, 2024
1 parent 9eace59 commit a3d51ed
Show file tree
Hide file tree
Showing 5 changed files with 14 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 @@
- Fixed a missed check in `Array.prototype.{ indexOf, lastIndexOf, includes }`, [#1325](https://github.com/zloirock/core-js/issues/1325), thanks [**@minseok-choe**](https://github.com/minseok-choe)
- Fixed a missed check in `Array.prototype.{ reduce, reduceRight }`, [#1327](https://github.com/zloirock/core-js/issues/1327), thanks [**@minseok-choe**](https://github.com/minseok-choe)
- Fixed `Array.from` and some other methods with proxy targets, [#1322](https://github.com/zloirock/core-js/issues/1322), thanks [**@minseok-choe**](https://github.com/minseok-choe)
- Fixed dependencies loading for modules from `ArrayBuffer.prototype.transfer` and friends proposal in some specific cases in IE10-
- Dropped context workaround from collection static methods entries since with current methods semantic it's no longer required
- Added instance methods polyfills to entries of collections static methods that produce collection instances
- Added missed `Date.prototype.toJSON` to `JSON.stringify` entries dependencies
Expand Down
20 changes: 10 additions & 10 deletions packages/core-js-compat/src/data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,16 @@ export const data = {
rhino: '1.7.13',
safari: '12.1',
},
// TODO: Remove this module from `core-js@4` since it's replaced to module below
'es.data-view': null,
'es.data-view.constructor': {
chrome: '26',
firefox: '15',
hermes: '0.1',
ie: '10',
rhino: '1.7.13',
safari: '7.1',
},
'es.array-buffer.detached': {
bun: '1.0.19',
chrome: '114',
Expand All @@ -458,16 +468,6 @@ export const data = {
firefox: '122',
safari: '17.4',
},
// TODO: Remove this module from `core-js@4` since it's replaced to module below
'es.data-view': null,
'es.data-view.constructor': {
chrome: '26',
firefox: '15',
hermes: '0.1',
ie: '10',
rhino: '1.7.13',
safari: '7.1',
},
'es.date.get-year': {
chrome: '1',
firefox: '1',
Expand Down
1 change: 1 addition & 0 deletions packages/core-js/es/array-buffer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require('../../modules/es.array-buffer.constructor');
require('../../modules/es.array-buffer.is-view');
require('../../modules/es.array-buffer.slice');
require('../../modules/es.data-view');
require('../../modules/es.array-buffer.detached');
require('../../modules/es.array-buffer.transfer');
require('../../modules/es.array-buffer.transfer-to-fixed-length');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';
require('../../modules/es.array-buffer.constructor');
require('../../modules/es.array-buffer.slice');
require('../../modules/es.data-view');
require('../../modules/es.array-buffer.transfer-to-fixed-length');
1 change: 1 addition & 0 deletions packages/core-js/es/array-buffer/transfer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';
require('../../modules/es.array-buffer.constructor');
require('../../modules/es.array-buffer.slice');
require('../../modules/es.data-view');
require('../../modules/es.array-buffer.transfer');

0 comments on commit a3d51ed

Please sign in to comment.