Skip to content

Commit

Permalink
😒 chore(dev-deps): Replace @babel/polyfill by regenerator-runtime/run…
Browse files Browse the repository at this point in the history
…time.
  • Loading branch information
make-github-pseudonymous-again committed Jul 5, 2020
1 parent a28d3ff commit a9b7bc7
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 29 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ All methods are pure functions that do not modify their object.
> The [parent project](https://github.com/aureooms/js-persistent) shows how
> specialized persistent data structures can be build on top of those methods.
> The code needs a ES2015+ polyfill to work (`regeneratorRuntime`), for example
> [babel-polyfill](https://babeljs.io/docs/usage/polyfill).
> The code requires `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
import 'babel-polyfill' ;
import 'regenerator-runtime/runtime.js' ;
```

### Definition of a `Tree`
Expand Down
2 changes: 1 addition & 1 deletion _benchmark/benchmark.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('@babel/polyfill');
require('regenerator-runtime/runtime');

const itertools = require('@aureooms/js-itertools');

Expand Down
2 changes: 1 addition & 1 deletion _benchmark/tree.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const itertools = require('@aureooms/js-itertools');
const fingertree = require('..');
const empty = fingertree.empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/append.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/concat.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/cons.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/init.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/prepend.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/push.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/split.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
2 changes: 1 addition & 1 deletion _profile/tail.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.time('prepare');
require('@babel/polyfill');
require('regenerator-runtime/runtime');
const ArgumentParser = require('argparse').ArgumentParser;
const itertools = require('@aureooms/js-itertools');
const empty = require('..').empty;
Expand Down
8 changes: 4 additions & 4 deletions doc/manual/usage.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Usage

The code needs a ES2015+ polyfill to work, for example
[babel-polyfill](https://babeljs.io/docs/usage/polyfill).
The code requires `regeneratorRuntime` to be defined, for instance by importing
[regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
require( 'babel-polyfill' ) ;
require( 'regenerator-runtime/runtime' );
// or
import 'babel-polyfill' ;
import 'regenerator-runtime/runtime.js' ;
```

Then
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test/src/**/*"
],
"require": [
"@babel/polyfill",
"regenerator-runtime/runtime",
"@babel/register"
]
},
Expand All @@ -33,7 +33,6 @@
"@aureooms/js-predicate": "2.0.2",
"@babel/cli": "7.10.4",
"@babel/core": "7.10.4",
"@babel/polyfill": "7.10.4",
"@babel/preset-env": "7.10.4",
"@babel/register": "7.10.4",
"argparse": "1.0.10",
Expand All @@ -48,6 +47,7 @@
"microtime": "3.0.0",
"np": "6.2.5",
"nyc": "15.1.0",
"regenerator-runtime": "^0.13.5",
"xo": "0.32.1"
},
"files": [
Expand Down
12 changes: 2 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -899,14 +899,6 @@
"@babel/helper-create-regexp-features-plugin" "^7.10.4"
"@babel/helper-plugin-utils" "^7.10.4"

"@babel/polyfill@7.10.4":
version "7.10.4"
resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.10.4.tgz#915e5bfe61490ac0199008e35ca9d7d151a8e45a"
integrity sha512-8BYcnVqQ5kMD2HXoHInBH7H1b/uP3KdnwCYXOqFnXqguOyuu443WXusbIUbWEfY3Z0Txk0M1uG/8YuAMhNl6zg==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.4"

"@babel/preset-env@7.10.4":
version "7.10.4"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.10.4.tgz#fbf57f9a803afd97f4f32e4f798bb62e4b2bef5f"
Expand Down Expand Up @@ -2483,7 +2475,7 @@ core-js-compat@^3.6.2:
browserslist "^4.8.5"
semver "7.0.0"

core-js@^2.4.0, core-js@^2.6.5:
core-js@^2.4.0:
version "2.6.11"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c"
integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==
Expand Down Expand Up @@ -6764,7 +6756,7 @@ regenerator-runtime@^0.11.0:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==

regenerator-runtime@^0.13.4:
regenerator-runtime@^0.13.4, regenerator-runtime@^0.13.5:
version "0.13.5"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697"
integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==
Expand Down

0 comments on commit a9b7bc7

Please sign in to comment.