diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index f06ffa9..55d5ff4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - node-version: [10.x, 16.x, 18.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v2 diff --git a/README.md b/README.md index 5cac667..e8cf2f9 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,6 @@ Then either require (Node.js CJS): const bigintCryptoUtils = require('bigint-crypto-utils') ``` -> **Node >=10.4 <11**. `bigint-crypto-utils` uses workers to speed up some operations. Workers are enabled by default with Node.js from version 11. In order to use them with Node >=10.4 and <11, you need to execute node with the flag `--experimental-worker`, and require the .js file manually (otherwise .cjs is required by default and would not be supported by the workers) -> -> ```javascript -> const bigintCryptoUtils = require('bigint-crypto-utils/dist/cjs/index.node') // ONLY FOR node >=10.4 <11 ! -> ``` - or import (JavaScript ES module): ```javascript diff --git a/docs/API.md b/docs/API.md index 81622d0..9ff80c9 100644 --- a/docs/API.md +++ b/docs/API.md @@ -155,7 +155,7 @@ A promise that resolves to a boolean that is either true (a probably prime numbe #### Defined in -[src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/isProbablyPrime.ts#L21) +[src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/isProbablyPrime.ts#L21) ___ @@ -322,7 +322,7 @@ A promise that resolves to a bigint probable prime of bitLength bits. #### Defined in -[src/ts/prime.ts:25](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/prime.ts#L25) +[src/ts/prime.ts:25](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/prime.ts#L25) ___ @@ -352,7 +352,7 @@ A bigint probable prime of bitLength bits. #### Defined in -[src/ts/prime.ts:102](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/prime.ts#L102) +[src/ts/prime.ts:102](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/prime.ts#L102) ___ @@ -381,7 +381,7 @@ A cryptographically secure random bigint between [min,max] #### Defined in -[src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBetween.ts#L15) +[src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/randBetween.ts#L15) ___ @@ -410,7 +410,7 @@ A Promise that resolves to a UInt8Array/Buffer (Browser/Node.js) filled with cry #### Defined in -[src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBits.ts#L14) +[src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/randBits.ts#L14) ___ @@ -439,7 +439,7 @@ A Uint8Array/Buffer (Browser/Node.js) filled with cryptographically secure rando #### Defined in -[src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBits.ts#L45) +[src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/randBits.ts#L45) ___ @@ -468,7 +468,7 @@ A promise that resolves to a UInt8Array/Buffer (Browser/Node.js) filled with cry #### Defined in -[src/ts/randBytes.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBytes.ts#L14) +[src/ts/randBytes.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/randBytes.ts#L14) ___ @@ -497,7 +497,7 @@ A UInt8Array/Buffer (Browser/Node.js) filled with cryptographically secure rando #### Defined in -[src/ts/randBytes.ts:47](https://github.com/juanelas/bigint-crypto-utils/blob/a545f2c/src/ts/randBytes.ts#L47) +[src/ts/randBytes.ts:47](https://github.com/juanelas/bigint-crypto-utils/blob/a8ae97b/src/ts/randBytes.ts#L47) ___ diff --git a/src/docs/index.md b/src/docs/index.md index 57c3d91..9ddeb50 100644 --- a/src/docs/index.md +++ b/src/docs/index.md @@ -26,12 +26,6 @@ Then either require (Node.js CJS): const {{PKG_CAMELCASE}} = require('{{PKG_NAME}}') ``` -> **Node >=10.4 <11**. `bigint-crypto-utils` uses workers to speed up some operations. Workers are enabled by default with Node.js from version 11. In order to use them with Node >=10.4 and <11, you need to execute node with the flag `--experimental-worker`, and require the .js file manually (otherwise .cjs is required by default and would not be supported by the workers) -> -> ```javascript -> const bigintCryptoUtils = require('bigint-crypto-utils/dist/cjs/index.node') // ONLY FOR node >=10.4 <11 ! -> ``` - or import (JavaScript ES module): ```javascript