Bump dependencies to latest

Purge unused dependencies.

Update dependencies to latest except:

- ts-lint. Keep locked to 9.0.1 because that's the latest version that
  works with Webpack 4 that's still used by
  vue-cli-plugin-electron-builder.
- Keep eslint at version 7 because tests cannot be run/compiled with
  version 7, see eslint/eslint#15678, vuejs/vue-cli#6759.

Newer versions of ESLint modules do not allow linebreak after or before
= operator (operator-linebreak). This commit also changes files to
comply with it.

Closes #116, #119, #122, #130.
This commit is contained in:
undergroundwires
2022-03-08 18:03:19 +01:00
parent 242a497e7d
commit efd63ff85d
6 changed files with 1801 additions and 1908 deletions

3614
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -23,20 +23,20 @@
}, },
"main": "background.js", "main": "background.js",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/fontawesome-svg-core": "^1.3.0",
"@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-brands-svg-icons": "^6.0.0",
"@fortawesome/free-regular-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^6.0.0",
"@fortawesome/free-solid-svg-icons": "^5.15.4", "@fortawesome/free-solid-svg-icons": "^6.0.0",
"@fortawesome/vue-fontawesome": "^2.0.6", "@fortawesome/vue-fontawesome": "^2.0.6",
"@juggle/resize-observer": "^3.3.1", "@juggle/resize-observer": "^3.3.1",
"ace-builds": "^1.4.13", "ace-builds": "^1.4.14",
"core-js": "^3.18.3", "core-js": "^3.21.1",
"cross-fetch": "^3.1.4", "cross-fetch": "^3.1.5",
"electron-progressbar": "^2.0.1", "electron-progressbar": "^2.0.1",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"install": "^0.13.0", "install": "^0.13.0",
"liquor-tree": "^0.2.70", "liquor-tree": "^0.2.70",
"npm": "^8.1.1", "npm": "^8.5.3",
"v-tooltip": "2.1.3", "v-tooltip": "2.1.3",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-class-component": "^7.2.6", "vue-class-component": "^7.2.6",
@@ -44,49 +44,50 @@
"vue-property-decorator": "^9.1.2" "vue-property-decorator": "^9.1.2"
}, },
"devDependencies": { "devDependencies": {
"@types/ace": "0.0.47", "@types/ace": "^0.0.48",
"@types/chai": "^4.2.22", "@types/chai": "^4.3.0",
"@types/file-saver": "^2.0.3", "@types/file-saver": "^2.0.5",
"@types/mocha": "^9.0.0", "@types/mocha": "^9.1.0",
"@typescript-eslint/eslint-plugin": "^5.4.0", "@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.4.0", "@typescript-eslint/parser": "^5.13.0",
"@vue/cli-plugin-babel": "~5.0.0-rc.1", "@vue/cli-plugin-babel": "~5.0.1",
"@vue/cli-plugin-e2e-cypress": "~5.0.0-rc.1", "@vue/cli-plugin-e2e-cypress": "~5.0.1",
"@vue/cli-plugin-eslint": "~5.0.0-rc.1", "@vue/cli-plugin-eslint": "~5.0.1",
"@vue/cli-plugin-typescript": "~5.0.0-rc.1", "@vue/cli-plugin-typescript": "~5.0.1",
"@vue/cli-plugin-unit-mocha": "~5.0.0-rc.1", "@vue/cli-plugin-unit-mocha": "~5.0.1",
"@vue/cli-service": "~5.0.0-rc.1", "@vue/cli-service": "~5.0.1",
"@vue/eslint-config-airbnb": "^6.0.0", "@vue/eslint-config-airbnb": "^6.0.0",
"@vue/eslint-config-typescript": "^9.1.0", "@vue/eslint-config-typescript": "^10.0.0",
"@vue/test-utils": "1.2.2", "@vue/test-utils": "1.3.0",
"chai": "^4.3.4", "chai": "^4.3.6",
"cypress": "^8.3.0", "cypress": "^9.5.1",
"electron": "^15.3.0", "electron": "^17.1.0",
"electron-builder": "^22.14.13", "electron-builder": "^22.14.13",
"electron-devtools-installer": "^3.2.0", "electron-devtools-installer": "^3.2.0",
"electron-log": "^4.4.1", "electron-log": "^4.4.6",
"electron-updater": "^4.3.9", "electron-updater": "^5.0.0",
"eslint": "^7.32.0", "eslint": "7.32.0",
"eslint-plugin-import": "^2.25.3", "eslint-plugin-import": "^2.25.4",
"eslint-plugin-vue": "^8.0.3", "eslint-plugin-vue": "^8.5.0",
"eslint-plugin-vuejs-accessibility": "^1.1.0", "eslint-plugin-vuejs-accessibility": "^1.1.1",
"js-yaml-loader": "^1.2.2", "js-yaml-loader": "^1.2.2",
"markdownlint-cli": "^0.29.0", "markdownlint-cli": "^0.31.1",
"remark-cli": "^10.0.0", "remark-cli": "^10.0.1",
"remark-lint-no-dead-urls": "^1.1.0", "remark-lint-no-dead-urls": "^1.1.0",
"remark-preset-lint-consistent": "^5.1.0", "remark-preset-lint-consistent": "^5.1.1",
"remark-validate-links": "^11.0.1", "remark-validate-links": "^11.0.2",
"sass": "^1.43.3", "sass": "^1.49.9",
"sass-loader": "10.2.0", "sass-loader": "^12.6.0",
"ts-loader": "9.0.1", "ts-loader": "9.0.1",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "^4.4.4", "typescript": "^4.6.2",
"vue-cli-plugin-electron-builder": "^2.1.1", "vue-cli-plugin-electron-builder": "^2.1.1",
"vue-template-compiler": "^2.6.14", "vue-template-compiler": "^2.6.14",
"yaml-lint": "^1.2.4" "yaml-lint": "^1.2.4"
}, },
"//devDependencies": { "//devDependencies": {
"ts-loader": "Here as workaround for vue-cli-plugin-electron-builder using older webpack 4" "ts-loader": "Here as workaround for vue-cli-plugin-electron-builder using older webpack 4",
"eslint": "Stuck at 7.32.0 because Vue CLI not supporting 8.x.x"
}, },
"homepage": "https://privacy.sexy", "homepage": "https://privacy.sexy",
"repository": { "repository": {

View File

@@ -2,8 +2,8 @@ import { IProjectInformation } from '@/domain/IProjectInformation';
import { ICodeSubstituter } from '@/application/Parser/ScriptingDefinition/ICodeSubstituter'; import { ICodeSubstituter } from '@/application/Parser/ScriptingDefinition/ICodeSubstituter';
export class CodeSubstituterStub implements ICodeSubstituter { export class CodeSubstituterStub implements ICodeSubstituter {
private readonly scenarios = private readonly scenarios = new Array<{
new Array<{ code: string, info: IProjectInformation, result: string }>(); code: string, info: IProjectInformation, result: string }>();
public substitute(code: string, info: IProjectInformation): string { public substitute(code: string, info: IProjectInformation): string {
const scenario = this.scenarios.find((s) => s.code === code && s.info === info); const scenario = this.scenarios.find((s) => s.code === code && s.info === info);

View File

@@ -1,8 +1,8 @@
import { IEnumParser } from '@/application/Common/Enum'; import { IEnumParser } from '@/application/Common/Enum';
export class EnumParserStub<T> implements IEnumParser<T> { export class EnumParserStub<T> implements IEnumParser<T> {
private readonly scenarios = private readonly scenarios = new Array<{
new Array<{ inputName: string, inputValue: string, outputValue: T }>(); inputName: string, inputValue: string, outputValue: T }>();
private defaultValue: T; private defaultValue: T;

View File

@@ -5,8 +5,8 @@ import { ISharedFunction } from '@/application/Parser/Script/Compiler/Function/I
import { FunctionCallArgumentCollectionStub } from '@tests/unit/shared/Stubs/FunctionCallArgumentCollectionStub'; import { FunctionCallArgumentCollectionStub } from '@tests/unit/shared/Stubs/FunctionCallArgumentCollectionStub';
export class ExpressionsCompilerStub implements IExpressionsCompiler { export class ExpressionsCompilerStub implements IExpressionsCompiler {
public readonly callHistory = public readonly callHistory = new Array<{
new Array<{ code: string, parameters: IReadOnlyFunctionCallArgumentCollection }>(); code: string, parameters: IReadOnlyFunctionCallArgumentCollection }>();
private readonly scenarios = new Array<ITestScenario>(); private readonly scenarios = new Array<ITestScenario>();

View File

@@ -5,8 +5,8 @@ import { IEventSource } from '@/infrastructure/Events/IEventSource';
import { EventSource } from '@/infrastructure/Events/EventSource'; import { EventSource } from '@/infrastructure/Events/EventSource';
export class UserSelectionStub implements IUserSelection { export class UserSelectionStub implements IUserSelection {
public readonly changed: IEventSource<readonly SelectedScript[]> = public readonly changed: IEventSource<readonly SelectedScript[]> = new EventSource<
new EventSource<readonly SelectedScript[]>(); readonly SelectedScript[]>();
public selectedScripts: readonly SelectedScript[] = []; public selectedScripts: readonly SelectedScript[] = [];