From b03e2375da07b20c077b633bd5b82c55c31c897c Mon Sep 17 00:00:00 2001 From: lzear Date: Mon, 18 Jan 2021 23:47:52 +0100 Subject: [PATCH] fix: use lodash-es --- README.md | 8 +- jest.config.js | 3 + package.json | 22 +-- src/methods/baldwin/index.ts | 2 +- src/methods/coombs/index.ts | 2 +- src/methods/copeland/index.ts | 3 +- src/methods/kemeny/index.ts | 3 +- src/methods/maximal-lotteries/index.ts | 2 +- src/methods/nanson/index.ts | 3 +- src/methods/ranked-pairs/index.ts | 5 +- src/methods/schulze/index.ts | 2 +- src/test/matrix.ts | 2 +- src/test/testUtils.ts | 5 +- src/utils/condorcet.ts | 2 +- src/utils/makeMatrix.ts | 4 +- src/utils/normalize.ts | 14 +- src/utils/scores.ts | 4 +- src/utils/scoresZero.ts | 2 +- tsconfig.json | 2 +- yarn.lock | 218 ++++++++++++++----------- 20 files changed, 167 insertions(+), 141 deletions(-) diff --git a/README.md b/README.md index 16fd9db..8b0a197 100644 --- a/README.md +++ b/README.md @@ -82,11 +82,11 @@ The winner is the most-approved candidate. **Borda count**: For each voter, every candidate is given a number of points which equals the number of candidates ranked lower in the voter's preference. -**Nanson method**: Iterative Borda count in which, each round, candidates scoring -the average score or less are eliminated. +**Nanson method**: Iterative Borda count in which, each round, candidates +scoring the average score or less are eliminated. -**Baldwin method**: Iterative Borda count in which, each round, candidates scoring -the lowest score are eliminated. +**Baldwin method**: Iterative Borda count in which, each round, candidates +scoring the lowest score are eliminated. **Instant-runoff**: Considering only the top choice of each voter, the candidate with the fewest votes is eliminated. The election repeats until there is a diff --git a/jest.config.js b/jest.config.js index 6579506..bee9b33 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,6 +2,9 @@ module.exports = { transform: { '.(ts|tsx)': 'ts-jest', }, + moduleNameMapper: { + '^lodash-es$': 'lodash', + }, testEnvironment: 'node', testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$', moduleFileExtensions: ['ts', 'tsx', 'js'], diff --git a/package.json b/package.json index 64f745e..a22a769 100644 --- a/package.json +++ b/package.json @@ -53,32 +53,32 @@ "@commitlint/cli": "^11.0.0", "@rollup/plugin-commonjs": "^17.0.0", "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^11.0.1", + "@rollup/plugin-node-resolve": "^11.1.0", "@types/jest": "^26.0.20", "@types/lodash-es": "^4.17.4", - "@types/node": "^14.14.20", - "@typescript-eslint/eslint-plugin": "^4.13.0", - "@typescript-eslint/parser": "^4.13.0", - "commitizen": "^4.2.2", + "@types/node": "^14.14.21", + "@typescript-eslint/eslint-plugin": "^4.14.0", + "@typescript-eslint/parser": "^4.14.0", + "commitizen": "^4.2.3", "dotenv": "^8.2.0", - "eslint": "^7.17.0", - "eslint-config-prettier": "^7.1.0", + "eslint": "^7.18.0", + "eslint-config-prettier": "^7.2.0", "eslint-plugin-prettier": "^3.3.1", - "husky": "^4.3.7", + "husky": "^4.3.8", "jest": "^26.6.3", "lint-staged": "^10.5.3", "prettier": "^2.2.1", "rimraf": "^3.0.2", - "rollup": "^2.36.1", + "rollup": "^2.36.2", "rollup-plugin-sizes": "^1.0.3", "rollup-plugin-sourcemaps": "^0.6.3", "rollup-plugin-typescript2": "^0.29.0", - "semantic-release": "^17.3.2", + "semantic-release": "^17.3.3", "shelljs": "^0.8.4", "travis-deploy-once": "^5.0.11", "ts-jest": "^26.4.4", "ts-node": "^9.1.1", - "typedoc": "^0.20.14", + "typedoc": "^0.20.16", "typescript": "^4.1.3" }, "dependencies": { diff --git a/src/methods/baldwin/index.ts b/src/methods/baldwin/index.ts index 504399d..126092b 100644 --- a/src/methods/baldwin/index.ts +++ b/src/methods/baldwin/index.ts @@ -1,4 +1,4 @@ -import difference from 'lodash-es/difference' +import { difference } from 'lodash-es' import { SystemUsingRankings, ScoreObject, diff --git a/src/methods/coombs/index.ts b/src/methods/coombs/index.ts index 4c49c5d..0216dfb 100644 --- a/src/methods/coombs/index.ts +++ b/src/methods/coombs/index.ts @@ -1,4 +1,4 @@ -import difference from 'lodash-es/difference' +import { difference } from 'lodash-es' import { SystemUsingRankings, ScoreObject, diff --git a/src/methods/copeland/index.ts b/src/methods/copeland/index.ts index 366fda7..d226f49 100644 --- a/src/methods/copeland/index.ts +++ b/src/methods/copeland/index.ts @@ -1,6 +1,5 @@ /* eslint-disable no-plusplus */ -import range from 'lodash-es/range' -import zipObject from 'lodash-es/zipObject' +import { range, zipObject } from 'lodash-es' import { SystemUsingMatrix, VotingSystem, diff --git a/src/methods/kemeny/index.ts b/src/methods/kemeny/index.ts index 166741c..c60978f 100644 --- a/src/methods/kemeny/index.ts +++ b/src/methods/kemeny/index.ts @@ -1,5 +1,4 @@ -import zipObject from 'lodash-es/zipObject' -import range from 'lodash-es/range' +import { range, zipObject } from 'lodash-es' import { SystemUsingMatrix, VotingSystem, diff --git a/src/methods/maximal-lotteries/index.ts b/src/methods/maximal-lotteries/index.ts index 836203c..8422df0 100644 --- a/src/methods/maximal-lotteries/index.ts +++ b/src/methods/maximal-lotteries/index.ts @@ -1,4 +1,4 @@ -import zipObject from 'lodash-es/zipObject' +import { zipObject } from 'lodash-es' import { solve } from '../../simplex' import { SystemUsingMatrix, diff --git a/src/methods/nanson/index.ts b/src/methods/nanson/index.ts index cf33dad..7c2b796 100644 --- a/src/methods/nanson/index.ts +++ b/src/methods/nanson/index.ts @@ -1,5 +1,4 @@ -import sum from 'lodash-es/sum' -import difference from 'lodash-es/difference' +import { sum, difference } from 'lodash-es' import { SystemUsingRankings, ScoreObject, diff --git a/src/methods/ranked-pairs/index.ts b/src/methods/ranked-pairs/index.ts index 3146d07..3405095 100644 --- a/src/methods/ranked-pairs/index.ts +++ b/src/methods/ranked-pairs/index.ts @@ -1,7 +1,4 @@ -import groupBy from 'lodash-es/groupBy' -import range from 'lodash-es/range' -import uniq from 'lodash-es/uniq' -import zipObject from 'lodash-es/zipObject' +import { groupBy, range, uniq, zipObject } from 'lodash-es' import { Matrix, ScoreObject, diff --git a/src/methods/schulze/index.ts b/src/methods/schulze/index.ts index 06c7b5e..cfc1956 100644 --- a/src/methods/schulze/index.ts +++ b/src/methods/schulze/index.ts @@ -1,5 +1,5 @@ /* eslint-disable no-plusplus */ -import range from 'lodash-es/range' +import { range } from 'lodash-es' import { SystemUsingMatrix, VotingSystem, diff --git a/src/test/matrix.ts b/src/test/matrix.ts index 0c1e6a7..0dbcf26 100644 --- a/src/test/matrix.ts +++ b/src/test/matrix.ts @@ -1,4 +1,4 @@ -import range from 'lodash-es/range' +import { range } from 'lodash-es' export const product = (a: number[][], b: number[][]): number[][] => { const dimA = [a.length, a[0].length] diff --git a/src/test/testUtils.ts b/src/test/testUtils.ts index 2a73311..ca56549 100644 --- a/src/test/testUtils.ts +++ b/src/test/testUtils.ts @@ -1,7 +1,4 @@ -import fill from 'lodash-es/fill' -import random from 'lodash-es/random' -import range from 'lodash-es/range' -import shuffle from 'lodash-es/shuffle' +import { fill, random, range, shuffle } from 'lodash-es' import { Ballot } from '../types' import { toWeightedBallots } from '../utils' diff --git a/src/utils/condorcet.ts b/src/utils/condorcet.ts index 601b6dd..a44dec8 100644 --- a/src/utils/condorcet.ts +++ b/src/utils/condorcet.ts @@ -1,4 +1,4 @@ -import difference from 'lodash-es/difference' +import { difference } from 'lodash-es' import { Matrix } from '../types' export const findCondorcet = ({ candidates, array }: Matrix): Matrix => { diff --git a/src/utils/makeMatrix.ts b/src/utils/makeMatrix.ts index ad34597..4b3cf44 100644 --- a/src/utils/makeMatrix.ts +++ b/src/utils/makeMatrix.ts @@ -1,6 +1,4 @@ -import difference from 'lodash-es/difference' -import range from 'lodash-es/range' -import times from 'lodash-es/times' +import { difference, range, times } from 'lodash-es' import { Matrix, Ballot } from '../types' export const matrixFromBallots = ( diff --git a/src/utils/normalize.ts b/src/utils/normalize.ts index 4d19840..1d44f3a 100644 --- a/src/utils/normalize.ts +++ b/src/utils/normalize.ts @@ -1,9 +1,11 @@ -import difference from 'lodash-es/difference' -import every from 'lodash-es/every' -import flatten from 'lodash-es/flatten' -import intersection from 'lodash-es/intersection' -import isEqual from 'lodash-es/isEqual' -import uniq from 'lodash-es/uniq' +import { + every, + difference, + flatten, + intersection, + uniq, + isEqual, +} from 'lodash-es' import { Ballot } from '../types' diff --git a/src/utils/scores.ts b/src/utils/scores.ts index 5d9b2f7..a81ed4e 100644 --- a/src/utils/scores.ts +++ b/src/utils/scores.ts @@ -1,6 +1,4 @@ -import groupBy from 'lodash-es/groupBy' -import sortBy from 'lodash-es/sortBy' -import toPairs from 'lodash-es/toPairs' +import { groupBy, sortBy, toPairs } from 'lodash-es' export const scoresToRanking = (scores: { [candidate: string]: number diff --git a/src/utils/scoresZero.ts b/src/utils/scoresZero.ts index 2f1cb49..ea551e9 100644 --- a/src/utils/scoresZero.ts +++ b/src/utils/scoresZero.ts @@ -1,4 +1,4 @@ -import zipObject from 'lodash-es/zipObject' +import { zipObject } from 'lodash-es' import { ScoreObject } from '../types' export const scoresZero = (candidates: string[]): ScoreObject => diff --git a/tsconfig.json b/tsconfig.json index 94b09ba..587d9d7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "moduleResolution": "node", - "target": "esnext", + "target": "es5", "module": "es2015", "lib": ["es7", "es2015", "es2016", "es2017", "es2019", "esnext", "dom"], "strict": true, diff --git a/yarn.lock b/yarn.lock index 685a473..41d8e0e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -999,10 +999,10 @@ resolved "https://registry.yarnpkg.com/@commitlint/types/-/types-11.0.0.tgz#719cf05fcc1abb6533610a2e0f5dd1e61eac14fe" integrity sha512-VoNqai1vR5anRF5Tuh/+SWDFk7xi7oMwHrHrbm1BprYXjB2RJsWLhUrStMssDxEl5lW/z3EUdg8RvH/IUBccSQ== -"@eslint/eslintrc@^0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.2.2.tgz#d01fc791e2fc33e88a29d6f3dc7e93d0cd784b76" - integrity sha512-EfB5OHNYp1F4px/LI/FEnGylop7nOqkQ1LRzCM0KccA2U8tvV8w01KBv37LbO7nW4H+YhKyo2LcJhRwjjV17QQ== +"@eslint/eslintrc@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.3.0.tgz#d736d6963d7003b6514e6324bec9c602ac340318" + integrity sha512-1JTKgrOKAHVivSvOYw+sJOunkBjUOvjqWk1DPja7ZFhIS2mX/4EgTT8M7eTK9jrKhL/FvXXEbQwIs3pg1xp3dg== dependencies: ajv "^6.12.4" debug "^4.1.1" @@ -1011,7 +1011,7 @@ ignore "^4.0.6" import-fresh "^3.2.1" js-yaml "^3.13.1" - lodash "^4.17.19" + lodash "^4.17.20" minimatch "^3.0.4" strip-json-comments "^3.1.1" @@ -1356,10 +1356,10 @@ dependencies: "@rollup/pluginutils" "^3.0.8" -"@rollup/plugin-node-resolve@^11.0.1": - version "11.0.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.0.1.tgz#d3765eec4bccf960801439a999382aed2dca959b" - integrity sha512-ltlsj/4Bhwwhb+Nb5xCz/6vieuEj2/BAkkqVIKmZwC7pIdl8srmgmglE4S0jFlZa32K4qvdQ6NHdmpRKD/LwoQ== +"@rollup/plugin-node-resolve@^11.1.0": + version "11.1.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.1.0.tgz#fa0f888297b3aebcd6534e8aba4e6fe01997649a" + integrity sha512-ouBBppRdWJKCllDXGzJ7ZIkYbaq+5TmyP0smt1vdJCFfoZhLi31vhpmjLhyo8lreHf4RoeSNllaWrvSqHpHRog== dependencies: "@rollup/pluginutils" "^3.1.0" "@types/resolve" "1.17.1" @@ -1595,10 +1595,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.6.tgz#146d3da57b3c636cc0d1769396ce1cfa8991147f" integrity sha512-6QlRuqsQ/Ox/aJEQWBEJG7A9+u7oSYl3mem/K8IzxXG/kAGbV1YPD9Bg9Zw3vyxC/YP+zONKwy8hGkSt1jxFMw== -"@types/node@^14.14.20": - version "14.14.20" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.20.tgz#f7974863edd21d1f8a494a73e8e2b3658615c340" - integrity sha512-Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A== +"@types/node@^14.14.21": + version "14.14.21" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.21.tgz#d934aacc22424fe9622ebf6857370c052eae464e" + integrity sha512-cHYfKsnwllYhjOzuC5q1VpguABBeecUp24yFluHpn/BQaVxB1CuQ1FSRZCzrPxrkIfWISXV2LbeoBthLWg0+0A== "@types/normalize-package-data@^2.4.0": version "2.4.0" @@ -1611,9 +1611,9 @@ integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== "@types/prettier@^2.0.0": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.1.5.tgz#b6ab3bba29e16b821d84e09ecfaded462b816b00" - integrity sha512-UEyp8LwZ4Dg30kVU2Q3amHHyTn1jEdhCIE59ANed76GaT1Vp76DD3ZWSAxgCrw6wJ0TqeoBpqmfUHiUDPs//HQ== + version "2.1.6" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.1.6.tgz#f4b1efa784e8db479cdb8b14403e2144b1e9ff03" + integrity sha512-6gOkRe7OIioWAXfnO/2lFiv+SJichKVSys1mSsgyrYHSEjk8Ctv4tSR/Odvnu+HWlH2C8j53dahU03XmQdd5fA== "@types/resolve@1.17.1": version "1.17.1" @@ -1644,13 +1644,13 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.13.0.tgz#5f580ea520fa46442deb82c038460c3dd3524bb6" - integrity sha512-ygqDUm+BUPvrr0jrXqoteMqmIaZ/bixYOc3A4BRwzEPTZPi6E+n44rzNZWaB0YvtukgP+aoj0i/fyx7FkM2p1w== +"@typescript-eslint/eslint-plugin@^4.14.0": + version "4.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.14.0.tgz#92db8e7c357ed7d69632d6843ca70b71be3a721d" + integrity sha512-IJ5e2W7uFNfg4qh9eHkHRUCbgZ8VKtGwD07kannJvM5t/GU8P8+24NX8gi3Hf5jST5oWPY8kyV1s/WtfiZ4+Ww== dependencies: - "@typescript-eslint/experimental-utils" "4.13.0" - "@typescript-eslint/scope-manager" "4.13.0" + "@typescript-eslint/experimental-utils" "4.14.0" + "@typescript-eslint/scope-manager" "4.14.0" debug "^4.1.1" functional-red-black-tree "^1.0.1" lodash "^4.17.15" @@ -1658,48 +1658,48 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.13.0.tgz#9dc9ab375d65603b43d938a0786190a0c72be44e" - integrity sha512-/ZsuWmqagOzNkx30VWYV3MNB/Re/CGv/7EzlqZo5RegBN8tMuPaBgNK6vPBCQA8tcYrbsrTdbx3ixMRRKEEGVw== +"@typescript-eslint/experimental-utils@4.14.0": + version "4.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.14.0.tgz#5aa7b006736634f588a69ee343ca959cd09988df" + integrity sha512-6i6eAoiPlXMKRbXzvoQD5Yn9L7k9ezzGRvzC/x1V3650rUk3c3AOjQyGYyF9BDxQQDK2ElmKOZRD0CbtdkMzQQ== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/scope-manager" "4.13.0" - "@typescript-eslint/types" "4.13.0" - "@typescript-eslint/typescript-estree" "4.13.0" + "@typescript-eslint/scope-manager" "4.14.0" + "@typescript-eslint/types" "4.14.0" + "@typescript-eslint/typescript-estree" "4.14.0" eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.13.0.tgz#c413d640ea66120cfcc37f891e8cb3fd1c9d247d" - integrity sha512-KO0J5SRF08pMXzq9+abyHnaGQgUJZ3Z3ax+pmqz9vl81JxmTTOUfQmq7/4awVfq09b6C4owNlOgOwp61pYRBSg== +"@typescript-eslint/parser@^4.14.0": + version "4.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.14.0.tgz#62d4cd2079d5c06683e9bfb200c758f292c4dee7" + integrity sha512-sUDeuCjBU+ZF3Lzw0hphTyScmDDJ5QVkyE21pRoBo8iDl7WBtVFS+WDN3blY1CH3SBt7EmYCw6wfmJjF0l/uYg== dependencies: - "@typescript-eslint/scope-manager" "4.13.0" - "@typescript-eslint/types" "4.13.0" - "@typescript-eslint/typescript-estree" "4.13.0" + "@typescript-eslint/scope-manager" "4.14.0" + "@typescript-eslint/types" "4.14.0" + "@typescript-eslint/typescript-estree" "4.14.0" debug "^4.1.1" -"@typescript-eslint/scope-manager@4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.13.0.tgz#5b45912a9aa26b29603d8fa28f5e09088b947141" - integrity sha512-UpK7YLG2JlTp/9G4CHe7GxOwd93RBf3aHO5L+pfjIrhtBvZjHKbMhBXTIQNkbz7HZ9XOe++yKrXutYm5KmjWgQ== +"@typescript-eslint/scope-manager@4.14.0": + version "4.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.14.0.tgz#55a4743095d684e1f7b7180c4bac2a0a3727f517" + integrity sha512-/J+LlRMdbPh4RdL4hfP1eCwHN5bAhFAGOTsvE6SxsrM/47XQiPSgF5MDgLyp/i9kbZV9Lx80DW0OpPkzL+uf8Q== dependencies: - "@typescript-eslint/types" "4.13.0" - "@typescript-eslint/visitor-keys" "4.13.0" + "@typescript-eslint/types" "4.14.0" + "@typescript-eslint/visitor-keys" "4.14.0" -"@typescript-eslint/types@4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.13.0.tgz#6a7c6015a59a08fbd70daa8c83dfff86250502f8" - integrity sha512-/+aPaq163oX+ObOG00M0t9tKkOgdv9lq0IQv/y4SqGkAXmhFmCfgsELV7kOCTb2vVU5VOmVwXBXJTDr353C1rQ== +"@typescript-eslint/types@4.14.0": + version "4.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.14.0.tgz#d8a8202d9b58831d6fd9cee2ba12f8a5a5dd44b6" + integrity sha512-VsQE4VvpldHrTFuVPY1ZnHn/Txw6cZGjL48e+iBxTi2ksa9DmebKjAeFmTVAYoSkTk7gjA7UqJ7pIsyifTsI4A== -"@typescript-eslint/typescript-estree@4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.13.0.tgz#cf6e2207c7d760f5dfd8d18051428fadfc37b45e" - integrity sha512-9A0/DFZZLlGXn5XA349dWQFwPZxcyYyCFX5X88nWs2uachRDwGeyPz46oTsm9ZJE66EALvEns1lvBwa4d9QxMg== +"@typescript-eslint/typescript-estree@4.14.0": + version "4.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.14.0.tgz#4bcd67486e9acafc3d0c982b23a9ab8ac8911ed7" + integrity sha512-wRjZ5qLao+bvS2F7pX4qi2oLcOONIB+ru8RGBieDptq/SudYwshveORwCVU4/yMAd4GK7Fsf8Uq1tjV838erag== dependencies: - "@typescript-eslint/types" "4.13.0" - "@typescript-eslint/visitor-keys" "4.13.0" + "@typescript-eslint/types" "4.14.0" + "@typescript-eslint/visitor-keys" "4.14.0" debug "^4.1.1" globby "^11.0.1" is-glob "^4.0.1" @@ -1707,12 +1707,12 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@4.13.0": - version "4.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.13.0.tgz#9acb1772d3b3183182b6540d3734143dce9476fe" - integrity sha512-6RoxWK05PAibukE7jElqAtNMq+RWZyqJ6Q/GdIxaiUj2Ept8jh8+FUVlbq9WxMYxkmEOPvCE5cRSyupMpwW31g== +"@typescript-eslint/visitor-keys@4.14.0": + version "4.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.14.0.tgz#b1090d9d2955b044b2ea2904a22496849acbdf54" + integrity sha512-MeHHzUyRI50DuiPgV9+LxcM52FCJFYjJiWHtXlbyC27b80mfOwKeiKI+MHOTEpcpfmoPFm/vvQS88bYIx6PZTA== dependencies: - "@typescript-eslint/types" "4.13.0" + "@typescript-eslint/types" "4.14.0" eslint-visitor-keys "^2.0.0" JSONStream@^1.0.4, JSONStream@^1.3.4, JSONStream@^1.3.5: @@ -2616,7 +2616,7 @@ commander@^6.2.0: resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.0.tgz#b990bfb8ac030aedc6d11bc04d1488ffef56db75" integrity sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q== -commitizen@^4.0.3, commitizen@^4.2.2: +commitizen@^4.0.3: version "4.2.2" resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-4.2.2.tgz#1a93dd07208521ea1ebbf832593542dac714cc79" integrity sha512-uz+E6lGsDBDI2mYA4QfOxFeqdWUYwR1ky11YmLgg2BnEEP3YbeejpT4lxzGjkYqumnXr062qTOGavR9NtX/iwQ== @@ -2636,6 +2636,26 @@ commitizen@^4.0.3, commitizen@^4.2.2: strip-bom "4.0.0" strip-json-comments "3.0.1" +commitizen@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-4.2.3.tgz#088d0ef72500240d331b11e02e288223667c1475" + integrity sha512-pYlYEng7XMV2TW4xtjDKBGqeJ0Teq2zyRSx2S3Ml1XAplHSlJZK8vm1KdGclpMEZuGafbS5TeHXIVnHk8RWIzQ== + dependencies: + cachedir "2.2.0" + cz-conventional-changelog "3.2.0" + dedent "0.7.0" + detect-indent "6.0.0" + find-node-modules "2.0.0" + find-root "1.1.0" + fs-extra "8.1.0" + glob "7.1.4" + inquirer "6.5.2" + is-utf8 "^0.2.1" + lodash "^4.17.20" + minimist "1.2.5" + strip-bom "4.0.0" + strip-json-comments "3.0.1" + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -2891,6 +2911,20 @@ cyclist@^1.0.1: resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk= +cz-conventional-changelog@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cz-conventional-changelog/-/cz-conventional-changelog-3.2.0.tgz#6aef1f892d64113343d7e455529089ac9f20e477" + integrity sha512-yAYxeGpVi27hqIilG1nh4A9Bnx4J3Ov+eXy4koL3drrR+IO9GaWPsKjik20ht608Asqi8TQPf0mczhEeyAtMzg== + dependencies: + chalk "^2.4.1" + commitizen "^4.0.3" + conventional-commit-types "^3.0.0" + lodash.map "^4.5.1" + longest "^2.0.1" + word-wrap "^1.0.3" + optionalDependencies: + "@commitlint/load" ">6.1.1" + cz-conventional-changelog@3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/cz-conventional-changelog/-/cz-conventional-changelog-3.3.0.tgz#9246947c90404149b3fe2cf7ee91acad3b7d22d2" @@ -3349,10 +3383,10 @@ escodegen@^1.14.1: optionalDependencies: source-map "~0.6.1" -eslint-config-prettier@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz#5402eb559aa94b894effd6bddfa0b1ca051c858f" - integrity sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA== +eslint-config-prettier@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9" + integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg== eslint-plugin-prettier@^3.3.1: version "3.3.1" @@ -3386,13 +3420,13 @@ eslint-visitor-keys@^2.0.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== -eslint@^7.17.0: - version "7.17.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.17.0.tgz#4ccda5bf12572ad3bf760e6f195886f50569adb0" - integrity sha512-zJk08MiBgwuGoxes5sSQhOtibZ75pz0J35XTRlZOk9xMffhpA9BTbQZxoXZzOl5zMbleShbGwtw+1kGferfFwQ== +eslint@^7.18.0: + version "7.18.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.18.0.tgz#7fdcd2f3715a41fe6295a16234bd69aed2c75e67" + integrity sha512-fbgTiE8BfUJZuBeq2Yi7J3RB3WGUQ9PNuNbmgi6jt9Iv8qrkxfy19Ds3OpL1Pm7zg3BtTVhvcUZbIRQ0wmSjAQ== dependencies: "@babel/code-frame" "^7.0.0" - "@eslint/eslintrc" "^0.2.2" + "@eslint/eslintrc" "^0.3.0" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" @@ -3416,7 +3450,7 @@ eslint@^7.17.0: js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" - lodash "^4.17.19" + lodash "^4.17.20" minimatch "^3.0.4" natural-compare "^1.4.0" optionator "^0.9.1" @@ -4375,10 +4409,10 @@ humanize-ms@^1.2.1: dependencies: ms "^2.0.0" -husky@^4.3.7: - version "4.3.7" - resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.7.tgz#ca47bbe6213c1aa8b16bbd504530d9600de91e88" - integrity sha512-0fQlcCDq/xypoyYSJvEuzbDPHFf8ZF9IXKJxlrnvxABTSzK1VPT2RKYQKrcgJ+YD39swgoB6sbzywUqFxUiqjw== +husky@^4.3.8: + version "4.3.8" + resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.8.tgz#31144060be963fd6850e5cc8f019a1dfe194296d" + integrity sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow== dependencies: chalk "^4.0.0" ci-info "^2.0.0" @@ -7852,10 +7886,10 @@ rollup-plugin-typescript2@^0.29.0: resolve "1.17.0" tslib "2.0.1" -rollup@^2.36.1: - version "2.36.1" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.36.1.tgz#2174f0c25c7b400d57b05628d0e732c7ae8d2178" - integrity sha512-eAfqho8dyzuVvrGqpR0ITgEdq0zG2QJeWYh+HeuTbpcaXk8vNFc48B7bJa1xYosTCKx0CuW+447oQOW8HgBIZQ== +rollup@^2.36.2: + version "2.36.2" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.36.2.tgz#883fc793c70c8481ad604f1065cd79ab0a4e9c49" + integrity sha512-qjjiuJKb+/8n0EZyQYVW+gFU4bNRBcZaXVzUgSVrGw0HlQBlK2aWyaOMMs1Ufic1jV69b9kW3u3i9B+hISDm3A== optionalDependencies: fsevents "~2.1.2" @@ -7932,10 +7966,10 @@ saxes@^5.0.0: dependencies: xmlchars "^2.2.0" -semantic-release@^17.3.2: - version "17.3.2" - resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-17.3.2.tgz#89c793ed64fe00b7bfe1c36bc389fb04855a4df9" - integrity sha512-S8ppLzFFeznDXvRGEvltuwpRT7Tb7o3gBIqaVnahi0sAzrxD/WdWZQoHOpwypzTBD7i9gCxZ+RqVpaHa9WFD3w== +semantic-release@^17.3.3: + version "17.3.3" + resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-17.3.3.tgz#8f3d2909e9570d9053ef195c138d8d15d7fe5815" + integrity sha512-StUBghTuh98O0XpDWj5aRLmZwY9zV6gGgbXnw5faon3Br1fRk8r2VSaYozfQTx8o5C8Mtem+a0KWEiTTd4Iylw== dependencies: "@semantic-release/commit-analyzer" "^8.0.0" "@semantic-release/error" "^2.2.0" @@ -8357,9 +8391,9 @@ ssri@^6.0.0, ssri@^6.0.1: figgy-pudding "^3.5.1" stack-utils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.2.tgz#5cf48b4557becb4638d0bc4f21d23f5d19586593" - integrity sha512-0H7QK2ECz3fyZMzQ8rH0j2ykpfbnd20BFtfg/SqVC2+sCTtcw0aDTGB7dk+de4U4uUeuz6nOtJcrkFFLG1B0Rg== + version "2.0.3" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.3.tgz#cd5f030126ff116b78ccb3c027fe302713b61277" + integrity sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw== dependencies: escape-string-regexp "^2.0.0" @@ -8937,15 +8971,15 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typedoc-default-themes@0.12.1: - version "0.12.1" - resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.12.1.tgz#6c4a759f9dc365b4021579587b3773deb6fb6eeb" - integrity sha512-6PEvV+/kWAJeUwEtrKgIsZQSbybW5DGCr6s2mMjHsDplpgN8iBHI52UbA+2C+c2TMCxBNMK9TMS6pdeIdwsLSw== +typedoc-default-themes@^0.12.4: + version "0.12.4" + resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.12.4.tgz#5cbb79c1d6421f1274e86b1b542934eb557abd4f" + integrity sha512-EZiXBUpogsYWe0dLgy47J8yRZCd+HAn9woGzO28XJxxSCSwZRYGKeQiw1KjyIcm3cBtLWUXiPD5+Bgx24GgZjg== -typedoc@^0.20.14: - version "0.20.14" - resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.20.14.tgz#894ff71841a4abbe8f46cf52f3cc96c9d68328dc" - integrity sha512-9bsZp5/qkl+gDSv9DRvHbfbY8Sr0tD8fKx7hNIvcluxeAFzBCEo9o0qDCdLUZw+/axbfd9TaqHvSuCVRu+YH6Q== +typedoc@^0.20.16: + version "0.20.16" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.20.16.tgz#c845d32883af905439607ba03c9667b81cdbeb22" + integrity sha512-xqIL8lT6ZE3QpP0GN30ckeTR05NSEkrP2pXQlNhC0OFkbvnjqJtDUcWSmCO15BuYyu4qsEbZT+tKYFEAt9Jxew== dependencies: colors "^1.4.0" fs-extra "^9.0.1" @@ -8957,7 +8991,7 @@ typedoc@^0.20.14: progress "^2.0.3" shelljs "^0.8.4" shiki "^0.2.7" - typedoc-default-themes "0.12.1" + typedoc-default-themes "^0.12.4" typescript@^4.1.3: version "4.1.3"