Skip to content

Commit

Permalink
😒 chore(dev-deps): Upgrade dependencies.
Browse files Browse the repository at this point in the history
Also replace @babel/polyfill by regenerator-runtime/runtime.
  • Loading branch information
make-github-pseudonymous-again committed Jul 5, 2020
1 parent a3a0a2e commit 75a1584
Show file tree
Hide file tree
Showing 4 changed files with 991 additions and 1,313 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -6,6 +6,9 @@ Python's iterable and iterator library for JavaScript.
See [docs](https://aureooms.github.io/js-itertools).
Parent is [@aureooms/js-library](https://github.com/aureooms/js-library).

> :warning: The code requires `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
cycle( chain( [ [ 0 , 1 , 2 ] , [ 3 , 4 , 5 ] ] ) ) ; // 0 1 2 3 4 5 0 1 ...
```
Expand Down
12 changes: 7 additions & 5 deletions doc/manual/usage.md
@@ -1,14 +1,16 @@
# Usage

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

Then
Then, import the library where needed
```js
const itertools = require( '@aureooms/js-itertools' ) ;
// or
Expand Down
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -9,7 +9,7 @@
],
"concurrency": 8,
"require": [
"@babel/polyfill",
"regenerator-runtime/runtime",
"@babel/register"
],
"timeout": "2m"
Expand All @@ -35,11 +35,10 @@
"@aureooms/js-compare": "1.4.5",
"@aureooms/js-operator": "1.0.2",
"@aureooms/js-predicate": "2.0.2",
"@babel/cli": "7.10.3",
"@babel/core": "7.10.3",
"@babel/polyfill": "7.10.1",
"@babel/preset-env": "7.10.3",
"@babel/register": "7.10.3",
"@babel/cli": "7.10.4",
"@babel/core": "7.10.4",
"@babel/preset-env": "7.10.4",
"@babel/register": "7.10.4",
"ava": "3.9.0",
"coveralls": "3.1.0",
"esdoc": "1.1.0",
Expand All @@ -48,6 +47,7 @@
"esdoc-standard-plugin": "1.0.0",
"np": "6.2.5",
"nyc": "15.1.0",
"regenerator-runtime": "^0.13.5",
"xo": "0.32.1"
},
"files": [
Expand Down

0 comments on commit 75a1584

Please sign in to comment.