Skip to content

Commit 0381b41

Browse files
😒 chore(dev-deps): Dump @babel/polyfill.
1 parent 725f1ad commit 0381b41

File tree

4 files changed

+540
-902
lines changed

4 files changed

+540
-902
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Fibonacci heap data structure for JavaScript.
55
See [docs](https://aureooms.github.io/js-fibonacci-heap/index.html).
66
Parent is [@aureooms/js-heap](https://github.com/aureooms/js-heap).
77

8-
> :warning: The code needs a ES2015+ polyfill to run (`regeneratorRuntime`),
9-
> for instance [@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
8+
> :warning: The code requires `regeneratorRuntime` to be defined, for instance by importing
9+
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
1010
1111
```js
1212
let heap = new FibonacciHeap( compare.increasing ) ;

doc/manual/usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Usage
22

3-
> :warning: The code needs a ES2015+ polyfill to run (`regeneratorRuntime`),
4-
> for instance [@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
3+
> :warning: The code requires `regeneratorRuntime` to be defined, for instance by importing
4+
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
55
66
First, require the polyfill at the entry point of your application
77
```js
8-
require( '@babel/polyfill' ) ;
8+
require( 'regenerator-runtime/runtime' );
99
// or
10-
import '@babel/polyfill' ;
10+
import 'regenerator-runtime/runtime.js' ;
1111
```
1212

1313
Then, import the library where needed

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test/src/**/*"
99
],
1010
"require": [
11-
"@babel/polyfill",
11+
"regenerator-runtime/runtime",
1212
"@babel/register"
1313
],
1414
"timeout": "1m"
@@ -17,9 +17,6 @@
1717
"presets": [
1818
"@babel/preset-env"
1919
],
20-
"plugins": [
21-
"@babel/plugin-proposal-async-generator-functions"
22-
],
2320
"env": {
2421
"development": {
2522
"sourceMaps": "inline"
@@ -36,8 +33,6 @@
3633
"@aureooms/js-heap-spec": "15.0.3",
3734
"@babel/cli": "7.10.5",
3835
"@babel/core": "7.11.1",
39-
"@babel/plugin-proposal-async-generator-functions": "7.10.5",
40-
"@babel/polyfill": "7.10.4",
4136
"@babel/preset-env": "7.11.0",
4237
"@babel/register": "7.10.5",
4338
"ava": "3.11.1",
@@ -49,6 +44,7 @@
4944
"esdoc-standard-plugin": "1.0.0",
5045
"np": "6.3.2",
5146
"nyc": "15.1.0",
47+
"regenerator-runtime": "0.13.7",
5248
"xo": "0.32.1"
5349
},
5450
"files": [

0 commit comments

Comments
 (0)