Skip to content

Commit

Permalink
simplify and improve commonjs entries testing, test coverage of those…
Browse files Browse the repository at this point in the history
… tests, fix some entries
  • Loading branch information
zloirock committed Aug 7, 2021
1 parent 823785e commit 6ee268d
Show file tree
Hide file tree
Showing 32 changed files with 888 additions and 1,764 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Changelog
##### Unreleased
- Fixed microtask implementation on iOS Pebble, [#967](https://github.com/zloirock/core-js/issues/967)
- Fixed some entry points
- Improved old Safari compat data

##### 3.16.0 - 2021.07.30
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2873,9 +2873,9 @@ function getIteratorMethod(value: any): Function | void;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js-pure/features/is-iterable
core-js-pure/features/get-iterator
core-js-pure/features/get-iterator-method
core-js-pure/es|stable|features/is-iterable
core-js-pure/es|stable|features/get-iterator
core-js-pure/es|stable|features/get-iterator-method
```
[*Examples*](http://goo.gl/SXsM6D):
```js
Expand Down
5 changes: 5 additions & 0 deletions packages/core-js/es/get-iterator-method.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require('../modules/es.array.iterator');
require('../modules/es.string.iterator');
var getIteratorMethod = require('../internals/get-iterator-method');

module.exports = getIteratorMethod;
5 changes: 5 additions & 0 deletions packages/core-js/es/get-iterator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require('../modules/es.array.iterator');
require('../modules/es.string.iterator');
var getIterator = require('../internals/get-iterator');

module.exports = getIterator;
5 changes: 5 additions & 0 deletions packages/core-js/es/is-iterable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require('../modules/es.array.iterator');
require('../modules/es.string.iterator');
var isIterable = require('../internals/is-iterable');

module.exports = isIterable;
7 changes: 2 additions & 5 deletions packages/core-js/features/get-iterator-method.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require('../modules/es.array.iterator');
require('../modules/es.string.iterator');
require('../modules/web.dom-collections.iterator');
var getIteratorMethod = require('../internals/get-iterator-method');
var parent = require('../stable/get-iterator-method');

module.exports = getIteratorMethod;
module.exports = parent;
7 changes: 2 additions & 5 deletions packages/core-js/features/get-iterator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require('../modules/es.array.iterator');
require('../modules/es.string.iterator');
require('../modules/web.dom-collections.iterator');
var getIterator = require('../internals/get-iterator');
var parent = require('../stable/get-iterator');

module.exports = getIterator;
module.exports = parent;
7 changes: 2 additions & 5 deletions packages/core-js/features/is-iterable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require('../modules/es.array.iterator');
require('../modules/es.string.iterator');
require('../modules/web.dom-collections.iterator');
var isIterable = require('../internals/is-iterable');
var parent = require('../stable/is-iterable');

module.exports = isIterable;
module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/float32-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/float32-array');
require('../../features/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/float64-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/float64-array');
require('../../features/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/int16-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/int16-array');
require('../../features/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/int32-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/int32-array');
require('../../features/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/int8-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/int8-array');
require('../../features/typed-array/methods');

module.exports = parent;
12 changes: 12 additions & 0 deletions packages/core-js/features/typed-array/methods.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var parent = require('../../stable/typed-array/methods');
require('../../modules/es.map');
require('../../modules/esnext.typed-array.at');
// TODO: Remove from `core-js@4`
require('../../modules/esnext.typed-array.filter-out');
require('../../modules/esnext.typed-array.filter-reject');
require('../../modules/esnext.typed-array.find-last');
require('../../modules/esnext.typed-array.find-last-index');
require('../../modules/esnext.typed-array.group-by');
require('../../modules/esnext.typed-array.unique-by');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/uint16-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/uint16-array');
require('../../features/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/uint32-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/uint32-array');
require('../../features/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/features/typed-array/uint8-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/uint8-array');
require('../../features/typed-array/methods');

module.exports = parent;
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../stable/typed-array/uint8-clamped-array');
require('../../features/typed-array/methods');

module.exports = parent;
4 changes: 4 additions & 0 deletions packages/core-js/stable/get-iterator-method.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var parent = require('../es/get-iterator-method');
require('../modules/web.dom-collections.iterator');

module.exports = parent;
4 changes: 4 additions & 0 deletions packages/core-js/stable/get-iterator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var parent = require('../es/get-iterator');
require('../modules/web.dom-collections.iterator');

module.exports = parent;
4 changes: 4 additions & 0 deletions packages/core-js/stable/is-iterable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var parent = require('../es/is-iterable');
require('../modules/web.dom-collections.iterator');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/float32-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/float32-array');
require('../../stable/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/float64-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/float64-array');
require('../../stable/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/int16-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/int16-array');
require('../../stable/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/int32-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/int32-array');
require('../../stable/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/int8-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/int8-array');
require('../../stable/typed-array/methods');

module.exports = parent;
3 changes: 3 additions & 0 deletions packages/core-js/stable/typed-array/methods.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var parent = require('../../es/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/uint16-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/uint16-array');
require('../../stable/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/uint32-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/uint32-array');
require('../../stable/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/uint8-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/uint8-array');
require('../../stable/typed-array/methods');

module.exports = parent;
1 change: 1 addition & 0 deletions packages/core-js/stable/typed-array/uint8-clamped-array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var parent = require('../../es/typed-array/uint8-clamped-array');
require('../../stable/typed-array/methods');

module.exports = parent;
Loading

0 comments on commit 6ee268d

Please sign in to comment.