diff --git a/README.md b/README.md index d1a7d955..5c046936 100644 --- a/README.md +++ b/README.md @@ -358,35 +358,9 @@ To load this module directly into modern browsers that [support loading ECMAScri ### UMD -To load this module directly into older browsers you can use the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds from any of the following CDNs: +As of `uuid@9` [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds are no longer shipped with this library. -**Using [UNPKG](https://unpkg.com/uuid@latest/dist/umd/)**: - -```html - -``` - -**Using [jsDelivr](https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/)**: - -```html - -``` - -**Using [cdnjs](https://cdnjs.com/libraries/uuid)**: - -```html - -``` - -These CDNs all provide the same [`uuidv4()`](#uuidv4options-buffer-offset) method: - -```html - -``` - -Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`uuidv3()`](#uuidv3name-namespace-buffer-offset) and [`uuidv5()`](#uuidv5name-namespace-buffer-offset)) are available from the files `uuidv1.min.js`, `uuidv3.min.js` and `uuidv5.min.js` respectively. +If you need a UMD build of this library, use a bundler like Webpack or Rollup. Alternatively, refer to the documentation of [`uuid@8.3.2`](https://github.com/uuidjs/uuid/blob/v8.3.2/README.md#umd) which was the last version that shipped UMD builds. ## Known issues diff --git a/README_js.md b/README_js.md index 8bd0f363..a59d22dd 100644 --- a/README_js.md +++ b/README_js.md @@ -367,35 +367,9 @@ To load this module directly into modern browsers that [support loading ECMAScri ### UMD -To load this module directly into older browsers you can use the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds from any of the following CDNs: +As of `uuid@9` [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds are no longer shipped with this library. -**Using [UNPKG](https://unpkg.com/uuid@latest/dist/umd/)**: - -```html - -``` - -**Using [jsDelivr](https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/)**: - -```html - -``` - -**Using [cdnjs](https://cdnjs.com/libraries/uuid)**: - -```html - -``` - -These CDNs all provide the same [`uuidv4()`](#uuidv4options-buffer-offset) method: - -```html - -``` - -Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`uuidv3()`](#uuidv3name-namespace-buffer-offset) and [`uuidv5()`](#uuidv5name-namespace-buffer-offset)) are available from the files `uuidv1.min.js`, `uuidv3.min.js` and `uuidv5.min.js` respectively. +If you need a UMD build of this library, use a bundler like Webpack or Rollup. Alternatively, refer to the documentation of [`uuid@8.3.2`](https://github.com/uuidjs/uuid/blob/v8.3.2/README.md#umd) which was the last version that shipped UMD builds. ## Known issues diff --git a/examples/benchmark/README.md b/examples/benchmark/README.md index 805f182e..ad640407 100644 --- a/examples/benchmark/README.md +++ b/examples/benchmark/README.md @@ -2,10 +2,15 @@ ``` npm install -npm test ``` -To run the benchmark in the browser open `benchmark.html` and check the console. +## Node.js + +To run the benchmark in Node.js, run `npm test`. + +## Browser + +To run the benchmark in the browser run `npm run start`, open `benchmark.html`, and check the console. Example output (`uuid@8.0.0`, MacBook Pro (Retina, 13-inch, Early 2015), 3.1 GHz Dual-Core Intel Core i7): diff --git a/examples/benchmark/benchmark.html b/examples/benchmark/benchmark.html index 2f3bf78f..6636e396 100644 --- a/examples/benchmark/benchmark.html +++ b/examples/benchmark/benchmark.html @@ -1,12 +1,4 @@ UUID Benchmark

Please open the Developer Console to view output

- - - - - - - - - + diff --git a/examples/benchmark/benchmark.js b/examples/benchmark/benchmark.js index a52eed68..076f3b96 100644 --- a/examples/benchmark/benchmark.js +++ b/examples/benchmark/benchmark.js @@ -1,85 +1,77 @@ -// eslint-disable-next-line no-unused-vars -/* global Benchmark:false, uuidv1:false, uuidv3:false, uuidv4:false, uuidv5:false */ -const Benchmark = (typeof window !== 'undefined' && window.Benchmark) || require('benchmark'); -const uuidv1 = (typeof window !== 'undefined' && window.uuidv1) || require('uuid').v1; -const uuidv4 = (typeof window !== 'undefined' && window.uuidv4) || require('uuid').v4; -const uuidv3 = (typeof window !== 'undefined' && window.uuidv3) || require('uuid').v3; -const uuidv5 = (typeof window !== 'undefined' && window.uuidv5) || require('uuid').v5; -const uuidParse = (typeof window !== 'undefined' && window.uuidParse) || require('uuid').parse; -const uuidStringify = - (typeof window !== 'undefined' && window.uuidStringify) || require('uuid').stringify; +export default function benchmark(uuid, Benchmark) { + console.log('Starting. Tests take ~1 minute to run ...'); -console.log('Starting. Tests take ~1 minute to run ...'); + function testParseAndStringify() { + const suite = new Benchmark.Suite({ + onError(event) { + console.error(event.target.error); + }, + }); -function testParseAndStringify() { - const suite = new Benchmark.Suite({ - onError(event) { - console.error(event.target.error); - }, - }); + const BYTES = [ + 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, + 0x4b, + ]; - const BYTES = [ - 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, 0x4b, - ]; + suite + .add('uuid.stringify()', function () { + uuid.stringify(BYTES); + }) + .add('uuid.parse()', function () { + uuid.parse('0f5abcd1-c194-47f3-905b-2df7263a084b'); + }) + .on('cycle', function (event) { + console.log(event.target.toString()); + }) + .on('complete', function () { + console.log('---\n'); + }) + .run(); + } - suite - .add('uuidStringify()', function () { - uuidStringify(BYTES); - }) - .add('uuidParse()', function () { - uuidParse('0f5abcd1-c194-47f3-905b-2df7263a084b'); - }) - .on('cycle', function (event) { - console.log(event.target.toString()); - }) - .on('complete', function () { - console.log('---\n'); - }) - .run(); -} + function testGeneration() { + const array = new Array(16); -function testGeneration() { - const array = new Array(16); + const suite = new Benchmark.Suite({ + onError(event) { + console.error(event.target.error); + }, + }); - const suite = new Benchmark.Suite({ - onError(event) { - console.error(event.target.error); - }, - }); + suite + .add('uuid.v1()', function () { + uuid.v1(); + }) + .add('uuid.v1() fill existing array', function () { + try { + uuid.v1(null, array, 0); + } catch (err) { + // The spec (https://tools.ietf.org/html/rfc4122#section-4.2.1.2) defines that only 10M/s v1 + // UUIDs can be generated on a single node. This library throws an error if we hit that limit + // (which can happen on modern hardware and modern Node.js versions). + } + }) + .add('uuid.v4()', function () { + uuid.v4(); + }) + .add('uuid.v4() fill existing array', function () { + uuid.v4(null, array, 0); + }) + .add('uuid.v3()', function () { + uuid.v3('hello.example.com', uuid.v3.DNS); + }) + .add('uuid.v5()', function () { + uuid.v5('hello.example.com', uuid.v5.DNS); + }) + .on('cycle', function (event) { + console.log(event.target.toString()); + }) + .on('complete', function () { + console.log('Fastest is ' + this.filter('fastest').map('name')); + }) + .run(); + } - suite - .add('uuidv1()', function () { - uuidv1(); - }) - .add('uuidv1() fill existing array', function () { - try { - uuidv1(null, array, 0); - } catch (err) { - // The spec (https://tools.ietf.org/html/rfc4122#section-4.2.1.2) defines that only 10M/s v1 - // UUIDs can be generated on a single node. This library throws an error if we hit that limit - // (which can happen on modern hardware and modern Node.js versions). - } - }) - .add('uuidv4()', function () { - uuidv4(); - }) - .add('uuidv4() fill existing array', function () { - uuidv4(null, array, 0); - }) - .add('uuidv3()', function () { - uuidv3('hello.example.com', uuidv3.DNS); - }) - .add('uuidv5()', function () { - uuidv5('hello.example.com', uuidv5.DNS); - }) - .on('cycle', function (event) { - console.log(event.target.toString()); - }) - .on('complete', function () { - console.log('Fastest is ' + this.filter('fastest').map('name')); - }) - .run(); + testParseAndStringify(); + testGeneration(); } - -testParseAndStringify(); -testGeneration(); diff --git a/examples/benchmark/browser.js b/examples/benchmark/browser.js new file mode 100644 index 00000000..1bb728f7 --- /dev/null +++ b/examples/benchmark/browser.js @@ -0,0 +1,7 @@ +import * as uuid from './node_modules/uuid/dist/esm-browser/index.js'; +import './node_modules/lodash/lodash.js'; +import './node_modules/benchmark/benchmark.js'; + +import benchmark from './benchmark.js'; + +benchmark(uuid, window.Benchmark); diff --git a/examples/benchmark/node.js b/examples/benchmark/node.js new file mode 100644 index 00000000..84724e6e --- /dev/null +++ b/examples/benchmark/node.js @@ -0,0 +1,6 @@ +import * as uuid from 'uuid'; +import Benchmark from 'benchmark'; + +import benchmark from './benchmark.js'; + +benchmark(uuid, Benchmark); diff --git a/examples/benchmark/package-lock.json b/examples/benchmark/package-lock.json index f69d6160..b061b75d 100644 --- a/examples/benchmark/package-lock.json +++ b/examples/benchmark/package-lock.json @@ -21,32 +21,29 @@ "uuid": "dist/bin/uuid" }, "devDependencies": { - "@babel/cli": "7.15.7", - "@babel/core": "7.15.8", - "@babel/eslint-parser": "7.15.8", - "@babel/preset-env": "7.15.8", - "@commitlint/cli": "13.2.1", - "@commitlint/config-conventional": "13.2.0", - "@rollup/plugin-node-resolve": "13.0.6", - "bundlewatch": "0.3.2", - "eslint": "8.1.0", - "eslint-config-prettier": "8.3.0", - "eslint-config-standard": "16.0.3", - "eslint-plugin-import": "2.25.2", + "@babel/cli": "7.18.9", + "@babel/core": "7.18.9", + "@babel/eslint-parser": "7.18.9", + "@babel/preset-env": "7.18.9", + "@commitlint/cli": "17.0.3", + "@commitlint/config-conventional": "17.0.3", + "bundlewatch": "0.3.3", + "eslint": "8.20.0", + "eslint-config-prettier": "8.5.0", + "eslint-config-standard": "17.0.0", + "eslint-plugin-import": "2.26.0", "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "4.0.0", - "eslint-plugin-promise": "5.1.1", - "husky": "7.0.4", - "jest": "27.3.1", - "lint-staged": "11.2.3", + "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-promise": "6.0.0", + "husky": "8.0.1", + "jest": "28.1.3", + "lint-staged": "13.0.3", "npm-run-all": "4.1.5", "optional-dev-dependency": "2.0.1", - "prettier": "2.4.1", + "prettier": "2.7.1", "random-seed": "0.3.0", - "rollup": "2.58.0", - "rollup-plugin-terser": "7.0.2", - "runmd": "1.3.2", - "standard-version": "9.3.2" + "runmd": "1.3.6", + "standard-version": "9.5.0" } }, "node_modules/benchmark": { @@ -102,32 +99,29 @@ "uuid": { "version": "file:../../.local/uuid", "requires": { - "@babel/cli": "7.15.7", - "@babel/core": "7.15.8", - "@babel/eslint-parser": "7.15.8", - "@babel/preset-env": "7.15.8", - "@commitlint/cli": "13.2.1", - "@commitlint/config-conventional": "13.2.0", - "@rollup/plugin-node-resolve": "13.0.6", - "bundlewatch": "0.3.2", - "eslint": "8.1.0", - "eslint-config-prettier": "8.3.0", - "eslint-config-standard": "16.0.3", - "eslint-plugin-import": "2.25.2", + "@babel/cli": "7.18.9", + "@babel/core": "7.18.9", + "@babel/eslint-parser": "7.18.9", + "@babel/preset-env": "7.18.9", + "@commitlint/cli": "17.0.3", + "@commitlint/config-conventional": "17.0.3", + "bundlewatch": "0.3.3", + "eslint": "8.20.0", + "eslint-config-prettier": "8.5.0", + "eslint-config-standard": "17.0.0", + "eslint-plugin-import": "2.26.0", "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "4.0.0", - "eslint-plugin-promise": "5.1.1", - "husky": "7.0.4", - "jest": "27.3.1", - "lint-staged": "11.2.3", + "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-promise": "6.0.0", + "husky": "8.0.1", + "jest": "28.1.3", + "lint-staged": "13.0.3", "npm-run-all": "4.1.5", "optional-dev-dependency": "2.0.1", - "prettier": "2.4.1", + "prettier": "2.7.1", "random-seed": "0.3.0", - "rollup": "2.58.0", - "rollup-plugin-terser": "7.0.2", - "runmd": "1.3.2", - "standard-version": "9.3.2" + "runmd": "1.3.6", + "standard-version": "9.5.0" } } } diff --git a/examples/benchmark/package.json b/examples/benchmark/package.json index e13babc9..fff5582f 100644 --- a/examples/benchmark/package.json +++ b/examples/benchmark/package.json @@ -3,12 +3,15 @@ "version": "0.0.0", "private": true, "scripts": { - "test": "node benchmark.js" + "build": "true", + "start": "npm run build && npx http-server . -o", + "test": "node node.js" }, "dependencies": { "uuid": "file:../../.local/uuid" }, "devDependencies": { "benchmark": "^2.1.4" - } + }, + "type": "module" } diff --git a/examples/browser-umd/README.md b/examples/browser-umd/README.md deleted file mode 100644 index 8da3cbcb..00000000 --- a/examples/browser-umd/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# UUID example Browser with UMD build - -``` -npm install -npm start -``` - -Then navigate to `example.html`. diff --git a/examples/browser-umd/example.html b/examples/browser-umd/example.html deleted file mode 100644 index f1a99b9e..00000000 --- a/examples/browser-umd/example.html +++ /dev/null @@ -1,14 +0,0 @@ - -UUID UMD example -

Please open the Developer Console to view output

- - - - - - - - - - - diff --git a/examples/browser-umd/example.js b/examples/browser-umd/example.js deleted file mode 100644 index ad65cf22..00000000 --- a/examples/browser-umd/example.js +++ /dev/null @@ -1,54 +0,0 @@ -/* global uuid:false, uuidv1:false, uuidv3:false, uuidv4:false, uuidv5:false, uuidNIL:false, uuidParse:false, uuidStringify:false, uuidValidate:false, uuidVersion:false */ -console.log('uuidv1()', uuidv1()); - -console.log('uuidv4()', uuidv4()); - -// ... using predefined DNS namespace (for domain names) -console.log('uuidv3() DNS', uuidv3('hello.example.com', uuidv3.DNS)); - -// ... using predefined URL namespace (for, well, URLs) -console.log('uuidv3() URL', uuidv3('http://example.com/hello', uuidv3.URL)); - -// ... using a custom namespace -// -// Note: Custom namespaces should be a UUID string specific to your application! -// E.g. the one here was generated using this modules `uuid` CLI. -const MY_NAMESPACE = '55238d15-c926-4598-b49d-cf4e913ba13c'; -console.log('uuidv3() MY_NAMESPACE', uuidv3('Hello, World!', MY_NAMESPACE)); - -// ... using predefined DNS namespace (for domain names) -console.log('uuidv5() DNS', uuidv5('hello.example.com', uuidv5.DNS)); - -// ... using predefined URL namespace (for, well, URLs) -console.log('uuidv5() URL', uuidv5('http://example.com/hello', uuidv5.URL)); - -// ... using a custom namespace -// -// Note: Custom namespaces should be a UUID string specific to your application! -// E.g. the one here was generated using this modules `uuid` CLI. -// const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; -console.log('uuidv5() MY_NAMESPACE', uuidv5('Hello, World!', MY_NAMESPACE)); - -// Utility functions -console.log('NIL_UUID', uuidNIL); -console.log('uuidParse()', uuidParse(MY_NAMESPACE)); -console.log('uuidStringify()', uuidStringify(uuidParse(MY_NAMESPACE))); -console.log('uuidValidate()', uuidValidate(MY_NAMESPACE)); -console.log('uuidVersion()', uuidVersion(MY_NAMESPACE)); - -console.log('Same with default export'); - -console.log('uuid.v1()', uuid.v1()); -console.log('uuid.v4()', uuid.v4()); -console.log('uuid.v3() DNS', uuid.v3('hello.example.com', uuid.v3.DNS)); -console.log('uuid.v3() URL', uuid.v3('http://example.com/hello', uuid.v3.URL)); -console.log('uuid.v3() MY_NAMESPACE', uuid.v3('Hello, World!', MY_NAMESPACE)); -console.log('uuid.v5() DNS', uuid.v5('hello.example.com', uuid.v5.DNS)); -console.log('uuid.v5() URL', uuid.v5('http://example.com/hello', uuid.v5.URL)); -console.log('uuid.v5() MY_NAMESPACE', uuid.v5('Hello, World!', MY_NAMESPACE)); - -console.log('uuid.NIL', uuid.NIL); -console.log('uuid.parse()', uuid.parse(MY_NAMESPACE)); -console.log('uuid.stringify()', uuid.stringify(uuid.parse(MY_NAMESPACE))); -console.log('uuid.validate()', uuid.validate(MY_NAMESPACE)); -console.log('uuid.version()', uuid.version(MY_NAMESPACE)); diff --git a/examples/browser-umd/package-lock.json b/examples/browser-umd/package-lock.json deleted file mode 100644 index 3efa4b5d..00000000 --- a/examples/browser-umd/package-lock.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "name": "uuid-example-browser-umd", - "version": "0.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "uuid-example-browser-umd", - "version": "0.0.0", - "dependencies": { - "uuid": "file:../../.local/uuid" - } - }, - "../../.local/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - }, - "devDependencies": { - "@babel/cli": "7.15.7", - "@babel/core": "7.15.8", - "@babel/eslint-parser": "7.15.8", - "@babel/preset-env": "7.15.8", - "@commitlint/cli": "13.2.1", - "@commitlint/config-conventional": "13.2.0", - "@rollup/plugin-node-resolve": "13.0.6", - "bundlewatch": "0.3.2", - "eslint": "8.1.0", - "eslint-config-prettier": "8.3.0", - "eslint-config-standard": "16.0.3", - "eslint-plugin-import": "2.25.2", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "4.0.0", - "eslint-plugin-promise": "5.1.1", - "husky": "7.0.4", - "jest": "27.3.1", - "lint-staged": "11.2.3", - "npm-run-all": "4.1.5", - "optional-dev-dependency": "2.0.1", - "prettier": "2.4.1", - "random-seed": "0.3.0", - "rollup": "2.58.0", - "rollup-plugin-terser": "7.0.2", - "runmd": "1.3.2", - "standard-version": "9.3.2" - } - }, - "node_modules/uuid": { - "resolved": "../../.local/uuid", - "link": true - } - }, - "dependencies": { - "uuid": { - "version": "file:../../.local/uuid", - "requires": { - "@babel/cli": "7.15.7", - "@babel/core": "7.15.8", - "@babel/eslint-parser": "7.15.8", - "@babel/preset-env": "7.15.8", - "@commitlint/cli": "13.2.1", - "@commitlint/config-conventional": "13.2.0", - "@rollup/plugin-node-resolve": "13.0.6", - "bundlewatch": "0.3.2", - "eslint": "8.1.0", - "eslint-config-prettier": "8.3.0", - "eslint-config-standard": "16.0.3", - "eslint-plugin-import": "2.25.2", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "4.0.0", - "eslint-plugin-promise": "5.1.1", - "husky": "7.0.4", - "jest": "27.3.1", - "lint-staged": "11.2.3", - "npm-run-all": "4.1.5", - "optional-dev-dependency": "2.0.1", - "prettier": "2.4.1", - "random-seed": "0.3.0", - "rollup": "2.58.0", - "rollup-plugin-terser": "7.0.2", - "runmd": "1.3.2", - "standard-version": "9.3.2" - } - } - } -} diff --git a/examples/browser-umd/package.json b/examples/browser-umd/package.json deleted file mode 100644 index 28d96cb6..00000000 --- a/examples/browser-umd/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "uuid-example-browser-umd", - "version": "0.0.0", - "private": true, - "scripts": { - "build": "true", - "start": "npm run build && npx http-server . -o" - }, - "dependencies": { - "uuid": "file:../../.local/uuid" - } -} diff --git a/package-lock.json b/package-lock.json index 5bd3724f..e7d81db7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "@babel/preset-env": "7.18.9", "@commitlint/cli": "17.0.3", "@commitlint/config-conventional": "17.0.3", - "@rollup/plugin-node-resolve": "13.3.0", "bundlewatch": "0.3.3", "eslint": "8.20.0", "eslint-config-prettier": "8.5.0", @@ -34,8 +33,6 @@ "optional-dev-dependency": "2.0.1", "prettier": "2.7.1", "random-seed": "0.3.0", - "rollup": "2.77.2", - "rollup-plugin-terser": "7.0.2", "runmd": "1.3.6", "standard-version": "9.5.0" } @@ -3217,30 +3214,6 @@ "node": ">=6.0.0" } }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", @@ -3264,67 +3237,6 @@ "dev": true, "optional": true }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", - "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "deepmerge": "^4.2.2", - "is-builtin-module": "^3.1.0", - "is-module": "^1.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "peerDependencies": { - "rollup": "^2.42.0" - } - }, - "node_modules/@rollup/plugin-node-resolve/node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@rollup/plugin-node-resolve/node_modules/is-builtin-module": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz", - "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==", - "dev": true, - "dependencies": { - "builtin-modules": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "dev": true, - "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, "node_modules/@sinclair/typebox": { "version": "0.24.22", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.22.tgz", @@ -3414,12 +3326,6 @@ "@babel/types": "^7.3.0" } }, - "node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "dev": true - }, "node_modules/@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -3489,15 +3395,6 @@ "integrity": "sha512-fOwvpvQYStpb/zHMx0Cauwywu9yLDmzWiiQBC7gJyq5tYLUXFZvDG7VK1B7WBxxjBJNKFOZ0zLoOQn8vmATbhw==", "dev": true }, - "node_modules/@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/stack-utils": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", @@ -6413,12 +6310,6 @@ "node": ">=4.0" } }, - "node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "dev": true - }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -7418,12 +7309,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=", - "dev": true - }, "node_modules/is-negative-zero": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", @@ -9433,41 +9318,6 @@ "node": ">=8" } }, - "node_modules/jest-worker": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.3.0.tgz", - "integrity": "sha512-Vmpn2F6IASefL+DVBhPzI2J9/GJUsqzomdeN+P+dK8/jKxbh8R3BtFnx3FIta7wYlPU62cpJMJQo4kuOowcMnw==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -11281,15 +11131,6 @@ "node": ">= 0.6.0" } }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, "node_modules/react-is": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", @@ -11639,36 +11480,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rollup": { - "version": "2.77.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.2.tgz", - "integrity": "sha512-m/4YzYgLcpMQbxX3NmAqDvwLATZzxt8bIegO78FZLl+lAgKJBd1DRAOeEiZcKOIOPjxE6ewHWHNgGEalFXuz1g==", - "dev": true, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=10.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" - }, - "peerDependencies": { - "rollup": "^2.0.0" - } - }, "node_modules/runmd": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/runmd/-/runmd-1.3.6.tgz", @@ -11706,15 +11517,6 @@ "semver": "bin/semver" } }, - "node_modules/serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", @@ -11832,16 +11634,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "node_modules/spdx-correct": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", @@ -12341,30 +12133,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/terser": { - "version": "5.14.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", - "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", - "dev": true, - "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -15276,29 +15044,6 @@ "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true }, - "@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", - "dev": true, - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } - } - }, "@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", @@ -15322,48 +15067,6 @@ "dev": true, "optional": true }, - "@rollup/plugin-node-resolve": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", - "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", - "dev": true, - "requires": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "deepmerge": "^4.2.2", - "is-builtin-module": "^3.1.0", - "is-module": "^1.0.0", - "resolve": "^1.19.0" - }, - "dependencies": { - "builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true - }, - "is-builtin-module": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz", - "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==", - "dev": true, - "requires": { - "builtin-modules": "^3.0.0" - } - } - } - }, - "@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "dev": true, - "requires": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - } - }, "@sinclair/typebox": { "version": "0.24.22", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.22.tgz", @@ -15453,12 +15156,6 @@ "@babel/types": "^7.3.0" } }, - "@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "dev": true - }, "@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -15528,15 +15225,6 @@ "integrity": "sha512-fOwvpvQYStpb/zHMx0Cauwywu9yLDmzWiiQBC7gJyq5tYLUXFZvDG7VK1B7WBxxjBJNKFOZ0zLoOQn8vmATbhw==", "dev": true }, - "@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, "@types/stack-utils": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", @@ -17703,12 +17391,6 @@ "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", "dev": true }, - "estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "dev": true - }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -18444,12 +18126,6 @@ "is-extglob": "^2.1.1" } }, - "is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=", - "dev": true - }, "is-negative-zero": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", @@ -19926,34 +19602,6 @@ } } }, - "jest-worker": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.3.0.tgz", - "integrity": "sha512-Vmpn2F6IASefL+DVBhPzI2J9/GJUsqzomdeN+P+dK8/jKxbh8R3BtFnx3FIta7wYlPU62cpJMJQo4kuOowcMnw==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -21306,15 +20954,6 @@ "json-stringify-safe": "^5.0.1" } }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, "react-is": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", @@ -21583,27 +21222,6 @@ "glob": "^7.1.3" } }, - "rollup": { - "version": "2.77.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.2.tgz", - "integrity": "sha512-m/4YzYgLcpMQbxX3NmAqDvwLATZzxt8bIegO78FZLl+lAgKJBd1DRAOeEiZcKOIOPjxE6ewHWHNgGEalFXuz1g==", - "dev": true, - "requires": { - "fsevents": "~2.3.2" - } - }, - "rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" - } - }, "runmd": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/runmd/-/runmd-1.3.6.tgz", @@ -21635,15 +21253,6 @@ "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true }, - "serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", @@ -21730,16 +21339,6 @@ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "spdx-correct": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", @@ -22113,26 +21712,6 @@ "supports-hyperlinks": "^2.0.0" } }, - "terser": { - "version": "5.14.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", - "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", - "dev": true, - "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - } - } - }, "test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", diff --git a/package.json b/package.json index 8e080355..cc65f81d 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "@babel/preset-env": "7.18.9", "@commitlint/cli": "17.0.3", "@commitlint/config-conventional": "17.0.3", - "@rollup/plugin-node-resolve": "13.3.0", "bundlewatch": "0.3.3", "eslint": "8.20.0", "eslint-config-prettier": "8.5.0", @@ -72,8 +71,6 @@ "optional-dev-dependency": "2.0.1", "prettier": "2.7.1", "random-seed": "0.3.0", - "rollup": "2.77.2", - "rollup-plugin-terser": "7.0.2", "runmd": "1.3.6", "standard-version": "9.5.0" }, diff --git a/rollup.config.js b/rollup.config.js deleted file mode 100644 index 37de4056..00000000 --- a/rollup.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import nodeResolve from '@rollup/plugin-node-resolve'; -import { terser } from 'rollup-plugin-terser'; - -function chunk(input, name) { - return { - input: `dist/esm-browser/${input}.js`, - output: { - file: `dist/umd/${name}.min.js`, - format: 'umd', - name, - compact: true, - }, - plugins: [nodeResolve({ browser: true }), terser()], - }; -} - -export default [ - chunk('index', 'uuid'), - chunk('v1', 'uuidv1'), - chunk('v3', 'uuidv3'), - chunk('v4', 'uuidv4'), - chunk('v5', 'uuidv5'), - - chunk('nil', 'uuidNIL'), - - chunk('version', 'uuidVersion'), - chunk('validate', 'uuidValidate'), - chunk('parse', 'uuidParse'), - chunk('stringify', 'uuidStringify'), -]; diff --git a/scripts/build.sh b/scripts/build.sh index f8ff012b..1836a687 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -60,7 +60,3 @@ done echo "Removing browser-specific files from esm-node" rm -f "$DIR"/esm-node/*-browser.js - -# UMD Build -mkdir "$DIR/umd" -rollup -c